@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-display: swap;
}

/*
 * Presentation grammar adapted from Waybill's public YC launch film.
 * Source: https://www.ycombinator.com/companies/waybill
 * Visual reference only; this is an original implementation with no copied
 * software, interface assets, or production footage.
 */

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper: #f1f2ec;
  --surface: #fbfcf8;
  --ink: #17201c;
  --muted: #68716c;
  --panel: #dce4e8;
  --proof: #25a66f;
  --proof-soft: #e8f6ee;
  --fail: #b94d3d;
  --fail-soft: #fff0ec;
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --move-ms: 800ms;
  --status-ms: 340ms;
  --dissolve-ms: 560ms;
}

* {
  box-sizing: border-box;
}

html {
  background: #e9ebe5;
}

body {
  margin: 0;
}

button,
select,
input {
  font: inherit;
}

.film-body {
  min-height: 100vh;
  background: #e9ebe5;
  color: var(--ink);
  font-family: "Instrument Sans", sans-serif;
}

.film-nav,
.film-footer {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.film-nav {
  height: 76px;
}

.film-brand {
  color: var(--ink);
  text-decoration: none;
  font: 640 24px/1 "Instrument Sans", sans-serif;
  letter-spacing: -.045em;
}

.film-brand span {
  color: var(--proof);
}

.film-nav p,
.film-footer {
  color: #69736d;
  font: 540 12px/1.4 "Geist Mono", monospace;
}

.film-page {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.film-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: end;
  gap: 80px;
  padding: 68px 0 34px;
}

.film-eyebrow {
  margin: 0 0 14px;
  color: #718078;
  font: 650 10px/1 "Geist Mono", monospace;
  letter-spacing: .14em;
}

.film-heading h1 {
  margin: 0;
  font: 540 clamp(42px, 5.4vw, 82px)/.94 "Instrument Sans", sans-serif;
  letter-spacing: -.065em;
}

.film-intro {
  margin: 0 0 6px;
  color: #59645e;
  font: 500 clamp(16px, 1.5vw, 20px)/1.5 "Instrument Sans", sans-serif;
}

.film-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #d7dbd4;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgb(25 38 32 / 8%);
}

.film-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.film-scene {
  --enter-x: 0px;
  --enter-y: 0px;
  --enter-scale: .985;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate3d(var(--enter-x), var(--enter-y), 0) scale(var(--enter-scale));
  transition:
    opacity var(--dissolve-ms) var(--ease-soft),
    transform var(--move-ms) var(--ease-settle);
}

.film-scene.is-entering,
.film-scene.is-active {
  will-change: transform, opacity;
}

.film-scene.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.film-scene[data-motion="rise"] { --enter-y: 18px; }
.film-scene[data-motion="drop"] { --enter-y: -18px; }
.film-scene[data-motion="lateral"] { --enter-x: 18px; }
.film-scene[data-motion="opposed"] { --enter-scale: .99; }
.film-scene[data-motion="unfold"] { --enter-x: -12px; --enter-scale: .992; }
.film-scene[data-motion="expand"] { --enter-y: 12px; --enter-scale: .992; }
.film-scene[data-motion="converge"] { --enter-scale: 1.012; }
.film-scene[data-motion="file"] { --enter-x: -16px; }
.film-scene[data-motion="rerun"] { --enter-y: 14px; }
.film-scene[data-motion="handoff"] { --enter-x: -14px; }
.film-scene[data-motion="memory-agent"] { --enter-y: 16px; }

.film-object {
  width: min(560px, 62vw);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.film-card {
  min-width: 140px;
  padding: 18px;
  border: 1px solid #dce0da;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 52px rgb(21 35 28 / 9%);
}

.film-card--pass {
  border-color: #86c9a6;
  background: var(--proof-soft);
}

.film-card--fail {
  border-color: #e1a093;
  background: var(--fail-soft);
}

.film-card__label {
  display: block;
  color: var(--muted);
  font: 600 11px/1.2 "Geist Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.film-card__value {
  display: block;
  margin-top: 9px;
  font: 620 18px/1.2 "Instrument Sans", sans-serif;
}

.film-pill {
  display: inline-flex;
  width: max-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf0ec;
  color: var(--muted);
  font: 650 10px/1 "Geist Mono", monospace;
  letter-spacing: .06em;
}

.film-pill--proof {
  background: var(--proof-soft);
  color: #197049;
}

.film-pill--fail {
  background: var(--fail-soft);
  color: var(--fail);
}

.film-connector {
  color: #8d9691;
  font: 500 22px/1 "Instrument Sans", sans-serif;
}

.film-line {
  display: block;
  width: var(--line-width);
  height: 7px;
  border-radius: 999px;
  background: #e4e8e3;
}

.film-line--proof {
  background: var(--proof);
}

.film-line--fail {
  background: var(--fail);
}

.film-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.film-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.metric-panel,
.inbox-card,
.checkout-card,
.payment-receipt,
.webhook-card,
.verdict-card,
.pull-check,
.fix-card,
.memory-card,
.agent-result {
  width: min(520px, 62vw);
  border: 1px solid #dce0da;
  border-radius: 14px;
  background: rgb(251 252 248 / 96%);
  box-shadow: 0 22px 64px rgb(21 35 28 / 9%);
}

.metric-panel {
  padding: 30px;
}

.metric-panel__scale {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.metric-number {
  font: 620 clamp(40px, 5vw, 66px)/.95 "Instrument Sans", sans-serif;
  letter-spacing: -.06em;
}

.metric-copy,
.checkout-cycle,
.success-copy,
.receipt-time,
.receipt-key,
.webhook-error,
.verdict-detail,
.pull-check__copy,
.agent-result__meta {
  color: var(--muted);
  font: 500 12px/1.4 "Instrument Sans", sans-serif;
}

.reliability {
  position: relative;
  margin-top: 34px;
  padding-top: 18px;
}

.reliability__labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  white-space: pre;
  font: 600 10px/1 "Geist Mono", monospace;
}

.reliability__track,
.reliability__fill {
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  height: 7px;
  border-radius: 999px;
}

.reliability__track {
  background: #e5e9e4;
}

.reliability__fill {
  background: var(--proof);
  transform: scaleX(clamp(.08, var(--scene-progress), 1));
  transform-origin: left;
}

.scene-02 .film-card:first-child,
.scene-13 .film-card:first-child {
  transform: translateX(calc((1 - var(--scene-progress)) * 24px));
}

.scene-02 .film-card:last-child,
.scene-13 .film-card:last-child {
  transform: translateX(calc((1 - var(--scene-progress)) * -24px));
}

.scene-02 .film-connector,
.scene-13 .film-connector {
  opacity: clamp(0, calc((var(--scene-progress) - .48) * 4), 1);
}

.film-lockup {
  text-align: center;
}

.film-wordmark {
  font: 640 clamp(64px, 9vw, 112px)/.9 "Instrument Sans", sans-serif;
  letter-spacing: -.075em;
}

.film-wordmark__dot {
  color: var(--proof);
}

.film-lockup__category {
  margin: 22px 0 0;
  color: var(--muted);
  font: 500 clamp(16px, 2vw, 22px)/1.4 "Instrument Sans", sans-serif;
  opacity: clamp(0, calc((var(--scene-progress) - .35) * 3), 1);
  transform: translateY(calc((1 - var(--scene-progress)) * 8px));
}

.film-field {
  position: relative;
  width: min(520px, 62vw);
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid #dce0da;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 52px rgb(21 35 28 / 8%);
}

.film-field__label {
  display: block;
  color: var(--muted);
  font: 650 10px/1 "Geist Mono", monospace;
  letter-spacing: .08em;
}

.film-field__value {
  display: block;
  margin-top: 11px;
  overflow: hidden;
  color: var(--ink);
  font: 520 16px/1.45 "Instrument Sans", sans-serif;
  white-space: nowrap;
  opacity: clamp(0, calc((var(--scene-progress) - .16) * 4), 1);
  transform: translateX(calc((1 - var(--scene-progress)) * -10px));
}

.film-field--outcome .film-field__value {
  white-space: normal;
}

.typing-caret {
  position: absolute;
  bottom: 19px;
  left: calc(20px + clamp(16px, calc(var(--scene-progress) * 440px), 440px));
  width: 1px;
  height: 18px;
  background: var(--proof);
  opacity: clamp(0, calc((.88 - var(--scene-progress)) * 8), 1);
}

.mini-browser {
  width: min(590px, 68vw);
  overflow: hidden;
  border: 1px solid #d9ddd8;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgb(21 35 28 / 10%);
}

.mini-browser__chrome {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  height: 38px;
  border-bottom: 1px solid #e5e8e3;
  background: #f3f5f1;
}

.mini-browser__dots {
  padding-left: 13px;
  color: #bdc4bf;
  font-size: 6px;
  letter-spacing: 2px;
}

.mini-browser__address {
  padding: 5px 10px;
  border: 1px solid #e1e4df;
  border-radius: 6px;
  background: #fff;
  color: #747d78;
  text-align: center;
  font: 500 9px/1 "Geist Mono", monospace;
}

.mini-browser__page {
  min-height: 315px;
  display: grid;
  place-items: center;
  padding: 32px;
}

.signup-form {
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup-form .film-field {
  width: 100%;
  padding: 11px 13px;
  box-shadow: none;
}

.signup-form .film-field__value {
  margin-top: 7px;
  font-size: 11px;
}

.mini-heading,
.checkout-card__top,
.success-title,
.verdict-title,
.run-file__title,
.memory-card__title {
  color: var(--ink);
  font: 620 18px/1.3 "Instrument Sans", sans-serif;
  letter-spacing: -.02em;
}

.mini-button {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  border-radius: 8px;
  background: #1e2924;
  color: #fff;
  font: 600 11px/1 "Instrument Sans", sans-serif;
  transform: scale(calc(.985 + var(--scene-progress) * .015));
}

.signup-form .film-pill {
  align-self: center;
  opacity: clamp(0, calc((var(--scene-progress) - .72) * 5), 1);
}

.inbox-card {
  padding: 22px;
}

.inbox-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #e3e6e1;
}

.inbox-card__title {
  font: 620 18px/1 "Instrument Sans", sans-serif;
}

.inbox-message {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 5px 14px;
  padding: 18px 0 2px;
  opacity: clamp(0, calc(var(--scene-progress) * 3), 1);
  transform: translateY(calc((1 - var(--scene-progress)) * 12px));
}

.inbox-message__from,
.inbox-message__preview {
  color: var(--muted);
  font: 500 12px/1.4 "Instrument Sans", sans-serif;
}

.inbox-message__subject {
  font: 620 13px/1.3 "Instrument Sans", sans-serif;
}

.verify-link {
  grid-column: 2;
  margin-top: 12px;
  color: #15744b;
  font: 620 12px/1 "Instrument Sans", sans-serif;
}

.checkout-card {
  padding: 24px;
}

.checkout-card > * + * {
  margin-top: 13px;
}

.checkout-price {
  font: 630 44px/.9 "Instrument Sans", sans-serif;
  letter-spacing: -.05em;
}

.checkout-card .film-field {
  width: 100%;
  box-shadow: none;
}

.mini-button--wide {
  width: 100%;
}

.checkout-card > .film-pill {
  margin-right: auto;
  margin-left: auto;
  opacity: clamp(0, calc((var(--scene-progress) - .66) * 4), 1);
}

.success-card {
  width: 320px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid #dce0da;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 22px 64px rgb(21 35 28 / 9%);
}

.success-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--proof-soft);
  color: var(--proof);
  font: 700 20px/1 "Instrument Sans", sans-serif;
  opacity: clamp(0, calc((var(--scene-progress) - .2) * 4), 1);
  transform: scale(calc(.8 + var(--scene-progress) * .2));
}

.evidence-chain,
.proof-chain {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.evidence-chain .film-card,
.proof-chain .film-card {
  min-width: 112px;
  padding: 14px;
  opacity: clamp(0, calc((var(--scene-progress) - .12) * 2.4), 1);
  transform: translateX(calc((1 - var(--scene-progress)) * -10px));
}

.evidence-chain .film-connector,
.proof-chain .film-connector {
  opacity: clamp(0, calc((var(--scene-progress) - .44) * 4), 1);
}

.payment-receipt,
.webhook-card,
.verdict-card,
.pull-check,
.fix-card,
.memory-card,
.agent-result {
  padding: 24px;
}

.payment-receipt > * + *,
.webhook-card > * + *,
.verdict-card > * + *,
.pull-check > * + *,
.fix-card > * + *,
.memory-card > * + *,
.agent-result > * + * {
  margin-top: 14px;
}

.receipt-amount {
  display: block;
  font: 630 44px/.95 "Instrument Sans", sans-serif;
  letter-spacing: -.055em;
}

.receipt-value {
  font: 520 12px/1.3 "Geist Mono", monospace;
}

.webhook-event {
  display: block;
  font: 560 14px/1.4 "Geist Mono", monospace;
}

.scene-12 .film-line {
  transform: scaleX(var(--scene-progress));
  transform-origin: left;
}

.verdict-card {
  text-align: center;
}

.verdict-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--fail-soft);
  color: var(--fail);
  font: 700 22px/1 "Instrument Sans", sans-serif;
}

.verdict-card .film-pill {
  margin-right: auto;
  margin-left: auto;
}

.verdict-title {
  display: block;
}

.evidence-bundle {
  display: grid;
  grid-template-columns: repeat(2, 150px);
  gap: 10px;
  transform: translateX(calc((1 - var(--scene-progress)) * -34px));
}

.evidence-bundle .film-card {
  min-width: 0;
}

.run-file {
  width: 210px;
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid #89c9a7;
  border-radius: 13px;
  background: var(--proof-soft);
  opacity: clamp(0, calc((var(--scene-progress) - .55) * 3), 1);
  transform: translateX(calc((1 - var(--scene-progress)) * 30px));
}

.pull-check__title,
.pull-check__merge {
  font: 620 14px/1.3 "Instrument Sans", sans-serif;
}

.pull-check__rule {
  display: block;
  height: 1px;
  background: #e1e5e0;
}

.pull-check__merge,
.pull-check__icon {
  color: var(--fail);
}

.fix-line,
.agent-command,
.agent-json {
  display: block;
  padding: 9px 11px;
  border-radius: 7px;
  font: 500 11px/1.35 "Geist Mono", monospace;
}

.fix-line--old {
  background: var(--fail-soft);
  color: #955042;
  text-decoration: line-through;
}

.fix-line--new,
.agent-json {
  background: var(--proof-soft);
  color: #196943;
}

.scene-17 > .film-object > .film-card {
  opacity: clamp(0, calc((var(--scene-progress) - .58) * 3), 1);
}

.proof-chain__fill {
  position: absolute;
  z-index: -1;
  right: 9%;
  left: 9%;
  height: 2px;
  background: var(--proof);
  transform: scaleX(var(--scene-progress));
  transform-origin: left;
}

.memory-card .film-row + .film-row {
  padding-top: 12px;
  border-top: 1px solid #e6e9e4;
}

.memory-flow {
  flex: 1;
  color: #4f5954;
  font: 520 12px/1.4 "Instrument Sans", sans-serif;
}

.agent-result {
  width: 380px;
}

.agent-command {
  background: #202824;
  color: #f2f6f3;
}

.launch-memory-agent .film-object {
  width: min(780px, 76vw);
}

.launch-memory,
.launch-agent-proof {
  width: min(330px, 36vw);
  padding: 22px;
  border: 1px solid #dce0da;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgb(21 35 28 / 9%);
}

.launch-memory {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(calc((1 - var(--scene-progress)) * 22px));
}

.launch-memory__title {
  font: 620 18px/1.2 "Instrument Sans", sans-serif;
}

.launch-memory__commit {
  color: var(--muted);
  font: 550 10px/1.2 "Geist Mono", monospace;
}

.launch-agent-proof {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: clamp(0, calc((var(--scene-progress) - .42) * 3), 1);
  transform: translateX(calc((1 - var(--scene-progress)) * 26px));
}

.launch-close-lockup {
  text-align: center;
}

.launch-close-copy {
  margin: 20px 0 0;
  color: var(--muted);
  font: 520 clamp(18px, 2.2vw, 26px)/1.35 "Instrument Sans", sans-serif;
  opacity: clamp(0, calc((var(--scene-progress) - .24) * 3), 1);
  transform: translateY(calc((1 - var(--scene-progress)) * 10px));
}

.founder-media {
  position: relative;
  overflow: hidden;
  width: min(780px, 78vw);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0%) 45%, rgb(28 43 37 / 14%)),
    linear-gradient(150deg, #b9cbd3, #edf1e8 64%);
  color: #53645e;
}

.founder-media__safe-area {
  position: absolute;
  inset: 8%;
  border: 1px solid rgb(53 75 65 / 16%);
  border-radius: 11px;
}

.founder-media__eye-line {
  position: absolute;
  right: 8%;
  left: 8%;
  top: 38%;
  height: 1px;
  background: rgb(53 75 65 / 18%);
}

.founder-media__label,
.founder-media__direction {
  position: relative;
  z-index: 1;
  font: 650 10px/1.3 "Geist Mono", monospace;
  letter-spacing: .1em;
}

.founder-media__direction {
  color: #71817b;
  letter-spacing: 0;
}

.copy-beat__text {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  text-align: center;
  font: 540 clamp(32px, 5vw, 68px)/1.06 "Instrument Sans", sans-serif;
  letter-spacing: -.045em;
  opacity: clamp(0, calc(var(--scene-progress) * 3), 1);
  transform: translateY(calc((1 - var(--scene-progress)) * 13px));
}

.film-caption {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 8px 13px;
  border-radius: 5px;
  background: rgb(25 31 28 / 82%);
  color: #fff;
  font: 500 15px/1.3 "Instrument Sans", sans-serif;
  white-space: nowrap;
}

.film-controls {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 16px 4px 0;
}

.film-controls__transport,
.film-controls__options {
  display: flex;
  align-items: center;
  gap: 8px;
}

.film-controls button,
.film-controls select {
  min-height: 38px;
  border: 1px solid #ced4ce;
  border-radius: 9px;
  background: rgb(250 251 247 / 82%);
  color: #334039;
}

.film-controls button {
  min-width: 38px;
  padding: 0 11px;
  cursor: pointer;
}

.film-controls button:hover,
.film-controls select:hover {
  border-color: #abb5ae;
  background: #fff;
}

.film-controls button:focus-visible,
.film-controls select:focus-visible,
.film-range:focus-visible,
.film-after summary:focus-visible {
  outline: 2px solid var(--proof);
  outline-offset: 3px;
}

.film-controls .film-play {
  min-width: 72px;
  background: #1d2823;
  color: #fff;
}

.film-time {
  min-width: 82px;
  color: #68736d;
  font: 550 10px/1 "Geist Mono", monospace;
}

.film-range {
  width: 100%;
  accent-color: var(--proof);
}

.film-controls__options label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #707a74;
  font: 550 10px/1 "Geist Mono", monospace;
}

.film-controls select {
  padding: 0 28px 0 10px;
  font: 550 11px/1 "Instrument Sans", sans-serif;
}

.film-after {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 620px);
  gap: 50px;
  padding: 86px 0 96px;
  border-bottom: 1px solid #d5d9d3;
}

.film-after > p {
  max-width: 420px;
  margin: 0;
  font: 520 clamp(28px, 3vw, 46px)/1.08 "Instrument Sans", sans-serif;
  letter-spacing: -.045em;
}

.film-after details {
  border-top: 1px solid #cfd4ce;
}

.film-after summary {
  padding: 16px 0;
  cursor: pointer;
  color: #4f5a54;
  font: 600 12px/1.4 "Geist Mono", monospace;
}

.film-transcript-copy {
  padding: 4px 0 18px;
  color: #59645e;
  font: 500 15px/1.65 "Instrument Sans", sans-serif;
}

.film-transcript-copy p {
  margin: 0 0 14px;
}

.film-footer {
  min-height: 100px;
}

.film-footer a {
  color: #245e45;
  text-decoration: none;
}

.founder-beat .film-object,
.copy-beat .film-object {
  width: 100%;
}

body[data-aspect="square"] .film-page,
body[data-aspect="vertical"] .film-page {
  max-width: 1080px;
}

body[data-aspect="square"] .film-stage {
  aspect-ratio: 1;
}

body[data-aspect="vertical"] .film-frame {
  width: min(100%, 520px);
  margin: 0 auto;
}

body[data-aspect="vertical"] .film-stage {
  aspect-ratio: 9 / 16;
}

body[data-aspect="vertical"] .film-object {
  width: 82%;
  flex-wrap: wrap;
}

body[data-aspect="vertical"] .launch-memory-agent .film-object {
  width: 78%;
  flex-direction: column;
}

body[data-aspect="vertical"] .launch-memory,
body[data-aspect="vertical"] .launch-agent-proof {
  width: 100%;
}

body[data-aspect="vertical"] .film-caption {
  bottom: 24px;
  max-width: calc(100% - 32px);
  white-space: normal;
  text-align: center;
}

@media (max-width: 900px) {
  .film-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 42px;
  }

  .film-intro {
    max-width: 620px;
  }

  .film-controls {
    grid-template-columns: 1fr;
  }

  .film-controls__options {
    flex-wrap: wrap;
  }

  .film-after {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .film-nav,
  .film-footer,
  .film-page {
    width: min(100% - 24px, 1440px);
  }

  .film-nav p {
    display: none;
  }

  .film-heading {
    padding-top: 28px;
  }

  .film-frame {
    border-radius: 13px;
  }

  .film-stage {
    min-height: 520px;
    aspect-ratio: auto;
  }

  .film-object {
    width: 82%;
    flex-wrap: wrap;
  }

  .film-caption {
    bottom: 18px;
    max-width: calc(100% - 24px);
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }

  .metric-panel,
  .inbox-card,
  .checkout-card,
  .payment-receipt,
  .webhook-card,
  .verdict-card,
  .pull-check,
  .fix-card,
  .memory-card,
  .agent-result,
  .film-field,
  .mini-browser {
    width: 100%;
  }

  .metric-panel__scale {
    gap: 18px;
  }

  .evidence-chain,
  .proof-chain {
    display: grid;
    grid-template-columns: 1fr 18px 1fr;
  }

  .evidence-chain .film-card,
  .proof-chain .film-card {
    min-width: 0;
  }

  .evidence-bundle {
    grid-template-columns: 1fr 1fr;
  }

  .run-file {
    width: 100%;
  }

  .film-after {
    padding: 56px 0 60px;
  }
}

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

  .film-scene,
  .film-scene.is-active,
  .copy-beat__text,
  .launch-memory,
  .launch-agent-proof,
  .launch-close-copy {
    transform: none;
  }
}
