:root {
  color-scheme: dark;
  --ink: #f7f1e8;
  --ink-soft: rgba(247, 241, 232, 0.78);
  --ink-muted: rgba(247, 241, 232, 0.58);
  --paper: #f6efe4;
  --paper-2: #e8ded1;
  --charcoal: #11100f;
  --charcoal-2: #1a1715;
  --charcoal-3: #27221f;
  --gold: #d5b45d;
  --gold-dark: #8d7434;
  --teal: #5fa4a0;
  --blood: #9f3d34;
  --line: rgba(247, 241, 232, 0.18);
  --line-strong: rgba(247, 241, 232, 0.34);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 8px;
  --topbar: 70px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 10%, rgba(159, 61, 52, 0.16), transparent 30vw),
    linear-gradient(180deg, #0b0b0b 0%, var(--charcoal) 42%, #161310 100%);
  overflow: hidden;
  --cursor-x: 50%;
  --cursor-y: 45%;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
video {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 8px 12px;
  color: var(--charcoal);
  background: var(--paper);
  border-radius: var(--radius);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.top-ui {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  min-height: var(--topbar);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 380px) minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px clamp(14px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(12, 11, 10, 0.92), rgba(12, 11, 10, 0.62));
  border-bottom: 1px solid rgba(247, 241, 232, 0.08);
  backdrop-filter: blur(16px);
}

.brand-mark {
  min-width: 0;
}

.brand-kicker {
  display: block;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-title {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.1;
}

.progress-shell {
  display: grid;
  gap: 6px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  line-height: 1;
  color: var(--ink-muted);
}

.progress-track {
  height: 4px;
  overflow: hidden;
  background: rgba(247, 241, 232, 0.14);
  border-radius: 999px;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--blood));
  border-radius: inherit;
  transition: width 0.35s ease;
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button,
.text-button,
.ghost-button,
.primary-button,
.answer-choice,
.photo-tab,
.chain-step,
.medium-option {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(247, 241, 232, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.icon-button {
  width: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.icon-button svg,
.primary-button svg,
.ghost-button svg,
.text-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.text-button,
.ghost-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.primary-button {
  border-color: rgba(213, 180, 93, 0.7);
  color: #161310;
  background: var(--gold);
}

.ghost-button {
  color: var(--ink);
}

.text-button {
  color: var(--ink);
}

.icon-button:hover,
.text-button:hover,
.ghost-button:hover,
.answer-choice:hover,
.photo-tab:hover,
.chain-step:hover,
.medium-option:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(247, 241, 232, 0.11);
}

[data-listen-current][aria-pressed="true"] {
  border-color: rgba(213, 180, 93, 0.78);
  color: #11100f;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(213, 180, 93, 0.18);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: #e5c879;
}

.primary-button:hover svg,
.ghost-button:hover svg,
.text-button:hover svg,
.icon-button:hover svg {
  transform: translateX(2px) scale(1.06);
}

.icon-button svg,
.primary-button svg,
.ghost-button svg,
.text-button svg {
  transition: transform 0.22s ease;
}

.audio-status {
  position: fixed;
  top: calc(var(--topbar) + 8px);
  right: clamp(14px, 3vw, 34px);
  z-index: 92;
  max-width: min(340px, calc(100vw - 28px));
  padding: 8px 12px;
  border: 1px solid rgba(213, 180, 93, 0.35);
  border-radius: var(--radius);
  background: rgba(17, 16, 15, 0.86);
  color: var(--ink-soft);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.floating-mobile-actions {
  position: fixed;
  top: 14px;
  right: clamp(14px, 3vw, 34px);
  z-index: 150;
  display: flex;
  gap: 8px;
}

.top-actions {
  display: none;
}

.audio-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story {
  position: relative;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  perspective: 1400px;
}

.story::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(213, 180, 93, 0.11), transparent 19rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 36%, transparent 64%, rgba(0, 0, 0, 0.18));
  mix-blend-mode: screen;
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.story-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100svh;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(22px, 4vw, 72px);
  padding: calc(var(--topbar) + 24px) clamp(18px, 5vw, 72px) 34px;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate3d(0, 8vh, -80px) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.72s;
}

.story-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(120deg, rgba(7, 7, 7, 0.92), rgba(14, 13, 12, 0.76) 46%, rgba(14, 13, 12, 0.94));
}

.story-panel::after {
  content: "";
  position: absolute;
  inset: 9% 4%;
  z-index: -2;
  pointer-events: none;
  border: 1px solid rgba(247, 241, 232, 0.05);
  opacity: 0;
  transform: scaleX(0.84);
  transition: opacity 0.7s ease, transform 0.9s ease;
}

.story-panel.is-visible,
.story-panel.is-active {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  transition-delay: 0s;
}

.story-panel.is-visible::after,
.story-panel.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.story-panel.is-exiting {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  visibility: visible;
  filter: blur(8px);
  transition:
    opacity 0.55s cubic-bezier(0.64, 0, 0.78, 0),
    transform 0.55s cubic-bezier(0.64, 0, 0.78, 0),
    filter 0.55s cubic-bezier(0.64, 0, 0.78, 0);
}

.story-panel.exit-up {
  transform: translate3d(0, -10vh, -120px) scale(0.972);
}

.story-panel.exit-down {
  transform: translate3d(0, 10vh, -120px) scale(0.972);
}

.visual-stage {
  min-width: 0;
  position: relative;
  align-self: stretch;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.story-panel.is-visible .visual-stage {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.visual-frame {
  position: relative;
  width: min(100%, calc((100svh - var(--topbar) - 70px) * 0.5625), 480px);
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius);
  background: #050505;
  border: 1px solid rgba(247, 241, 232, 0.12);
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.visual-frame.landscape {
  width: min(100%, 86vh);
  aspect-ratio: 16 / 10;
}

.visual-frame.square {
  width: min(100%, 62vh);
  aspect-ratio: 1 / 1;
}

.visual-frame img,
.visual-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-frame.contain img {
  object-fit: contain;
  background: #050505;
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.24)),
    radial-gradient(circle at 50% 36%, transparent 48%, rgba(0, 0, 0, 0.34) 100%);
  transition: opacity 0.35s ease, background 0.35s ease;
}

.story-panel.is-active .visual-frame:hover,
.story-panel.is-active .visual-frame:focus-within {
  transform: translateY(-5px) scale(1.018);
  border-color: rgba(213, 180, 93, 0.36);
  box-shadow: 0 30px 88px rgba(0, 0, 0, 0.55), 0 0 38px rgba(213, 180, 93, 0.11);
  filter: saturate(1.04) contrast(1.03);
}

.story-panel.is-active .visual-frame:hover::after,
.story-panel.is-active .visual-frame:focus-within::after {
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(213, 180, 93, 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.2)),
    radial-gradient(circle at 50% 36%, transparent 48%, rgba(0, 0, 0, 0.28) 100%);
}

.visual-caption {
  position: absolute;
  inset: auto 10px 10px 10px;
  z-index: 2;
  padding: 8px 10px;
  color: rgba(247, 241, 232, 0.74);
  background: rgba(0, 0, 0, 0.46);
  border: 1px solid rgba(247, 241, 232, 0.12);
  border-radius: var(--radius);
  font-size: 11px;
  line-height: 1.45;
}

.content-stage {
  min-width: 0;
  max-width: 610px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(213, 180, 93, 0.35);
  border-radius: var(--radius);
  color: var(--gold);
  background: rgba(213, 180, 93, 0.08);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-panel h1,
.story-panel h2 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 100%;
}

.story-panel h1 {
  font-size: clamp(48px, 6.4vw, 86px);
}

.story-panel h2 {
  font-size: clamp(36px, 4.4vw, 64px);
}

.lede {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.45;
}

.small-copy {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.55;
}

.micro-copy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.45;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.99);
  filter: blur(5px);
  transition:
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(170ms + var(--i, 0) * 105ms);
}

.story-panel.is-visible .reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 22px;
  max-width: 620px;
}

.name-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid rgba(247, 241, 232, 0.14);
  border-radius: var(--radius);
  background: #0b0b0b;
  transform: translateZ(0);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.name-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  filter: grayscale(0.12) contrast(1.04);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.story-panel.is-active .name-card:hover,
.story-panel.is-active .name-card:focus-within {
  z-index: 2;
  transform: translateY(-7px) scale(1.035);
  border-color: rgba(213, 180, 93, 0.44);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42), 0 0 28px rgba(213, 180, 93, 0.1);
}

.story-panel.is-active .name-card:hover img,
.story-panel.is-active .name-card:focus-within img {
  transform: scale(1.075);
  filter: grayscale(0) contrast(1.08) saturate(1.05);
}

.name-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86));
}

.person-name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.05;
}

.person-role {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.25;
}

.prompt-block,
.choice-block,
.response-dock {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 241, 232, 0.065);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.story-panel.is-active .prompt-block:hover,
.story-panel.is-active .choice-block:hover {
  transform: translateY(-3px);
  border-color: rgba(247, 241, 232, 0.28);
  background: rgba(247, 241, 232, 0.09);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.prompt-block label,
.choice-block legend {
  display: block;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prompt-block p,
.choice-block p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

.reflect-framing {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 8px;
  font-size: 15px;
}

.reflect-framing-list {
  margin: 0 0 14px 22px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.reflect-framing-list li {
  margin-bottom: 6px;
}

.reflect-framing-list em {
  font-style: italic;
  color: var(--ink);
  font-weight: 600;
}

textarea,
input[type="text"] {
  width: 100%;
  border: 1px solid rgba(247, 241, 232, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.26);
  outline: none;
}

textarea {
  min-height: 104px;
  resize: vertical;
  padding: 12px;
  line-height: 1.5;
}

input[type="text"] {
  min-height: 46px;
  padding: 0 12px;
}

textarea:focus,
input[type="text"]:focus {
  outline: none;
  border-color: rgba(213, 180, 93, 0.75);
  box-shadow: 0 0 0 3px rgba(213, 180, 93, 0.14);
}

button:focus {
  outline: none;
}

textarea:focus-visible,
input[type="text"]:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.saved-note {
  min-height: 18px;
  margin-top: 8px;
  color: var(--teal);
  font-size: 12px;
}

.answer-grid,
.medium-grid {
  display: grid;
  gap: 10px;
}

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

.answer-choice,
.medium-option {
  padding: 12px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.answer-choice::after,
.medium-option::after,
.photo-tab::after,
.chain-step::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(213, 180, 93, 0.14), transparent);
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 0.25s ease, transform 0.45s ease;
}

.story-panel.is-active .answer-choice:hover::after,
.story-panel.is-active .medium-option:hover::after,
.story-panel.is-active .photo-tab:hover::after,
.story-panel.is-active .chain-step:hover::after {
  opacity: 1;
  transform: translateX(70%);
}

.answer-choice strong,
.medium-option strong {
  display: block;
  color: var(--ink);
  line-height: 1.2;
}

.answer-choice span,
.medium-option span {
  display: block;
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.35;
}

.answer-choice[aria-pressed="true"],
.medium-option[aria-pressed="true"] {
  border-color: rgba(213, 180, 93, 0.82);
  background: rgba(213, 180, 93, 0.13);
}

.film-shell {
  width: min(100%, calc((100svh - var(--topbar) - 92px) * 0.5625), 440px);
  max-width: 440px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.film-shell video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid rgba(247, 241, 232, 0.16);
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

.pulse-word {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.photo-explorer {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.65fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 18px;
}

.photo-display {
  min-height: 330px;
  border: 1px solid rgba(247, 241, 232, 0.14);
  border-radius: var(--radius);
  background: #050505;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.photo-display img {
  width: 100%;
  height: 100%;
  max-height: 55vh;
  object-fit: contain;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.story-panel.is-active .photo-display:hover {
  transform: scale(1.018);
  border-color: rgba(95, 164, 160, 0.46);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.38), 0 0 34px rgba(95, 164, 160, 0.1);
}

.story-panel.is-active .photo-display:hover img {
  transform: scale(1.055);
  filter: contrast(1.04) saturate(1.03);
}

.photo-controls {
  display: grid;
  gap: 10px;
}

.photo-tab {
  position: relative;
  overflow: hidden;
  padding: 11px;
  text-align: left;
}

.photo-tab strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.photo-tab span {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.35;
}

.photo-tab[aria-selected="true"] {
  border-color: rgba(95, 164, 160, 0.8);
  background: rgba(95, 164, 160, 0.14);
}

.chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.chain-step {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  padding: 12px;
  text-align: left;
}

.chain-step strong {
  display: block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chain-step span {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.note-fragment {
  position: relative;
  margin-top: 18px;
  padding: 18px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(247, 241, 232, 0.08);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.36;
}

.note-fragment cite {
  display: block;
  margin-top: 12px;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-style: normal;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.comparison-panel {
  min-height: 160px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 241, 232, 0.06);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.story-panel.is-active .comparison-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(213, 180, 93, 0.34);
  background: rgba(247, 241, 232, 0.085);
}

.comparison-panel h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.response-dock {
  position: fixed;
  top: calc(var(--topbar) + 14px);
  right: clamp(14px, 3vw, 34px);
  z-index: 110;
  width: min(460px, calc(100vw - 28px));
  max-height: calc(100svh - var(--topbar) - 28px);
  overflow: auto;
  box-shadow: var(--shadow);
  background: rgba(20, 18, 16, 0.96);
  backdrop-filter: blur(16px);
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.response-dock.is-open {
  transform: translateX(0);
  opacity: 1;
}

.dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.dock-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.response-list {
  display: grid;
  gap: 12px;
}

.response-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.response-item strong {
  display: block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.response-item p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
  line-height: 1.45;
}

.final-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.print-only {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .top-ui {
    grid-template-columns: 1fr auto;
  }

  .progress-shell {
    display: none;
  }

  .story-panel {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    padding-top: calc(var(--topbar) + 18px);
  }

  .visual-stage {
    align-self: auto;
  }

  .visual-frame {
    width: min(100%, 44svh);
    max-width: none;
    aspect-ratio: 16 / 10;
  }

  .visual-frame.portrait-mobile {
    aspect-ratio: 9 / 12;
  }

  .content-stage {
    max-width: 780px;
  }

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

  .photo-explorer,
  .comparison {
    grid-template-columns: 1fr;
  }

  .photo-display {
    min-height: 260px;
  }

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

@media (max-width: 640px) {
  :root {
    --topbar: 62px;
  }

  .top-ui {
    display: block;
    position: fixed;
    padding: 10px 12px;
  }

  .brand-mark {
    padding-right: 104px;
  }

  .top-actions {
    display: none;
  }

  .floating-mobile-actions {
    position: fixed;
    top: 10px;
    right: 8px;
    z-index: 150;
    display: flex;
    gap: 6px;
  }

  .floating-mobile-actions .text-button {
    width: 42px;
    padding: 0;
  }

  .floating-mobile-actions .icon-button,
  .floating-mobile-actions .text-button {
    color: #11100f;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  }

  .brand-kicker {
    font-size: 9px;
  }

  .brand-title {
    font-size: 15px;
  }

  .top-actions .text-button span,
  .floating-mobile-actions .text-button span {
    display: none;
  }

  .text-button,
  .ghost-button,
  .primary-button {
    padding: 0 12px;
  }

  .story-panel {
    min-height: 100svh;
    width: 100vw;
    overflow: hidden;
    gap: 10px;
    align-content: start;
    padding: calc(var(--topbar) + 8px) 14px 18px;
  }

  .content-stage,
  .visual-stage {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }

  .story-panel h1 {
    max-width: 9ch;
    font-size: 44px;
  }

  .story-panel h2 {
    margin-top: 10px;
    font-size: clamp(26px, 8vw, 34px);
  }

  .lede {
    max-width: 32ch;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.34;
    overflow-wrap: break-word;
  }

  .small-copy {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.38;
  }

  .eyebrow {
    min-height: 24px;
    padding: 0 8px;
    font-size: 9px;
  }

  .actions-row {
    gap: 8px;
    margin-top: 12px;
  }

  .visual-frame,
  .visual-frame.landscape,
  .visual-frame.square,
  .visual-frame.portrait-mobile {
    width: 100%;
    height: min(25svh, 220px);
    aspect-ratio: auto;
  }

  #start .visual-frame {
    height: min(34svh, 292px);
  }

  #photos .visual-stage {
    display: none;
  }

  .name-grid {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: none;
    gap: 6px;
    margin-top: 0;
  }

  .name-card {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .name-card img {
    min-height: 0;
  }

  .name-card figcaption {
    padding: 28px 8px 8px;
  }

  .person-name {
    font-size: 14px;
  }

  .person-role {
    font-size: 10px;
  }

  .answer-grid.two,
  .chain {
    grid-template-columns: 1fr;
  }

  .pulse-word {
    grid-template-columns: 1fr;
  }

  .prompt-block,
  .choice-block {
    margin-top: 10px;
    padding: 10px;
  }

  .prompt-block label,
  .choice-block legend {
    margin-bottom: 7px;
    font-size: 11px;
    line-height: 1.25;
  }

  .prompt-block p,
  .choice-block p {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.35;
  }

  input[type="text"] {
    min-height: 38px;
  }

  textarea {
    min-height: 62px;
    padding: 8px;
    font-size: 13px;
  }

  .answer-grid,
  .medium-grid {
    gap: 6px;
  }

  .answer-choice,
  .medium-option {
    min-height: 0;
    padding: 8px;
  }

  .answer-choice strong,
  .medium-option strong {
    font-size: 12px;
  }

  .answer-choice span,
  .medium-option span {
    font-size: 10px;
    line-height: 1.25;
  }

  .film-shell {
    width: 100%;
    max-width: none;
    gap: 6px;
  }

  .film-shell video {
    width: auto;
    height: min(28svh, 240px);
    margin: 0 auto;
  }

  .photo-explorer {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
  }

  .photo-display {
    min-height: 122px;
  }

  .photo-display img {
    max-height: 27svh;
  }

  .photo-controls {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .photo-tab {
    min-height: 38px;
    padding: 7px;
  }

  .photo-tab strong {
    font-size: 11px;
  }

  .photo-tab span {
    display: none;
  }

  .photo-controls .micro-copy {
    grid-column: 1 / -1;
    font-size: 10px;
  }

  .note-fragment {
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
    line-height: 1.28;
  }

  .chain {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
  }

  .chain-step {
    min-height: 66px;
    padding: 8px;
  }

  .chain-step strong {
    font-size: 10px;
  }

  .chain-step span {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.25;
  }

  .comparison {
    gap: 8px;
    margin-top: 10px;
  }

  .comparison-panel {
    min-height: 0;
    padding: 10px;
  }

  .comparison-panel h3 {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .comparison-panel p {
    font-size: 12px;
    line-height: 1.32;
  }
}

@media print {
  html,
  body {
    color: #111;
    background: #fff;
  }

  .top-ui,
  .audio-status,
  .response-dock,
  .actions-row,
  .skip-link {
    display: none !important;
  }

  .story-panel {
    display: block;
    min-height: auto;
    page-break-inside: avoid;
    padding: 24px 0;
  }

  .visual-stage,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .visual-frame {
    width: 220px;
    box-shadow: none;
  }

  .print-only {
    display: block;
  }
}
