/* ==========================================================================
   CULTURE BOOSTER — OWNER'S MINDSET
   Divisi Manajemen Aset PTPN III (Persero)
   Web presentation — style.css
   ========================================================================== */

/* ---------- Design tokens (identitas warna bahan tayang) ---------- */
:root {
  --green-950: #082c20;
  --green-900: #0b3d2c;   /* hijau tua utama */
  --green-800: #0f4c35;
  --green-700: #17603f;
  --green-600: #256d3e;
  --green-100: #e6efe7;
  --gold: #e2a41d;        /* kuning/emas aksen */
  --gold-bright: #f2b705;
  --gold-soft: #f6d98a;
  --ink: #12201a;         /* hitam penegasan */
  --ink-soft: #33413a;
  --cream: #f5f2ea;       /* latar terang */
  --paper: #fbfaf5;
  --red: #a91d2a;         /* aksen panel COST */
  --red-dark: #8c1520;
  --red-soft: #fbeef0;
  --blue-step: #1f6f9c;   /* warna tahap diagram (mengikuti PDF) */
  --navy-step: #1d3a5f;
  --shadow-lg: 0 24px 60px rgba(8, 30, 20, .18);
  --shadow-md: 0 10px 30px rgba(8, 30, 20, .14);
  --shadow-sm: 0 4px 14px rgba(8, 30, 20, .12);
  --radius: 14px;
  --chrome-h: 58px;
  --ease-out: cubic-bezier(.22, .8, .3, 1);
  --font: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Reset & dasar ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;                 /* tanpa scroll global / horizontal */
  background: var(--green-950);
  font-family: var(--font);
  color: var(--ink);
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--gold-soft); }

.gold-text  { color: var(--gold-bright); }
.red-text   { color: var(--red); }
.green-text { color: var(--green-700); }

/* ==========================================================================
   DECK & SCENE — panggung presentasi
   ========================================================================== */
.deck {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  padding-bottom: var(--chrome-h);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transform: translateX(60px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), visibility 0s linear .7s;
  overflow-x: hidden;
  overflow-y: auto;                 /* konten panjang di layar kecil tetap terbaca */
  scrollbar-width: thin;
  background: var(--cream);
}

.deck[data-dir="prev"] .scene { transform: translateX(-60px); }

.scene.active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), visibility 0s;
  z-index: 2;
}

.scene.leaving {
  visibility: visible;
  opacity: 0;
  z-index: 1;
}

/* ---------- Sistem animasi masuk per-elemen ---------- */
/* Elemen .anim tersembunyi; saat scene mendapat kelas .play,
   JS memberi setiap elemen animation-delay dari data-delay. */
.anim { opacity: 0; }

.scene.play .anim[data-anim="fade"]       { animation: a-fade .8s var(--ease-out) both; }
.scene.play .anim[data-anim="rise"]       { animation: a-rise .8s var(--ease-out) both; }
.scene.play .anim[data-anim="slide-left"] { animation: a-slide-left .7s var(--ease-out) both; }
.scene.play .plate.anim[data-anim="slide-left"] { animation-name: a-slide-left-skew; }
.scene.play .anim[data-anim="scale"]      { animation: a-scale .8s var(--ease-out) both; }
.scene.play .anim[data-anim="grow-x"]     { animation: a-grow-x .7s var(--ease-out) both; transform-origin: left center; }
.scene.play .anim[data-anim="arrow"]      { animation: a-arrow .9s var(--ease-out) both; }
.scene.play .anim[data-anim="draw"]       { animation: a-fade 1s var(--ease-out) both; }

@keyframes a-fade       { from { opacity: 0; }                                to { opacity: 1; } }
@keyframes a-rise       { from { opacity: 0; transform: translateY(34px); }   to { opacity: 1; transform: none; } }
@keyframes a-slide-left { from { opacity: 0; transform: translateX(-46px); }  to { opacity: 1; transform: none; } }
@keyframes a-slide-left-skew { from { opacity: 0; transform: translateX(-46px) skewX(-14deg); }
                               to   { opacity: 1; transform: skewX(-14deg); } }
@keyframes a-scale      { from { opacity: 0; transform: scale(.82); }         to { opacity: 1; transform: none; } }
@keyframes a-grow-x     { from { opacity: 0; transform: scaleX(0); }          to { opacity: 1; transform: scaleX(1); } }
@keyframes a-arrow      { from { opacity: 0; transform: translateX(-18px) scaleX(.5); }
                          to   { opacity: 1; transform: none; } }

/* Ilustrasi line-drawing (skyline) */
.scene.play .skyline .sk {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: a-draw 2.4s ease-out forwards;
  animation-delay: inherit;
}
@keyframes a-draw { to { stroke-dashoffset: 0; } }

/* Ken Burns pada foto */
.kenburns { animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.09) translateX(-1.6%); }
}

/* Highlight kuning yang "menyapu" */
.hl-gold {
  background: linear-gradient(120deg, rgba(242,183,5,.85), rgba(242,183,5,.85));
  background-repeat: no-repeat;
  background-size: 0% 88%;
  background-position: 0 60%;
  color: inherit;
  padding: 0 .15em;
  border-radius: 3px;
}
.scene.play .hl-gold { animation: hl-sweep .9s ease-out 2.75s forwards; }
@keyframes hl-sweep { to { background-size: 100% 88%; color: var(--ink); font-weight: 700; } }

.glow-in { text-shadow: 0 0 0 rgba(242,183,5,0); }
.scene.play .glow-in { animation: glow .9s ease-out 2.35s both; }
@keyframes glow {
  0%   { text-shadow: 0 0 0 rgba(242,183,5,0); }
  55%  { text-shadow: 0 0 26px rgba(242,183,5,.65); }
  100% { text-shadow: 0 0 10px rgba(242,183,5,.25); }
}

/* ==========================================================================
   DEKORASI BERSAMA (ribbon diagonal, plates, tombol, header)
   ========================================================================== */
.ribbon-tl {
  position: absolute; top: 0; left: 0;
  width: clamp(90px, 10vw, 170px); height: clamp(150px, 26vh, 290px);
  background:
    linear-gradient(115deg, var(--green-900) 0 38%, transparent 38.5%),
    linear-gradient(115deg, transparent 0 44%, var(--gold) 44.5% 52%, transparent 52.5%);
  z-index: 3; pointer-events: none;
}
.corner-br {
  position: absolute; right: 0; bottom: 0;
  width: clamp(160px, 24vw, 460px); height: clamp(140px, 42vh, 460px);
  background:
    linear-gradient(to top left, var(--green-900) 0 46%, transparent 46.5%),
    linear-gradient(to top left, transparent 0 48%, var(--gold) 48.5% 55%, transparent 55.5%);
  z-index: 3; pointer-events: none;
}

/* Plates diagonal (Culture Booster / Owner's Mindset) */
.s1-plates { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.plate {
  position: relative;
  padding: .5em 1.6em .5em 1.2em;
  transform: skewX(-14deg);
  font-weight: 800;
  letter-spacing: .06em;
  box-shadow: var(--shadow-sm);
}
.plate > * , .plate { font-size: clamp(1rem, 2.2vw, 1.7rem); }
.plate-green { background: var(--green-900); color: #fff; border-right: 6px solid var(--gold); }
.plate-dark  { background: var(--ink); color: var(--gold-bright); font-style: italic; font-size: clamp(1.15rem, 2.6vw, 2rem); }
.plate span { display: inline-block; transform: skewX(14deg); }
.plate-green { transform: skewX(-14deg) translateZ(0); }
.plate-green::after {
  content: ""; position: absolute; top: 0; right: -14px; bottom: 0; width: 4px; background: #fff;
}

/* Header scene 2-4 */
.scene-header {
  display: flex; align-items: flex-start; gap: clamp(14px, 2vw, 28px);
  padding: clamp(16px, 3.2vh, 34px) clamp(20px, 4vw, 64px) 0;
  position: relative; z-index: 4;
}
.header-logo { width: clamp(64px, 7vw, 108px); height: auto; flex: 0 0 auto; }
.scene-title {
  color: var(--green-900);
  font-size: clamp(1.35rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: .01em;
}
.title-rule {
  height: 4px; width: min(520px, 60%);
  margin-top: clamp(8px, 1.4vh, 14px);
  background: linear-gradient(90deg, var(--gold) 0 82%, transparent 82%);
  border-radius: 2px;
  position: relative;
}
.title-rule::after {
  content: ""; position: absolute; right: 8%; top: -3px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
}
.title-rule.gold { background: var(--gold); width: min(360px, 70%); }
.scene-lead {
  margin-top: clamp(8px, 1.6vh, 16px);
  color: var(--ink-soft);
  font-size: clamp(.95rem, 1.7vw, 1.25rem);
  font-weight: 600;
}

/* Tombol */
.btn-gold, .btn-green, .btn-outline, .btn-start {
  display: inline-flex; align-items: center; gap: 9px;
  border: none; border-radius: 999px;
  font-weight: 700; letter-spacing: .02em;
  padding: .72em 1.5em;
  font-size: clamp(.85rem, 1.5vw, 1rem);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s;
  box-shadow: var(--shadow-sm);
}
.btn-gold  { background: var(--gold-bright); color: var(--ink); }
.btn-green { background: var(--green-800); color: #fff; }
.btn-outline { background: transparent; color: var(--green-900); border: 2px solid var(--green-800); box-shadow: none; }
.btn-start {
  background: var(--gold-bright); color: var(--ink);
  font-size: clamp(.95rem, 1.7vw, 1.15rem);
  padding: .8em 1.9em;
}
.btn-gold:hover, .btn-green:hover, .btn-start:hover, .btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Pita pesan bawah (scene 2 & 4) */
.message-band {
  margin: auto clamp(20px, 4vw, 64px) clamp(14px, 2.6vh, 26px);
  background: linear-gradient(100deg, var(--green-950), var(--green-800));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(12px, 2vh, 20px) clamp(16px, 2.6vw, 34px);
  display: flex; align-items: center; gap: clamp(12px, 2vw, 22px);
  box-shadow: var(--shadow-md);
  position: relative; z-index: 4;
}
.message-band p { font-size: clamp(.92rem, 1.75vw, 1.28rem); line-height: 1.45; font-weight: 500; }
.band-icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: clamp(42px, 5vw, 56px); height: clamp(42px, 5vw, 56px);
  border-radius: 50%; background: rgba(255,255,255,.12);
  color: #fff; border-left: 3px solid var(--gold);
}
.s4-band .band-icon { color: var(--gold-bright); }

/* ==========================================================================
   SCENE 1 — OPENING
   ========================================================================== */
.scene-1 { background: var(--cream); overflow: hidden; }

.s1-bg { position: absolute; inset: 0; overflow: hidden; }
.s1-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: 68% center;
  will-change: transform;
}
.s1-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(250,248,242,.92) 0 26%, rgba(250,248,242,.55) 42%, rgba(20,26,20,0) 68%);
  animation: overlay-in 1.4s ease-out both;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

/* cahaya/awan bergerak sangat halus */
.s1-light-drift {
  position: absolute; inset: -20%;
  background: radial-gradient(38% 30% at 30% 25%, rgba(255,255,255,.35), transparent 70%);
  animation: drift 30s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(5%); } }

.s1-content {
  position: relative; z-index: 4;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(20px, 5vh, 60px) clamp(24px, 6vw, 96px);
  max-width: 1100px;
}
.s1-title {
  display: flex; flex-direction: column;
  font-weight: 900;
  color: var(--green-900);
  line-height: .98;
  letter-spacing: .005em;
  font-size: clamp(2.1rem, 6.4vw, 5.4rem);
  text-shadow: 0 2px 18px rgba(250,248,242,.55);
}
.s1-line-sub { color: var(--ink); font-size: .72em; letter-spacing: .01em; }
.s1-plates { margin-top: clamp(20px, 4vh, 44px); margin-left: 6px; }
.s1-footer {
  display: flex; align-items: center; gap: 16px;
  margin-top: clamp(22px, 4.5vh, 52px);
}
.s1-logo { width: clamp(84px, 9vw, 132px); height: auto; }
.s1-divisi {
  font-weight: 700; color: var(--ink);
  font-size: clamp(.95rem, 1.8vw, 1.3rem);
  border-left: 3px solid var(--gold); padding-left: 14px;
}
.btn-start { align-self: flex-start; margin-top: clamp(18px, 3.4vh, 34px); }

/* ==========================================================================
   SCENE 2 — DIAGRAM PERJALANAN NILAI
   ========================================================================== */
.scene-2 { background: linear-gradient(160deg, #f7f5ee 0 60%, #eef0e6); }

.s2-deco {
  position: absolute; top: 0; right: 0; width: 34vw; height: 40vh;
  background:
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(15,76,53,.07) 26px 28px);
  clip-path: polygon(35% 0, 100% 0, 100% 100%);
  pointer-events: none;
}
.s2-aerial {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%;
  height: 18vh; object-fit: cover; opacity: .4;
  filter: blur(2px);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent);
          mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent);
  pointer-events: none;
}

/* Diagram 7 tahap */
.journey {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(4px, .8vw, 14px);
  align-items: start;
  padding: clamp(14px, 3vh, 30px) clamp(20px, 4vw, 64px) 0;
  margin-top: auto;               /* distribusi vertikal yang seimbang */
  position: relative; z-index: 4;
}
.step {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: none; border: none;
  padding: 0 2px;
  opacity: 0; transform: translateY(26px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  cursor: pointer;
}
.scene.play .step.revealed { opacity: 1; transform: none; }

.step-circle {
  width: clamp(52px, 6.4vw, 96px); height: clamp(52px, 6.4vw, 96px);
  border-radius: 50%;
  border: clamp(3px, .42vw, 6px) solid var(--step-color, var(--green-700));
  color: var(--step-color, var(--green-700));
  background: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.step-circle svg { width: 58%; height: 58%; }
.step:hover .step-circle, .step:focus-visible .step-circle { transform: translateY(-4px) scale(1.05); box-shadow: var(--shadow-md); }
.step.current .step-circle {
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--step-color, var(--green-700)) 22%, transparent), var(--shadow-md);
  transform: scale(1.07);
}
.step-num {
  margin-top: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--step-color, var(--green-700)); color: #fff;
  font-size: .8rem; font-weight: 800;
  display: grid; place-items: center;
}
.step-label {
  margin-top: 8px;
  background: var(--step-color, var(--green-700)); color: #fff;
  font-weight: 800; font-size: clamp(.58rem, 1vw, .82rem);
  letter-spacing: .03em;
  padding: .45em .5em; border-radius: 6px;
  width: 100%; min-height: 3.2em;
  display: grid; place-items: center;
  line-height: 1.2;
}
.step-desc {
  margin-top: 8px;
  font-size: clamp(.6rem, .95vw, .8rem);
  line-height: 1.35; color: var(--ink-soft);
}
/* panah penghubung antar tahap */
.step::after {
  content: ""; position: absolute;
  top: calc(clamp(52px, 6.4vw, 96px) / 2 - 7px);
  right: calc(-1 * clamp(4px, .8vw, 14px) - 4px);
  width: clamp(10px, 1.2vw, 20px); height: 14px;
  background: var(--step-color, var(--green-700));
  clip-path: polygon(0 32%, 55% 32%, 55% 0, 100% 50%, 55% 100%, 55% 68%, 0 68%);
  opacity: 0; transform: translateX(-8px) scaleX(.4); transform-origin: left;
  transition: opacity .4s var(--ease-out) .15s, transform .4s var(--ease-out) .15s;
}
.step:last-child::after { display: none; }
.scene.play .step.revealed::after { opacity: 1; transform: none; }

.s2-actions {
  display: flex; align-items: center; gap: 18px;
  padding: clamp(10px, 2vh, 18px) clamp(20px, 4vw, 64px) 0;
  position: relative; z-index: 4;
}
.hint-text { color: var(--ink-soft); font-size: clamp(.75rem, 1.3vw, .95rem); font-style: italic; }

/* ==========================================================================
   SCENE 3 — KEK SEI MANGKEI (COST / BENEFIT)
   ========================================================================== */
.scene-3 { background: linear-gradient(150deg, #f8f6ef 0 55%, #eef1e8); }

.s3-aerial {
  position: absolute; top: 0; right: 0; width: min(34vw, 620px); height: min(38vh, 340px);
  object-fit: cover; opacity: .55;
  -webkit-mask-image: radial-gradient(130% 130% at 100% 0%, #000 38%, transparent 70%);
          mask-image: radial-gradient(130% 130% at 100% 0%, #000 38%, transparent 70%);
  pointer-events: none;
}

.costbenefit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(56px, 7vw, 110px) minmax(0, 1.25fr);
  align-items: stretch;
  gap: clamp(8px, 1.4vw, 18px);
  padding: clamp(12px, 2.4vh, 26px) clamp(20px, 4vw, 64px) 0;
  margin-top: auto;               /* distribusi vertikal yang seimbang */
  position: relative; z-index: 4;
}
.cb-panel {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
}
.cb-cost    { border: 2px solid color-mix(in srgb, var(--red) 45%, #fff); background: var(--red-soft); }
.cb-benefit { border: 2px solid color-mix(in srgb, var(--green-700) 40%, #fff); background: #f0f6ee; }
.cb-head {
  text-align: center; font-weight: 900;
  letter-spacing: .05em;
  color: #fff;
  padding: .55em 1em;
  font-size: clamp(1rem, 1.9vw, 1.45rem);
}
.cb-head span { font-weight: 700; font-size: .78em; opacity: .95; }
.cb-head-red   { background: linear-gradient(100deg, var(--red-dark), var(--red)); }
.cb-head-green { background: linear-gradient(100deg, var(--green-900), var(--green-600)); }
.cb-body {
  padding: clamp(10px, 1.8vh, 20px) clamp(12px, 1.8vw, 26px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  flex: 1;
}
.cb-label { font-weight: 700; color: var(--ink); font-size: clamp(.85rem, 1.5vw, 1.15rem); }
.cb-label.small { font-weight: 600; color: var(--ink-soft); font-size: clamp(.75rem, 1.25vw, .95rem); }
.cb-figure {
  font-weight: 900; line-height: 1;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  display: flex; align-items: baseline; gap: .08em;
  font-variant-numeric: tabular-nums;
}
.cb-figure .rp   { font-size: .45em; font-weight: 800; }
.cb-figure .unit { font-size: .4em; font-weight: 800; }
.cb-desc {
  font-size: clamp(.72rem, 1.25vw, .98rem);
  color: var(--ink-soft); line-height: 1.45; max-width: 40ch;
}
.cb-icon { margin: 2px 0; }

.cb-arrow { display: grid; place-items: center; color: var(--green-800); }
.cb-arrow svg { width: 100%; max-width: 110px; }

.cb-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.2vw, 16px);
  width: 100%; margin-top: 4px;
}
.cb-chip {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px;
  border: 1.5px solid var(--green-100);
  padding: 10px 12px; text-align: left;
  box-shadow: var(--shadow-sm);
}
.chip-icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green-800); color: #fff;
}
.chip-name { font-weight: 700; font-size: clamp(.72rem, 1.2vw, .95rem); color: var(--ink-soft); }
.chip-val  { font-weight: 900; color: var(--green-800); font-size: clamp(.9rem, 1.6vw, 1.3rem); font-variant-numeric: tabular-nums; }
.chip-val .rp { font-size: .78em; }

.s3-actions { padding: clamp(8px, 1.6vh, 16px) clamp(20px, 4vw, 64px) 0; position: relative; z-index: 4; }

/* Dampak */
.impact {
  margin: auto clamp(20px, 4vw, 64px) clamp(14px, 2.6vh, 26px);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(3px);
  border: 1.5px solid var(--green-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(10px, 1.8vh, 18px) clamp(14px, 2vw, 26px);
  position: relative; z-index: 4;
}
.impact-title {
  display: table; margin: -1.9em auto 8px;
  background: var(--green-900); color: #fff;
  font-size: clamp(.8rem, 1.4vw, 1.05rem);
  font-weight: 800; letter-spacing: .06em;
  padding: .5em 1.6em; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.impact-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 20px);
}
.impact-card {
  text-align: center;
  padding: clamp(6px, 1vh, 12px) 8px;
  border-right: 1.5px dashed var(--green-100);
  color: var(--green-800);
}
.impact-card:last-child { border-right: none; }
.impact-icon { display: inline-grid; place-items: center; color: var(--green-800); }
.impact-name { font-size: clamp(.7rem, 1.2vw, .95rem); color: var(--ink-soft); font-weight: 600; margin-top: 2px; }
.impact-val {
  font-size: clamp(1.05rem, 2.2vw, 1.8rem);
  font-weight: 900; color: var(--green-900);
  font-variant-numeric: tabular-nums;
}
.impact-val .rp { font-size: .72em; }

/* ==========================================================================
   SCENE 4 — APA YANG DAPAT KITA TERAPKAN?
   ========================================================================== */
.scene-4 { background: linear-gradient(150deg, #f8f6ef 0 62%, #f0f2e9); }

.s4-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(16px, 2.6vw, 40px);
  padding: clamp(10px, 2vh, 22px) clamp(20px, 4vw, 64px) 0;
  align-items: stretch;
  position: relative; z-index: 4;
  flex: 1;
  min-height: 0;
}
.s4-intro { font-weight: 700; color: var(--ink); font-size: clamp(.95rem, 1.7vw, 1.25rem); margin-bottom: clamp(8px, 1.4vh, 14px); }

.q-list { display: flex; flex-direction: column; gap: clamp(8px, 1.3vh, 14px); }
.q-card {
  display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px);
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--green-100);
  border-left: 5px solid var(--green-800);
  border-radius: 12px;
  padding: clamp(8px, 1.4vh, 14px) clamp(12px, 1.6vw, 20px);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.q-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.q-card.open { border-left-color: var(--gold); background: #fffdf4; }
.q-icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: clamp(44px, 4.6vw, 60px); height: clamp(44px, 4.6vw, 60px);
  border-radius: 50%; background: var(--green-900); color: #fff;
  transition: transform .3s var(--ease-out), background .3s;
}
.q-card.open .q-icon { background: var(--gold); color: var(--ink); transform: scale(1.06); }
.q-body { display: flex; flex-direction: column; min-width: 0; }
.q-text {
  font-weight: 700; color: var(--ink);
  font-size: clamp(.82rem, 1.5vw, 1.12rem);
  line-height: 1.35;
}
.q-text em { font-style: normal; color: var(--green-700); font-weight: 800; }
.q-detail {
  overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height .45s var(--ease-out), opacity .45s var(--ease-out), margin .45s;
  font-size: clamp(.74rem, 1.25vw, .95rem);
  color: var(--ink-soft); line-height: 1.4;
}
.q-card.open .q-detail { max-height: 6em; opacity: 1; margin-top: 6px; }

.btn-green { margin-top: clamp(10px, 2vh, 18px); }

/* Panel kutipan hijau */
.s4-quote {
  position: relative;
  background: linear-gradient(160deg, var(--green-900), var(--green-950));
  color: #fff;
  border-radius: clamp(18px, 3vw, 40px) clamp(18px, 3vw, 40px) clamp(18px, 3vw, 40px) clamp(60px, 8vw, 130px);
  padding: clamp(18px, 3vh, 34px) clamp(18px, 2.6vw, 40px) clamp(8px, 1.4vh, 16px);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.s4-quote-accent {
  position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background: linear-gradient(var(--gold), var(--gold-bright));
  border-radius: 0 8px 8px 0;
}
.quote-mark {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 900; line-height: .6;
  font-family: Georgia, "Times New Roman", serif;
}
.quote-rule {
  border-top: 2px dotted rgba(242,183,5,.55);
  margin: clamp(6px, 1.2vh, 12px) 0;
  position: relative;
}
.quote-rule::before, .quote-rule::after {
  content: ""; position: absolute; top: -4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-bright);
}
.quote-rule::before { left: 0; } .quote-rule::after { right: 0; }
.quote-text {
  display: flex; flex-direction: column;
  font-size: clamp(1rem, 1.9vw, 1.5rem);
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
  margin: auto 0;
}
.quote-text .q-line { display: block; }
.quote-text strong { font-weight: 900; font-size: 1.15em; }
.skyline {
  width: 100%; height: clamp(48px, 9vh, 96px);
  color: rgba(242, 183, 5, .8);
  margin-top: clamp(6px, 1.4vh, 12px);
  flex: 0 0 auto;
}

/* ==========================================================================
   SCENE 5 — CLOSING
   ========================================================================== */
.scene-5 { background: var(--cream); overflow: hidden; }

.s5-right {
  position: absolute; top: 0; right: 0; bottom: 0; width: 55%;
  overflow: hidden;              /* cegah foto Ken Burns keluar dari bingkai */
}
.s5-photo { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; }
.s5-photo-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--cream) 0 10%, rgba(245,242,234,.75) 26%, rgba(245,242,234,.28) 44%, transparent 60%);
}
.s5-pn-logo {
  position: absolute; top: clamp(14px, 3vh, 30px); right: clamp(16px, 3vw, 40px);
  width: clamp(80px, 9vw, 132px); z-index: 5;
  filter: drop-shadow(0 2px 8px rgba(255,255,255,.6));
}
.s5-content {
  position: relative; z-index: 4;
  width: min(52%, 720px);
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(20px, 5vh, 56px) clamp(24px, 4.5vw, 80px);
  gap: clamp(8px, 1.6vh, 16px);
}
.s5-one-logo { width: clamp(150px, 17vw, 260px); height: auto; margin-bottom: clamp(4px, 1vh, 10px); }
.s5-title {
  font-size: clamp(2.3rem, 6vw, 5rem);
  font-weight: 900; color: var(--green-900);
  line-height: 1;
}
.s5-narration { font-size: clamp(.95rem, 1.8vw, 1.35rem); color: var(--ink); font-weight: 600; max-width: 34ch; }
.s5-quote {
  position: relative;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  padding: clamp(10px, 1.8vh, 18px) clamp(26px, 3vw, 44px);
  margin: clamp(4px, 1vh, 10px) 0;
  max-width: 460px;
}
.s5-quote blockquote {
  font-style: italic; font-weight: 600;
  font-size: clamp(.95rem, 1.8vw, 1.3rem);
  color: var(--ink);
  min-height: 2.8em;
}
.s5-quote .quote-mark { position: absolute; left: 0; top: 4px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.s5-quote .quote-mark.end { left: auto; right: 0; top: auto; bottom: 0; }
.caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--green-800); margin-left: 2px;
  vertical-align: -0.12em;
  animation: caret-blink .85s steps(1) infinite;
}
.caret.done { display: none; }
@keyframes caret-blink { 50% { opacity: 0; } }
.s5-plates { margin-top: clamp(6px, 1.4vh, 14px); }
.s5-plates .plate { font-size: clamp(.85rem, 1.7vw, 1.3rem); }
.s5-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(8px, 1.6vh, 16px); }

/* ==========================================================================
   CHROME — kontrol, progress, indikator
   ========================================================================== */
.chrome { position: fixed; inset: auto 0 0 0; z-index: 40; pointer-events: none; }

.page-indicator {
  position: fixed; left: clamp(14px, 2vw, 26px); bottom: 14px;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  color: var(--green-900);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,76,53,.18);
  padding: .35em .8em; border-radius: 999px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.scene-1.active ~ * .page-indicator { color: var(--green-900); }

.controls {
  position: fixed; right: clamp(12px, 2vw, 24px); bottom: 10px;
  display: flex; align-items: center; gap: 4px;
  background: rgba(16, 32, 24, .55);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 5px 8px;
  backdrop-filter: blur(8px);
  pointer-events: auto;
  opacity: .55;
  transition: opacity .3s;
}
.controls:hover, .controls:focus-within { opacity: 1; }
.ctrl {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent; border: none; border-radius: 50%;
  color: #fff;
  transition: background .25s, color .25s, transform .2s;
}
.ctrl svg { width: 19px; height: 19px; }
.ctrl:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.ctrl:disabled { opacity: .35; cursor: default; transform: none; }
.ctrl:disabled:hover { background: transparent; }
.ctrl[aria-pressed="true"] { background: var(--gold-bright); color: var(--ink); }
.ctrl-sep { width: 1px; height: 20px; background: rgba(255,255,255,.22); margin: 0 3px; }
.ic-sound-on { display: none; }
.ctrl[aria-pressed="true"] .ic-sound-on { display: block; }
.ctrl[aria-pressed="true"] .ic-sound-off { display: none; }

.progress {
  position: fixed; left: 0; right: 0; bottom: 0; height: 5px;
  background: rgba(15, 76, 53, .16);
  pointer-events: none;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green-700), var(--gold-bright));
  transition: width .6s var(--ease-out);
}

/* ---------- Panel catatan narasumber ---------- */
.notes-panel {
  position: fixed; left: clamp(12px, 2vw, 24px); bottom: 64px;
  width: min(420px, calc(100vw - 40px));
  background: rgba(18, 32, 26, .93);
  color: #eef3ee;
  border: 1px solid rgba(242,183,5,.35);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  z-index: 45;
  animation: notes-in .35s var(--ease-out);
}
@keyframes notes-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; } }
.notes-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.notes-head h3 { font-size: .85rem; letter-spacing: .06em; color: var(--gold-bright); font-weight: 800; }
.notes-close {
  background: transparent; border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
}
.notes-close:hover { background: rgba(255,255,255,.15); }
.notes-panel p { font-size: .95rem; line-height: 1.55; font-style: italic; }

/* ---------- Modal ---------- */
.modal-backdrop[hidden] { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(10, 22, 16, .55);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 20px;
  animation: a-fade .3s ease-out;
}
.modal {
  width: min(620px, 100%);
  max-height: min(78vh, 640px);
  overflow: auto;
  background: var(--paper);
  border-radius: 16px;
  border-top: 6px solid var(--gold);
  box-shadow: var(--shadow-lg);
  animation: modal-in .4s var(--ease-out);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px 10px;
}
.modal-head h3 { color: var(--green-900); font-size: 1.15rem; font-weight: 900; }
.modal-close {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--green-100); color: var(--green-900);
  display: grid; place-items: center;
}
.modal-close:hover { background: var(--gold-soft); }
.modal-body { padding: 4px 20px 20px; color: var(--ink); line-height: 1.6; }
.modal-body .modal-step-num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: #fff; font-weight: 800; margin-bottom: 8px;
}
.modal-body .compare-figures {
  display: flex; align-items: baseline; justify-content: center; gap: 14px;
  font-weight: 900; color: var(--green-900);
  font-size: 1.25rem; margin: 10px 0 4px;
  flex-wrap: wrap;
}
.modal-body .compare-vs { color: var(--ink-soft); font-weight: 700; font-size: .9rem; }
.modal-body .compare-ratio {
  text-align: center; font-size: 2.2rem; font-weight: 900; color: var(--green-800);
  margin: 6px 0 2px;
}
.compare-bars { margin: 14px 0 6px; display: flex; flex-direction: column; gap: 10px; }
.compare-bar-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; }
.compare-bar { height: 22px; border-radius: 6px; width: 0%; transition: width 1.1s var(--ease-out) .2s; position: relative; }
.compare-bar.cost   { background: linear-gradient(90deg, var(--red-dark), var(--red)); }
.compare-bar.benefit{ background: linear-gradient(90deg, var(--green-900), var(--green-600)); }
.compare-bar span {
  position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  font-size: .8rem; color: var(--ink); white-space: nowrap;
}
.modal-note { font-size: .82rem; color: var(--ink-soft); font-style: italic; margin-top: 10px; line-height: 1.5; }

/* Checklist refleksi */
.reflect-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.reflect-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1.5px solid var(--green-100);
  border-radius: 10px; padding: 10px 14px;
  cursor: pointer; user-select: none;
  transition: border-color .25s, background .25s;
}
.reflect-item:hover { border-color: var(--gold); }
.reflect-item input { position: absolute; opacity: 0; pointer-events: none; }
.reflect-box {
  flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px;
  border: 2px solid var(--green-800); border-radius: 6px;
  display: grid; place-items: center; color: #fff;
  transition: background .25s;
}
.reflect-box svg { opacity: 0; transition: opacity .2s; }
.reflect-item input:checked ~ .reflect-box { background: var(--green-800); }
.reflect-item input:checked ~ .reflect-box svg { opacity: 1; }
.reflect-item input:focus-visible ~ .reflect-box { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.reflect-text { font-size: .95rem; line-height: 1.45; font-weight: 600; }
.reflect-count { text-align: center; font-weight: 800; color: var(--green-800); margin-top: 12px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .step-desc { display: none; }               /* tablet: diagram lebih ringkas */
  .s3-aerial { width: 38vw; opacity: .35; }
  .s4-grid { grid-template-columns: 1fr 1fr; }
  .skyline { height: 52px; }
}

@media (max-width: 760px) {
  :root { --chrome-h: 96px; }
  .scene { padding-bottom: calc(var(--chrome-h) + 8px); }

  /* Scene 1 */
  .s1-overlay { background: linear-gradient(180deg, rgba(250,248,242,.94) 0 40%, rgba(250,248,242,.72) 62%, rgba(250,248,242,.25)); }
  .s1-content { max-width: 100%; justify-content: flex-start; padding-top: 12vh; }
  .s1-photo { object-position: 74% center; }

  /* Header */
  .scene-header { flex-direction: column; gap: 10px; }
  .header-logo { width: 72px; }
  .br-wide { display: none; }

  /* Scene 2: diagram vertikal */
  .journey { grid-template-columns: 1fr; gap: 2px; padding-top: 8px; }
  .step {
    flex-direction: row; text-align: left; align-items: center;
    gap: 12px; padding: 7px 2px;
  }
  .step-circle { width: 54px; height: 54px; flex: 0 0 auto; }
  .step-num { position: absolute; left: 40px; top: 2px; margin: 0; width: 22px; height: 22px; font-size: .7rem; }
  .step-label { margin: 0; width: auto; min-height: 0; padding: .45em .8em; flex: 0 0 auto; max-width: 46%; }
  .step-desc { display: block; margin: 0; flex: 1; font-size: .72rem; }
  .step::after {
    top: auto; bottom: -8px; left: 24px; right: auto;
    transform: rotate(90deg); transform-origin: center;
    width: 14px; height: 12px;
  }
  .scene.play .step.revealed::after { transform: rotate(90deg); }

  /* Scene 3 */
  .costbenefit { grid-template-columns: 1fr; }
  .cb-arrow svg { max-width: 64px; transform: rotate(90deg); }
  .cb-arrow { min-height: 54px; }
  .cb-split { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .impact-card:nth-child(2) { border-right: none; }
  .impact-title { margin-top: -1.6em; }
  .s3-aerial { display: none; }

  /* Scene 4 */
  .s4-grid { grid-template-columns: 1fr; }
  .s4-quote { border-radius: 18px 18px 18px 48px; }

  /* Scene 5 */
  .s5-right { position: relative; width: 100%; height: 34vh; order: -1; }
  .scene-5 { display: flex; flex-direction: column; }
  .s5-photo-fade { background: linear-gradient(to top, var(--cream) 0 4%, transparent 40%); }
  .s5-content { width: 100%; height: auto; padding-top: 6px; }
  .s5-pn-logo { top: 10px; right: 12px; width: 76px; }

  /* Chrome */
  .controls { left: 50%; right: auto; transform: translateX(-50%); bottom: 34px; }
  .page-indicator { bottom: 8px; left: 50%; transform: translateX(-50%); }
  .notes-panel { bottom: 104px; }
  .corner-br { width: 120px; height: 110px; }
}

@media (max-width: 400px) {
  .ctrl { width: 30px; height: 30px; }
  .ctrl svg { width: 16px; height: 16px; }
  .step-label { max-width: 44%; font-size: .62rem; }
}

/* Layar 720-768p: rapatkan halaman 3 agar muat tanpa scroll */
@media (max-height: 800px) and (min-width: 761px) {
  .scene-3 .scene-header { padding-top: 12px; }
  .cb-figure { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
  .cb-body { gap: 4px; padding-block: 8px; }
  .cb-desc { font-size: clamp(.68rem, 1.1vw, .88rem); }
  .impact { padding-block: 8px; }
  .impact-val { font-size: clamp(1rem, 2vw, 1.5rem); }
  .s3-actions { padding-top: 6px; }
}

/* Layar pendek (mis. 1366x768 dengan browser chrome, atau landscape ponsel) */
@media (max-height: 560px) and (min-width: 761px) {
  .scene-header { padding-top: 10px; }
  .scene-title { font-size: clamp(1.1rem, 2.6vw, 1.6rem); }
  .step-desc { display: none; }
  .cb-figure { font-size: clamp(1.6rem, 4vw, 2.6rem); }
  .message-band p { font-size: .85rem; }
}

/* ==========================================================================
   REDUCED MOTION — hormati preferensi pengguna
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01s !important;
    animation-delay: 0s !important;
    transition-duration: .15s !important;
    transition-delay: 0s !important;
  }
  .kenburns, .s1-light-drift { animation: none !important; }
  .scene { transform: none !important; }
  .anim { opacity: 1 !important; transform: none !important; }
  .scene.play .step { opacity: 1; transform: none; }
  .caret { animation: none; }
}

/* ==========================================================================
   MOTION ENHANCEMENT PACK — cinematic, data-led, tetap korporat
   Ditambahkan pada versi animated. Seluruh efek berjalan offline dan
   otomatis dinonaktifkan melalui prefers-reduced-motion.
   ========================================================================== */

/* Transisi antarscene lebih sinematik: slide + focus + soft wipe. */
.scene {
  --mx: 0;
  --my: 0;
  --px: 50%;
  --py: 50%;
  filter: blur(7px) saturate(.92);
  clip-path: inset(0 0 0 5%);
  transform: translateX(72px) scale(.985);
  transition:
    opacity .72s var(--ease-out),
    transform .82s var(--ease-out),
    filter .72s var(--ease-out),
    clip-path .82s var(--ease-out),
    visibility 0s linear .82s;
}
.deck[data-dir="prev"] .scene {
  clip-path: inset(0 5% 0 0);
  transform: translateX(-72px) scale(.985);
}
.scene.active {
  filter: none;
  clip-path: inset(0);
  transform: translateX(0) scale(1);
  transition:
    opacity .72s var(--ease-out),
    transform .82s var(--ease-out),
    filter .72s var(--ease-out),
    clip-path .82s var(--ease-out),
    visibility 0s;
}
.scene.leaving {
  transform: translateX(-24px) scale(1.018);
  filter: blur(5px) saturate(.9);
}
.deck[data-dir="prev"] .scene.leaving { transform: translateX(24px) scale(1.018); }

/* Layer ambient yang dibuat oleh JavaScript. */
.motion-grid,
.motion-spotlight,
.motion-orb,
.scene-watermark,
.cinematic-sweep,
.dust-field,
.city-lights {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.motion-grid {
  inset: -12%;
  z-index: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(15,76,53,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,76,53,.11) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(700px) rotateX(63deg) translate3d(0, 12%, 0);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.7), transparent 72%);
          mask-image: linear-gradient(to top, rgba(0,0,0,.7), transparent 72%);
  animation: motion-grid-drift 18s linear infinite;
}
@keyframes motion-grid-drift {
  to { background-position: 42px 42px, 42px 42px; }
}
.motion-spotlight {
  inset: 0;
  z-index: 1;
  opacity: .34;
  background: radial-gradient(420px circle at var(--px) var(--py), rgba(242,183,5,.13), transparent 66%);
  transition: opacity .45s ease;
}
.motion-orb {
  z-index: 1;
  width: clamp(220px, 34vw, 620px);
  aspect-ratio: 1;
  right: -15%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(242,183,5,.16), rgba(23,96,63,.08) 46%, transparent 72%);
  filter: blur(2px);
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -8px), 0);
  animation: orb-breathe 8s ease-in-out infinite alternate;
}
@keyframes orb-breathe {
  from { opacity: .45; scale: .92; }
  to   { opacity: .85; scale: 1.08; }
}
.scene-watermark {
  z-index: 1;
  right: clamp(18px, 4vw, 68px);
  bottom: clamp(52px, 8vh, 90px);
  color: rgba(11,61,44,.045);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 950;
  letter-spacing: -.08em;
  line-height: .72;
  transform: translate3d(calc(var(--mx) * 8px), calc(var(--my) * 6px), 0);
  transition: transform .25s ease-out;
}
.scene.play .scene-watermark { animation: watermark-in 1.2s var(--ease-out) both; }
@keyframes watermark-in {
  from { opacity: 0; transform: translate3d(70px, 20px, 0) scale(.94); }
}
.cinematic-sweep {
  inset: -30% -15%;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(112deg, transparent 42%, rgba(255,255,255,.34) 49%, rgba(242,183,5,.14) 52%, transparent 59%);
  transform: translateX(-48%);
}
.scene.play .cinematic-sweep { animation: cinematic-sweep 1.35s ease-out .45s both; }
@keyframes cinematic-sweep {
  0% { opacity: 0; transform: translateX(-48%); }
  35% { opacity: .65; }
  100% { opacity: 0; transform: translateX(48%); }
}

/* Partikel debu/cahaya untuk opening dan closing. */
.dust-field { inset: 0; z-index: 2; overflow: hidden; }
.dust-field span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(255,244,204,.82);
  box-shadow: 0 0 10px rgba(242,183,5,.45);
  opacity: 0;
  animation: dust-rise var(--d) linear var(--delay) infinite;
}
@keyframes dust-rise {
  0%   { opacity: 0; transform: translate3d(0, 18px, 0) scale(.6); }
  16%  { opacity: .68; }
  78%  { opacity: .28; }
  100% { opacity: 0; transform: translate3d(var(--drift), -95px, 0) scale(1.15); }
}

/* Parallax dilakukan pada parent agar tidak bertabrakan dengan Ken Burns image. */
.s1-bg,
.s5-right {
  transform: translate3d(calc(var(--mx) * -7px), calc(var(--my) * -5px), 0) scale(1.012);
  transition: transform .28s ease-out;
}

/* Judul mendapatkan reveal mask dan kilau satu kali. */
.s1-line,
.scene-title,
.s5-title { position: relative; overflow: hidden; }
.s1-line::after,
.scene-title::after,
.s5-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 42%, rgba(255,255,255,.85) 49%, rgba(242,183,5,.28) 52%, transparent 60%);
  transform: translateX(-125%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.scene.play .s1-line::after,
.scene.play .scene-title::after,
.scene.play .s5-title::after { animation: title-shine 1.05s ease-out 1.75s both; }
@keyframes title-shine { to { transform: translateX(125%); } }

.plate { overflow: hidden; }
.plate::before {
  content: "";
  position: absolute;
  inset: -60% auto -60% -35%;
  width: 26%;
  background: rgba(255,255,255,.28);
  transform: skewX(14deg);
  opacity: 0;
}
.scene.play .plate::before { animation: plate-flash 1s ease-out 2.35s both; }
@keyframes plate-flash {
  0% { opacity: 0; left: -35%; }
  35% { opacity: .75; }
  100% { opacity: 0; left: 125%; }
}

/* Tombol CTA bernafas lembut, hanya saat scene aktif. */
.scene.active .btn-start,
.scene.active .btn-gold:not(:hover) { animation: cta-breathe 2.8s ease-in-out 3.4s infinite; }
@keyframes cta-breathe {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50% { box-shadow: 0 0 0 8px rgba(242,183,5,.12), var(--shadow-md); }
}

/* ---------- Scene 2: alur nilai menjadi benar-benar hidup ---------- */
.journey { isolation: isolate; }
.journey-rail {
  position: absolute;
  z-index: -1;
  left: calc(clamp(20px, 4vw, 64px) + clamp(26px, 3.2vw, 48px));
  right: calc(clamp(20px, 4vw, 64px) + clamp(26px, 3.2vw, 48px));
  top: calc(clamp(14px, 3vh, 30px) + clamp(26px, 3.2vw, 48px));
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(46,125,50,.24), rgba(31,111,156,.24), rgba(184,134,11,.24), rgba(11,61,44,.24));
  opacity: 0;
  transform: scaleX(.06);
  transform-origin: left;
  transition: opacity .55s ease, transform 1.8s var(--ease-out);
}
.scene.play .journey-rail { opacity: 1; transform: scaleX(1); transition-delay: .95s; }
.value-pulse {
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 7px rgba(242,183,5,.13), 0 0 20px rgba(242,183,5,.72);
  opacity: 0;
}
.journey.flowing .value-pulse { animation: value-travel 4.9s linear infinite; }
@keyframes value-travel {
  0% { left: 0; opacity: 0; transform: scale(.7); }
  7% { opacity: 1; }
  93% { opacity: 1; }
  100% { left: calc(100% - 14px); opacity: 0; transform: scale(1.12); }
}
.flow-status {
  position: absolute;
  left: 50%;
  bottom: -38px;
  z-index: 8;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  white-space: nowrap;
  background: rgba(8,44,32,.92);
  color: #fff;
  border: 1px solid rgba(242,183,5,.45);
  border-radius: 999px;
  padding: .42em .95em;
  font-size: clamp(.68rem, 1vw, .82rem);
  font-weight: 750;
  letter-spacing: .03em;
  transition: opacity .3s ease, transform .3s ease;
}
.journey.flowing .flow-status { opacity: 1; transform: translateX(-50%) translateY(0); }
.step.revealed .step-circle svg path,
.step.revealed .step-circle svg circle,
.step.revealed .step-circle svg ellipse,
.step.revealed .step-circle svg line,
.step.revealed .step-circle svg polyline {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: icon-draw .9s var(--ease-out) forwards;
}
@keyframes icon-draw { to { stroke-dashoffset: 0; } }
.step.revealed .step-circle { animation: step-pop .58s var(--ease-out) both; }
@keyframes step-pop {
  0% { transform: translateY(16px) scale(.68); }
  70% { transform: translateY(-3px) scale(1.08); }
  100% { transform: none; }
}
.step.current { z-index: 8; }
.step.current .step-circle { animation: active-node 1.15s ease-in-out infinite alternate; }
@keyframes active-node {
  to { transform: translateY(-5px) scale(1.11); box-shadow: 0 0 0 10px color-mix(in srgb, var(--step-color) 16%, transparent), var(--shadow-md); }
}
.step.completed .step-num::after {
  content: "✓";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-bright);
  color: var(--ink);
  animation: check-in .35s var(--ease-out) both;
}
@keyframes check-in { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
.step.completed .step-label { box-shadow: inset 0 0 0 2px rgba(242,183,5,.72); }

/* ---------- Scene 3: visual value transfer dan metric pulses ---------- */
.cb-panel { position: relative; isolation: isolate; }
.cb-panel::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  transform: skewX(-15deg);
  opacity: 0;
  z-index: 6;
  pointer-events: none;
}
.scene.play .cb-cost::after { animation: panel-scan 1.15s ease-out 1.15s both; }
.scene.play .cb-benefit::after { animation: panel-scan 1.15s ease-out 2.25s both; }
@keyframes panel-scan {
  0% { left: -55%; opacity: 0; }
  35% { opacity: .65; }
  100% { left: 125%; opacity: 0; }
}
.cb-arrow { position: relative; }
.cb-arrow::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  opacity: 0;
}
.scene.play .cb-arrow::after { animation: transfer-ring 1.8s ease-out 1.8s infinite; }
@keyframes transfer-ring {
  0% { opacity: 0; transform: translateX(-34px) scale(.45); }
  28% { opacity: .78; }
  100% { opacity: 0; transform: translateX(34px) scale(1.35); }
}
.scene.play .cb-arrow-path {
  stroke-dasharray: 24 14;
  animation: arrow-energy 1s linear 1.7s infinite;
}
@keyframes arrow-energy { to { stroke-dashoffset: -38; } }
.counter { display: inline-block; }
.counter.count-complete { animation: number-lock .55s var(--ease-out) both; }
@keyframes number-lock {
  0% { transform: scale(.86); filter: blur(2px); }
  65% { transform: scale(1.08); filter: none; }
  100% { transform: scale(1); }
}
.cb-panel.metric-complete,
.impact-card.metric-complete { animation: metric-glow .8s ease-out both; }
@keyframes metric-glow {
  0% { filter: brightness(1); }
  45% { filter: brightness(1.08); }
  100% { filter: none; }
}
.impact-card { position: relative; overflow: hidden; }
.impact-card::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transform: scaleX(0);
}
.impact-card.metric-complete::before { animation: metric-underline .7s var(--ease-out) both; }
@keyframes metric-underline { to { transform: scaleX(1); } }
.scene.active .impact-icon { animation: icon-float 2.8s ease-in-out infinite alternate; }
@keyframes icon-float { to { transform: translateY(-4px); } }

/* ---------- Scene 4: keputusan dan quote memiliki rhythm ---------- */
.q-card { position: relative; overflow: hidden; }
.q-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(242,183,5,.12), transparent);
  transform: translateX(-110%);
  pointer-events: none;
}
.scene.play .q-card:nth-child(1)::after { animation: q-sweep .85s ease-out 1.25s both; }
.scene.play .q-card:nth-child(2)::after { animation: q-sweep .85s ease-out 1.52s both; }
.scene.play .q-card:nth-child(3)::after { animation: q-sweep .85s ease-out 1.79s both; }
.scene.play .q-card:nth-child(4)::after { animation: q-sweep .85s ease-out 2.06s both; }
@keyframes q-sweep { to { transform: translateX(110%); } }
.q-card.open { transform: translateX(8px) scale(1.012); }
.q-card.open .q-icon { animation: q-icon-turn .55s var(--ease-out) both; }
@keyframes q-icon-turn { from { transform: rotate(-18deg) scale(.72); } }
.s4-quote::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -170px;
  top: -170px;
  border-radius: 50%;
  border: 1px solid rgba(242,183,5,.25);
  box-shadow: 0 0 0 34px rgba(242,183,5,.05), 0 0 0 68px rgba(242,183,5,.035);
  animation: quote-orbit 7s ease-in-out infinite alternate;
}
@keyframes quote-orbit { to { transform: translate(-24px, 30px) scale(1.12); opacity: .65; } }
.city-lights {
  left: 6%; right: 6%; bottom: clamp(18px, 3.8vh, 42px);
  height: 58px;
  z-index: 4;
}
.city-lights span {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(242,183,5,.85);
  opacity: .18;
  animation: city-twinkle var(--d) ease-in-out var(--delay) infinite alternate;
}
@keyframes city-twinkle { to { opacity: 1; transform: scale(1.7); } }

/* ---------- Scene 5: final beat ---------- */
.s5-right::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 205deg at 25% 65%, transparent 0 9%, rgba(255,237,178,.34) 12%, transparent 17% 100%);
  mix-blend-mode: screen;
  animation: final-rays 10s ease-in-out infinite alternate;
}
@keyframes final-rays { to { transform: translateX(4%) rotate(3deg); opacity: .7; } }
.scene.active .s5-one-logo { animation: logo-breathe 3.4s ease-in-out 3.8s infinite alternate; }
@keyframes logo-breathe {
  to { transform: translateY(-3px) scale(1.025); filter: drop-shadow(0 8px 16px rgba(11,61,44,.18)); }
}
.s5-quote { overflow: hidden; }
.s5-quote::after {
  content: "";
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: -14px;
  height: 16px;
  background: radial-gradient(ellipse, rgba(242,183,5,.48), transparent 68%);
  opacity: 0;
}
.scene.play .s5-quote::after { animation: final-quote-glow 1.2s ease-out 3.5s both; }
@keyframes final-quote-glow { to { opacity: 1; transform: translateY(-8px); } }

/* Chrome lebih informatif tanpa menjadi dominan. */
.progress-fill { position: relative; overflow: visible; }
.progress-fill::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 5px rgba(242,183,5,.16), 0 0 15px rgba(242,183,5,.62);
  transform: translateY(-50%);
}
.page-indicator.scene-change { animation: indicator-pop .52s var(--ease-out) both; }
@keyframes indicator-pop {
  0% { transform: scale(.8); opacity: .4; }
  70% { transform: scale(1.08); }
}

@media (max-width: 760px) {
  .motion-grid { opacity: .08; }
  .scene-watermark { font-size: 8rem; right: 8px; bottom: 110px; }
  .motion-spotlight { display: none; }
  .journey-rail {
    left: calc(clamp(20px, 4vw, 64px) + 27px);
    right: auto;
    top: 35px;
    bottom: 24px;
    width: 3px;
    height: auto;
    transform: scaleY(.06);
    transform-origin: top;
  }
  .scene.play .journey-rail { transform: scaleY(1); }
  .value-pulse { left: 50%; top: 0; margin: 0 0 0 -7px; }
  .journey.flowing .value-pulse { animation-name: value-travel-y; }
  @keyframes value-travel-y {
    0% { top: 0; opacity: 0; transform: scale(.7); }
    7% { opacity: 1; }
    93% { opacity: 1; }
    100% { top: calc(100% - 14px); opacity: 0; transform: scale(1.12); }
  }
  .flow-status { bottom: -30px; }
  .scene.active .btn-start,
  .scene.active .btn-gold:not(:hover) { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-grid,
  .motion-orb,
  .cinematic-sweep,
  .dust-field,
  .city-lights,
  .s5-right::after,
  .cb-arrow::after,
  .progress-fill::after { display: none !important; }
  .scene { clip-path: none !important; filter: none !important; }
  .s1-bg, .s5-right, .scene-watermark { transform: none !important; }
  .journey-rail { opacity: .35 !important; transform: none !important; }
}

/* Hotfix: pseudo-check harus mengikuti lingkaran nomor, bukan memenuhi node. */
.step-num { position: relative; }


/* ========================================================================== 
   FLATICON ASSET INTEGRATION PACK
   Ikon PNG lokal, animasi CSS, tanpa dependensi eksternal.
   ========================================================================== */

/* Tombol dan petunjuk interaksi */
.btn-inline-icon {
  width: 1.45em;
  height: 1.45em;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.14));
}
.btn-start, .btn-gold, .btn-green { display: inline-flex; align-items: center; gap: .55em; }
.btn-start .click-cue {
  width: 1.7em;
  height: 1.7em;
  animation: click-cue 1.8s ease-in-out 3.4s infinite;
}
@keyframes click-cue {
  0%, 100% { transform: translate(0,0) scale(1); }
  45% { transform: translate(-3px,3px) scale(.94); }
  65% { transform: translate(-3px,3px) scale(.86); filter: drop-shadow(0 0 8px rgba(242,183,5,.65)); }
}

/* Toolbar: seluruh ikon dibuat konsisten di atas kapsul gelap */
.ctrl { overflow: visible; }
.ctrl-icon {
  width: 21px;
  height: 21px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.28));
  transition: transform .25s var(--ease-out), filter .25s ease;
}
.ctrl:hover .ctrl-icon { transform: scale(1.12); filter: drop-shadow(0 2px 5px rgba(0,0,0,.36)); }
.ctrl-activated .control-prev { animation: control-left .48s var(--ease-out); }
.ctrl-activated .control-next { animation: control-right .48s var(--ease-out); }
.ctrl-activated .control-restart,
.ctrl-activated .control-replay { animation: control-spin .5s var(--ease-out); }
.ctrl-activated .control-notes { animation: control-write .52s ease-in-out; }
.ctrl-activated .control-fullscreen { animation: control-expand .5s var(--ease-out); }
.ctrl-activated .control-home { animation: control-home .5s var(--ease-out); }
.ctrl-activated .control-sound { animation: control-sound .5s ease-out; }
@keyframes control-left { 50% { transform: translateX(-5px) scale(1.1); } }
@keyframes control-right { 50% { transform: translateX(5px) scale(1.1); } }
@keyframes control-spin { to { transform: rotate(360deg); } }
@keyframes control-write { 35% { transform: translate(3px,-2px) rotate(-10deg); } 70% { transform: translate(-2px,2px) rotate(7deg); } }
@keyframes control-expand { 50% { transform: scale(1.28); } }
@keyframes control-home { 50% { transform: translateY(-4px) scale(1.08); } }
@keyframes control-sound { 40% { transform: scale(1.22); } }
.ic-sound-on { display: none; }
.ctrl[aria-pressed="true"] .ic-sound-on { display: block; }
.ctrl[aria-pressed="true"] .ic-sound-off { display: none; }

/* Scene 2 — ikon visual pada perjalanan penciptaan nilai */
.step-circle { overflow: visible; }
.step-icon-frame {
  width: 72%; height: 72%;
  display: grid; place-items: center;
  border-radius: 22%;
  background: rgba(255,255,255,.94);
  box-shadow: inset 0 0 0 1px rgba(15,76,53,.1), 0 4px 12px rgba(12,45,34,.12);
  overflow: hidden;
}
.step-icon {
  width: 84%; height: 84%;
  object-fit: contain;
  display: block;
  transform-origin: 50% 68%;
  filter: saturate(.94) contrast(1.02);
  transition: transform .35s var(--ease-out), filter .35s ease;
}
.step.revealed .step-icon { animation: asset-icon-reveal .7s var(--ease-out) both; }
@keyframes asset-icon-reveal {
  from { opacity: 0; transform: translateY(10px) scale(.65) rotate(-4deg); filter: blur(3px) saturate(.7); }
  70% { opacity: 1; transform: translateY(-2px) scale(1.05); filter: none; }
  to { transform: none; }
}
.step.current .step-icon-frame {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--step-color) 45%, transparent),
              0 0 0 7px color-mix(in srgb, var(--step-color) 12%, transparent),
              0 9px 20px rgba(12,45,34,.2);
}
.step.current .icon-investment { animation: investment-beat 1s ease-in-out infinite alternate; }
.step.current .icon-crane { animation: crane-operate 1.15s ease-in-out infinite alternate; }
.step.current .icon-investor { animation: investor-arrive 1s ease-in-out infinite alternate; }
.step.current .icon-factory { animation: factory-operate 1.05s ease-in-out infinite alternate; }
.step.current .icon-revenue { animation: revenue-grow .9s ease-in-out infinite alternate; }
.step.current .icon-property { animation: property-value 1.05s ease-in-out infinite alternate; }
.step.current .icon-company { animation: company-rise .95s ease-in-out infinite alternate; }
@keyframes investment-beat { to { transform: translateY(-4px) scale(1.07) rotate(2deg); filter: drop-shadow(0 5px 6px rgba(242,183,5,.35)); } }
@keyframes crane-operate { to { transform: translateX(3px) rotate(.8deg) scale(1.04); } }
@keyframes investor-arrive { from { transform: translateX(-3px) scale(.96); } to { transform: translateX(3px) scale(1.05); } }
@keyframes factory-operate { to { transform: translateY(-3px) scale(1.04); filter: drop-shadow(0 4px 5px rgba(31,111,156,.25)); } }
@keyframes revenue-grow { from { transform: scale(.91) translateY(4px); } to { transform: scale(1.08) translateY(-4px); filter: drop-shadow(0 5px 6px rgba(184,134,11,.3)); } }
@keyframes property-value { to { transform: translateY(-4px) rotate(-1deg) scale(1.06); } }
@keyframes company-rise { from { transform: translateY(5px) scale(.94); } to { transform: translateY(-5px) scale(1.07); filter: drop-shadow(0 5px 7px rgba(11,61,44,.32)); } }
.step.completed .step-icon { transform: scale(.96); filter: saturate(.82) brightness(.98); }

/* Modal detail tahap */
.modal-step-visual { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 4px auto 14px; }
.modal-step-icon {
  width: 88px; height: 88px; object-fit: contain;
  border-radius: 20px; padding: 7px; background: #fff;
  box-shadow: 0 10px 24px rgba(11,61,44,.16);
  animation: modal-icon-in .58s var(--ease-out) both;
}
@keyframes modal-icon-in { from { opacity: 0; transform: scale(.58) rotate(-7deg); } 70% { transform: scale(1.06); } }

/* Scene 3 — Cost, Benefit, dan dampak */
.cb-main-icon { width: clamp(48px, 5.2vw, 76px); height: clamp(48px, 5.2vw, 76px); object-fit: contain; display: block; }
.cb-cost .cb-main-icon { margin: -2px auto 2px; }
.benefit-main-icon { position: absolute; right: clamp(12px, 2vw, 26px); top: clamp(70px, 10vh, 116px); opacity: .86; }
.cb-context-icon {
  position: absolute; left: clamp(8px, 1.4vw, 18px); bottom: clamp(8px, 1.2vh, 16px);
  width: clamp(34px, 4vw, 58px); height: clamp(34px, 4vw, 58px); object-fit: contain;
  opacity: .25; filter: grayscale(.18);
}
.scene.play .cb-cost .icon-coins { animation: coins-stack 1.15s var(--ease-out) 1.05s both; }
.scene.play .cb-cost .icon-construction { animation: construction-enter 1s var(--ease-out) 1.55s both; }
.scene.play .cb-benefit .icon-benefit { animation: benefit-rise 1.1s var(--ease-out) 2.15s both; }
@keyframes coins-stack { from { opacity: 0; transform: translateY(18px) scale(.7); } 75% { opacity: 1; transform: translateY(-3px) scale(1.08); } }
@keyframes construction-enter { from { opacity: 0; transform: translateX(-18px); } to { opacity: .25; transform: none; } }
@keyframes benefit-rise { from { opacity: 0; transform: translateY(18px) scale(.74); } 70% { opacity: .95; transform: translateY(-3px) scale(1.06); } to { opacity: .86; } }
.chip-asset-icon { width: 34px; height: 34px; object-fit: contain; display: block; }
.scene.play .cb-chip .icon-cash { animation: chip-cash 1.25s ease-in-out 2.7s 2 alternate; }
.scene.play .cb-chip .icon-handshake { animation: chip-handshake 1.1s ease-in-out 2.95s 2 alternate; }
@keyframes chip-cash { to { transform: translateY(-3px) rotate(4deg) scale(1.08); } }
@keyframes chip-handshake { to { transform: scale(1.12); } }
.impact-asset-icon { width: clamp(35px, 4.3vw, 58px); height: clamp(35px, 4.3vw, 58px); object-fit: contain; display: block; }
.scene.active .impact-icon { animation: none; }
.scene.play .impact-card:nth-child(1) .impact-asset-icon { animation: impact-pin 1s var(--ease-out) 3.5s both; }
.scene.play .impact-card:nth-child(2) .impact-asset-icon { animation: impact-build 1s var(--ease-out) 3.75s both; }
.scene.play .impact-card:nth-child(3) .impact-asset-icon { animation: impact-money 1s var(--ease-out) 4s both; }
.scene.play .impact-card:nth-child(4) .impact-asset-icon { animation: impact-people 1s var(--ease-out) 4.25s both; }
@keyframes impact-pin { from { opacity: 0; transform: translateY(-20px) scale(.7); } 72% { opacity: 1; transform: translateY(3px) scale(1.05); } }
@keyframes impact-build { from { opacity: 0; transform: scaleY(.35); transform-origin: bottom; } }
@keyframes impact-money { from { opacity: 0; transform: translateY(14px) rotate(-5deg); } 70% { opacity: 1; transform: translateY(-3px) rotate(2deg) scale(1.08); } }
@keyframes impact-people { from { opacity: 0; transform: scale(.55); } 70% { opacity: 1; transform: scale(1.08); } }

/* Scene 4 — ikon pertanyaan dan refleksi lengkap */
.q-icon { overflow: visible; }
.q-asset-icon { width: 76%; height: 76%; object-fit: contain; display: block; transition: transform .35s var(--ease-out); }
.q-card.open .q-icon { animation: none; background: #fff; }
.q-card.open .q-asset-icon.icon-trigger.q-calc { animation: calc-press .8s ease-in-out; }
.q-card.open .q-asset-icon.icon-trigger.q-growth { animation: q-growth .8s var(--ease-out); }
.q-card.open .q-asset-icon.icon-trigger.q-gear { animation: gear-turn .85s var(--ease-out); }
.q-card.open .q-asset-icon.icon-trigger.q-time { animation: time-turn .9s ease-in-out; }
@keyframes calc-press { 35% { transform: translateY(3px) scale(.94); } 70% { transform: translateY(-2px) scale(1.06); } }
@keyframes q-growth { from { transform: translateY(8px) scale(.82); } 70% { transform: translateY(-4px) scale(1.08); } }
@keyframes gear-turn { to { transform: rotate(135deg) scale(1.04); } }
@keyframes time-turn { 45% { transform: rotate(-9deg) scale(1.04); } 75% { transform: rotate(6deg); } }
.reflect-count.complete { color: var(--green-900); text-shadow: 0 0 0 rgba(0,0,0,0); }
.reflection-complete {
  position: relative;
  margin-top: 16px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(15,76,53,.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 24%, rgba(242,183,5,.18), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(15,76,53,.10), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,248,244,.98));
  box-shadow: 0 18px 42px rgba(11,61,44,.14), inset 0 1px 0 rgba(255,255,255,.8);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), box-shadow .45s var(--ease-out);
}
.reflection-complete::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.42) 18%, transparent 36%);
  transform: translateX(-140%);
}
.reflection-complete.show { opacity: 1; transform: none; box-shadow: 0 20px 48px rgba(11,61,44,.18), inset 0 1px 0 rgba(255,255,255,.9); }
.reflection-complete.show::after { animation: celebration-shimmer 1.35s ease-out .28s both; }
.reflection-ribbon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-900), #176846);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(11,61,44,.2);
}
.reflection-hero { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; margin-top: 14px; }
.reflection-seal-wrap { position: relative; display: grid; place-items: center; min-height: 136px; }
.reflection-glow {
  position: absolute; width: 112px; height: 112px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,183,5,.34), rgba(242,183,5,.08) 58%, transparent 72%);
  filter: blur(2px);
}
.reflection-seal {
  position: relative; width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 28%, #ffffff, #edf5f0 62%, #d7ebe0 100%);
  border: 2px solid rgba(15,76,53,.14);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.58), 0 14px 28px rgba(11,61,44,.12);
}
.reflection-seal img { width: 72px; height: 72px; object-fit: contain; position: relative; z-index: 3; }
.reflection-badge {
  position: absolute; right: -4px; bottom: -2px; z-index: 4;
  min-width: 42px; height: 42px; padding: 0 8px;
  border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--green-950); font-weight: 900; font-size: .92rem;
  box-shadow: 0 8px 18px rgba(242,183,5,.28);
}
.reflection-ring {
  position: absolute; inset: 7px; border-radius: 50%; border: 2px dashed rgba(15,76,53,.22);
}
.reflection-ring-b { inset: 16px; border-style: solid; border-color: rgba(242,183,5,.26); }
.reflection-copy { display: flex; flex-direction: column; gap: 8px; }
.reflection-copy strong { color: var(--green-900); font-size: 1.12rem; line-height: 1.28; }
.reflection-copy span { font-size: .97rem; color: var(--ink-soft); line-height: 1.5; }
.reflection-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.reflection-chip {
  display: inline-flex; align-items: center; padding: 7px 10px;
  border-radius: 999px; background: rgba(15,76,53,.08); color: var(--green-900);
  font-size: .79rem; font-weight: 800; letter-spacing: .02em;
  border: 1px solid rgba(15,76,53,.08);
}
.reflection-particle {
  --x: 0px; --y: 0px;
  position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--gold); opacity: 0; z-index: 2;
  box-shadow: 0 0 0 5px rgba(242,183,5,.08);
}
.reflection-particle.p1 { --x: -52px; --y: -34px; background: var(--gold); }
.reflection-particle.p2 { --x: 0px; --y: -54px; background: #2d9f72; }
.reflection-particle.p3 { --x: 49px; --y: -32px; background: var(--gold); }
.reflection-particle.p4 { --x: 58px; --y: 0px; background: #1e7e59; }
.reflection-particle.p5 { --x: 40px; --y: 46px; background: var(--gold); }
.reflection-particle.p6 { --x: 0px; --y: 58px; background: #2d9f72; }
.reflection-particle.p7 { --x: -44px; --y: 42px; background: var(--gold); }
.reflection-particle.p8 { --x: -60px; --y: 2px; background: #1e7e59; }
.reflection-particle.p9 { --x: -24px; --y: -56px; background: rgba(242,183,5,.8); }
.reflection-particle.p10 { --x: 24px; --y: 56px; background: rgba(30,126,89,.78); }
.reflection-complete.show .reflection-seal { animation: seal-pop .9s var(--ease-out) both; }
.reflection-complete.show .reflection-glow { animation: glow-breathe 2.2s ease-in-out infinite; }
.reflection-complete.show .reflection-ring-a { animation: ring-spin 10s linear infinite; }
.reflection-complete.show .reflection-ring-b { animation: ring-spin-rev 13s linear infinite; }
.reflection-complete.show .reflection-seal img { animation: teamwork-unite 1s var(--ease-out) .1s both; }
.reflection-complete.show .reflection-badge { animation: badge-bounce .95s var(--ease-out) .26s both; }
.reflection-complete.show .reflection-particle { animation: particle-burst .95s var(--ease-out) both; }
@keyframes teamwork-unite { from { transform: rotate(-12deg) scale(.54); opacity: 0; } 70% { transform: rotate(3deg) scale(1.1); opacity: 1; } }
@keyframes seal-pop { 0% { transform: scale(.72) translateY(12px); opacity: 0; } 70% { transform: scale(1.06) translateY(0); opacity: 1; } 100% { transform: scale(1); } }
@keyframes badge-bounce { 0% { transform: scale(.45); opacity: 0; } 65% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes glow-breathe { 0%, 100% { transform: scale(.92); opacity: .5; } 50% { transform: scale(1.08); opacity: .9; } }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes ring-spin-rev { to { transform: rotate(-360deg); } }
@keyframes particle-burst {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1); opacity: 0; }
}
@keyframes celebration-shimmer { 0% { transform: translateX(-140%); } 100% { transform: translateX(140%); } }

/* Scene 5 — visual kolaborasi sebagai final beat */
.closing-collab {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: fit-content; margin-top: -2px;
  padding: 6px 12px 6px 7px;
  border: 1px solid rgba(15,76,53,.16); border-radius: 999px;
  background: rgba(255,255,255,.76); backdrop-filter: blur(5px);
  box-shadow: 0 8px 20px rgba(11,61,44,.12);
  isolation: isolate;
}
.closing-collab-icon { width: clamp(52px, 5.5vw, 78px); height: clamp(52px, 5.5vw, 78px); object-fit: contain; z-index: 2; }
.closing-collab-label { color: var(--green-900); font-weight: 900; letter-spacing: .12em; font-size: clamp(.68rem, 1vw, .82rem); z-index: 2; }
.collab-halo { position: absolute; left: 18px; top: 50%; width: 42px; height: 42px; border-radius: 50%; background: rgba(242,183,5,.2); transform: translateY(-50%); z-index: 1; }
.scene.play .closing-collab-icon { animation: closing-teamwork 1.1s var(--ease-out) 2.55s both; }
.scene.play .collab-halo { animation: collab-halo 2s ease-out 3s infinite; }
@keyframes closing-teamwork { from { opacity: 0; transform: scale(.45) rotate(-12deg); } 72% { opacity: 1; transform: scale(1.09) rotate(3deg); } }
@keyframes collab-halo { 0% { box-shadow: 0 0 0 0 rgba(242,183,5,.28); } 100% { box-shadow: 0 0 0 18px rgba(242,183,5,0); } }

@media (max-width: 760px) {
  .ctrl-icon { width: 18px; height: 18px; }
  .step-icon-frame { width: 76%; height: 76%; }
  .benefit-main-icon { position: static; margin: -6px auto 2px; }
  .cb-context-icon { display: none; }
  .closing-collab { transform: scale(.9); transform-origin: left center; }
}
@media (max-width: 400px) {
  .ctrl-icon { width: 16px; height: 16px; }
  .closing-collab-icon { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-start .click-cue,
  .step-icon,
  .cb-main-icon,
  .cb-context-icon,
  .chip-asset-icon,
  .impact-asset-icon,
  .q-asset-icon,
  .reflection-seal,
  .reflection-seal img,
  .reflection-glow,
  .reflection-ring,
  .reflection-particle,
  .closing-collab-icon,
  .collab-halo,
  .ctrl-icon { animation: none !important; transform: none !important; }
}

/* ========================================================================== 
   MOBILE FIT PASS — menjaga ikon dan konten tidak terpotong pada layar kecil
   ========================================================================== */
@media (max-width: 760px) {
  .scene {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .motion-orb,
  .scene-watermark,
  .cinematic-sweep { display: none !important; }

  .scene-header {
    padding: 12px 16px 4px;
    gap: 4px;
    align-items: flex-start;
  }
  .header-logo { width: 62px; }
  .scene-title { font-size: clamp(1.12rem, 6vw, 1.45rem); line-height: 1.08; }
  .scene-lead { font-size: .79rem; line-height: 1.25; }
  .title-rule { margin-top: 7px; margin-bottom: 6px; }

  /* Scene 2: tujuh tahap menjadi daftar vertikal ringkas dan utuh. */
  .scene-2 { padding-bottom: 108px; }
  .journey {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 2px;
    padding: 4px 16px 0;
    margin-top: 0;
  }
  .step {
    width: 100%;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 3px 0;
    text-align: left;
  }
  .step-circle { width: 46px; height: 46px; grid-row: 1; grid-column: 1; }
  .step-icon-frame { width: 78%; height: 78%; }
  .step-num {
    position: absolute;
    left: 34px;
    top: 0;
    margin: 0;
    width: 19px;
    height: 19px;
    font-size: .62rem;
    z-index: 3;
  }
  .step-label {
    grid-column: 2;
    margin: 0;
    width: 100%;
    max-width: none;
    min-height: 30px;
    padding: .4em .65em;
    font-size: .67rem;
    text-align: left;
    place-items: center start;
  }
  .step-desc { display: none !important; }
  .step::after {
    top: auto;
    bottom: -7px;
    left: 17px;
    right: auto;
    width: 12px;
    height: 10px;
    transform: rotate(90deg);
  }
  .scene.play .step.revealed::after { transform: rotate(90deg); }
  .journey-rail {
    left: 38px;
    top: 26px;
    bottom: 22px;
  }
  .s2-actions {
    padding: 6px 16px 4px;
    gap: 8px;
  }
  .s2-actions .hint-text { display: none; }
  .scene-2 .message-band {
    position: relative;
    margin: 6px 16px 0;
    padding: 8px 10px;
  }
  .scene-2 .message-band p { font-size: .72rem; line-height: 1.3; }
  .scene-2 .band-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .flow-status { position: fixed; bottom: 100px; max-width: 88vw; overflow: hidden; text-overflow: ellipsis; }

  /* Scene 3–5 boleh digulir vertikal; seluruh lebar tetap terkunci. */
  .costbenefit,
  .impact,
  .s4-grid,
  .s5-content { max-width: 100%; }
  .costbenefit { padding-inline: 16px; }
  .impact { margin-inline: 16px; }
  .s3-actions { padding-inline: 16px; }
  .s4-grid { padding-inline: 16px; }
  .scene-4 .message-band { margin-inline: 16px; }
  .s5-content { padding-inline: 20px; padding-bottom: 120px; }
  .closing-collab { max-width: 100%; }
}

@media (max-width: 400px) {
  .controls { gap: 2px; padding: 5px 6px; }
  .ctrl { width: 29px; height: 29px; }
  .ctrl-sep { margin-inline: 1px; }
}

/* ========================================================================== 
   READABILITY TYPE SCALE — font lebih besar, tetap nyaman di proyektor
   Ditambahkan 5 Agustus 2026. Skala dinaikkan secara selektif agar hierarki
   tetap jelas, baris tidak terlalu panjang, dan layar 16:9 tetap efisien.
   ========================================================================== */

/* Heading dan pengantar umum */
.scene-title {
  font-size: clamp(1.6rem, 3.7vw, 3.15rem);
  line-height: 1.06;
}
.scene-lead {
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  line-height: 1.38;
  max-width: 68ch;
}
.message-band p {
  font-size: clamp(1.02rem, 1.9vw, 1.45rem);
  line-height: 1.42;
}

/* Opening */
.s1-title { font-size: clamp(2.35rem, 6.7vw, 5.8rem); }
.plate > *, .plate { font-size: clamp(1.12rem, 2.35vw, 1.9rem); }
.plate-dark { font-size: clamp(1.3rem, 2.8vw, 2.2rem); }
.s1-divisi { font-size: clamp(1.05rem, 2vw, 1.45rem); }

/* Tombol dan petunjuk */
.btn-gold, .btn-green, .btn-outline, .btn-start {
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
  line-height: 1.15;
}
.btn-start { font-size: clamp(1.08rem, 1.85vw, 1.28rem); }
.hint-text { font-size: clamp(.85rem, 1.4vw, 1.05rem); }

/* Scene 2 — alur nilai */
.step-num { font-size: .9rem; }
.step-label {
  font-size: clamp(.68rem, 1.12vw, 1rem);
  line-height: 1.22;
  min-height: 3.35em;
}
.step-desc {
  font-size: clamp(.72rem, 1.02vw, .94rem);
  line-height: 1.42;
  max-width: 20ch;
}
.flow-status { font-size: clamp(.76rem, 1.08vw, .92rem); }

/* Scene 3 — cost, benefit, dan dampak */
.cb-head { font-size: clamp(1.15rem, 2.05vw, 1.65rem); }
.cb-label { font-size: clamp(.98rem, 1.65vw, 1.3rem); }
.cb-label.small { font-size: clamp(.85rem, 1.38vw, 1.08rem); }
.cb-figure { font-size: clamp(2.3rem, 5.2vw, 4.5rem); }
.cb-desc {
  font-size: clamp(.84rem, 1.38vw, 1.1rem);
  line-height: 1.5;
}
.chip-name { font-size: clamp(.82rem, 1.32vw, 1.05rem); }
.chip-val { font-size: clamp(1.02rem, 1.75vw, 1.45rem); }
.impact-title { font-size: clamp(.9rem, 1.5vw, 1.15rem); }
.impact-name { font-size: clamp(.82rem, 1.32vw, 1.05rem); line-height: 1.3; }
.impact-val { font-size: clamp(1.18rem, 2.4vw, 2.05rem); line-height: 1.12; }

/* Scene 4 — pertanyaan refleksi dan kutipan */
.s4-intro { font-size: clamp(1.05rem, 1.9vw, 1.4rem); }
.q-text {
  font-size: clamp(.95rem, 1.65vw, 1.25rem);
  line-height: 1.38;
}
.q-detail {
  font-size: clamp(.85rem, 1.38vw, 1.05rem);
  line-height: 1.48;
}
.quote-text {
  font-size: clamp(1.1rem, 2.08vw, 1.7rem);
  line-height: 1.48;
}
.reflection-copy span { font-size: 1rem; line-height: 1.45; }
@media (max-width: 760px) {
  .reflection-hero { grid-template-columns: 1fr; text-align: center; }
  .reflection-seal-wrap { min-height: 128px; }
  .reflection-chip-row { justify-content: center; }
}

/* Closing */
.s5-title { font-size: clamp(2.6rem, 6.3vw, 5.4rem); }
.s5-narration {
  font-size: clamp(1.08rem, 2vw, 1.5rem);
  line-height: 1.42;
}
.s5-quote blockquote {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.45;
}
.s5-plates .plate { font-size: clamp(1rem, 1.9vw, 1.5rem); }
.closing-collab-label { font-size: clamp(.78rem, 1.1vw, .92rem); }

/* Chrome, catatan, dan dialog */
.page-indicator { font-size: .9rem; }
.notes-head h3 { font-size: .95rem; }
.notes-panel p { font-size: 1.05rem; line-height: 1.62; }
.modal-head h3 { font-size: 1.3rem; }
.modal-body { font-size: 1.02rem; line-height: 1.55; }
.modal-body .compare-vs { font-size: 1rem; }
.compare-bar-row { font-size: .95rem; }
.modal-note { font-size: .92rem; }
.reflect-text { font-size: 1.05rem; }

/* Layar proyektor 720p/768p: pertahankan font besar dengan ruang vertikal efisien. */
@media (min-width: 761px) and (max-height: 820px) {
  .scene-header { padding-top: 12px; }
  .scene-lead { margin-top: 7px; }
  .journey { padding-top: 8px; }
  .step-num { margin-top: 5px; }
  .step-label { margin-top: 5px; padding-block: .36em; }
  .step-desc { margin-top: 5px; }
  .s2-actions { padding-top: 7px; }
  .message-band { padding-block: 10px; margin-bottom: 12px; }
  .costbenefit { padding-top: 8px; }
  .cb-body { padding-block: 8px; gap: 4px; }
  .cb-split { margin-top: 2px; }
  .cb-chip { padding-block: 7px; }
  .s3-actions { padding-top: 5px; }
  .impact { padding-block: 7px; margin-bottom: 12px; }
  .impact-card { padding-block: 4px; }
  .s4-grid { padding-top: 6px; }
  .q-list { gap: 7px; }
  .q-card { padding-block: 8px; }
  .s4-quote { padding-top: 16px; }
  .quote-rule { margin-block: 5px; }
  .skyline { height: clamp(42px, 7vh, 68px); }
}

/* Tablet dan ponsel: lebih besar dari versi awal, tetapi tetap ringkas dan bisa digulir. */
@media (max-width: 760px) {
  .scene-title { font-size: clamp(1.32rem, 6.4vw, 1.7rem); line-height: 1.08; }
  .scene-lead { font-size: .88rem; line-height: 1.34; }
  .s1-title { font-size: clamp(2.45rem, 12vw, 4.15rem); }
  .s1-divisi { font-size: 1rem; }
  .plate > *, .plate { font-size: clamp(1rem, 4.7vw, 1.35rem); }
  .plate-dark { font-size: clamp(1.1rem, 5vw, 1.5rem); }
  .btn-gold, .btn-green, .btn-outline, .btn-start { font-size: .92rem; }
  .step-num { font-size: .68rem; }
  .step-label { font-size: .78rem; line-height: 1.25; min-height: 34px; }
  .scene-2 .message-band p { font-size: .82rem; line-height: 1.38; }
  .cb-label { font-size: 1rem; }
  .cb-label.small { font-size: .9rem; }
  .cb-desc { font-size: .88rem; }
  .chip-name { font-size: .88rem; }
  .chip-val { font-size: 1.08rem; }
  .impact-name { font-size: .86rem; }
  .impact-val { font-size: 1.25rem; }
  .s4-intro { font-size: 1rem; }
  .q-text { font-size: .98rem; }
  .q-detail { font-size: .88rem; }
  .quote-text { font-size: 1.15rem; }
  .message-band p { font-size: .9rem; }
  .s5-narration { font-size: 1.05rem; }
  .s5-quote blockquote { font-size: 1rem; }
  .notes-panel p { font-size: 1rem; }
}

@media (max-width: 400px) {
  .scene-title { font-size: 1.38rem; }
  .scene-lead { font-size: .84rem; }
  .step-label { font-size: .75rem; }
  .scene-2 .message-band p { font-size: .79rem; }
}

/* Scene 3 memiliki kepadatan data tertinggi; font tetap lebih besar dari versi
   awal, tetapi disetel agar seluruh panel nyaman pada proyektor 720p/768p. */
.scene-3 .scene-lead {
  max-width: none;
  font-size: clamp(1rem, 1.65vw, 1.3rem);
  line-height: 1.3;
}
@media (min-width: 761px) and (max-height: 820px) {
  .scene-3 .cb-label { font-size: clamp(.96rem, 1.5vw, 1.22rem); }
  .scene-3 .cb-label.small { font-size: clamp(.84rem, 1.25vw, 1rem); }
  .scene-3 .cb-desc { font-size: clamp(.82rem, 1.22vw, 1.02rem); line-height: 1.42; }
  .scene-3 .chip-name { font-size: clamp(.8rem, 1.18vw, 1rem); }
  .scene-3 .chip-val { font-size: clamp(1rem, 1.55vw, 1.35rem); }
  .scene-3 .impact-asset-icon { width: clamp(34px, 3.8vw, 50px); height: clamp(34px, 3.8vw, 50px); }
  .scene-3 .impact-name { font-size: clamp(.8rem, 1.15vw, 1rem); }
  .scene-3 .impact-val { font-size: clamp(1.15rem, 2.15vw, 1.9rem); }
  .scene-3 .impact-title { margin-top: -1.7em; }
}

@media (min-width: 761px) and (max-height: 820px) {
  .scene-3 .scene-title { font-size: clamp(1.55rem, 3.5vw, 2.85rem); }
  .scene-3 .scene-lead { font-size: clamp(1rem, 1.55vw, 1.25rem); }
  .scene-3 .btn-gold { padding: .58em 1.35em; font-size: clamp(.92rem, 1.45vw, 1.05rem); }
  .scene-3 .impact { padding-block: 4px; }
  .scene-3 .impact-grid { align-items: center; }
  .scene-3 .impact-card { padding-block: 0; }
  .scene-3 .impact-asset-icon { width: clamp(32px, 3.4vw, 44px); height: clamp(32px, 3.4vw, 44px); }
  .scene-3 .impact-title { margin-bottom: 4px; }
  .scene-3 .impact-name { margin-top: 0; }
}


/* ========================================================================== 
   VIEWPORT WIDTH FIX — portrait/mobile
   Memastikan deck dan setiap scene selalu mengisi seluruh visual viewport.
   Pada layar sentuh sempit, efek transform/clip-path antarscene dinonaktifkan
   karena dapat memicu compositing bug yang menyisakan bidang hijau di kanan.
   ========================================================================== */
:root {
  --app-vw: 100vw;
  --app-vh: 100vh;
}

@supports (width: 100dvw) {
  :root {
    --app-vw: 100dvw;
    --app-vh: 100dvh;
  }
}

html,
body {
  width: 100%;
  min-width: 100%;
  max-width: none;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  position: fixed;
  inset: 0;
  width: var(--app-vw);
  height: var(--app-vh);
}

.deck {
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: var(--app-vw) !important;
  height: var(--app-vh) !important;
  min-width: var(--app-vw);
  max-width: none !important;
  min-height: var(--app-vh);
}

.scene {
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  min-height: 100% !important;
}

.chrome,
.progress {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 760px), (pointer: coarse) and (orientation: portrait) {
  /* Fade tetap dipertahankan, tetapi tanpa scale/translate/clip yang dapat
     membuat lapisan scene dirasterisasi hanya pada sebagian lebar layar. */
  .scene,
  .deck[data-dir="prev"] .scene,
  .scene.active,
  .scene.leaving {
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }

  .scene {
    transition:
      opacity .45s var(--ease-out),
      visibility 0s linear .45s !important;
  }

  .scene.active {
    transition:
      opacity .45s var(--ease-out),
      visibility 0s !important;
  }

  .s1-bg,
  .s5-right {
    transform: none !important;
  }

  .controls {
    width: max-content;
    max-width: calc(100vw - 12px);
    max-width: calc(var(--app-vw) - 12px);
  }

  .notes-panel,
  .modal-backdrop {
    max-width: var(--app-vw);
  }
}

/* ========================================================================== 
   OWNER'S MINDSET CINEMATIC — hasil dramatis saat checklist 4/4 terpenuhi
   ========================================================================== */
.reflection-cinematic {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  min-width: 100vw;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 52px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 44%, rgba(242,183,5,.24), transparent 24%),
    radial-gradient(circle at 50% 48%, rgba(33,119,81,.48), transparent 50%),
    linear-gradient(145deg, #031f16 0%, #073526 48%, #02160f 100%);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition: opacity .42s ease, visibility .42s ease, transform .42s ease;
}
.reflection-cinematic.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.reflection-cinematic.closing {
  opacity: 0;
  transform: scale(1.02);
}
.cinematic-noise {
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 5px 5px;
  mask-image: radial-gradient(circle at center, #000, transparent 84%);
}
.cinematic-rays {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(92vw, 980px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: .32;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(242,183,5,.16) 0deg 4deg,
    transparent 4deg 18deg
  );
  filter: blur(.4px);
  animation: cinematic-rays-spin 32s linear infinite;
}
.cinematic-stage {
  position: relative;
  width: min(960px, 96vw);
  text-align: center;
  isolation: isolate;
}
.cinematic-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  color: #f8d66a;
  font-size: clamp(.72rem, 1.3vw, .92rem);
  font-weight: 900;
  letter-spacing: .18em;
  opacity: 0;
  transform: translateY(-12px);
}
.reflection-cinematic.show .cinematic-kicker {
  animation: cinematic-kicker-in .65s ease-out .12s both;
}
.cinematic-core {
  position: relative;
  width: clamp(330px, 43vw, 500px);
  aspect-ratio: 1;
  margin: clamp(4px, 1vh, 10px) auto -10px;
}
.cinematic-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.halo-one {
  width: 62%;
  height: 62%;
  background: radial-gradient(circle, rgba(242,183,5,.24), rgba(242,183,5,.04) 58%, transparent 70%);
  filter: blur(8px);
}
.halo-two {
  width: 82%;
  height: 82%;
  border: 1px solid rgba(248,214,106,.18);
  box-shadow: 0 0 60px rgba(242,183,5,.08), inset 0 0 60px rgba(36,130,89,.09);
}
.reflection-cinematic.show .halo-one { animation: cinematic-halo-pulse 2.3s ease-in-out infinite; }
.reflection-cinematic.show .halo-two { animation: cinematic-halo-rotate 18s linear infinite; }
.cinematic-emblem {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(.42) rotate(-10deg);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 27%, #fff, #eef6f1 50%, #cae4d5 100%);
  border: 3px solid rgba(248,214,106,.78);
  box-shadow:
    0 0 0 10px rgba(255,255,255,.06),
    0 24px 80px rgba(0,0,0,.38),
    0 0 46px rgba(242,183,5,.25);
  opacity: 0;
  z-index: 6;
}
.reflection-cinematic.show .cinematic-emblem {
  animation: cinematic-emblem-land .9s cubic-bezier(.17,.84,.35,1.18) .35s both;
}
.cinematic-emblem-ring {
  position: absolute;
  inset: 9px;
  border: 2px dashed rgba(7,53,38,.25);
  border-radius: 50%;
}
.reflection-cinematic.settled .cinematic-emblem-ring {
  animation: cinematic-emblem-ring 12s linear infinite;
}
.cinematic-emblem img {
  width: 66%;
  height: 66%;
  object-fit: contain;
  position: relative;
  z-index: 2;
}
.cinematic-score {
  position: absolute;
  right: -7%;
  bottom: 0;
  min-width: 52px;
  height: 52px;
  padding: 0 9px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #ffe27b, #e9a900);
  color: #063426;
  font-size: clamp(.9rem, 1.5vw, 1.12rem);
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(0,0,0,.3);
}
.cinematic-orbit {
  position: absolute;
  width: clamp(108px, 13vw, 148px);
  min-height: clamp(86px, 10vw, 112px);
  padding: 10px 9px 9px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.2);
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 34px rgba(0,0,0,.24);
  opacity: 0;
  z-index: 4;
}
.cinematic-orbit img {
  width: clamp(38px, 5vw, 58px);
  height: clamp(38px, 5vw, 58px);
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,.18));
}
.cinematic-orbit strong {
  color: #fff;
  font-size: clamp(.69rem, 1.15vw, .86rem);
  line-height: 1.2;
}
.cinematic-orbit-check {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4c436;
  color: #063426;
  font-size: .8rem;
  font-weight: 950;
  box-shadow: 0 6px 12px rgba(0,0,0,.22);
}
.orbit-a { left: 1%; top: 7%; transform: translate(-24px, -18px) rotate(-5deg); }
.orbit-b { right: 1%; top: 7%; transform: translate(24px, -18px) rotate(5deg); }
.orbit-c { left: 1%; bottom: 7%; transform: translate(-24px, 18px) rotate(4deg); }
.orbit-d { right: 1%; bottom: 7%; transform: translate(24px, 18px) rotate(-4deg); }
.reflection-cinematic.show .orbit-a { animation: cinematic-orbit-a .72s ease-out .68s both; }
.reflection-cinematic.show .orbit-b { animation: cinematic-orbit-b .72s ease-out .82s both; }
.reflection-cinematic.show .orbit-c { animation: cinematic-orbit-c .72s ease-out .96s both; }
.reflection-cinematic.show .orbit-d { animation: cinematic-orbit-d .72s ease-out 1.1s both; }
.cinematic-spark {
  --sx: 0px;
  --sy: 0px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f8d66a;
  box-shadow: 0 0 12px rgba(248,214,106,.8);
  opacity: 0;
  z-index: 8;
}
.spark-1 { --sx:-170px; --sy:-80px; } .spark-2 { --sx:-130px; --sy:-150px; }
.spark-3 { --sx:-55px; --sy:-184px; } .spark-4 { --sx:36px; --sy:-190px; }
.spark-5 { --sx:122px; --sy:-152px; } .spark-6 { --sx:178px; --sy:-80px; }
.spark-7 { --sx:190px; --sy:8px; } .spark-8 { --sx:160px; --sy:104px; }
.spark-9 { --sx:88px; --sy:170px; } .spark-10 { --sx:0px; --sy:192px; }
.spark-11 { --sx:-92px; --sy:170px; } .spark-12 { --sx:-166px; --sy:104px; }
.spark-13 { --sx:-190px; --sy:12px; } .spark-14 { --sx:-108px; --sy:-44px; }
.spark-15 { --sx:108px; --sy:-44px; } .spark-16 { --sx:116px; --sy:72px; }
.spark-17 { --sx:-116px; --sy:72px; } .spark-18 { --sx:0px; --sy:-112px; }
.reflection-cinematic.show .cinematic-spark {
  animation: cinematic-spark-burst 1.15s ease-out 1.1s both;
}
.cinematic-stamp {
  width: fit-content;
  margin: -22px auto 0;
  padding: 10px 24px 8px;
  border: 5px double #f1bd22;
  border-radius: 12px;
  color: #f8d66a;
  font-size: clamp(1.45rem, 4.2vw, 3.25rem);
  line-height: .92;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 4px 16px rgba(0,0,0,.3);
  box-shadow: inset 0 0 0 3px rgba(248,214,106,.12), 0 18px 45px rgba(0,0,0,.26);
  opacity: 0;
  transform: scale(1.8) rotate(-8deg);
}
.cinematic-stamp span {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: .72em;
  letter-spacing: .23em;
}
.reflection-cinematic.show .cinematic-stamp {
  animation: cinematic-stamp-hit .72s cubic-bezier(.15,.9,.23,1.25) 1.38s both;
}
.cinematic-message {
  margin: 16px auto 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(1rem, 2vw, 1.38rem);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
}
.cinematic-message strong { color: #f8d66a; }
.reflection-cinematic.show .cinematic-message {
  animation: cinematic-copy-in .65s ease-out 1.72s both;
}
.cinematic-continue {
  margin-top: 18px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: #f1bd22;
  color: #063426;
  font: inherit;
  font-size: .94rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateY(12px);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cinematic-continue:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0,0,0,.34); background: #ffd85b; }
.cinematic-continue:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.reflection-cinematic.show .cinematic-continue {
  animation: cinematic-copy-in .6s ease-out 2s both;
}
@keyframes cinematic-rays-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes cinematic-kicker-in { to { opacity: 1; transform: translateY(0); } }
@keyframes cinematic-halo-pulse { 0%,100% { transform: translate(-50%,-50%) scale(.88); opacity: .55; } 50% { transform: translate(-50%,-50%) scale(1.08); opacity: 1; } }
@keyframes cinematic-halo-rotate { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes cinematic-emblem-land { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.35) rotate(-14deg); } 70% { opacity: 1; transform: translate(-50%,-50%) scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0); } }
@keyframes cinematic-emblem-ring { to { transform: rotate(360deg); } }
@keyframes cinematic-orbit-a { to { opacity: 1; transform: translate(0,0) rotate(0); } }
@keyframes cinematic-orbit-b { to { opacity: 1; transform: translate(0,0) rotate(0); } }
@keyframes cinematic-orbit-c { to { opacity: 1; transform: translate(0,0) rotate(0); } }
@keyframes cinematic-orbit-d { to { opacity: 1; transform: translate(0,0) rotate(0); } }
@keyframes cinematic-spark-burst {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.25); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(1); }
}
@keyframes cinematic-stamp-hit {
  0% { opacity: 0; transform: scale(1.8) rotate(-8deg); filter: blur(4px); }
  62% { opacity: 1; transform: scale(.92) rotate(1deg); filter: blur(0); }
  82% { transform: scale(1.04) rotate(-.5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes cinematic-copy-in { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 680px) {
  .reflection-cinematic { padding: 14px 12px 20px; overflow-y: auto; }
  .cinematic-stage { width: 100%; }
  .cinematic-core { width: min(92vw, 390px); margin-top: 4px; }
  .cinematic-orbit { width: 106px; min-height: 80px; padding: 8px 6px; border-radius: 14px; }
  .cinematic-orbit img { width: 38px; height: 38px; }
  .cinematic-orbit strong { font-size: .68rem; }
  .cinematic-orbit-check { width: 21px; height: 21px; right: 5px; top: 5px; }
  .orbit-a { left: 0; top: 4%; }
  .orbit-b { right: 0; top: 4%; }
  .orbit-c { left: 0; bottom: 4%; }
  .orbit-d { right: 0; bottom: 4%; }
  .cinematic-emblem { width: 38%; }
  .cinematic-score { min-width: 43px; height: 43px; font-size: .86rem; }
  .cinematic-stamp { margin-top: -14px; padding: 9px 15px 7px; border-width: 4px; }
  .cinematic-message { margin-top: 12px; }
  .cinematic-continue { margin-top: 14px; }
}

@media (max-height: 720px) and (min-width: 681px) {
  .cinematic-core { width: min(52vh, 430px); }
  .cinematic-stamp { margin-top: -26px; font-size: clamp(1.35rem, 4vh, 2.45rem); }
  .cinematic-message { margin-top: 10px; font-size: 1rem; }
  .cinematic-continue { margin-top: 10px; min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .reflection-cinematic *,
  .reflection-cinematic *::before,
  .reflection-cinematic *::after {
    animation: none !important;
    transition-duration: 0s !important;
  }
  .reflection-cinematic.show,
  .reflection-cinematic.show .cinematic-kicker,
  .reflection-cinematic.show .cinematic-emblem,
  .reflection-cinematic.show .cinematic-orbit,
  .reflection-cinematic.show .cinematic-stamp,
  .reflection-cinematic.show .cinematic-message,
  .reflection-cinematic.show .cinematic-continue {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .cinematic-emblem { transform: translate(-50%, -50%) !important; }
}

/* ========================================================================== 
   CLOSING TITLE RELIABILITY FIX — 5 Agustus 2026
   Menjaga THANK YOU selalu terbaca setelah reflow/fullscreen pada berbagai
   rasio layar. Judul tidak lagi bergantung pada opacity .anim.
   ========================================================================== */
.scene-5 .s5-content {
  justify-content: flex-start;
  height: auto;
  min-height: 100%;
  padding-top: clamp(22px, 3.8vh, 42px);
  padding-bottom: calc(var(--chrome-h) + clamp(24px, 3vh, 42px));
}

.scene-5 .s5-title {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: .16em;
  width: max-content;
  max-width: 100%;
  min-height: 1.06em;
  flex: 0 0 auto;
  margin: 0;
  padding: .02em 0 .08em;
  overflow: visible !important;
  white-space: nowrap;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
  font-size: clamp(2.45rem, min(5.8vw, 8.8vh), 5.35rem);
  font-weight: 950;
  line-height: .94;
  letter-spacing: -.055em;
  text-wrap: nowrap;
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.82));
  isolation: isolate;
}

.scene-5 .s5-title::after { display: none !important; }

.s5-title-word {
  position: relative;
  display: inline-block;
  opacity: 1;
  transform: none;
}
.s5-title-thank { color: var(--green-800); }
.s5-title-you { color: #101713; }
.s5-title-you::after {
  content: "";
  position: absolute;
  left: .02em;
  right: -.03em;
  bottom: -.12em;
  height: .08em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  transform-origin: left center;
}

/* Animasi memakai transform saja sehingga teks tetap terlihat bahkan jika
   browser membatalkan animation akibat perubahan fullscreen/viewport. */
.scene-5.play .s5-title-thank { animation: s5-title-thank-in .72s var(--ease-out) .38s both; }
.scene-5.play .s5-title-you { animation: s5-title-you-in .72s var(--ease-out) .52s both; }
.scene-5.play .s5-title-you::after { animation: s5-title-underline .75s var(--ease-out) .88s both; }

@keyframes s5-title-thank-in {
  from { transform: translateX(-30px) scale(.97); letter-spacing: -.02em; }
  to { transform: none; letter-spacing: inherit; }
}
@keyframes s5-title-you-in {
  from { transform: translateX(24px) scale(.97); }
  to { transform: none; }
}
@keyframes s5-title-underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Layar desktop yang pendek: skala berdasarkan tinggi agar judul tidak
   mendorong elemen lain keluar layar. */
@media (min-width: 761px) and (max-height: 820px) {
  .scene-5 .s5-content {
    padding-top: clamp(14px, 2vh, 24px);
    gap: clamp(5px, 1vh, 10px);
  }
  .scene-5 .s5-one-logo { width: clamp(132px, 14vw, 210px); margin-bottom: 2px; }
  .scene-5 .s5-title { font-size: clamp(2.35rem, min(5.4vw, 8vh), 4.6rem); }
  .scene-5 .s5-quote { margin-block: 2px; padding-block: 8px; }
  .scene-5 .s5-plates { margin-top: 4px; }
  .scene-5 .s5-actions { margin-top: 6px; }
}

/* Tablet dan ponsel: judul tetap satu baris selama cukup ruang, lalu mengecil
   secara proporsional tanpa terpotong. */
@media (max-width: 760px) {
  .scene-5 .s5-content {
    min-height: auto;
    padding-top: 10px;
  }
  .scene-5 .s5-title {
    width: 100%;
    font-size: clamp(2.25rem, 12vw, 4.25rem);
    letter-spacing: -.05em;
  }
}

@media (max-width: 420px) {
  .scene-5 .s5-title { font-size: clamp(2.05rem, 11.5vw, 3.05rem); }
}

@media (prefers-reduced-motion: reduce) {
  .scene-5.play .s5-title-thank,
  .scene-5.play .s5-title-you,
  .scene-5.play .s5-title-you::after {
    animation: none !important;
    transform: none !important;
  }
}


/* ==========================================================================
   CLOSING CLEAN-UP — 6 Agustus 2026
   Judul THANK YOU dan ilustrasi STRONGER US dihapus sesuai arahan.
   Konten penutup kembali diseimbangkan secara vertikal pada berbagai layar.
   ========================================================================== */
.scene-5 .s5-content {
  justify-content: center;
  min-height: 100%;
  padding-top: clamp(24px, 5vh, 64px);
  padding-bottom: calc(var(--chrome-h) + clamp(28px, 4vh, 54px));
  gap: clamp(10px, 1.8vh, 18px);
}
.scene-5 .s5-one-logo { margin-bottom: clamp(8px, 1.5vh, 16px); }
.scene-5 .s5-narration { max-width: 38ch; }
.scene-5 .s5-quote { margin-block: clamp(8px, 1.4vh, 16px); }
.scene-5 .s5-plates { margin-top: clamp(10px, 1.8vh, 18px); }
.scene-5 .s5-actions { margin-top: clamp(10px, 1.8vh, 18px); }

@media (min-width: 761px) and (max-height: 820px) {
  .scene-5 .s5-content {
    justify-content: center;
    padding-top: 18px;
    padding-bottom: calc(var(--chrome-h) + 20px);
    gap: 7px;
  }
  .scene-5 .s5-one-logo { margin-bottom: 4px; }
  .scene-5 .s5-quote { margin-block: 3px; }
}

@media (max-width: 760px) {
  .scene-5 .s5-content {
    justify-content: flex-start;
    min-height: auto;
    padding-top: 18px;
    padding-bottom: 120px;
  }
}

/* ========================================================================== 
   SCENE 6 — VIDEO CULTURE BOOSTER HTML5 DARI HOSTING (6 Agustus 2026)
   Emblem utama memutar video sekaligus meminta mode fullscreen.
   ========================================================================== */
.scene-6 {
  background: #062f23;
  color: #fff;
  overflow: hidden;
}
.s6-bg,
.s6-bg-photo,
.s6-bg-overlay,
.s6-grid-glow {
  position: absolute;
  inset: 0;
}
.s6-bg { overflow: hidden; }
.s6-bg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.74) contrast(1.05) brightness(.58);
  transform: scale(1.06);
}
.s6-bg-overlay {
  background:
    radial-gradient(circle at 50% 42%, rgba(242,183,5,.16), transparent 28%),
    linear-gradient(90deg, rgba(5,38,28,.94), rgba(5,47,34,.76) 46%, rgba(4,33,25,.93)),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.50));
  backdrop-filter: blur(2px);
}
.s6-grid-glow {
  opacity: .26;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, #000 0 52%, transparent 82%);
}
.s6-header {
  position: absolute;
  top: clamp(24px, 4vh, 52px);
  left: clamp(28px, 5vw, 82px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
}
.s6-logo {
  width: clamp(94px, 10vw, 150px);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.28));
}
.s6-kicker {
  margin: 0 0 3px;
  color: var(--gold-bright);
  font-weight: 900;
  letter-spacing: .16em;
  font-size: clamp(.72rem, 1vw, .92rem);
}
.s6-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: .02em;
}
.s6-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: clamp(108px, 14vh, 150px) 24px 104px;
}
.video-stage {
  position: relative;
  width: min(70vw, 920px);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border-radius: clamp(20px, 2.3vw, 34px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(242,183,5,.12), transparent 32%),
    linear-gradient(145deg, rgba(7,64,45,.96), rgba(3,26,20,.98));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow:
    0 34px 72px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 0 10px rgba(255,255,255,.025);
}
.video-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.055) 49%, transparent 61%),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(255,255,255,.022) 29px 30px);
}
.video-emblem {
  position: relative;
  width: min(43%, 340px);
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease-out), filter .35s var(--ease-out);
}
.video-emblem:hover { transform: translateY(-5px) scale(1.025); filter: brightness(1.08); }
.video-emblem:active { transform: scale(.97); }
.video-emblem:focus-visible { outline: 4px solid var(--gold-bright); outline-offset: 9px; }
.video-emblem-halo {
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,183,5,.30), rgba(242,183,5,.06) 48%, transparent 70%);
  filter: blur(4px);
}
.video-emblem-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28);
}
.video-emblem-ring.ring-one { inset: 7%; border-style: dashed; border-color: rgba(242,183,5,.72); }
.video-emblem-ring.ring-two { inset: 16%; border-color: rgba(255,255,255,.22); }
.video-emblem-core {
  position: relative;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  color: var(--green-950);
  box-shadow: 0 16px 34px rgba(242,183,5,.26), inset 0 2px 0 rgba(255,255,255,.55);
  z-index: 3;
}
.video-play-triangle {
  width: 0;
  height: 0;
  margin-left: 8%;
  border-top: clamp(16px, 2.2vw, 28px) solid transparent;
  border-bottom: clamp(16px, 2.2vw, 28px) solid transparent;
  border-left: clamp(25px, 3.4vw, 43px) solid var(--green-950);
  filter: drop-shadow(0 4px 4px rgba(255,255,255,.15));
}
.video-fullscreen-corners {
  position: absolute;
  inset: 14%;
  pointer-events: none;
}
.video-fullscreen-corners i {
  position: absolute;
  width: 17%;
  height: 17%;
  border-color: rgba(11,61,44,.86);
  border-style: solid;
}
.video-fullscreen-corners i:nth-child(1) { top: 0; left: 0; border-width: 3px 0 0 3px; }
.video-fullscreen-corners i:nth-child(2) { top: 0; right: 0; border-width: 3px 3px 0 0; }
.video-fullscreen-corners i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.video-fullscreen-corners i:nth-child(4) { bottom: 0; right: 0; border-width: 0 3px 3px 0; }
.video-emblem-label,
.video-emblem-sub {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 4;
}
.video-emblem-label {
  bottom: 19%;
  color: #fff;
  font-size: clamp(.72rem, 1.15vw, 1rem);
  font-weight: 900;
  letter-spacing: .14em;
}
.video-emblem-sub {
  bottom: 12.5%;
  color: rgba(255,255,255,.66);
  font-size: clamp(.62rem, .86vw, .79rem);
  font-weight: 600;
}
.scene.play .video-emblem-halo { animation: video-halo-pulse 2.4s ease-in-out .7s infinite; }
.scene.play .video-emblem-ring.ring-one { animation: video-ring-spin 12s linear infinite; }
.scene.play .video-emblem-ring.ring-two { animation: video-ring-spin-reverse 16s linear infinite; }
.scene.play .video-emblem-core { animation: video-core-pulse 2.2s ease-in-out 1s infinite; }
.video-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.video-stage.is-playing .video-emblem { opacity: 0; pointer-events: none; transform: scale(.88); }
.video-stage.is-playing .video-frame { opacity: 1; pointer-events: auto; }
.video-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(5,38,28,.82);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.video-close:hover { background: rgba(11,61,44,.96); }
.video-stage:fullscreen,
.video-stage.is-fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: #000;
}
.video-stage:fullscreen .video-frame,
.video-stage.is-fullscreen .video-frame { inset: 0; }
.s6-note {
  margin: 0;
  color: rgba(255,255,255,.78);
  text-align: center;
  font-size: clamp(.84rem, 1.15vw, 1rem);
}
.s6-fallback {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px solid rgba(242,183,5,.5);
  padding-bottom: 2px;
}
.s6-fallback:hover { color: #fff1a8; }
@keyframes video-halo-pulse {
  0%,100% { transform: scale(.92); opacity: .55; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes video-ring-spin { to { transform: rotate(360deg); } }
@keyframes video-ring-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes video-core-pulse {
  0%,100% { transform: scale(.96); box-shadow: 0 16px 34px rgba(242,183,5,.24), inset 0 2px 0 rgba(255,255,255,.55); }
  50% { transform: scale(1.04); box-shadow: 0 20px 44px rgba(242,183,5,.42), inset 0 2px 0 rgba(255,255,255,.62); }
}

@media (max-width: 900px) {
  .video-stage { width: min(88vw, 820px); }
  .video-emblem { width: min(48%, 300px); }
}
@media (max-width: 760px) {
  .scene-6 { overflow-y: auto !important; }
  .s6-header {
    position: relative;
    top: auto;
    left: auto;
    padding: 18px 18px 0;
  }
  .s6-logo { width: 78px; }
  .s6-header h2 { font-size: 1.45rem; }
  .s6-content {
    height: auto;
    min-height: calc(var(--app-vh, 100dvh) - 84px);
    justify-content: flex-start;
    padding: 34px 14px 112px;
  }
  .video-stage {
    width: 94vw;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .video-emblem { width: min(52%, 250px); }
  .video-emblem-label { bottom: 18%; }
  .video-emblem-sub { bottom: 11.5%; }
}
@media (prefers-reduced-motion: reduce) {
  .video-emblem-halo,
  .video-emblem-ring,
  .video-emblem-core { animation: none !important; }
}

/* Fallback visual fullscreen ketika browser menolak Fullscreen API. */
.video-stage.video-expanded {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #000;
}
.video-stage.video-expanded .video-frame { inset: 0; }

/* Fallback visual fullscreen ketika browser menolak Fullscreen API. */
.video-stage.video-expanded {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #000;
}
.video-stage.video-expanded .video-frame { inset: 0; }


/* ==========================================================================
   SCENE 3 — CATATAN PERIODE DATA
   Menegaskan cakupan angka Cost, Benefit, dan Dampak tanpa menambah tinggi
   header secara berlebihan pada layar proyektor.
   ========================================================================== */
.scene-3 .header-text {
  flex: 1 1 auto;
  min-width: 0;
}
.s3-lead-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
  width: 100%;
}
.s3-lead-row .scene-lead {
  flex: 1 1 auto;
}
.s3-period-note {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(8px, 1.6vh, 16px);
  padding: 7px 12px;
  border: 1px solid rgba(15, 76, 53, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--green-900);
  box-shadow: 0 6px 18px rgba(11, 61, 44, .08);
  backdrop-filter: blur(5px);
  white-space: nowrap;
  font-size: clamp(.78rem, 1.18vw, .96rem);
  line-height: 1.2;
}
.s3-period-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, .14);
}
.s3-period-note span {
  color: var(--ink-soft);
  font-weight: 700;
}
.s3-period-note strong {
  color: var(--green-900);
  font-weight: 900;
}

@media (max-width: 900px) {
  .s3-lead-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .s3-period-note { margin-top: 7px; }
}

@media (min-width: 761px) and (max-height: 820px) {
  .s3-period-note {
    padding: 5px 10px;
    font-size: clamp(.72rem, 1vw, .86rem);
    margin-top: 7px;
  }
}

@media (max-width: 760px) {
  .s3-period-note {
    white-space: normal;
    align-self: flex-start;
  }
}
