:root {
  --ink: #16343f;
  --ink-soft: #52707a;
  --paper: #f7fbfc;
  --white: #ffffff;
  --teal: #20b8bf;
  --teal-dark: #087d86;
  --teal-pale: #dff8f8;
  --orange: #ff6801;
  --orange-pale: #fff0e6;
  --purple: #8247e5;
  --active: #37d27f;
  --lime: #b8e44a;
  --red: #ef4f5f;
  --line: rgba(21, 72, 84, 0.16);
  --shadow: 0 24px 70px rgba(18, 54, 66, 0.16);
  --header-height: 76px;
  --ribbon-height: 82px;
  --scene-duration: 25000ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible {
  outline: 4px solid rgba(130, 71, 229, 0.32);
  outline-offset: 4px;
}

.brand-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 38px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(20, 67, 80, 0.06);
  backdrop-filter: blur(16px);
}

.brand-lockup,
.show-status {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 18px;
  min-width: 0;
}

.brand-lockup img {
  width: 214px;
  max-height: 48px;
  object-fit: contain;
}

.brand-lockup > span {
  width: 1px;
  height: 27px;
  background: var(--line);
}

.brand-lockup strong {
  overflow: hidden;
  color: #45606b;
  font-size: 12px;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.show-status {
  gap: 10px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.show-status button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.show-status button:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.live-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 104, 1, 0.45);
  animation: livePulse 1.8s ease-out infinite;
}

.ribbon-title .live-dot {
  background: var(--active);
  animation-name: activePulse;
}

#experience {
  position: fixed;
  inset: var(--header-height) 0 var(--ribbon-height) 0;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  padding: 38px 58px 34px;
  opacity: 0;
  pointer-events: none;
}

.scene.is-active {
  display: grid;
  opacity: 1;
  pointer-events: auto;
  animation: sceneReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  width: 36px;
  height: 4px;
  content: "";
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange) 0 42%, var(--teal) 42% 100%);
}

.eyebrow span {
  font-size: 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 18px;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

h1 {
  font-size: clamp(52px, 4.4vw, 84px);
}

h2 {
  font-size: clamp(48px, 4vw, 76px);
}

h1 em,
h2 em {
  color: var(--orange);
  font-style: normal;
}

.lead,
.scene-title > p:last-child {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.25vw, 24px);
  line-height: 1.4;
}

/* Scene 1 — Postagem */
.scene-post {
  grid-template-columns: minmax(420px, 0.84fr) minmax(620px, 1.23fr) minmax(260px, 0.52fr);
  align-items: center;
  gap: 36px;
  background:
    radial-gradient(circle at 82% 18%, rgba(130, 71, 229, 0.15), transparent 29%),
    radial-gradient(circle at 8% 90%, rgba(255, 104, 1, 0.16), transparent 28%),
    linear-gradient(115deg, #faffff 0%, #e6faf9 51%, #fff6ee 100%);
}

.post-intro {
  position: relative;
  z-index: 3;
  align-self: center;
}

.post-intro .lead {
  max-width: 460px;
  margin-bottom: 30px;
}

.choice-prompt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 470px;
}

.choice-prompt > span {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.choice-prompt button {
  min-height: 52px;
  border: 2px solid rgba(8, 125, 134, 0.23);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: transform 0.25s ease, background 0.25s ease;
}

.choice-prompt button:hover,
.choice-prompt button.is-selected {
  transform: translateY(-3px);
}

.choice-prompt .choice-primary,
.choice-prompt button.is-selected {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.social-post {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 780px;
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(21, 91, 104, 0.15);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 34px 80px rgba(10, 66, 78, 0.22);
  animation: postFloat 7s ease-in-out infinite;
}

.social-post > header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 13px 20px;
}

.post-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--teal), #0d7b85);
  color: #fff;
  font-weight: 950;
}

.social-post header strong,
.social-post header small {
  display: block;
}

.social-post header strong {
  font-size: 17px;
}

.social-post header small {
  margin-top: 3px;
  color: #72868d;
  font-size: 12px;
}

.fiction-badge {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--orange-pale);
  color: var(--orange);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.post-media {
  position: relative;
  height: clamp(330px, 39vh, 470px);
  overflow: hidden;
  background: #0d5364;
}

.post-media img {
  width: 112%;
  height: 112%;
  object-fit: cover;
  transform-origin: center;
  animation: mediaPan 12s ease-in-out infinite alternate;
}

.media-stamp {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.91);
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 26px rgba(9, 47, 57, 0.24);
}

.media-pulse {
  position: absolute;
  right: 31%;
  top: 46%;
  width: 20px;
  height: 20px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 104, 1, 0.7);
  animation: mapPing 2.2s ease-out infinite;
}

.post-content {
  padding: 18px 22px 20px;
}

.post-content p {
  margin-bottom: 14px;
  color: #294954;
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.38;
}

.post-reactions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: #61777f;
  font-size: 12px;
  font-weight: 800;
}

.post-reactions span {
  animation: reactionBounce 4.8s ease-in-out infinite;
}

.post-reactions span:nth-child(2) { animation-delay: 0.6s; }
.post-reactions span:nth-child(3) { animation-delay: 1.2s; }

.first-block {
  position: relative;
  z-index: 3;
  align-self: end;
  margin-bottom: 64px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(130, 71, 229, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  animation: firstBlockGlow 5s ease-in-out infinite;
}

.first-block > span,
.first-block strong,
.first-block code {
  display: block;
}

.first-block > span {
  margin: 18px 0 9px;
  color: var(--purple);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.first-block strong {
  font-size: clamp(20px, 1.55vw, 29px);
  line-height: 1.08;
}

.first-block code {
  margin-top: 16px;
  padding: 11px;
  border-radius: 10px;
  background: #f3eefc;
  color: #6e42ba;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1.4;
}

.block-cube {
  position: relative;
  width: 64px;
  height: 58px;
  animation: cubeTurn 7s linear infinite;
}

.block-cube i {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid var(--purple);
  border-radius: 8px;
  background: rgba(130, 71, 229, 0.08);
  transform: rotate(30deg) skew(-4deg);
}

.block-cube i:nth-child(2) { left: 14px; top: 8px; border-color: var(--orange); }
.block-cube i:nth-child(3) { left: 27px; top: 16px; border-color: var(--teal); }

.kinetic-sun {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.sun-a {
  right: -110px;
  top: -190px;
  width: 540px;
  height: 540px;
  border: 2px dashed rgba(130, 71, 229, 0.21);
  animation: slowSpin 34s linear infinite;
}

.sun-b {
  left: 36%;
  bottom: -260px;
  width: 460px;
  height: 460px;
  border: 2px dashed rgba(255, 104, 1, 0.22);
  animation: slowSpin 28s linear infinite reverse;
}

/* Shared title */
.scene-title {
  position: relative;
  z-index: 4;
}

/* Scene 2 — Check */
.scene-check {
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  background:
    radial-gradient(circle at 98% 100%, rgba(255, 104, 1, 0.14), transparent 33%),
    linear-gradient(125deg, #fff 0%, #e9f9fb 48%, #f8f4ff 100%);
}

.scene-check .scene-title {
  display: grid;
  grid-template-columns: minmax(500px, 0.9fr) 1.1fr;
  column-gap: 36px;
  align-items: end;
}

.scene-check .scene-title .eyebrow {
  grid-column: 1 / -1;
}

.scene-check .scene-title h2 {
  margin-bottom: 0;
  font-size: clamp(46px, 3.5vw, 68px);
}

.scene-check .scene-title > p:last-child {
  align-self: end;
  margin-bottom: 4px;
}

.check-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(280px, 0.52fr) minmax(260px, 0.42fr) minmax(660px, 1.15fr);
  gap: 24px;
  align-items: center;
  min-height: 0;
}

.case-mini {
  overflow: hidden;
  border: 1px solid rgba(8, 125, 134, 0.19);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: postFloat 7.5s ease-in-out infinite reverse;
}

.case-mini img {
  width: 100%;
  height: clamp(170px, 21vh, 250px);
  display: block;
  object-fit: cover;
}

.case-mini span,
.case-mini strong,
.case-mini small {
  display: block;
  margin-inline: 20px;
}

.case-mini span {
  margin-top: 18px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.case-mini strong {
  margin-top: 8px;
  font-size: clamp(20px, 1.45vw, 27px);
  line-height: 1.1;
}

.case-mini small {
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.evidence-flight {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.evidence-card {
  position: absolute;
  left: 0;
  right: 0;
  min-height: 105px;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 14px 17px;
  border: 1px solid rgba(8, 125, 134, 0.18);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 38px rgba(21, 72, 84, 0.12);
  animation: evidenceDrift 6s ease-in-out infinite;
}

.evidence-card b {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--teal-pale);
  color: var(--teal-dark);
}

.evidence-card span {
  color: var(--orange);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.evidence-card strong {
  font-size: 15px;
  line-height: 1.2;
}

.evidence-one { top: 2%; }
.evidence-two { top: 35%; animation-delay: 0.6s; }
.evidence-three { top: 68%; animation-delay: 1.2s; }

.evidence-arrow {
  position: absolute;
  right: -32px;
  top: 48%;
  color: var(--orange);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.18em;
  animation: arrowBlink 1.6s steps(2) infinite;
}

.real-screen {
  overflow: hidden;
  border: 1px solid rgba(20, 74, 86, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.screen-chrome {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfe;
  color: #587078;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.screen-chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.screen-chrome i:nth-child(2) { background: #ffb122; }
.screen-chrome i:nth-child(3) { background: var(--teal); }

.screen-chrome span {
  margin-left: 5px;
}

.evaluation-screen {
  position: relative;
  height: min(59vh, 610px);
  min-height: 430px;
}

.evaluation-screen > img {
  width: 100%;
  height: calc(100% - 44px);
  display: block;
  object-fit: cover;
  object-position: left top;
  transform-origin: 32% 34%;
  animation: screenBreath 8s ease-in-out infinite alternate;
}

.screen-cursor {
  position: absolute;
  left: 27%;
  top: 54%;
  width: 27px;
  height: 27px;
  border: 4px solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 104, 1, 0.48);
  animation: cursorTour 9s ease-in-out infinite, mapPing 2.2s ease-out infinite;
}

.screen-cursor span {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 13px solid var(--orange);
  border-right: 8px solid transparent;
}

.check-takeaway {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 10px 22px;
  border: 1px solid rgba(8, 125, 134, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 9px 30px rgba(21, 72, 84, 0.08);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.check-takeaway i {
  color: var(--orange);
  font-size: 20px;
  font-style: normal;
}

.check-takeaway strong {
  margin-left: 18px;
  color: var(--ink);
}

/* Scene 3 — Probit */
.scene-probit {
  grid-template-columns: 1fr 360px;
  grid-template-rows: auto 1fr;
  gap: 26px 34px;
  background:
    radial-gradient(circle at 18% 76%, rgba(255, 104, 1, 0.15), transparent 29%),
    radial-gradient(circle at 78% 24%, rgba(32, 184, 191, 0.19), transparent 34%),
    linear-gradient(135deg, #fffaf5 0%, #edfcfb 54%, #f4efff 100%);
}

.probit-title {
  grid-column: 1 / -1;
}

.probit-title h2 {
  margin-bottom: 0;
  font-size: clamp(45px, 3.55vw, 68px);
}

.probit-machine {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(380px, 0.83fr) minmax(270px, 0.53fr) minmax(300px, 0.62fr);
  align-items: center;
  gap: 40px;
  padding: 22px 26px;
  overflow: hidden;
  border: 1px solid rgba(21, 82, 95, 0.15);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}

.voter-lane {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 9px;
}

.voter-lane article {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 13px;
  border: 1px solid rgba(8, 125, 134, 0.16);
  border-left: 7px solid var(--teal);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 76, 88, 0.09);
  animation: voteFeed 6s var(--delay) ease-in-out infinite;
}

.voter-lane article:nth-child(2n) { border-left-color: var(--orange); }
.voter-lane article:nth-child(4) { border-left-color: var(--purple); }

.voter-lane span {
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.09em;
}

.voter-lane b {
  font-size: 14px;
}

.voter-lane small {
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.probit-core {
  position: relative;
  z-index: 4;
  width: min(23vw, 310px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, #eaffff 0 10%, #b9f4f4 28%, #27bbc2 68%, #087d86 100%);
  box-shadow: 0 0 0 18px rgba(32, 184, 191, 0.09), 0 28px 60px rgba(8, 125, 134, 0.28);
  animation: coreBreathe 4s ease-in-out infinite;
}

.core-orbits,
.core-orbits i {
  position: absolute;
  inset: -18px;
  border: 2px dashed rgba(8, 125, 134, 0.42);
  border-radius: 50%;
}

.core-orbits {
  animation: slowSpin 16s linear infinite;
}

.core-orbits i:nth-child(1) { inset: 18px; border-color: rgba(255, 255, 255, 0.6); animation: slowSpin 8s linear infinite reverse; }
.core-orbits i:nth-child(2) { inset: 45px; border-color: rgba(255, 104, 1, 0.55); animation: slowSpin 5s linear infinite; }
.core-orbits i:nth-child(3) { inset: 75px; border-style: solid; border-color: rgba(255, 255, 255, 0.35); }

.core-before {
  color: #073f4a;
  font-size: clamp(18px, 1.55vw, 27px);
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.58), 0 5px 18px rgba(0, 67, 75, 0.18);
  animation: beforeFade 8s ease-in-out infinite;
}

.probit-reveal {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #073f4a;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.58), 0 5px 18px rgba(0, 67, 75, 0.18);
  opacity: 0;
  animation: probitReveal 8s ease-in-out infinite;
}

.probit-reveal small {
  color: #075d67;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.probit-reveal strong {
  font-size: clamp(42px, 4vw, 68px);
  letter-spacing: -0.04em;
}

.consensus-output {
  position: relative;
  z-index: 4;
  min-height: 250px;
  display: grid;
  align-content: center;
  padding: 28px;
  overflow: hidden;
  border: 2px solid var(--orange);
  border-radius: 26px;
  background: linear-gradient(145deg, #fff 0%, #fff4e9 100%);
  box-shadow: 0 22px 55px rgba(255, 104, 1, 0.18);
}

.consensus-output > span {
  position: relative;
  z-index: 2;
  color: var(--orange);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.consensus-output > strong {
  position: relative;
  z-index: 2;
  margin-top: 15px;
  font-size: clamp(31px, 2.4vw, 47px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.consensus-output p {
  position: relative;
  z-index: 2;
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.35;
}

.result-orbit {
  position: absolute;
  right: -70px;
  top: -80px;
  width: 230px;
  height: 230px;
  border: 32px solid rgba(255, 104, 1, 0.09);
  border-radius: 50%;
  animation: resultOrbit 5s ease-in-out infinite;
}

.data-stream {
  position: absolute;
  z-index: 2;
  top: 50%;
  height: 8px;
  border-radius: 99px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 14px, transparent 14px 26px);
  background-size: 52px 100%;
  animation: streamMove 1.1s linear infinite;
}

.stream-a { left: 32%; width: 20%; }
.stream-b { left: 60%; width: 17%; background-image: repeating-linear-gradient(90deg, var(--orange) 0 14px, transparent 14px 26px); }

.probit-explainer {
  align-self: center;
  padding: 30px 27px;
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  animation: explainerTilt 6s ease-in-out infinite;
}

.probit-explainer > b {
  color: #78eff2;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.probit-explainer p {
  margin: 18px 0 16px;
  font-size: clamp(20px, 1.55vw, 28px);
  line-height: 1.16;
}

.probit-explainer p strong {
  color: #ff9b57;
}

.probit-explainer small {
  color: #bcd0d6;
  line-height: 1.4;
}

/* Scene 4 — Platform */
.scene-platform {
  grid-template-columns: minmax(390px, 0.52fr) minmax(900px, 1.48fr);
  gap: 44px;
  align-items: stretch;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 104, 1, 0.17), transparent 27%),
    radial-gradient(circle at 100% 90%, rgba(130, 71, 229, 0.16), transparent 32%),
    linear-gradient(130deg, #fffaf5, #effcfc 54%, #f7f2ff);
}

.platform-title {
  align-self: center;
}

.platform-title h2 {
  font-size: clamp(50px, 3.8vw, 74px);
}

.platform-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: 60px 1fr;
  gap: 18px;
  align-self: stretch;
}

.platform-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 70, 82, 0.08);
}

.platform-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: #61757d;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  transition: background 0.25s ease, color 0.25s ease;
}

.platform-tabs button:last-child { border-right: 0; }

.platform-tabs button b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf2f3;
}

.platform-tabs button.is-active {
  background: var(--teal-pale);
  color: var(--teal-dark);
}

.platform-tabs button.is-active b {
  background: var(--teal);
  color: #fff;
  animation: tabPulse 1.7s ease-in-out infinite;
}

.platform-screen {
  position: relative;
  min-height: 0;
}

.platform-image-window {
  position: relative;
  height: calc(100% - 44px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(32, 184, 191, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 184, 191, 0.04) 1px, transparent 1px),
    #f7f8fb;
  background-size: 34px 34px;
}

.platform-image-window img {
  max-width: 94%;
  max-height: 91%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(18, 59, 70, 0.16));
  animation: platformPan 9s ease-in-out infinite alternate;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.platform-image-window img.is-switching {
  opacity: 0;
  transform: scale(0.94) translateY(12px);
}

.platform-stage[data-active-product="post"] .platform-image-window img { width: 95%; }
.platform-stage[data-active-product="register"] .platform-image-window img { height: 92%; width: auto; }
.platform-stage[data-active-product="evaluation"] .platform-image-window img { width: 91%; }
.platform-stage[data-active-product="cycles"] .platform-image-window img { width: 94%; }
.platform-stage[data-active-product="reward"] .platform-image-window img { width: 94%; }

.scan-line {
  position: absolute;
  left: 3%;
  right: 3%;
  top: -4px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--teal), transparent);
  box-shadow: 0 0 24px rgba(32, 184, 191, 0.58);
  animation: scanScreen 4.8s ease-in-out infinite;
}

.platform-copy {
  display: grid;
  align-content: center;
  padding: 26px;
  border: 1px solid rgba(20, 75, 88, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.platform-copy > span {
  color: var(--orange);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.platform-copy h3 {
  margin: 15px 0 13px;
  font-size: clamp(26px, 2vw, 39px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.platform-copy > p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.42;
}

.platform-ledger {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ink), #0c6a73);
  color: #fff;
}

.platform-ledger b,
.platform-ledger span {
  display: block;
}

.platform-ledger b {
  margin-bottom: 7px;
  color: #8cf3f5;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.platform-ledger span {
  font-size: 13px;
  line-height: 1.35;
}

/* Scene 5 — Blockchain */
.scene-blockchain {
  grid-template-columns: minmax(430px, 0.65fr) minmax(880px, 1.35fr);
  gap: 44px;
  align-items: center;
  background: linear-gradient(120deg, #fff 0%, #ecfcfb 46%, #fff5ec 73%, #f4efff 100%);
}

.hybrid-color-field {
  position: absolute;
  right: -7vw;
  top: -18vh;
  width: 72vw;
  height: 120vh;
  border-radius: 45%;
  background:
    radial-gradient(circle at 28% 40%, rgba(32, 184, 191, 0.32), transparent 28%),
    radial-gradient(circle at 64% 36%, rgba(130, 71, 229, 0.24), transparent 28%),
    radial-gradient(circle at 48% 72%, rgba(255, 104, 1, 0.27), transparent 30%);
  filter: blur(12px);
  animation: colorField 14s ease-in-out infinite alternate;
}

.blockchain-title {
  z-index: 4;
}

.blockchain-title h2 {
  font-size: clamp(52px, 4.3vw, 82px);
}

.blockchain-title > p:last-child {
  max-width: 540px;
  font-size: clamp(18px, 1.35vw, 25px);
}

.hybrid-flow {
  position: relative;
  z-index: 4;
  min-height: 670px;
  display: grid;
  grid-template-columns: repeat(3, minmax(145px, 1fr));
  grid-template-rows: 200px 1fr;
  gap: 26px 22px;
  align-content: center;
  padding: 28px;
  border: 1px solid rgba(19, 75, 87, 0.14);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.flow-line {
  position: absolute;
  z-index: 1;
  left: 10%;
  right: 10%;
  top: 124px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), var(--teal), var(--purple));
}

.flow-line i {
  position: absolute;
  top: -8px;
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 6px 16px rgba(22, 52, 63, 0.22);
  animation: packetTravel 4.8s linear infinite;
}

.flow-line i:nth-child(2) { animation-delay: -1.2s; background: #ffb229; }
.flow-line i:nth-child(3) { animation-delay: -2.4s; background: var(--teal); }
.flow-line i:nth-child(4) { animation-delay: -3.6s; background: var(--purple); }

.flow-node {
  position: relative;
  z-index: 3;
  align-self: center;
  display: grid;
  justify-items: center;
  text-align: center;
}

.flow-node b {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border: 8px solid #fff;
  border-radius: 22px;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 32px rgba(255, 104, 1, 0.25);
  font-size: 28px;
  animation: nodeBounce 3.8s ease-in-out infinite;
}

.evidence-node b { background: var(--teal); animation-delay: 0.5s; }
.probit-node b { background: var(--purple); animation-delay: 1s; }

.flow-node span {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.flow-node small {
  margin-top: 5px;
  color: var(--ink-soft);
}

.network-node {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 20px;
  min-height: 245px;
  padding: 25px;
  border: 2px solid var(--teal);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(20, 83, 96, 0.16);
  animation: networkFloat 6s ease-in-out infinite;
}

.network-node img {
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.network-node small,
.network-node strong,
.network-node p {
  display: block;
}

.network-node small {
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.network-node strong {
  margin-top: 6px;
  font-size: clamp(25px, 1.8vw, 36px);
  letter-spacing: -0.04em;
}

.network-node p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.38;
}

.fabric-node {
  grid-column: 1 / span 2;
}

.polygon-node {
  grid-column: 2 / span 2;
  border-color: var(--purple);
  animation-delay: 0.9s;
}

.polygon-node small { color: var(--purple); }

.hybrid-proof-stack {
  position: absolute;
  z-index: 2;
  right: 36px;
  bottom: 14px;
  width: 420px;
  height: 155px;
  opacity: 0.2;
  transform: rotate(-4deg);
}

.hybrid-proof-stack img {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(22, 52, 63, 0.18);
}

.hybrid-proof-stack img:nth-child(2) {
  right: 90px;
  bottom: 55px;
  animation: proofStack 7s ease-in-out infinite;
}

.final-call {
  position: absolute;
  z-index: 5;
  left: 58px;
  bottom: 42px;
  padding: 13px 17px;
  border: 2px solid var(--orange);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  animation: finalCall 2.5s ease-in-out infinite;
}

.hybrid-guardrail {
  position: absolute;
  z-index: 5;
  right: 62px;
  bottom: 24px;
  max-width: 560px;
  margin: 0;
  color: #61777f;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

/* Persistent blockchain ribbon */
.blockchain-ribbon {
  position: fixed;
  z-index: 70;
  inset: auto 0 0 0;
  height: var(--ribbon-height);
  display: grid;
  grid-template-columns: 190px 1fr auto 64px;
  grid-template-rows: 1fr 5px;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-top: 1px solid rgba(8, 125, 134, 0.23);
  background: linear-gradient(90deg, #103842, #0a6972 45%, #3e256f 100%);
  color: #fff;
  box-shadow: 0 -12px 40px rgba(21, 52, 63, 0.18);
}

.ribbon-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.chain-window {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.chain-loop {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 11px;
  animation: chainMarquee 26s linear infinite;
}

.chain-loop span {
  min-width: 104px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-align: center;
}

.chain-loop i {
  position: relative;
  width: 26px;
  height: 3px;
  background: var(--orange);
}

.chain-loop i::after {
  position: absolute;
  right: -3px;
  top: -3px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: #ffb36e;
}

.scene-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scene-nav button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: width 0.25s ease, border-radius 0.25s ease, background 0.25s ease;
}

.scene-nav button.is-active {
  width: 34px;
  border-color: var(--orange);
  border-radius: 99px;
  background: var(--orange);
}

.stage-counter {
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.reading-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.17);
}

#readingProgressFill {
  width: 0;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--orange), #ffbb63, var(--teal));
}

body.is-autoplay #readingProgressFill {
  animation: readingProgress var(--scene-duration) linear forwards;
}

.edge-button {
  position: fixed;
  z-index: 75;
  top: 50%;
  width: 50px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21, 72, 84, 0.16);
  background: rgba(255, 255, 255, 0.82);
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 40px;
  box-shadow: 0 12px 30px rgba(20, 66, 78, 0.12);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.edge-previous {
  left: 0;
  border-radius: 0 20px 20px 0;
}

.edge-next {
  right: 0;
  border-radius: 20px 0 0 20px;
}

.edge-button:hover {
  background: var(--orange);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.capture-mode .brand-bar button,
body.capture-mode .edge-button {
  display: none;
}

body.capture-mode .show-status {
  display: none;
}

body.static-capture .core-before {
  opacity: 0 !important;
}

body.static-capture .probit-reveal {
  opacity: 1 !important;
  transform: scale(1) !important;
}

body.still-mode *,
body.still-mode *::before,
body.still-mode *::after {
  animation-play-state: paused !important;
}

/* Motion language */
@keyframes sceneReveal {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 104, 1, 0.52); }
  70% { box-shadow: 0 0 0 11px rgba(255, 104, 1, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 104, 1, 0); }
}

@keyframes activePulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 210, 127, 0.58); }
  70% { box-shadow: 0 0 0 11px rgba(55, 210, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 210, 127, 0); }
}

@keyframes postFloat {
  0%, 100% { transform: translateY(0) rotate(-0.35deg); }
  50% { transform: translateY(-12px) rotate(0.35deg); }
}

@keyframes mediaPan {
  0% { transform: translate3d(-3%, -2%, 0) scale(1.02); }
  100% { transform: translate3d(1%, 1%, 0) scale(1.1); }
}

@keyframes mapPing {
  0% { box-shadow: 0 0 0 0 rgba(255, 104, 1, 0.65); }
  70% { box-shadow: 0 0 0 30px rgba(255, 104, 1, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 104, 1, 0); }
}

@keyframes reactionBounce {
  0%, 75%, 100% { transform: translateY(0); color: #61777f; }
  82% { transform: translateY(-5px); color: var(--orange); }
}

@keyframes firstBlockGlow {
  0%, 100% { border-color: rgba(130, 71, 229, 0.2); transform: translateY(0); }
  50% { border-color: rgba(32, 184, 191, 0.6); transform: translateY(-8px); }
}

@keyframes cubeTurn {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(7deg) scale(1.07); }
}

@keyframes slowSpin { to { transform: rotate(360deg); } }

@keyframes evidenceDrift {
  0%, 100% { transform: translateX(-8px) rotate(-0.6deg); }
  50% { transform: translateX(10px) rotate(0.6deg); }
}

@keyframes arrowBlink {
  0%, 100% { opacity: 0.25; transform: translateX(-5px); }
  50% { opacity: 1; transform: translateX(5px); }
}

@keyframes screenBreath {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(2.2%, 1.5%, 0); }
}

@keyframes cursorTour {
  0%, 100% { left: 18%; top: 38%; }
  28% { left: 22%; top: 50%; }
  56% { left: 35%; top: 70%; }
  82% { left: 18%; top: 61%; }
}

@keyframes voteFeed {
  0%, 100% { transform: translateX(0); }
  42% { transform: translateX(8px); }
  55% { transform: translateX(18px); box-shadow: 0 12px 32px rgba(32, 184, 191, 0.22); }
}

@keyframes coreBreathe {
  0%, 100% { transform: scale(0.96); }
  50% { transform: scale(1.025); }
}

@keyframes beforeFade {
  0%, 34%, 100% { opacity: 1; transform: scale(1); }
  46%, 83% { opacity: 0; transform: scale(0.72); }
}

@keyframes probitReveal {
  0%, 35%, 92%, 100% { opacity: 0; transform: scale(0.75); }
  48%, 82% { opacity: 1; transform: scale(1); }
}

@keyframes resultOrbit {
  0%, 100% { transform: scale(0.9) rotate(0); }
  50% { transform: scale(1.08) rotate(18deg); }
}

@keyframes streamMove { to { background-position: 52px 0; } }

@keyframes explainerTilt {
  0%, 100% { transform: rotate(-0.5deg) translateY(0); }
  50% { transform: rotate(0.5deg) translateY(-8px); }
}

@keyframes tabPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(32, 184, 191, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(32, 184, 191, 0); }
}

@keyframes platformPan {
  from { transform: translate3d(-1.2%, 1%, 0) scale(0.985); }
  to { transform: translate3d(1.2%, -1%, 0) scale(1.025); }
}

@keyframes scanScreen {
  0%, 100% { top: 0; opacity: 0; }
  8% { opacity: 1; }
  90% { opacity: 1; }
  98% { top: calc(100% - 5px); opacity: 0; }
}

@keyframes colorField {
  from { transform: translate3d(-3%, -2%, 0) rotate(-4deg) scale(0.96); }
  to { transform: translate3d(3%, 2%, 0) rotate(4deg) scale(1.04); }
}

@keyframes packetTravel {
  from { left: -2%; }
  to { left: calc(100% - 22px); }
}

@keyframes nodeBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes networkFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes proofStack {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-9px) rotate(-1deg); }
}

@keyframes finalCall {
  0%, 100% { transform: translateX(0); box-shadow: 0 0 0 0 rgba(255, 104, 1, 0.25); }
  50% { transform: translateX(7px); box-shadow: 0 0 0 8px rgba(255, 104, 1, 0); }
}

@keyframes chainMarquee { to { transform: translateX(-50%); } }

@keyframes readingProgress { from { width: 0; } to { width: 100%; } }

@media (max-width: 1500px) {
  :root { --header-height: 68px; --ribbon-height: 74px; }
  .brand-bar { padding-inline: 28px; }
  .brand-lockup img { width: 180px; }
  .scene { padding: 28px 44px 26px; }
  .scene-post { grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.2fr) minmax(230px, 0.5fr); gap: 24px; }
  .post-media { height: clamp(280px, 38vh, 390px); }
  .first-block { margin-bottom: 42px; padding: 22px 19px 19px; }
  .check-layout { grid-template-columns: minmax(240px, 0.5fr) minmax(220px, 0.4fr) minmax(560px, 1.1fr); gap: 18px; }
  .evidence-flight { min-height: 340px; }
  .evidence-card { min-height: 88px; }
  .evaluation-screen { min-height: 350px; }
  .scene-probit { grid-template-columns: 1fr 290px; }
  .probit-machine { grid-template-columns: minmax(320px, 0.82fr) minmax(220px, 0.5fr) minmax(260px, 0.58fr); gap: 26px; }
  .voter-lane article { grid-template-columns: 78px 1fr; }
  .voter-lane article small { display: none; }
  .platform-stage { grid-template-columns: 1fr 260px; }
  .platform-copy { padding: 20px; }
  .hybrid-flow { min-height: 560px; }
  .network-node { min-height: 195px; grid-template-columns: 78px 1fr; padding: 19px; }
  .network-node img { width: 74px; height: 74px; }
  .final-call { left: 44px; bottom: 28px; }
}

@media (max-width: 1120px) {
  .brand-lockup strong { display: none; }
  .brand-lockup > span { display: none; }
  .scene-post { grid-template-columns: 0.78fr 1.22fr; }
  .first-block { display: none; }
  .check-layout { grid-template-columns: 0.45fr 1fr; }
  .evidence-flight { display: none; }
  .scene-probit { grid-template-columns: 1fr; }
  .probit-explainer { display: none; }
  .scene-platform { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .platform-title { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
  .platform-title .eyebrow { grid-column: 1 / -1; }
  .platform-title h2 { margin-bottom: 0; }
  .scene-blockchain { grid-template-columns: 0.55fr 1.45fr; gap: 24px; }
  .hybrid-flow { padding: 20px; }
  .network-node { grid-template-columns: 64px 1fr; }
  .network-node img { width: 60px; height: 60px; }
  .blockchain-ribbon { grid-template-columns: 150px 1fr auto 52px; padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
