/* PiP promo 3 · "Every village asks the same questions"
   Vertical 1080×1920 stage, flat poster style: solid colour fields, thick navy
   outlines, hard offset shadows and circular colour wipes. All motion is driven
   by the seekable timeline in promo.js (no CSS animation inside the stage). */

:root {
  --navy: #14202e;
  --ink: #0b131c;
  --soft: #55636f;
  --sage: #9dc395;
  --sage-deep: #4f8a6a;
  --green: #2f9e6b;
  --teal: #3698b9;
  --sky: #afe0ed;
  --gold: #f2c66d;
  --coral: #ef8b6b;
  --cream: #f8f4ec;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body { background: #f8f4ec; font-family: var(--ui); color: var(--navy); -webkit-font-smoothing: antialiased; transition: background-color .45s ease; }
img { display: block; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

.viewport { position: fixed; inset: 0; overflow: hidden; }
.stage {
  position: absolute; left: 0; top: 0;
  width: 1080px; height: 1920px;
  transform-origin: 0 0; overflow: hidden;
  background: var(--cream);
  box-shadow: 0 30px 80px -30px rgba(11, 19, 28, .45);
  contain: strict;
}
.render .stage { box-shadow: none; }

/* ---------- Scenes + wipes ---------- */
.scene {
  position: absolute; inset: 0;
  background: var(--bg, var(--cream));
  clip-path: circle(calc(var(--r, 0) * 1px) at var(--cx, 540px) var(--cy, 960px));
  visibility: hidden;
  --mark: #fff;
}
.tone-dark { color: var(--navy); }
.tone-light { color: var(--cream); }
#intro { --mark: var(--gold); }
#q1 { --mark: #fff; }
#q2 { --mark: var(--gold); }
#q3 { --mark: var(--navy); }
#q4 { --mark: var(--teal); }
#q5 { --mark: var(--gold); }
#q6 { --mark: var(--sky); }
#outro { --mark: var(--coral); }
#end { --mark: var(--gold); }

.shape { position: absolute; z-index: 0; }
.circle { border-radius: 50%; }
.quarter { border-top-right-radius: 100%; }
.moon { box-shadow: inset -46px -20px 0 rgba(20, 32, 46, .18); }
.star-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); z-index: 0; }

/* ---------- Type ---------- */
.big {
  position: absolute; left: 90px; top: 290px; width: 900px; z-index: 2;
  font-family: var(--display); font-weight: 800; font-size: 150px;
  line-height: .93; letter-spacing: -.04em;
}
.big.center { left: 0; right: 0; width: auto; text-align: center; }
.w { display: inline-block; will-change: transform; }
.hl { position: relative; display: inline-block; font-weight: 800; }
.hl .mark {
  position: absolute; left: -.06em; right: -.06em; bottom: .06em; height: .34em;
  background: var(--mark); border-radius: .1em; z-index: -1; transform-origin: 0 50%;
}
.hl .txt { position: relative; }

#intro-h { top: 1080px; font-size: 158px; }
#q3 .big { font-size: 132px; }
#q6 .big { font-size: 136px; }
#out-a { top: 1120px; font-size: 120px; color: rgba(248, 244, 236, .7); }
#out-b { top: 1270px; font-size: 170px; }
#end-h { top: 800px; font-size: 112px; }

.qlabel {
  position: absolute; left: 90px; top: 200px; z-index: 2;
  padding: 10px 26px; border: 4px solid currentColor; border-radius: 999px;
  font: 800 26px var(--display); letter-spacing: .12em; text-transform: uppercase;
}
.answered {
  position: absolute; left: 90px; top: 1680px; z-index: 2;
  font: 700 50px var(--display); letter-spacing: -.02em;
}
.answered b { font-weight: 800; box-shadow: inset 0 -.32em 0 var(--mark); }

/* ---------- Intro question balls ---------- */
.qball {
  position: absolute; width: 300px; height: 300px; border-radius: 50%; z-index: 1;
  background: var(--c); border: 6px solid var(--navy); box-shadow: 16px 16px 0 var(--navy);
  display: grid; place-items: center;
}
.qball span { font: 800 210px/1 var(--display); color: var(--navy); margin-top: -18px; }

/* ---------- Cards ---------- */
.card {
  position: absolute; left: 90px; top: 880px; width: 900px; z-index: 3;
  padding: 44px 48px 48px;
  background: #fff; color: var(--navy);
  border: 5px solid var(--navy); border-radius: 46px;
  box-shadow: 18px 18px 0 var(--navy);
}
#q4 .card { box-shadow: 18px 18px 0 var(--teal); }
.c-head { display: flex; align-items: center; gap: 18px; }
.c-head b { font: 800 34px var(--display); letter-spacing: -.02em; }
.c-ic { flex: none; width: 70px; height: 70px; border-radius: 50%; border: 4px solid var(--navy); background: #e8f2ea; display: grid; place-items: center; }
.c-ic svg { width: 36px; height: 36px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.c-ic.logo { background: var(--navy); }
.c-ic.logo img { width: 40px; height: 40px; }
.c-sub { margin-left: auto; padding: 10px 22px; border-radius: 999px; background: #f1ede3; font-size: 22px; font-weight: 700; }
.c-title { margin-top: 34px; font: 800 68px/1 var(--display); letter-spacing: -.035em; }
.c-text { margin-top: 14px; font-size: 28px; color: var(--soft); }

/* Q1 */
.tabs { position: relative; margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); height: 84px; border: 4px solid var(--navy); border-radius: 999px; overflow: hidden; }
.tabs span { position: relative; z-index: 1; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.tab-ind { position: absolute; left: 0; top: 0; bottom: 0; width: calc(100% / 3); background: var(--sage); border-radius: 999px; }
.c-foot { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; }
.read { display: inline-flex; align-items: center; gap: 12px; padding: 18px 26px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 26px; font-weight: 700; }
.read svg { width: 30px; height: 30px; fill: #fff; }
.wave { display: inline-flex; align-items: center; gap: 5px; height: 28px; margin-left: 4px; }
.wave i { width: 5px; height: 28px; border-radius: 3px; background: var(--sage); }
.stars { position: relative; display: inline-block; }
.stars .s-bg, .stars .s-fg { display: flex; gap: 6px; }
.stars .s-fg { position: absolute; inset: 0; }
.stars svg { width: 48px; height: 48px; stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; }
.stars .s-bg svg { fill: #ece6d6; }
.stars .s-fg svg { fill: var(--gold); }

/* Q2 */
.okay { margin-top: 34px; display: flex; align-items: center; gap: 24px; padding: 26px; border: 4px solid var(--navy); border-radius: 30px; background: #e9f6ee; }
.okay-tick { flex: none; width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--navy); background: var(--green); display: grid; place-items: center; }
.okay-tick svg, .dot svg, .handover svg { fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.okay-tick svg { width: 52px; height: 52px; }
.okay b { display: block; font: 800 44px var(--display); letter-spacing: -.03em; }
.okay span { font-size: 25px; color: #3d5a4a; }
.week { margin-top: 32px; display: flex; align-items: center; gap: 30px; }
.week-photo { flex: none; width: 230px; height: 230px; border-radius: 30px; border: 4px solid var(--navy); object-fit: cover; }
.week ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.week li { display: flex; align-items: center; gap: 14px; font-size: 27px; font-weight: 600; }
.week li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--sage); border: 3px solid var(--navy); }

/* Q3 */
.track { position: relative; margin-top: 38px; list-style: none; display: flex; flex-direction: column; gap: 34px; }
.track-line { position: absolute; left: 34px; top: 40px; bottom: 40px; width: 8px; margin-left: -4px; border-radius: 8px; background: #e2e7eb; overflow: hidden; }
.track-fill { position: absolute; inset: 0; background: var(--green); transform-origin: 50% 0; }
.step { position: relative; z-index: 1; display: flex; align-items: center; gap: 26px; }
.dot {
  --on: 0;
  flex: none; width: 76px; height: 76px; border-radius: 50%; border: 4px solid var(--navy);
  background: color-mix(in srgb, var(--green) calc(var(--on) * 100%), #fff);
  display: grid; place-items: center;
}
.dot svg { width: 40px; height: 40px; opacity: var(--on); }
.step.now .dot { background: color-mix(in srgb, var(--gold) calc(var(--on) * 100%), #fff); }
.step.now .dot svg { stroke: var(--navy); }
.step b { display: block; font: 800 34px var(--display); letter-spacing: -.02em; }
.step em { font-style: normal; font-size: 23px; color: var(--soft); }

/* Q4 */
.shift { display: flex; align-items: center; gap: 22px; padding: 22px 0; border-bottom: 3px dashed #d9dee3; }
.shift:first-of-type { margin-top: 18px; }
.av { flex: none; width: 76px; height: 76px; border-radius: 50%; border: 4px solid var(--navy); display: grid; place-items: center; font: 800 24px var(--ui); font-style: normal; }
.shift b { display: block; font-size: 31px; font-weight: 700; }
.shift span { font-size: 23px; color: var(--soft); }
.shift .on { margin-left: auto; padding: 10px 18px; border-radius: 999px; border: 4px solid var(--navy); background: var(--gold); color: var(--navy); font-size: 20px; font-weight: 800; white-space: nowrap; }
.handover { margin-top: 30px; height: 84px; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 999px; border: 4px solid var(--navy); background: var(--green); color: #fff; font-size: 27px; font-weight: 700; }
.handover svg { width: 34px; height: 34px; }

/* Q5 */
.tvcard { background: var(--navy); color: var(--cream); border-color: var(--ink); }
.tv-top b { display: block; font: 800 44px var(--display); letter-spacing: -.03em; }
.tv-top span { display: block; margin-top: 6px; font-size: 21px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.evs { position: relative; margin-top: 26px; }
.ev { position: relative; z-index: 1; display: flex; align-items: center; gap: 26px; height: 116px; padding: 0 24px; }
.ev time { flex: none; min-width: 170px; font: 800 30px var(--display); color: var(--gold); }
.ev b { display: block; font-size: 33px; font-weight: 700; }
.ev span { font-size: 22px; color: #a9bccb; }
.ev-now { position: absolute; left: 0; right: 0; top: 0; height: 116px; border-radius: 26px; border: 3px solid var(--sage); background: rgba(157, 195, 149, .2); }
.bday { margin-top: 26px; padding: 26px; border-radius: 26px; border: 4px solid var(--ink); background: var(--gold); color: var(--navy); text-align: center; font: 800 34px var(--display); letter-spacing: -.02em; }

/* Q6 */
.kpis { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.kpis div { padding: 22px 22px 20px; border: 4px solid var(--navy); border-radius: 28px; background: #f6f3ea; }
.kpis b { display: block; font: 800 88px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpis span { display: block; margin-top: 6px; font-size: 20px; font-weight: 600; color: var(--soft); }
.bars { margin-top: 34px; }
.bars small { display: block; margin-bottom: 14px; font-size: 20px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.bar { display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 18px; height: 60px; }
.bar span { font-size: 25px; font-weight: 600; }
.bar i { display: block; height: 32px; border-radius: 999px; border: 3px solid var(--navy); background: var(--teal); transform-origin: 0 50%; }

/* ---------- Outro ---------- */
.ring { position: absolute; left: 540px; top: 720px; width: 0; height: 0; z-index: 1; }
.dot6 { position: absolute; left: -70px; top: -70px; width: 140px; height: 140px; border-radius: 50%; background: var(--c); }
.merge-drop {
  position: absolute; left: 450px; top: 630px; width: 180px; height: 180px; z-index: 2;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 38% 34%, var(--sky), var(--teal) 62%);
}

/* ---------- End card ---------- */
.end-logo { position: absolute; left: 330px; top: 300px; width: 420px; height: 420px; overflow: visible; z-index: 2; }
.end-logo g { transform-box: fill-box; transform-origin: 50% 100%; }
.lg-sage { fill: var(--sage-deep); }
.lg-blue { fill: var(--teal); }
.lg-sky { fill: var(--sky); }
.cta {
  position: absolute; left: 160px; top: 1140px; width: 760px; height: 124px; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  border-radius: 999px; border: 5px solid var(--navy); background: var(--navy); color: #fff;
  box-shadow: 14px 14px 0 var(--sage);
  font: 800 44px var(--display); letter-spacing: -.02em; text-decoration: none;
  pointer-events: none;
}
.ended .cta { pointer-events: auto; }
.url { position: absolute; left: 0; right: 0; top: 1320px; text-align: center; font: 800 40px var(--display); letter-spacing: -.01em; }
.pilot { position: absolute; left: 120px; right: 120px; top: 1392px; text-align: center; font-size: 28px; color: var(--soft); line-height: 1.35; }
.dots-row { position: absolute; left: 0; right: 0; top: 1600px; display: flex; justify-content: center; gap: 28px; }
.dots-row i { width: 60px; height: 60px; border-radius: 50%; background: var(--c); border: 4px solid var(--navy); }

/* ---------- Header ---------- */
.hdr { position: absolute; left: 70px; right: 70px; top: 56px; z-index: 10; color: var(--navy); opacity: 0; }
.hdr[data-tone="light"] { color: var(--cream); }
.segs { display: flex; gap: 12px; }
.segs i { flex: 1; height: 9px; border-radius: 9px; background: color-mix(in srgb, currentColor 22%, transparent); overflow: hidden; }
.segs b { display: block; height: 100%; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); }
.hdr-row { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; }
.hdr-brand { display: flex; align-items: center; gap: 14px; font: 700 26px var(--ui); }
.hdr-brand img { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); padding: 6px; box-shadow: 0 0 0 2px currentColor; }
.hdr-n { font: 800 28px var(--display); font-variant-numeric: tabular-nums; }

/* ---------- Player UI (outside the stage) ---------- */
.sound-pill {
  position: absolute; right: 18px; top: 18px; z-index: 20;
  display: flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px;
  border-radius: 999px; background: var(--navy); color: #fff;
  border: 3px solid var(--navy); box-shadow: 5px 5px 0 var(--sage);
  font-size: 15px; font-weight: 700; transition: opacity .3s, transform .3s;
}
.sound-pill svg, .ui-btn svg, .replay svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sound-pill svg path:first-child, .ui-btn svg path:first-child { fill: currentColor; }
.sound-pill.hide { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.ui {
  position: absolute; left: 50%; bottom: 16px; z-index: 20;
  width: min(560px, calc(100% - 32px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 8px 14px;
  border-radius: 999px; background: var(--navy); color: #fff;
  box-shadow: 5px 5px 0 var(--sage); transition: opacity .4s;
}
.ui.idle { opacity: 0; }
.ui-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.ui-btn:hover { background: rgba(255, 255, 255, .12); }
.ui-btn:focus-visible, .bar-ui:focus-visible, .sound-pill:focus-visible, .replay:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ui-btn .i-play { display: none; fill: currentColor; stroke: none; }
.ui-btn .i-pause { fill: currentColor; stroke: none; }
.paused .ui-btn .i-play { display: block; }
.paused .ui-btn .i-pause { display: none; }
#btn-sound .x { display: none; }
#btn-sound[aria-pressed="false"] .w1, #btn-sound[aria-pressed="false"] .w2 { display: none; }
#btn-sound[aria-pressed="false"] .x { display: block; }
.bar-ui { position: relative; flex: 1; height: 26px; cursor: pointer; }
.bar-ui::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.fill { position: absolute; left: 0; top: 11px; height: 4px; border-radius: 4px; background: var(--gold); width: 0; }
.tc { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .78); min-width: 80px; text-align: right; }
.replay {
  position: absolute; left: 18px; top: 18px; z-index: 20;
  display: none; align-items: center; gap: 10px; padding: 12px 20px 12px 16px;
  border-radius: 999px; background: var(--gold); color: var(--navy);
  border: 3px solid var(--navy); box-shadow: 5px 5px 0 var(--navy);
  font-size: 15px; font-weight: 800;
}
.ended .replay { display: flex; }
.render .sound-pill, .render .ui, .render .replay { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) { .tc { display: none; } }
