:root {
  --paper: #f9fafc;
  --paper-bright: #ffffff;
  --ink: #232526;
  --muted: #777e90;
  --line: #cfcfda;
  --soft-line: #e4e4e4;
  --primary: #d81b5c;
  --primary-soft: #f7d1de;
  --cyan: #1fa4bd;
  --cyan-soft: #cceefa;
  --mint: #72c0a2;
  --mint-soft: #c7e6da;
  --warm: #ffdab0;
  --blue: #2271b1;
  --green: #23a455;
  --amber: #dc9222;
  --danger: #a63d17;
  --sans: "Cabin", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --heading: var(--mono);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.eyebrow,
.kicker,
.status-pill,
.scene-number,
.view-no,
.meta-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.loading-state {
  display: grid;
  min-height: 50vh;
  place-items: center;
  color: var(--muted);
}

.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;
}

/* Hub */

.hub-shell {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 64px;
}

.hub-brandbar {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--soft-line);
}

.hub-brandbar .eyebrow {
  max-width: 48ch;
  margin: 0;
  text-align: right;
}

.hub-shell .eyebrow {
  margin: 0 0 20px;
  color: var(--primary);
}

.hub-shell h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hub-intro {
  max-width: 58ch;
  margin: 32px 0 56px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.view-links {
  border-top: 1px solid var(--line);
}

.view-link {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 28px;
  align-items: baseline;
  min-height: 112px;
  padding: 34px 12px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.view-link:hover {
  background: var(--primary-soft);
}

.view-link:hover strong {
  color: var(--primary);
}

.view-link strong {
  font-family: var(--heading);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}

.view-no {
  color: var(--cyan);
}

.view-link > span:last-child {
  color: var(--muted);
}

.mock-note {
  max-width: 650px;
  margin-top: 56px;
  padding-left: 22px;
  border-left: 5px solid var(--primary);
}

.mock-note p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* Shared status */

.status-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill.mock {
  color: var(--amber);
}

.status-pill.live {
  color: var(--green);
}

.status-pill.error {
  color: var(--danger);
}

.btn {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper-bright);
}

.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--paper-bright);
}

.btn-primary:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-quiet {
  border-color: var(--line);
  color: var(--muted);
}

/* Presenter */

.presenter-page {
  overflow: hidden;
  background: var(--paper);
}

.presenter-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
}

.presenter-topbar,
.presenter-nav {
  display: flex;
  z-index: 2;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(24px, 4vw, 64px);
}

.presenter-topbar {
  border-bottom: 1px solid var(--line);
}

.presenter-brand {
  display: flex;
  gap: 20px;
  align-items: center;
}

.presenter-brand .kicker {
  max-width: 32ch;
}

.presenter-meta {
  display: flex;
  gap: 14px;
  align-items: center;
}

.response-count {
  font-family: var(--mono);
  font-size: 0.85rem;
}

.presenter-stage {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: clamp(32px, 5vw, 76px) clamp(32px, 7vw, 112px);
}

.scene {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
  width: 100%;
  max-width: 1500px;
  margin: auto;
}

.scene.is-centered {
  grid-template-columns: minmax(0, 1100px);
  justify-content: center;
  text-align: center;
}

.scene-copy {
  min-width: 0;
}

.scene-number {
  display: block;
  margin-bottom: 24px;
  color: var(--primary);
}

.scene h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 8rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.scene.is-centered h1 {
  max-width: none;
}

.scene-body,
.scene-prompt {
  max-width: 35ch;
  margin: 30px 0 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.5vw, 2.35rem);
  line-height: 1.25;
}

.scene.is-centered .scene-body,
.scene.is-centered .scene-prompt {
  margin-right: auto;
  margin-left: auto;
}

.placeholder-copy {
  display: inline-block;
  padding: 10px 13px;
  border: 1px dashed var(--cyan);
  background: var(--cyan-soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  letter-spacing: 0.06em;
}

.scene-aside {
  display: grid;
  gap: 22px;
  align-content: center;
  justify-items: center;
}

.qr-card {
  width: min(100%, 340px);
  padding: 22px;
  border: 2px solid var(--primary);
  border-radius: 15px;
  background: var(--paper-bright);
  text-align: center;
}

.qr-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.short-url {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1vw, 0.9rem);
}

.interaction-status {
  display: grid;
  min-width: 250px;
  padding: 24px;
  border-top: 5px solid var(--primary);
  border-radius: 0 0 15px 15px;
  background: var(--paper-bright);
}

.interaction-status strong {
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.interaction-status span {
  margin-top: 8px;
  color: var(--muted);
}

.countdown {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.result-panel {
  display: grid;
  gap: 18px;
  width: 100%;
}

.result-row {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(120px, 1fr) 70px;
  gap: 16px;
  align-items: center;
}

.result-label,
.result-value {
  font-family: var(--mono);
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
}

.result-value {
  text-align: right;
}

.result-track {
  height: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-line);
}

.result-bar {
  height: 100%;
  min-width: 2px;
  background: var(--primary);
  transition: width 260ms ease;
}

.result-row:nth-child(2) .result-bar {
  background: var(--cyan);
}

.result-row:nth-child(3) .result-bar {
  background: var(--mint);
}

.result-row:nth-child(4) .result-bar {
  background: #ffc37d;
}

.result-row:nth-child(5) .result-bar {
  background: var(--blue);
}

.prompts-list {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: prompt;
}

.prompts-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
}

.prompts-list li::before {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.8rem;
  counter-increment: prompt;
  content: "0" counter(prompt);
}

.mic-timer {
  display: grid;
  width: min(100%, 360px);
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid var(--primary);
  border-radius: 50%;
  background: var(--paper-bright);
  font-family: var(--mono);
  font-size: clamp(4rem, 9vw, 8rem);
  font-variant-numeric: tabular-nums;
}

.presenter-nav {
  gap: 24px;
  border-top: 1px solid var(--line);
}

.presenter-nav-copy {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presenter-nav-buttons {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.presenter-nav .btn {
  min-width: 54px;
  padding: 10px;
  font-size: 1.3rem;
}

.error-banner {
  position: absolute;
  right: 24px;
  bottom: 90px;
  left: 24px;
  z-index: 5;
  padding: 14px 18px;
  border: 1px solid var(--danger);
  background: var(--primary-soft);
  color: var(--danger);
}

/* Participant */

.participant-page {
  background: var(--paper-bright);
}

.participant-shell {
  display: grid;
  min-height: 100vh;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.participant-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 600px);
  min-height: calc(100vh - 52px);
  margin: auto;
}

.participant-brand-lockup {
  display: flex;
  gap: 14px;
  align-items: center;
}

.participant-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--soft-line);
}

.participant-brand {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.participant-content {
  display: grid;
  align-content: center;
  padding: 36px 0;
}

.participant-content h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.participant-question {
  margin: 24px 0 0;
  font-size: clamp(1.2rem, 5vw, 1.65rem);
  line-height: 1.3;
}

.wait-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 26px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 1.4rem;
}

.choice-grid,
.scale-grid {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.choice-selection-count {
  margin: 26px 0 -16px;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.scale-grid {
  grid-template-columns: repeat(5, 1fr);
}

.choice-button,
.scale-button {
  min-height: 58px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.scale-button {
  min-height: 62px;
  font-family: var(--mono);
  font-size: 1.15rem;
}

.choice-button[aria-pressed="true"],
.scale-button[aria-pressed="true"],
.choice-button:hover:not(:disabled),
.scale-button:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--paper-bright);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.open-response {
  width: 100%;
  min-height: 150px;
  margin-top: 28px;
  padding: 16px;
  resize: vertical;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-bright);
  color: var(--ink);
  font-size: 1.05rem;
}

.other-choice-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.other-choice-field[hidden] {
  display: none;
}

.other-choice-field label {
  font-weight: 700;
}

.other-choice-text {
  width: 100%;
  min-height: 94px;
  padding: 13px 15px;
  resize: vertical;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-bright);
  color: var(--ink);
  font-size: 1rem;
}

.other-choice-field .char-count {
  justify-self: end;
}

.form-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.char-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.submit-button {
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--paper-bright);
  font-weight: 700;
}

.submit-button:hover:not(:disabled) {
  background: var(--ink);
}

.submission-note,
.participant-error {
  margin-top: 18px;
  padding: 13px 15px;
  border-left: 4px solid var(--green);
  background: var(--mint-soft);
  color: var(--ink);
}

.participant-error {
  border-color: var(--danger);
  background: var(--primary-soft);
  color: var(--danger);
}

.participant-foot {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

/* Control */

.control-page {
  background: var(--paper);
}

.control-shell {
  width: min(100%, 960px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.control-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.control-brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.control-header h1 {
  margin: 3px 0 0;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  letter-spacing: -0.035em;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
}

.control-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper-bright);
}

.control-panel h2 {
  margin: 0 0 16px;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.current-scene {
  min-height: 180px;
  padding: 24px;
  border-radius: 15px;
  background: var(--ink);
  color: var(--paper-bright);
}

.current-scene .scene-number {
  margin-bottom: 18px;
  color: var(--primary-soft);
}

.current-scene h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.next-scene {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.control-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 16px;
  background: var(--line);
  border: 1px solid var(--line);
}

.control-stat {
  padding: 16px;
  background: var(--paper-bright);
}

.control-stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.control-stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.8rem;
}

.control-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.control-actions .btn {
  width: 100%;
  min-height: 54px;
}

.control-actions .wide {
  grid-column: 1 / -1;
}

.timer-control {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--soft-line);
}

.timer-control strong {
  font-family: var(--mono);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
}

.simulation-note {
  margin: 12px 0 0;
  color: var(--amber);
  font-size: 0.82rem;
}

.response-stream {
  display: grid;
  gap: 10px;
  max-height: 390px;
  overflow: auto;
}

.response-card {
  padding: 13px 14px;
  border: 1px solid var(--soft-line);
  border-radius: 10px;
  background: var(--paper-bright);
  overflow-wrap: anywhere;
}

.response-card.simulated {
  border-left: 4px solid var(--amber);
}

.response-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.private-other-responses {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}

.private-other-responses h3 {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.85rem;
}

.private-other-list {
  display: grid;
  gap: 7px;
  max-height: 190px;
  overflow: auto;
}

.private-other-list p {
  margin: 0;
  padding: 9px 11px;
  background: var(--paper);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.private-other-list small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.empty-copy {
  margin: 0;
  color: var(--muted);
}

.danger-zone {
  margin-top: 16px;
  border-color: var(--primary-soft);
}

.confirm-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.confirm-row input {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-bright);
}

/* Screen flow storyboard */

.flow-page {
  background: #f2f3f6;
}

.flow-shell {
  width: min(1540px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 32px;
}

.flow-header {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.flow-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.flow-heading .eyebrow {
  color: var(--primary);
}

.flow-heading h1 {
  margin: 7px 0 6px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.flow-heading p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
}

.flow-counter {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}

.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  min-height: 50px;
  align-items: center;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
}

.flow-step:last-child {
  border-right: 0;
}

.flow-step span {
  font-family: var(--mono);
  font-size: 0.7rem;
}

.flow-step.is-complete {
  color: var(--cyan);
}

.flow-step.is-active {
  background: var(--ink);
  color: var(--paper-bright);
}

.flow-board {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(240px, 0.72fr) minmax(260px, 0.78fr);
  gap: 16px;
  align-items: stretch;
}

.flow-device {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.flow-device-label {
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--paper-bright);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-device-label em {
  color: var(--muted);
  font-style: normal;
}

.projection-screen,
.phone-frame,
.control-frame {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
}

.projection-screen {
  display: grid;
  grid-template-rows: auto 1fr;
}

.projection-topline {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.projection-topline .erg-logo {
  width: 104px;
}

.projection-join,
.projection-question,
.projection-results,
.projection-data,
.projection-compare,
.projection-next {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
}

.projection-join,
.projection-results,
.projection-data,
.projection-compare {
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
}

.projection-question,
.projection-next {
  align-content: center;
}

.projection-screen h2 {
  max-width: 14ch;
  margin: 8px 0 0;
  font-size: clamp(2.1rem, 4.1vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.projection-screen p {
  max-width: 37ch;
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
}

.flow-qr {
  position: relative;
  display: grid;
  width: min(100%, 290px);
  aspect-ratio: 1;
  margin: auto;
  place-items: center;
  border: 18px solid var(--paper-bright);
  outline: 3px solid var(--primary);
  background: repeating-conic-gradient(var(--ink) 0 25%, transparent 0 50%) 0 0 / 24px 24px;
}

.flow-qr > span {
  position: absolute;
  width: 58px;
  height: 58px;
  border: 10px solid var(--ink);
  background: var(--paper-bright);
}

.flow-qr > span:nth-child(1) { top: 8px; left: 8px; }
.flow-qr > span:nth-child(2) { top: 8px; right: 8px; }
.flow-qr > span:nth-child(3) { bottom: 8px; left: 8px; }

.flow-qr small {
  position: absolute;
  right: -20px;
  bottom: -52px;
  left: -20px;
  padding: 8px;
  background: var(--paper-bright);
  font-family: var(--mono);
  font-size: 0.63rem;
  text-align: center;
}

.flow-live-dot {
  color: var(--primary);
}

.flow-live-dot::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.projection-status {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  margin-top: 34px;
}

.projection-status strong {
  color: var(--primary);
  font-family: var(--mono);
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 1;
}

.projection-status span {
  padding-bottom: 8px;
  font-family: var(--mono);
}

.flow-poll-bars {
  display: grid;
  gap: 16px;
}

.flow-poll-bars > div {
  display: grid;
  grid-template-columns: 64px 1fr 38px;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.flow-poll-bars i {
  height: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-line);
}

.flow-poll-bars b {
  display: block;
  height: 100%;
  background: var(--primary);
}

.flow-chart {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}

.flow-chart svg {
  display: block;
  width: 100%;
  height: 230px;
}

.chart-grid {
  fill: none;
  stroke: var(--soft-line);
  stroke-width: 0.6;
}

.chart-line {
  fill: none;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.flow-chart circle {
  fill: var(--paper-bright);
  stroke: var(--primary);
  stroke-width: 2;
}

.chart-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.chart-values div {
  display: grid;
  gap: 3px;
}

.chart-values strong {
  font-family: var(--mono);
  font-size: 0.92rem;
}

.chart-values span {
  color: var(--muted);
  font-size: 0.7rem;
}

.compare-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.compare-values > div {
  display: grid;
  min-height: 160px;
  align-content: space-between;
  padding: 20px;
  border-top: 6px solid var(--primary);
  background: var(--primary-soft);
}

.compare-values > div:nth-child(2) {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.compare-values strong {
  font-family: var(--mono);
  font-size: clamp(2rem, 3vw, 3.6rem);
}

.compare-values p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.projection-next {
  text-align: center;
}

.projection-next h2 {
  max-width: none;
}

.projection-next p {
  margin-right: auto;
  margin-left: auto;
}

.flow-next-arrow {
  color: var(--primary);
  font-size: 5rem;
  line-height: 1;
}

.phone-frame,
.control-frame {
  display: grid;
  align-content: start;
  padding: 18px;
}

.phone-frame {
  grid-template-rows: auto 1fr auto;
  border-radius: 24px;
}

.phone-status,
.phone-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.phone-status .erg-logo {
  width: 92px;
}

.phone-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.phone-content {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 24px 0;
}

.phone-content h3,
.control-frame h3 {
  margin: 7px 0 8px;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.phone-content p,
.phone-content small {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.phone-wait > span {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
}

.phone-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.phone-options button,
.phone-submit {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.phone-options .is-selected,
.phone-submit {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--paper-bright);
}

.phone-submit {
  width: 100%;
  margin: 14px 0 9px;
  border-radius: 999px;
}

.phone-content textarea {
  width: 100%;
  min-height: 126px;
  margin-top: 14px;
  padding: 12px;
  resize: none;
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 0.83rem;
}

.phone-foot {
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.control-frame {
  border-radius: 16px;
  background: var(--paper);
}

.control-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.control-mini-head i {
  padding: 5px 8px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  color: var(--amber);
  font-style: normal;
}

.control-frame > h3 {
  min-height: 62px;
  margin: 14px 0;
  padding: 16px;
  background: var(--ink);
  color: var(--paper-bright);
}

.control-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.control-kpis > div,
.control-note,
.control-timer {
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}

.control-kpis strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.control-kpis span,
.control-note span,
.control-timer span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.control-note {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.control-note.is-next {
  border-left: 4px solid var(--cyan);
}

.control-note.is-private {
  border-left: 4px solid var(--primary);
}

.control-note.is-private span {
  padding-top: 7px;
  border-top: 1px solid var(--soft-line);
}

.control-timer {
  position: relative;
  margin-bottom: 10px;
}

.control-timer strong {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 2.2rem;
}

.control-timer em {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-style: normal;
}

.control-mini-nav {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.control-mini-nav button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
}

.control-mini-nav .is-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--paper-bright);
}

.flow-footer {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
}

.flow-footer > div:first-child {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.flow-legend-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.flow-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.flow-legend-item .is-public { background: var(--cyan); }
.flow-legend-item .is-private { background: var(--primary); }

.flow-nav-buttons {
  display: flex;
  gap: 10px;
}

@media (max-width: 1180px) {
  .flow-board {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  }

  .flow-device--projection {
    grid-column: 1 / -1;
  }

  .projection-screen {
    min-height: 520px;
  }

  .phone-frame,
  .control-frame {
    min-height: 540px;
  }
}

@media (max-width: 760px) {
  .flow-shell {
    width: min(100% - 24px, 1540px);
  }

  .flow-header {
    grid-template-columns: 1fr auto;
  }

  .flow-brand {
    grid-column: 1 / -1;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-step:nth-child(2n) {
    border-right: 0;
  }

  .flow-board {
    grid-template-columns: 1fr;
  }

  .flow-device--projection {
    grid-column: auto;
  }

  .projection-screen,
  .phone-frame,
  .control-frame {
    min-height: 520px;
  }

  .projection-join,
  .projection-results,
  .projection-data,
  .projection-compare {
    grid-template-columns: 1fr;
  }

  .projection-screen h2 {
    font-size: clamp(2.2rem, 11vw, 4rem);
  }

  .flow-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .flow-nav-buttons,
  .flow-nav-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .scene {
    grid-template-columns: 1fr;
    gap: 30px;
    align-content: center;
  }

  .scene-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-card {
    width: min(260px, 100%);
  }

  .control-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .hub-shell {
    width: min(100% - 32px, 1080px);
    padding-top: 48px;
  }

  .hub-brandbar {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
  }

  .hub-brandbar .eyebrow {
    text-align: left;
  }

  .view-link {
    grid-template-columns: 52px 1fr;
    gap: 8px 14px;
  }

  .view-link > span:last-child {
    grid-column: 2;
  }

  .presenter-shell {
    min-height: 520px;
  }

  .presenter-topbar,
  .presenter-nav {
    padding: 12px 18px;
  }

  .presenter-topbar .kicker,
  .presenter-nav-copy {
    display: none;
  }

  .presenter-brand {
    gap: 12px;
  }

  .presenter-stage {
    padding: 24px;
  }

  .scene h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .scene-aside {
    grid-template-columns: 1fr;
  }

  .qr-card {
    width: min(210px, 65vw);
  }

  .interaction-status {
    width: 100%;
  }

  .prompts-list {
    gap: 5px;
    margin-top: 18px;
  }

  .prompts-list li {
    font-size: 1.1rem;
  }

  .mic-timer {
    width: min(170px, 44vw);
    font-size: 2.7rem;
  }

  .control-header {
    align-items: center;
  }

  .participant-brand-lockup,
  .control-brand {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .status-pill {
    padding: 6px 8px;
    font-size: 0.66rem;
  }

  .control-panel,
  .current-scene {
    padding: 16px;
  }

  .participant-head {
    align-items: flex-start;
  }

  .participant-brand {
    max-width: 14ch;
  }

  .control-header {
    align-items: flex-start;
  }

  .control-brand .erg-logo,
  .participant-brand-lockup .erg-logo {
    width: 92px;
  }

  .control-actions {
    grid-template-columns: 1fr;
  }

  .control-actions .wide {
    grid-column: auto;
  }
}

/* Linear opening sequence */

.presenter-progress {
  height: 6px;
  overflow: hidden;
  background: var(--soft-line);
}

.presenter-progress span {
  display: block;
  height: 100%;
  background: var(--primary);
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.presenter-stage {
  padding: clamp(24px, 3vw, 44px) clamp(32px, 6vw, 92px);
}

.cover-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr);
  gap: clamp(54px, 8vw, 140px);
  align-items: end;
  width: 100%;
  max-width: 1500px;
  height: 100%;
  max-height: 540px;
  margin: auto;
  padding: clamp(32px, 3.5vw, 52px);
  overflow: hidden;
  border-radius: 28px;
  background: var(--primary);
  color: var(--paper-bright);
  animation: sceneEnter 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cover-scene .erg-logo {
  align-self: start;
  filter: brightness(0) invert(1);
}

.cover-copy {
  position: relative;
  z-index: 1;
}

.cover-copy .scene-number {
  color: var(--primary-soft);
}

.cover-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.cover-copy p {
  display: grid;
  gap: 2px;
  margin: clamp(34px, 5vw, 64px) 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
}

.cover-copy p span {
  opacity: 0.76;
}

.cover-mark {
  position: absolute;
  top: 8%;
  right: -17%;
  width: min(36vw, 470px);
  aspect-ratio: 1;
  opacity: 0.88;
}

.cover-mark i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24%;
  height: 100%;
  background: var(--primary-soft);
  transform: translate(-50%, -50%);
}

.cover-mark i:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); }
.cover-mark i:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); }
.cover-mark i:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg); }

.question-scene {
  animation: sceneEnter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.question-scene h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 7rem);
}

.question-aside {
  width: min(100%, 380px);
  justify-self: end;
}

.qr-instruction {
  display: block;
  margin-top: 14px;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  align-items: center;
  width: 100%;
  padding: 15px 18px;
  border-left: 5px solid var(--primary);
  background: var(--paper-bright);
  box-shadow: 0 10px 30px rgb(35 37 38 / 7%);
}

.collection-strip span {
  color: var(--muted);
  font-size: 0.84rem;
}

.collection-strip span:first-child {
  color: var(--ink);
}

.collection-strip > strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--primary);
  font-size: 1.3rem;
}

.projection-scale {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 680px;
  margin-top: 46px;
}

.projection-scale i {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-soft));
}

.projection-scale span {
  display: grid;
  color: var(--muted);
  font-size: 0.86rem;
}

.projection-scale span:last-child {
  text-align: right;
}

.projection-scale b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.8rem;
}

.results-scene {
  display: grid;
  gap: clamp(24px, 4vh, 54px);
  align-content: center;
  width: 100%;
  max-width: 1540px;
  margin: auto;
  animation: sceneEnter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.results-scene > header {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
}

.results-scene h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.6rem, 4.8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.result-note {
  max-width: 72ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(0.72rem, 0.9vw, 0.9rem);
}

.results-scene > header > p {
  display: grid;
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.results-scene > header > p strong {
  color: var(--primary);
  font-family: var(--mono);
  font-size: clamp(2.6rem, 4vw, 5rem);
  line-height: 0.9;
}

.results-empty {
  min-height: 250px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
}

.bubble-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: clamp(14px, 2vw, 34px);
  align-items: end;
  min-height: 360px;
  padding: 0 1vw;
}

.bubble-item {
  display: grid;
  gap: 9px;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.result-bubble {
  position: relative;
  display: grid;
  width: min(var(--bubble-size), 18vw);
  aspect-ratio: 1;
  place-content: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--paper-bright);
  animation: bubbleGrow 760ms var(--bubble-delay) cubic-bezier(0.16, 1, 0.3, 1) both;
}

.result-bubble::after {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23fff'%3E%3Crect x='10' y='3' width='4' height='18'/%3E%3Crect x='10' y='3' width='4' height='18' transform='rotate(45 12 12)'/%3E%3Crect x='10' y='3' width='4' height='18' transform='rotate(90 12 12)'/%3E%3Crect x='10' y='3' width='4' height='18' transform='rotate(135 12 12)'/%3E%3C/g%3E%3C/svg%3E");
  background-position: 2px 2px;
  background-size: 22px 22px;
  content: "";
}

.result-bubble strong,
.result-bubble span {
  position: relative;
  z-index: 1;
}

.result-bubble strong {
  font-family: var(--mono);
  font-size: clamp(1.7rem, 3.2vw, 4rem);
  line-height: 1;
}

.result-bubble span {
  margin-top: 6px;
  font-size: clamp(0.72rem, 1vw, 0.95rem);
}

.bubble-tone-1 { background: #89153f; }
.bubble-tone-2 { background: var(--primary); }
.bubble-tone-3 { background: #ee6b99; }
.bubble-tone-4 { background: var(--cyan); }
.bubble-tone-5 { background: var(--mint); }

.bubble-item > b {
  font-family: var(--mono);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
}

.bubble-item > span {
  min-height: 2em;
  color: var(--muted);
  font-size: clamp(0.72rem, 1vw, 0.9rem);
}

.bar-results-scene {
  gap: clamp(18px, 2.5vh, 34px);
}

.bar-results-scene h1 {
  font-size: clamp(2.25rem, 3.8vw, 4.8rem);
}

.horizontal-chart {
  display: grid;
  gap: clamp(7px, 1vh, 12px);
}

.horizontal-row {
  display: grid;
  grid-template-columns: minmax(290px, 0.92fr) minmax(300px, 1.7fr) 86px;
  gap: clamp(14px, 2vw, 28px);
  align-items: center;
  min-height: 48px;
}

.horizontal-label {
  display: grid;
  line-height: 1.12;
}

.horizontal-label strong {
  font-size: clamp(0.83rem, 1.05vw, 1.1rem);
}

.horizontal-label span {
  margin-top: 3px;
  color: var(--muted);
  font-size: clamp(0.66rem, 0.78vw, 0.8rem);
}

.horizontal-track {
  height: clamp(24px, 3.2vh, 38px);
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-line);
}

.horizontal-track span {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transform-origin: left center;
  animation: barGrow 720ms var(--bar-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.horizontal-row:nth-child(3n + 2) .horizontal-track span { background: #ee6b99; }
.horizontal-row:nth-child(3n) .horizontal-track span { background: var(--cyan); }

.horizontal-value {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: baseline;
  font-family: var(--mono);
}

.horizontal-value strong {
  font-size: clamp(1rem, 1.4vw, 1.35rem);
}

.horizontal-value span {
  color: var(--muted);
  font-size: 0.72rem;
}

.horizontal-value span::after {
  content: "×";
  margin-left: 2px;
}

.topic-results-scene {
  gap: clamp(10px, 1.7vh, 18px);
}

.topic-results-scene h1 {
  font-size: clamp(2rem, 3.3vw, 4.2rem);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 390px;
}

.topic-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 116px;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 18px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 18px rgb(35 37 38 / 6%);
  animation: sceneEnter 550ms var(--topic-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.topic-card:nth-child(3n + 2) { background: #fce8ef; }
.topic-card:nth-child(3n) { background: #eaf5f1; }

.topic-card::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--topic-strength);
  height: 5px;
  background: var(--primary);
  content: "";
  transform-origin: left;
  animation: barGrow 720ms var(--topic-delay) cubic-bezier(0.22, 1, 0.36, 1) both;
}

.topic-card:nth-child(3n)::after { background: var(--mint); }

.topic-card > strong {
  position: relative;
  z-index: 1;
  max-width: 22ch;
  font-size: clamp(0.86rem, 1.16vw, 1.08rem);
  line-height: 1.08;
}

.topic-card p {
  display: flex;
  gap: 11px;
  align-items: baseline;
  margin: 4px 0 0;
}

.topic-card p b {
  color: var(--primary);
  font-family: var(--mono);
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
  line-height: 1;
}

.topic-card p span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.topic-card-mark {
  position: absolute;
  top: 13px;
  right: 16px;
  width: 27px;
  height: 27px;
  color: var(--primary);
  opacity: 0.2;
}

.topic-card-mark i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 27px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.topic-card-mark i:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); }
.topic-card-mark i:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); }
.topic-card-mark i:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg); }

.linked-results-scene {
  gap: clamp(14px, 2.2vh, 28px);
}

.linked-results-scene h1 {
  max-width: 17ch;
  font-size: clamp(2.25rem, 3.8vw, 4.8rem);
}

.results-scene > header > p.linked-summary {
  display: flex;
  gap: clamp(20px, 2.5vw, 38px);
  align-items: end;
}

.linked-summary > span {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.results-scene > header > .linked-summary strong {
  font-size: clamp(2rem, 3.1vw, 3.8rem);
}

.linked-summary small {
  max-width: 10ch;
  font-size: clamp(0.65rem, 0.76vw, 0.82rem);
  line-height: 1.1;
}

.linked-chart {
  display: grid;
  gap: clamp(3px, 0.6vh, 7px);
}

.linked-legend {
  display: flex;
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  justify-content: end;
  min-height: 24px;
  color: var(--muted);
  font-size: clamp(0.7rem, 0.86vw, 0.9rem);
}

.linked-legend > span {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.erg-asterisk {
  position: relative;
  display: inline-block;
  width: 18px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  color: var(--cyan);
}

.erg-asterisk i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27%;
  height: 100%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.erg-asterisk i:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); }
.erg-asterisk i:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); }
.erg-asterisk i:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg); }
.erg-asterisk.is-priority { color: var(--primary); }

.linked-chart-head,
.linked-row {
  display: grid;
  grid-template-columns: minmax(290px, 0.95fr) minmax(320px, 1.7fr) minmax(170px, 0.7fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: center;
}

.linked-chart-head {
  min-height: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.58rem, 0.68vw, 0.72rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.linked-chart-head > span:last-child {
  text-align: right;
}

.linked-axis {
  display: flex;
  justify-content: space-between;
  font-style: normal;
}

.linked-axis i {
  font-style: normal;
}

.linked-row {
  min-height: 42px;
  border-top: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
}

.linked-label {
  font-size: clamp(0.76rem, 0.94vw, 1rem);
  line-height: 1.08;
}

.linked-track {
  position: relative;
  height: 34px;
  overflow: visible;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 25% 100%;
}

.linked-track::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.linked-connector {
  position: absolute;
  z-index: 1;
  top: calc(50% - 2px);
  left: var(--connector-start);
  width: max(2px, var(--connector-width));
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 42%, var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
  animation: connectorGrow 620ms var(--dot-delay) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.linked-marker {
  position: absolute;
  z-index: 2;
  top: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.1);
  animation: linkedMarkerPop 520ms calc(var(--dot-delay) + 180ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.linked-marker.is-selected {
  left: var(--selected-x);
  width: 26px;
  color: var(--cyan);
}

.linked-marker.is-priority {
  left: var(--priority-x);
  width: 18px;
  color: var(--primary);
}

.linked-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: baseline;
  font-family: var(--mono);
  text-align: right;
}

.linked-values > span {
  display: flex;
  gap: 5px;
  align-items: baseline;
  justify-content: end;
}

.linked-values b {
  font-size: clamp(0.9rem, 1.15vw, 1.18rem);
}

.linked-values small {
  color: var(--muted);
  font-size: 0.65rem;
}

.linked-values .is-selected b { color: #1589a0; }
.linked-values .is-priority b { color: var(--primary); }

/* Data story: overview to sequential zoom */

.data-overview-scene,
.data-focus-scene {
  width: 100%;
  max-width: 1500px;
  height: 100%;
  max-height: 610px;
  margin: auto;
}

.data-overview-scene {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(16px, 2.4vh, 28px);
  animation: sceneEnter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.data-overview-scene > header {
  display: flex;
  gap: 48px;
  align-items: end;
  justify-content: space-between;
}

.data-overview-scene h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.8rem, 4.4vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.data-overview-scene > header p {
  max-width: 34ch;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.25vw, 1.2rem);
  line-height: 1.25;
}

.data-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.data-mini-card {
  display: grid;
  grid-template-rows: auto minmax(54px, 1fr) auto;
  min-width: 0;
  padding: clamp(12px, 1.5vw, 20px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-bright) 70%, transparent);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: dataMiniEnter 540ms var(--card-delay) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.data-mini-card > header {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.data-mini-card > header span {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.data-mini-card h2 {
  margin: 0;
  font-size: clamp(0.95rem, 1.25vw, 1.25rem);
  letter-spacing: -0.02em;
}

.data-mini-card > p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: baseline;
  margin: 0;
}

.data-mini-card > p strong {
  grid-row: 1 / span 2;
  color: var(--primary);
  font-family: var(--mono);
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
}

.data-mini-card > p span {
  color: var(--muted);
  font-size: clamp(0.65rem, 0.76vw, 0.78rem);
}

.data-mini-chart {
  width: 100%;
  height: 100%;
  min-height: 54px;
  overflow: visible;
}

.data-mini-chart polyline {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.data-mini-chart .data-line-eskisehir {
  stroke: var(--primary);
}

.data-mini-chart .data-line-turkiye {
  stroke: var(--cyan);
  stroke-dasharray: 7 6;
}

.data-mini-baseline {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.data-mini-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 54px;
}

.data-mini-panels .data-mini-chart:first-child {
  border-right: 1px solid var(--line);
  padding-right: 7px;
}

.data-overview-scene > footer,
.data-source-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.62rem, 0.72vw, 0.76rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-focus-scene {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(560px, 1.52fr);
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: clamp(16px, 2vw, 28px) clamp(30px, 4vw, 68px);
  align-items: center;
  animation: dataZoomEnter 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.data-focus-scene.zoom-top-left { transform-origin: 16% 18%; }
.data-focus-scene.zoom-top-center { transform-origin: 50% 18%; }
.data-focus-scene.zoom-top-right { transform-origin: 84% 18%; }
.data-focus-scene.zoom-bottom-left { transform-origin: 16% 82%; }
.data-focus-scene.zoom-bottom-center { transform-origin: 50% 82%; }
.data-focus-scene.zoom-bottom-right { transform-origin: 84% 82%; }

.data-focus-copy {
  align-self: center;
  min-width: 0;
}

.data-indicator-name {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.82vw, 0.88rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-focus-copy h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2rem, 3.25vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.data-reading {
  max-width: 34ch;
  margin: clamp(18px, 2.4vh, 28px) 0 0;
  color: var(--ink);
  font-size: clamp(0.92rem, 1.2vw, 1.22rem);
  line-height: 1.35;
}

.data-scope-note {
  max-width: 44ch;
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(0.68rem, 0.78vw, 0.82rem);
  line-height: 1.3;
}

.data-scope-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-focus-visual {
  min-width: 0;
}

.data-chart-frame {
  display: grid;
  gap: 8px;
}

.data-chart-legend {
  display: flex;
  gap: 24px;
  justify-content: end;
  color: var(--muted);
  font-size: clamp(0.68rem, 0.78vw, 0.82rem);
}

.data-chart-legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.data-chart-legend i {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
}

.data-chart-legend i.is-turkiye {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 10px);
}

.data-line-chart {
  display: block;
  width: 100%;
  overflow: visible;
}

.data-grid-line line {
  stroke: var(--line);
  stroke-width: 1;
}

.data-grid-line text,
.data-year-label {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.data-series polyline {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  vector-effect: non-scaling-stroke;
  animation: dataLineDraw 900ms 220ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.data-series circle {
  opacity: 0;
  stroke: var(--paper-bright);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  animation: dataPointPop 430ms calc(720ms + var(--point-delay)) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.data-series-eskisehir polyline {
  stroke: var(--primary);
}

.data-series-eskisehir circle {
  fill: var(--primary);
  stroke: var(--paper-bright);
}

.data-series-turkiye polyline {
  stroke: var(--cyan);
  stroke-dasharray: 11 9;
}

.data-series-turkiye circle {
  fill: var(--cyan);
  stroke: var(--paper-bright);
}

.data-year-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.data-year-values > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  padding: 9px 12px 0;
  border-right: 1px solid var(--line);
}

.data-year-values > div:last-child {
  border-right: 0;
}

.data-year-values span {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--muted);
  font-size: clamp(0.62rem, 0.7vw, 0.72rem);
}

.data-year-values strong {
  font-family: var(--mono);
  font-size: clamp(0.76rem, 0.9vw, 0.94rem);
  text-align: right;
}

.data-year-values strong.is-eskisehir { color: var(--primary); }
.data-year-values strong.is-turkiye { color: #1589a0; }

.data-paired-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
}

.data-panel {
  min-width: 0;
}

.data-panel + .data-panel {
  padding-left: clamp(18px, 2vw, 30px);
  border-left: 1px solid var(--line);
}

.data-panel h2 {
  margin: 0 0 2px 46px;
  font-size: clamp(0.82rem, 1vw, 1.05rem);
}

.data-panel .data-line-chart {
  margin-top: -4px;
}

.data-panel .data-year-values > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 7px 5px 0;
  text-align: center;
}

.data-panel .data-year-values span {
  grid-row: auto;
}

.data-panel .data-year-values strong {
  text-align: center;
}

.data-story-rail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.data-story-rail span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
  padding: 9px 10px 8px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(0.62rem, 0.7vw, 0.74rem);
}

.data-story-rail span:last-child {
  border-right: 0;
}

.data-story-rail b {
  color: inherit;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.data-story-rail .is-active {
  background: var(--primary);
  color: var(--paper-bright);
}

.data-source-line {
  grid-column: 1 / -1;
}

.simple-control-header {
  align-items: center;
}

.connection-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--amber) 16%, transparent);
}

.connection-dot.live {
  background: var(--green);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 16%, transparent);
}

.single-control {
  display: grid;
  gap: 16px;
}

.single-current-scene {
  min-height: 250px;
}

.single-current-scene h2 {
  max-width: 22ch;
}

.single-current-scene p {
  max-width: 52ch;
  margin: 22px 0 0;
  color: #c9c9cf;
}

.control-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.control-readout > div {
  display: grid;
  padding: 17px;
  background: var(--paper-bright);
}

.control-readout strong {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.control-readout span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.advance-context {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}

.advance-context p {
  margin: 7px 0 0;
  font-weight: 700;
}

.advance-button {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 112px;
  padding: 24px clamp(24px, 6vw, 48px);
  border-radius: 18px;
  background: var(--primary);
  color: var(--paper-bright);
  font-family: var(--heading);
  font-size: clamp(1.25rem, 4.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  transition: transform 120ms ease, background 120ms ease;
  touch-action: manipulation;
}

.advance-button:not(:disabled):active {
  background: #ad1249;
  transform: scale(0.985);
}

.advance-button b {
  font-family: var(--sans);
  font-size: 1.5em;
}

.advance-button:disabled {
  background: var(--muted);
}

.advance-safety {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.end-session-button {
  justify-self: center;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: underline;
}

.choice-button {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 13px 15px;
  text-align: left;
}

.choice-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.choice-button strong {
  font-size: 0.96rem;
  line-height: 1.22;
}

.choice-button span {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 400;
  line-height: 1.25;
}

.choice-button[aria-pressed="true"] span,
.choice-button:hover:not(:disabled) span {
  color: var(--paper-bright);
  opacity: 0.8;
}

.choice-grid.is-multiple .choice-button {
  position: relative;
  padding-left: 52px;
}

.choice-grid.is-multiple .choice-button::before {
  position: absolute;
  top: 50%;
  left: 15px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  font-family: var(--mono);
  font-size: 0.78rem;
  transform: translateY(-50%);
}

.choice-grid.is-multiple .choice-button[aria-pressed="true"]::before {
  background: var(--paper-bright);
  color: var(--primary);
  content: "✓";
}

@keyframes sceneEnter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bubbleGrow {
  from { opacity: 0; transform: scale(0.18); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes barGrow {
  from { opacity: 0.3; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes connectorGrow {
  to { transform: scaleX(1); }
}

@keyframes linkedMarkerPop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.1); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes dataMiniEnter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dataZoomEnter {
  from { opacity: 0.18; transform: scale(0.42); filter: blur(2px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes dataLineDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes dataPointPop {
  from { opacity: 0; transform: scale(0.2); transform-origin: center; }
  to { opacity: 1; transform: scale(1); transform-origin: center; }
}

@media (max-width: 900px) {
  .cover-scene {
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
  }

  .question-aside {
    justify-self: start;
  }

  .bubble-chart {
    min-height: 280px;
  }

  .horizontal-row {
    grid-template-columns: minmax(210px, 0.9fr) minmax(180px, 1.2fr) 70px;
  }

  .linked-chart-head,
  .linked-row {
    grid-template-columns: minmax(210px, 0.95fr) minmax(200px, 1.3fr) minmax(140px, 0.7fr);
  }

  .data-focus-scene {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    overflow: auto;
  }

  .data-story-rail,
  .data-source-line {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .cover-scene {
    padding: 28px;
  }

  .cover-copy h1 {
    font-size: clamp(2.5rem, 11vw, 4.5rem);
  }

  .results-scene > header {
    align-items: start;
  }

  .bubble-chart {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    gap: 7px;
    min-height: 230px;
  }

  .result-bubble {
    width: min(var(--bubble-size), 20vw);
  }

  .result-bubble span,
  .bubble-item > span {
    display: none;
  }

  .horizontal-row {
    grid-template-columns: minmax(150px, 1fr) minmax(110px, 1fr) 62px;
    gap: 10px;
  }

  .horizontal-label span {
    display: none;
  }

  .linked-chart-head,
  .linked-row {
    grid-template-columns: minmax(150px, 1fr) minmax(130px, 1fr) minmax(112px, 0.7fr);
    gap: 10px;
  }

  .linked-legend {
    justify-content: start;
  }

  .linked-values small,
  .linked-chart-head > span:last-child {
    display: none;
  }

  .data-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-overview-scene > header {
    display: grid;
    gap: 12px;
  }

  .data-paired-grid {
    grid-template-columns: 1fr;
  }

  .data-panel + .data-panel {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 420px) {
  .control-readout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .control-readout > div {
    padding: 13px 10px;
  }

  .advance-button {
    min-height: 104px;
  }
}

@media (max-height: 800px) and (min-width: 901px) {
  .presenter-stage {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .bar-results-scene {
    gap: 12px;
  }

  .bar-results-scene .scene-number {
    margin-bottom: 10px;
  }

  .bar-results-scene h1 {
    font-size: clamp(2.1rem, 3.2vw, 3.7rem);
  }

  .linked-results-scene {
    gap: 7px;
  }

  .linked-results-scene .scene-number {
    margin-bottom: 8px;
  }

  .linked-results-scene h1 {
    font-size: clamp(2rem, 3vw, 3.5rem);
  }

  .linked-results-scene .result-note {
    margin-top: 7px;
  }

  .linked-chart {
    gap: 1px;
  }

  .linked-legend {
    min-height: 20px;
  }

  .linked-row {
    min-height: 34px;
  }

  .linked-track {
    height: 27px;
  }

  .linked-label {
    font-size: clamp(0.68rem, 0.8vw, 0.84rem);
  }

  .linked-marker.is-selected { width: 22px; }
  .linked-marker.is-priority { width: 15px; }

  .data-overview-scene,
  .data-focus-scene {
    max-height: 570px;
  }

  .data-overview-scene {
    gap: 10px;
  }

  .data-overview-scene .scene-number {
    margin-bottom: 8px;
  }

  .data-overview-scene h1 {
    font-size: clamp(2.4rem, 3.8vw, 4.2rem);
  }

  .data-mini-card {
    grid-template-rows: auto minmax(44px, 1fr) auto;
    padding: 10px 14px;
  }

  .data-mini-chart,
  .data-mini-panels {
    min-height: 44px;
  }

  .data-focus-scene {
    grid-template-columns: minmax(280px, 0.76fr) minmax(520px, 1.55fr);
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 10px 34px;
  }

  .data-focus-copy .scene-number {
    margin-bottom: 9px;
  }

  .data-indicator-name {
    margin-bottom: 9px;
  }

  .data-focus-copy h1 {
    font-size: clamp(1.8rem, 2.85vw, 3.35rem);
  }

  .data-reading {
    margin-top: 14px;
    font-size: clamp(0.82rem, 1.02vw, 1.05rem);
  }

  .data-scope-note {
    margin-top: 12px;
    padding-top: 8px;
  }

  .data-line-chart {
    max-height: 226px;
  }

  .data-chart-frame.is-paired .data-line-chart {
    max-height: 180px;
  }

  .data-story-rail span {
    padding-top: 7px;
    padding-bottom: 6px;
  }

  .horizontal-chart {
    gap: 4px;
  }

  .horizontal-row {
    min-height: 36px;
  }

  .horizontal-label {
    line-height: 1.05;
  }

  .horizontal-label strong {
    font-size: clamp(0.72rem, 0.9vw, 0.92rem);
  }

  .horizontal-label span {
    display: none;
  }

  .horizontal-track {
    height: 22px;
  }
}

/* Side-by-side rehearsal */

.rehearsal-page {
  background: #f1f2f5;
}

.rehearsal-shell {
  width: min(1720px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0 28px;
}

.rehearsal-header {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.rehearsal-brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.rehearsal-brand h1 {
  margin: 3px 0 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: -0.035em;
}

.rehearsal-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rehearsal-tools .btn {
  min-height: 42px;
  padding: 9px 15px;
  background: var(--paper-bright);
  font-size: 0.84rem;
  text-decoration: none;
}

.rehearsal-grid {
  display: grid;
  grid-template-columns: minmax(350px, 0.39fr) minmax(680px, 1fr);
  gap: 16px;
  align-items: start;
}

.rehearsal-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-bright);
  box-shadow: 0 16px 44px rgb(35 37 38 / 8%);
}

.rehearsal-panel > header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper-bright);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rehearsal-panel > header small {
  color: #b7b8bf;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
}

.rehearsal-panel--presenter iframe {
  display: block;
  width: 100%;
  border: 0;
  background: var(--paper);
}

.rehearsal-control {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.rehearsal-current {
  padding: 18px;
  border-radius: 13px;
  background: var(--ink);
  color: var(--paper-bright);
}

.rehearsal-current .scene-number {
  margin-bottom: 10px;
  color: var(--primary-soft);
}

.rehearsal-current h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.rehearsal-current p {
  margin: 13px 0 0;
  color: #c9c9cf;
  font-size: 0.82rem;
  line-height: 1.35;
}

.rehearsal-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.rehearsal-readout span {
  display: grid;
  gap: 2px;
  padding: 10px;
  background: var(--paper-bright);
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.rehearsal-readout strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.rehearsal-next {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
}

.rehearsal-next span {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rehearsal-advance {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 15px 18px;
  border-radius: 13px;
  background: var(--primary);
  color: var(--paper-bright);
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  touch-action: manipulation;
}

.rehearsal-advance b {
  font-family: var(--sans);
  font-size: 1.45rem;
}

.rehearsal-advance:disabled {
  background: var(--muted);
}

.projection-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
}

.projection-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 720px;
  transform: scale(var(--projection-scale, 0.55));
  transform-origin: top left;
}

.rehearsal-help {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 960px;
  margin: 18px 0 0 auto;
  padding: 15px 18px;
  border-left: 5px solid var(--primary);
  background: var(--paper-bright);
}

.rehearsal-help > span {
  color: var(--primary);
  font-size: 1.3rem;
  line-height: 1;
}

.rehearsal-help p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.featured-view-link {
  background: var(--primary);
  color: var(--paper-bright);
}

.featured-view-link .view-no,
.featured-view-link > span:last-child {
  color: var(--primary-soft);
}

.featured-view-link:hover {
  background: var(--ink);
}

.featured-view-link:hover strong {
  color: var(--paper-bright);
}

@media (max-width: 1180px) {
  .rehearsal-shell {
    width: calc(100% - 24px);
  }

  .rehearsal-grid {
    grid-template-columns: 330px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .rehearsal-shell {
    width: calc(100% - 16px);
    padding: 10px 0 14px;
  }

  .rehearsal-header {
    display: grid;
    gap: 8px;
    margin-bottom: 9px;
  }

  .rehearsal-brand {
    gap: 12px;
  }

  .rehearsal-brand .erg-logo {
    width: 90px;
  }

  .rehearsal-brand h1 {
    font-size: 1.25rem;
  }

  .rehearsal-tools {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 7px;
  }

  .rehearsal-tools .btn {
    display: grid;
    min-height: 34px;
    place-items: center;
    padding: 6px 9px;
    font-size: 0.7rem;
  }

  .rehearsal-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .rehearsal-panel--presenter {
    order: -1;
  }

  .rehearsal-panel {
    border-radius: 12px;
  }

  .rehearsal-panel > header {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 0.62rem;
  }

  .rehearsal-panel > header small {
    font-size: 0.62rem;
  }

  .rehearsal-control {
    gap: 7px;
    padding: 9px;
  }

  .rehearsal-current {
    padding: 11px 13px;
  }

  .rehearsal-current .scene-number {
    margin-bottom: 5px;
    font-size: 0.59rem;
  }

  .rehearsal-current h2 {
    font-size: 1.1rem;
  }

  .rehearsal-current p {
    display: none;
  }

  .rehearsal-readout span {
    padding: 6px;
    font-size: 0.58rem;
  }

  .rehearsal-readout strong {
    font-size: 0.92rem;
  }

  .rehearsal-next {
    padding: 7px 10px;
    font-size: 0.68rem;
  }

  .rehearsal-advance {
    min-height: 54px;
    padding: 10px 13px;
    font-size: 0.84rem;
  }

  .rehearsal-help {
    display: none;
  }
}

/* Poster-derived data story */

.data-overview-scene,
.data-focus-scene {
  --poster-pink: #d81b5c;
  --poster-mint: #72c0a2;
  --poster-charcoal: #4b4b4b;
  --poster-grid: #e8e8e2;
}

.data-overview-scene {
  gap: clamp(10px, 1.6vh, 18px);
}

.data-overview-scene > header {
  align-items: center;
  justify-content: flex-start;
}

.data-overview-scene > header > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 18px;
  align-items: end;
}

.data-overview-scene .scene-number {
  grid-column: 1 / -1;
  margin-bottom: 5px;
}

.data-city-label {
  color: var(--poster-pink);
  font-family: var(--heading);
  font-size: clamp(4rem, 7vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.data-overview-scene h1 {
  max-width: none;
  padding-bottom: 4px;
  color: var(--poster-charcoal);
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.data-overview-grid {
  gap: clamp(8px, 1vw, 14px);
  border: 0;
}

.data-overview-grid.count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.data-mini-card {
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: clamp(8px, 1vw, 13px) clamp(10px, 1.15vw, 16px);
  overflow: hidden;
  border: 1.5px solid var(--poster-pink);
  border-radius: 5px;
  background: #fff;
}

.data-mini-card > header {
  position: relative;
  z-index: 1;
}

.data-mini-card > header span {
  color: var(--poster-pink);
  font-weight: 700;
}

.data-mini-card h2 {
  color: var(--poster-charcoal);
  font-family: var(--sans);
  font-size: clamp(1.08rem, 1.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.12;
}

.data-mini-visual {
  display: grid;
  min-height: 0;
  place-items: center;
}

.data-mini-card > p {
  position: relative;
  z-index: 1;
  margin-top: -3px;
}

.data-mini-card > p strong {
  color: var(--poster-pink);
  font-size: clamp(0.92rem, 1.25vw, 1.25rem);
}

.data-mini-card > p span {
  font-size: clamp(0.52rem, 0.64vw, 0.68rem);
}

.poster-chart-card {
  display: grid;
  width: 100%;
  padding: clamp(12px, 1.5vw, 20px);
  border: 2px solid var(--poster-pink);
  border-radius: 6px;
  background: #fff;
}

.poster-chart-card.is-compact {
  min-height: 0;
  padding: 0;
  border: 0;
}

.poster-chart-legend {
  display: flex;
  gap: 24px;
  justify-content: end;
  min-height: 24px;
  color: var(--poster-charcoal);
  font-size: clamp(0.65rem, 0.78vw, 0.82rem);
  font-style: italic;
  font-weight: 600;
}

.poster-chart-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.poster-chart-legend i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: currentColor;
}

.poster-chart-legend .is-eskisehir { color: var(--poster-pink); }
.poster-chart-legend .is-turkiye { color: var(--poster-mint); }

.poster-chart-card.is-compact .poster-chart-legend {
  display: none;
}

.poster-chart-card.is-compact .poster-axis-tick text {
  display: none;
}

.poster-chart {
  display: block;
  width: 100%;
  max-height: 360px;
  overflow: visible;
}

.poster-row-guide {
  stroke: var(--poster-grid);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.poster-axis-tick line {
  stroke: var(--poster-grid);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.poster-axis-tick text {
  fill: var(--poster-charcoal);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.poster-row-label,
.poster-column-label {
  fill: var(--poster-charcoal);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
}

.poster-value {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
}

.poster-value.is-eskisehir { fill: var(--poster-pink); }
.poster-value.is-turkiye { fill: #3c7764; }

.poster-connector {
  stroke: var(--poster-charcoal);
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  animation: posterConnectorDraw 620ms calc(140ms + var(--mark-delay)) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.poster-dot {
  opacity: 0;
  stroke: #fff;
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  vector-effect: non-scaling-stroke;
  animation: posterMarkPop 480ms calc(410ms + var(--mark-delay)) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.poster-dot.is-eskisehir { fill: var(--poster-pink); }
.poster-dot.is-turkiye { fill: var(--poster-mint); }

.poster-stem {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  animation: posterConnectorDraw 650ms calc(110ms + var(--mark-delay)) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.poster-stem.is-eskisehir { stroke: var(--poster-pink); }
.poster-stem.is-turkiye { stroke: var(--poster-mint); }

.poster-bubble-group {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: posterMarkPop 560ms calc(160ms + var(--mark-delay)) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.poster-bubble {
  stroke: #fff;
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
}

.poster-bubble-group.is-eskisehir .poster-bubble { fill: var(--poster-pink); }
.poster-bubble-group.is-turkiye .poster-bubble { fill: var(--poster-mint); }

.poster-bubble-asterisk {
  fill: #fff;
  opacity: 0.24;
}

.poster-bubble-value {
  fill: #fff;
  font-family: var(--sans);
  font-size: 36px;
  font-weight: 700;
}

.poster-bubble-group.is-turkiye .poster-bubble-value {
  fill: #243e35;
}

.poster-panel-divider {
  stroke: var(--poster-pink);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.poster-panel-title {
  fill: var(--poster-charcoal);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
}

.data-focus-scene {
  grid-template-columns: minmax(285px, 0.72fr) minmax(570px, 1.58fr);
  gap: 12px clamp(30px, 4vw, 64px);
}

.data-focus-copy h1 {
  color: var(--poster-charcoal);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.data-indicator-name,
.data-scope-note strong {
  color: var(--poster-pink);
}

.data-indicator-name {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.42vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-transform: none;
}

.data-story-rail {
  grid-template-columns: repeat(var(--story-count, 4), minmax(0, 1fr));
  border-color: var(--poster-charcoal);
}

.data-story-rail .is-active {
  background: var(--poster-pink);
}

.data-mini-card .poster-chart {
  max-height: 122px;
}

.data-overview-grid.count-4 .data-mini-card .poster-chart {
  max-height: 150px;
}

.data-mini-card.is-asterisk-bubbles .poster-chart {
  max-height: 112px;
}

.data-mini-card.is-paired-dumbbell .poster-chart {
  max-height: 110px;
}

@keyframes posterConnectorDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes posterMarkPop {
  from { opacity: 0; transform: scale(0.15) rotate(-18deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 900px) {
  .data-overview-scene > header > div {
    grid-template-columns: 1fr;
  }

  .data-city-label,
  .data-overview-scene h1,
  .data-overview-scene .scene-number {
    grid-column: auto;
  }

  .data-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .data-focus-scene {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }
}

@media (max-height: 800px) and (min-width: 901px) {
  .data-overview-scene,
  .data-focus-scene {
    max-height: 570px;
  }

  .data-overview-scene h1 {
    font-size: clamp(1.05rem, 1.7vw, 1.7rem);
  }

  .data-city-label {
    font-size: clamp(4.4rem, 6.5vw, 6rem);
  }

  .data-mini-card {
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 8px 12px;
  }

  .data-mini-card .poster-chart {
    max-height: 105px;
  }

  .data-focus-scene {
    grid-template-columns: minmax(270px, 0.7fr) minmax(540px, 1.65fr);
    gap: 9px 34px;
  }

  .poster-chart-card {
    padding: 10px 14px;
  }

  .poster-chart {
    max-height: 322px;
  }
}

/* Education Monitoring Report library and open spread */

.report-library-scene,
.report-spread-scene {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 2vh, 22px);
  width: 100%;
  max-width: 1500px;
  height: 100%;
  max-height: 610px;
  margin: auto;
  animation: sceneEnter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.report-spread-scene {
  grid-template-rows: minmax(0, 1fr) auto;
}

.report-library-scene > header,
.report-spread-scene > header {
  display: flex;
  gap: 44px;
  align-items: end;
  justify-content: space-between;
}

.report-library-scene h1,
.report-spread-scene h1 {
  max-width: 17ch;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.2rem, 3.8vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.report-library-scene > header > p {
  max-width: 42ch;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.18vw, 1.16rem);
  line-height: 1.3;
}

.report-library-scene > footer,
.report-spread-scene > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.61rem, 0.7vw, 0.74rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-library {
  position: relative;
  display: flex;
  min-height: 0;
  align-items: end;
  justify-content: center;
  padding: 28px 34px 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 105%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 48%),
    linear-gradient(180deg, #fff 0%, #f5f3f0 100%);
}

.report-books {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  gap: 4px;
  align-items: end;
  justify-content: center;
}

.report-book-spine {
  --book-lift: 0px;
  position: relative;
  display: flex;
  width: var(--spine-width);
  height: var(--spine-height);
  max-height: 100%;
  flex: 0 0 var(--spine-width);
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px 17px;
  overflow: hidden;
  border: 1px solid rgb(0 0 0 / 14%);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: var(--spine-color);
  box-shadow: inset -7px 0 12px rgb(0 0 0 / 10%), inset 2px 0 0 rgb(255 255 255 / 28%), 0 9px 13px rgb(35 37 38 / 13%);
  color: var(--spine-ink, #fff);
  opacity: 0;
  transform: translateY(105%);
  animation: reportBookRise 600ms var(--book-delay) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.report-book-spine:nth-child(4n + 2) {
  border-radius: 2px 7px 0 0;
}

.report-book-spine:nth-child(5n) {
  border-radius: 8px 3px 0 0;
}

.report-book-spine.is-latest {
  --book-lift: -14px;
  outline: 3px solid #fff;
  outline-offset: -7px;
  box-shadow: 0 0 0 3px var(--primary), 0 18px 25px rgb(35 37 38 / 24%);
}

.report-book-spine strong {
  font-family: var(--mono);
  font-size: clamp(0.92rem, 1.15vw, 1.15rem);
  letter-spacing: 0.08em;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.report-spine-asterisk {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: currentColor;
}

.report-spine-asterisk i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 22px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.report-spine-asterisk i:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); }
.report-spine-asterisk i:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); }
.report-spine-asterisk i:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg); }

.report-shelf {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 9px;
  left: 18px;
  height: 32px;
  border-radius: 2px 2px 7px 7px;
  background: var(--poster-charcoal, #4b4b4b);
  box-shadow: 0 14px 22px rgb(35 37 38 / 23%);
}

.report-shelf::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: rgb(255 255 255 / 22%);
  content: "";
}

.report-spread-scene > header > p {
  display: grid;
  gap: 2px;
  margin: 0 0 3px;
  text-align: right;
}

.report-spread-scene > header > p strong {
  color: var(--primary);
  font-size: clamp(0.92rem, 1.15vw, 1.16rem);
}

.report-spread-scene > header > p span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.62rem, 0.72vw, 0.76rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-open-book {
  position: relative;
  display: grid;
  width: min(78vw, 820px);
  aspect-ratio: 2898 / 2016;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
  justify-self: center;
  perspective: 1800px;
  filter: drop-shadow(0 20px 20px rgb(35 37 38 / 20%));
}

.report-page {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #fff;
  backface-visibility: hidden;
}

.report-page.is-left {
  border-radius: 7px 1px 1px 9px;
  transform-origin: right center;
  animation: reportPageOpenLeft 900ms 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.report-page.is-right {
  border-radius: 1px 7px 9px 1px;
  transform-origin: left center;
  animation: reportPageOpenRight 900ms 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.report-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-page.is-left::after,
.report-page.is-right::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.report-page.is-left::after {
  background: linear-gradient(90deg, transparent 68%, rgb(35 37 38 / 12%) 100%);
}

.report-page.is-right::after {
  background: linear-gradient(90deg, rgb(35 37 38 / 12%) 0%, transparent 32%);
}

.report-book-crease {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18px;
  background: linear-gradient(90deg, rgb(35 37 38 / 14%), rgb(255 255 255 / 34%) 47%, rgb(35 37 38 / 12%));
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  animation: reportCreaseIn 380ms 650ms ease forwards;
}

.report-spread-scene > footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.report-notes-scene {
  display: grid;
  width: 100%;
  max-width: 1500px;
  height: 100%;
  max-height: 610px;
  margin: auto;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(9px, 1.6vh, 17px);
  animation: sceneEnter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.report-notes-scene.is-gap-transition {
  animation: none;
}

.report-notes-scene > header {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
}

.report-notes-scene h1 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.1rem, 3.4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.report-notes-scene > header > p {
  margin: 0 0 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.76vw, 0.82rem);
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.report-notes-scene > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.61rem, 0.7vw, 0.74rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-note-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgb(216 27 92 / 5%), transparent 46%),
    linear-gradient(180deg, #fff 0%, #f5f3f0 100%);
  isolation: isolate;
}

.report-note-book {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(55vw, 590px);
  aspect-ratio: 2898 / 2016;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 28px rgb(35 37 38 / 16%);
  filter: saturate(0.82);
  opacity: 0.58;
  transform: translate(-50%, -50%) rotate(-0.6deg);
}

.report-note-book img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-note-book > span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 14px;
  background: linear-gradient(90deg, rgb(35 37 38 / 10%), rgb(255 255 255 / 26%), rgb(35 37 38 / 9%));
  transform: translateX(-50%);
}

.report-note-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.report-note-anchor {
  position: absolute;
  top: var(--note-y);
  left: var(--note-x);
  width: var(--note-width);
  min-width: 0;
}

.report-post-it {
  position: relative;
  display: flex;
  min-height: clamp(56px, 8.3vh, 68px);
  align-items: center;
  justify-content: center;
  padding: 11px 12px 14px;
  overflow: hidden;
  background: var(--note-paper, #f7d867);
  box-shadow: 0 7px 12px rgb(35 37 38 / 18%), inset 0 -2px 0 rgb(35 37 38 / 6%);
  color: #232526;
  font-family: var(--sans);
  font-size: clamp(0.88rem, 1.1vw, 1.05rem);
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  overflow-wrap: anywhere;
  transform: rotate(var(--note-rotation));
}

.report-post-it::before {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 36%;
  height: 10px;
  background: rgb(255 255 255 / 42%);
  box-shadow: 0 1px 2px rgb(35 37 38 / 9%);
  content: "";
  transform: translateX(-50%) rotate(-1deg);
}

.report-post-it::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 13px;
  height: 13px;
  background: linear-gradient(135deg, rgb(255 255 255 / 6%) 49%, rgb(35 37 38 / 11%) 50%);
  content: "";
}

.report-note-anchor.is-entering .report-post-it {
  opacity: 0;
  animation: reportNoteScatterIn 540ms var(--note-delay) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.report-post-it.has-logo {
  padding: 12px 15px 14px;
  background: #f6eee5;
}

.report-post-it.has-logo img {
  display: block;
  width: min(86%, 104px);
  height: auto;
  max-height: 38px;
}

.report-notes-scene.is-gap-transition .report-note-book {
  filter: grayscale(0.4) saturate(0.55);
  opacity: 0.36;
}

.report-note-anchor.is-context .report-post-it {
  opacity: 0.28;
  filter: grayscale(0.2) saturate(0.6);
  animation: none;
}

.report-note-anchor.is-final {
  --note-rotation: -2deg;
  --note-paper: var(--primary);
  z-index: 8;
  top: 45%;
  left: 50%;
  width: 16%;
  min-width: 150px;
  transform: translate(-50%, -50%);
}

.report-note-anchor.is-final .report-post-it {
  min-height: 76px;
  color: #fff;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  opacity: 0;
  animation: reportDataGapDrop 900ms 120ms cubic-bezier(0.2, 0.85, 0.25, 1.18) forwards;
}

@keyframes reportBookRise {
  to { opacity: 1; transform: translateY(var(--book-lift)); }
}

@keyframes reportPageOpenLeft {
  from { opacity: 0.2; transform: rotateY(82deg) scale(0.96); }
  to { opacity: 1; transform: rotateY(2.2deg) scale(1); }
}

@keyframes reportPageOpenRight {
  from { opacity: 0.2; transform: rotateY(-82deg) scale(0.96); }
  to { opacity: 1; transform: rotateY(-2.2deg) scale(1); }
}

@keyframes reportCreaseIn {
  to { opacity: 1; }
}

@keyframes reportNoteScatterIn {
  from {
    opacity: 0;
    transform: translateY(-32px) scale(0.88) rotate(calc(var(--note-rotation) * -0.25));
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--note-rotation));
  }
}

@keyframes reportDataGapDrop {
  0% {
    opacity: 0;
    transform: translateY(-290px) rotate(8deg) scale(0.96);
  }

  70% {
    opacity: 1;
    transform: translateY(8px) rotate(-3deg) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(var(--note-rotation)) scale(1);
  }
}

@media (max-width: 900px) {
  .report-library-scene > header,
  .report-spread-scene > header,
  .report-notes-scene > header {
    display: grid;
    gap: 12px;
  }

  .report-books {
    gap: 2px;
  }

  .report-open-book {
    width: min(92vw, 680px);
  }

  .report-note-book {
    width: min(72vw, 560px);
  }

  .report-post-it {
    min-height: 52px;
    padding: 8px 7px 11px;
    font-size: clamp(0.7rem, 1.5vw, 0.88rem);
  }
}

@media (max-width: 1180px) {
  .report-books {
    width: 100%;
    gap: 2px;
  }

  .report-book-spine {
    width: auto;
    min-width: 18px;
    flex: 1 1 0;
    padding-right: 2px;
    padding-left: 2px;
  }

  .report-spine-asterisk {
    width: 18px;
    height: 18px;
    transform: scale(0.82);
  }
}

@media (max-height: 800px) and (min-width: 901px) {
  .report-library-scene,
  .report-spread-scene,
  .report-notes-scene {
    max-height: 570px;
    gap: 9px;
  }

  .report-library-scene h1,
  .report-spread-scene h1,
  .report-notes-scene h1 {
    font-size: clamp(1.9rem, 3.05vw, 3.65rem);
  }

  .report-library {
    padding-top: 16px;
  }

  .report-open-book {
    width: min(75vw, 780px);
  }
}

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

  .report-book-spine {
    opacity: 1;
    transform: translateY(var(--book-lift));
    animation: none !important;
  }

  .report-page.is-left {
    opacity: 1;
    transform: rotateY(2.2deg);
    animation: none !important;
  }

  .report-page.is-right {
    opacity: 1;
    transform: rotateY(-2.2deg);
    animation: none !important;
  }

  .report-book-crease {
    opacity: 1;
    animation: none !important;
  }

  .report-note-anchor.is-entering .report-post-it,
  .report-note-anchor.is-final .report-post-it {
    opacity: 1;
    transform: rotate(var(--note-rotation));
    animation: none !important;
  }
}

/* Closing contact slide */

.cover-scene--closing {
  grid-template-columns: minmax(170px, 0.48fr) minmax(0, 1fr) minmax(290px, 0.7fr);
  gap: clamp(22px, 3vw, 48px);
  align-items: center;
}

.cover-scene--closing .cover-mark {
  right: -15%;
  opacity: 0.7;
}

.cover-scene--closing > .erg-logo {
  position: relative;
  z-index: 1;
  width: min(100%, 260px);
}

.contact-copy {
  align-self: center;
}

.contact-copy h1 {
  max-width: 10ch;
  font-size: clamp(2.6rem, 4.6vw, 5.3rem);
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: clamp(24px, 3.4vh, 36px);
}

.contact-details a {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-website {
  color: var(--paper-bright);
  font-size: clamp(1.15rem, 1.8vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.contact-email {
  color: var(--primary-soft);
  font-family: var(--mono);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.2;
}

.contact-tagline {
  margin: clamp(22px, 3vh, 32px) 0 0;
  color: var(--primary-soft);
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
  line-height: 1.25;
  white-space: nowrap;
}

.contact-qr {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 340px);
  aspect-ratio: 1;
  min-width: 0;
  justify-self: end;
  place-items: center;
  padding: clamp(18px, 2vw, 26px);
  background: #fff;
  box-shadow: 0 14px 30px rgb(80 2 32 / 18%);
}

.contact-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.contact-qr-fallback {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .cover-scene--closing {
    grid-template-columns: 1fr;
    gap: 18px;
    align-content: start;
    overflow: auto;
  }

  .cover-scene--closing > .erg-logo {
    width: min(210px, 50vw);
  }

  .contact-copy {
    align-self: start;
  }

  .contact-copy h1 {
    font-size: clamp(2.3rem, 6vw, 4rem);
  }

  .contact-qr {
    width: min(58vw, 290px);
    justify-self: start;
  }

  .contact-tagline {
    white-space: normal;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .contact-tagline {
    white-space: normal;
  }
}

@media (max-height: 700px) and (min-width: 901px) {
  .contact-copy h1 {
    font-size: clamp(2.5rem, 4.1vw, 4rem);
  }

  .contact-qr {
    width: min(100%, 310px);
  }
}

@media print {
  .presenter-topbar,
  .presenter-nav {
    display: none;
  }

  .presenter-shell {
    display: block;
    height: auto;
  }
}
