/* OpenAgents: one continuous take.
   Black-and-white film stock: four greys plus white, nothing else.
   Certainty is line style: solid decided, dashed next, dotted planned or concept. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('fonts/archivo-latin-standard-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --ink-0: #0a0a0b; /* film base: the ground */
  --ink-1: #18181b; /* raised: frames, panes */
  --ink-2: #34343a; /* hairlines, empty tracks */
  --ink-3: #9b9ba3; /* secondary text, quiet strokes */
  --paper: #f4f4f5; /* white: text, the one accent */

  --sans: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --strip: 0px;
  --section: clamp(72px, 9vw, 128px);
  --radius: 6px;

  color-scheme: dark;
  scrollbar-color: var(--ink-2) var(--ink-0);
}

@media (min-width: 1100px) {
  :root { --strip: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }
/* Components set display (flex, grid); the hidden attribute must still win. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  padding-left: var(--strip);
  background: var(--ink-0);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--paper);
}

::selection { background: var(--paper); color: var(--ink-0); }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink-0);
  border-radius: var(--radius);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.display {
  font-size: clamp(2.3rem, 6.6vw, 6rem);
  font-stretch: 118%;
  font-weight: 640;
  line-height: 0.95;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.display .line { display: block; }

.headline {
  font-size: clamp(2rem, 3.9vw, 3.6rem);
  font-stretch: 114%;
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.0625rem, 1.25vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 36em;
  text-wrap: pretty;
}

.note {
  font-size: 0.875rem;
  color: var(--ink-3);
  max-width: 62em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 106%;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, border-color 200ms ease, background-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 0.875rem; }
.btn--light { background: var(--paper); color: var(--ink-0); }
.btn--line { background: transparent; color: var(--paper); border-color: var(--ink-3); }
.btn--icon { width: 44px; padding: 0; }
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover:not(:disabled) { box-shadow: 0 0 0 1px var(--ink-0), 0 0 0 3px var(--ink-3); }
  .btn--line:hover:not(:disabled) { border-color: var(--paper); }
}
.btn:disabled { background: var(--ink-1); color: var(--ink-3); border-color: var(--ink-2); cursor: not-allowed; }
.btn .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) .icon { transform: translateX(2px); }
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 12px; height: 12px; }

/* ---------- Sprocket strip ---------- */

.sprockets { display: none; }
@media (min-width: 1100px) {
  .sprockets {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--strip);
    z-index: 30;
    background-color: var(--ink-1);
    border-right: 1px solid var(--ink-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='28'%3E%3Crect x='13' y='8' width='14' height='11' rx='2.5' fill='%230a0a0b'/%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-size: 40px 28px;
  }
  .sprockets__tc {
    position: absolute;
    left: 50%;
    bottom: 18px;
    padding: 10px 3px;
    background: var(--ink-0);
    border: 1px solid var(--ink-2);
    border-radius: 3px;
    color: var(--ink-3);
    font-size: 0.6875rem;
    writing-mode: vertical-rl;
    transform: translateX(-50%) rotate(180deg);
  }
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(10 10 11 / 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink-2);
  transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease;
}
/* Over the white early-access field the bar inverts to paper instead of turning into a grey band. */
.topbar.is-over-light {
  --bar-ink: var(--ink-0);
  background: rgb(244 244 245 / 0.94);
  color: var(--ink-0);
  border-bottom-color: var(--ink-3);
}
.topbar.is-over-light .nav a { color: var(--ink-2); }
.topbar.is-over-light .nav a[aria-current] { color: var(--ink-0); }
.topbar.is-over-light .motion-toggle { color: var(--ink-0); border-color: var(--ink-3); }
.topbar.is-over-light .btn--light { background: var(--ink-0); color: var(--paper); }
.topbar.is-over-light :focus-visible { outline-color: var(--ink-0); }
@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--ink-0); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topbar.is-over-light { background: var(--paper); }
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-stretch: 120%;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
/* The mark is drawn in currentColor, so it follows the bar, the white field and the deck. */
.logo__mark { width: 26px; height: 26px; flex: none; }
.logo__halves { fill: none; stroke: currentColor; stroke-width: 4.6; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}
.nav a[aria-current] { color: var(--paper); text-decoration: underline; text-underline-offset: 0.5em; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--paper); }
  .topbar.is-over-light .nav a:hover { color: var(--ink-0); }
}
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  min-height: 40px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--ink-2);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.motion-toggle:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .motion-toggle:hover { color: var(--paper); border-color: var(--ink-3); }
}
.motion-toggle__icon { display: grid; }
.motion-toggle__icon--play { display: none; }
.motion-toggle__icon--play .icon { fill: currentColor; stroke: none; }
.motion-toggle[data-paused='true'] { color: var(--paper); border-color: var(--ink-3); }
.motion-toggle[data-paused='true'] .motion-toggle__icon--pause { display: none; }
.motion-toggle[data-paused='true'] .motion-toggle__icon--play { display: grid; }
.topbar.is-over-light .motion-toggle[data-paused='true'] { color: var(--ink-0); }

@media (max-width: 1099px) {
  .nav { display: none; }
  .topbar__actions { margin-left: auto; }
}
@media (max-width: 479px) {
  .motion-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .motion-toggle { width: 44px; min-width: 44px; height: 44px; padding: 0; }
}
/* 320px screens: the wordmark gives way so the bar fits without sideways scrolling (WCAG 1.4.10). */
@media (max-width: 379px) {
  .topbar .logo__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; padding-top: clamp(28px, 5vh, 64px); }

/* Photographic backdrops: real film material behind the type, faded into the black on every side
   that meets text, so contrast never depends on the picture. */
.backdrop { position: absolute; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; }
.hero__backdrop {
  inset: 0 0 auto 0;
  height: 560px;
  /* The film sits behind the end of the headline and fades out before the form, whose small text needs the black. */
  -webkit-mask-image: linear-gradient(to bottom, #000 38%, transparent 60%);
  mask-image: linear-gradient(to bottom, #000 38%, transparent 60%);
}
.hero__backdrop img { object-position: 100% 100%; transform: translateY(-120px); opacity: 0.85; }
@media (max-width: 899px) {
  .hero__backdrop { height: 360px; -webkit-mask-image: linear-gradient(to bottom, #000 22%, transparent 58%); mask-image: linear-gradient(to bottom, #000 22%, transparent 58%); }
  .hero__backdrop img { object-position: 85% 100%; transform: none; opacity: 0.5; }
}
.hero__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
  align-items: end;
}
.hero .display { grid-column: 1 / -1; }
.hero__aside {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 20px;
  align-items: end;
}
.hero__aside .lead { grid-column: 1 / 7; }
.hero__aside .signup { grid-column: 8 / 13; }
.hero__band {
  margin-top: clamp(28px, 4vh, 44px);
  border-block: 1px solid var(--ink-2);
  background: var(--ink-1);
  padding: clamp(14px, 2vh, 22px) var(--gutter);
}
/* Aligned with the text column above it, never touching the strip or the screen edge. */
.hero__band > .scene { max-width: calc(1320px - 2 * var(--gutter)); margin-inline: auto; }
.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 16px;
  font-size: 0.75rem;
  color: var(--ink-3);
}
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8125rem; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; border: 1px dashed var(--paper); }
@media (max-width: 1099px) {
  .hero__aside .lead, .hero__aside .signup { grid-column: 1 / -1; }
  .hero__aside .signup { max-width: 560px; }
}

/* ---------- Signup ---------- */

.signup { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.signup__label { font-size: 0.8125rem; font-weight: 600; color: var(--paper); }
.signup__row { display: flex; gap: 8px; }
.signup__input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  background: var(--ink-0);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.signup__input::placeholder { color: var(--ink-3); opacity: 1; }
.signup__input:focus-visible { outline: none; border-color: var(--paper); box-shadow: 0 0 0 1px var(--paper); }
.signup__input[aria-invalid='true'] { border-style: dashed; border-color: var(--paper); }
.signup__input:disabled { border-style: dotted; border-color: var(--ink-3); cursor: not-allowed; background: var(--ink-1); }
.signup__trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.signup__msg { font-size: 0.8125rem; color: var(--ink-3); min-height: 1.5em; text-wrap: balance; }
.signup[data-state='invalid'] .signup__msg,
.signup[data-state='error'] .signup__msg,
.signup[data-state='success'] .signup__msg { color: var(--paper); }
/* Optional extras: a checkbox opens the Discord and note fields with a height transition. */
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  font-size: 0.8125rem;
  color: var(--ink-3);
  cursor: pointer;
  user-select: none;
  justify-self: start;
}
.check { position: relative; }
/* The real checkbox covers the whole label, invisible, so the hit area is the full row. */
.check__box { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.check__mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink-3);
  border-radius: 4px;
  color: var(--ink-0);
  transition: background-color 160ms ease, border-color 160ms ease;
}
.check__mark .icon { width: 12px; height: 12px; stroke-width: 2.2; opacity: 0; transform: scale(0.6); transition: opacity 160ms ease, transform 200ms var(--ease-out); }
.check__box:checked + .check__mark { background: var(--paper); border-color: var(--paper); }
.check__box:checked + .check__mark .icon { opacity: 1; transform: none; }
.check__box:focus-visible + .check__mark { outline: 2px solid var(--paper); outline-offset: 3px; }
.check__box:disabled ~ span { opacity: 0.5; }
@media (hover: hover) and (pointer: fine) {
  .check:hover { color: var(--paper); }
  .check:hover .check__mark { border-color: var(--paper); }
}
.signup__extra {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-out);
}
.signup__extra.is-open, .no-js .signup__extra { grid-template-rows: 1fr; }
.signup__extra-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 8px;
  opacity: 0;
  transition: opacity 220ms ease;
}
.signup__extra.is-open .signup__extra-inner, .no-js .signup__extra-inner { opacity: 1; padding-top: 4px; }
.signup__extra-inner .signup__label:not(:first-child), .signup--feedback > .signup__label:not(:first-child) { margin-top: 6px; }
.signup__area { min-height: 0; padding: 10px 14px; line-height: 1.5; resize: vertical; font-family: inherit; }
textarea.signup__input { min-height: 88px; }
.signup__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signup__pair > div { display: grid; gap: 8px; }
.signup__send { padding-top: 6px; }
@media (max-width: 599px) {
  .signup__pair { grid-template-columns: 1fr; }
}

/* Success: the button itself becomes the confirmation, with a check that draws on. */
.signup__icon { display: grid; }
.signup__icon--done { display: none; }
.signup[data-state='success'] .signup__icon--go { display: none; }
.signup[data-state='success'] .signup__icon--done { display: grid; }
.signup[data-state='success'] .signup__icon--done path { stroke-dasharray: 16; stroke-dashoffset: 16; animation: draw-check 360ms 80ms var(--ease-out) forwards; }
.signup[data-state='success'] .signup__button:disabled {
  background: var(--paper);
  color: var(--ink-0);
  border-color: var(--paper);
  cursor: default;
  animation: confirm-pop 320ms var(--ease-out);
}
.signup[data-state='success'] .signup__input { border-style: solid; border-color: var(--ink-2); color: var(--ink-3); }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@keyframes confirm-pop { from { transform: scale(0.96); } to { transform: scale(1); } }
.signup__button[aria-busy='true'] .icon { animation: nudge 700ms var(--ease-in-out) infinite alternate; }
@keyframes nudge { to { transform: translateX(4px); } }
@media (max-width: 479px) {
  .signup__row { flex-direction: column; }
  .signup__button { width: 100%; }
}

/* ---------- Scene frame ---------- */

.scene {
  position: relative;
  background: var(--ink-0);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.scene__slate {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 6px 0 14px;
  border-bottom: 1px solid var(--ink-2);
  font-size: 0.75rem;
}
.slate__clap {
  width: 30px;
  height: 14px;
  flex: none;
  border-radius: 2px;
  /* The clapper's own stripes. */
  background: repeating-linear-gradient(-45deg, var(--paper) 0 5px, var(--ink-0) 5px 10px);
}
.slate__title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 650;
  font-stretch: 116%;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.slate__tc {
  flex: none;
  margin-left: auto;
  min-width: 11ch;
  text-align: right;
  contain: layout paint;
  color: var(--ink-3);
  font-size: 0.75rem;
}
.scene--approvals .scene__slate { padding-right: 14px; }
@media (max-width: 479px) {
  .slate__tc { display: none; }
  .scene__toggle { margin-left: auto; }
}
.scene__stage {
  position: relative;
  padding: clamp(16px, 2.4vw, 32px);
}
/* Frame gate: corner marks of the camera aperture. */
.scene__stage::before {
  content: '';
  position: absolute;
  inset: 8px;
  pointer-events: none;
  --c: var(--ink-2);
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 14px no-repeat;
}
.scene__toggle {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--ink-0);
  border: 1px solid var(--ink-2);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms var(--ease-out);
}
.scene__toggle:active { transform: scale(0.94); }
/* Hit area grows to 44px without changing the drawn circle. */
.scene__toggle::after { content: ''; position: absolute; inset: -4px; }
@media (hover: hover) and (pointer: fine) {
  .scene__toggle:hover { border-color: var(--paper); }
}
.scene__toggle-play { display: none; }
.scene__toggle[aria-pressed='true'] .scene__toggle-play { display: block; }
.scene__toggle[aria-pressed='true'] .scene__toggle-pause { display: none; }
.scene__toggle-play .icon { fill: var(--paper); stroke: none; }

/* ---------- Scene: the cut ---------- */

.cut { position: relative; display: grid; gap: 16px; }
.cut__task {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-right: 4px;
}
.cut__task-name { font-weight: 600; font-size: 0.9375rem; }
.cut__step { color: var(--ink-3); font-size: 0.75rem; }
.cut__lanes { display: grid; }
.lane {
  display: grid;
  grid-template-columns: 132px 1fr 110px 96px;
  align-items: center;
  gap: 16px;
  padding-block: 10px;
  border-top: 1px solid var(--ink-2);
}
.lane__id { display: grid; line-height: 1.25; }
.lane__name { font-weight: 600; font-size: 0.875rem; color: var(--ink-3); transition: color 300ms ease; }
.lane__model { font-size: 0.75rem; color: var(--ink-3); }
.lane.is-active .lane__name, .lane.is-limit .lane__name { color: var(--paper); }
.lane__track {
  position: relative;
  height: 46px;
  overflow: hidden;
  border: 1px solid var(--ink-2);
  border-radius: 3px;
  background-color: var(--ink-1);
  /* Perforations along both edges of the strip. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='46'%3E%3Crect x='4' y='3' width='6' height='4' rx='1' fill='%2334343a'/%3E%3Crect x='4' y='39' width='6' height='4' rx='1' fill='%2334343a'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}
.lane__film {
  display: flex;
  gap: 6px;
  height: 100%;
  padding: 10px 0 10px 6px;
  will-change: transform;
}
.lane__film i {
  flex: 0 0 44px;
  border: 1px solid var(--ink-2);
  border-radius: 2px;
  background: var(--ink-0);
  transition: border-color 300ms ease, background-color 300ms ease;
}
.lane.is-active .lane__film i { border-color: var(--ink-3); }
.lane.is-active .lane__film i:nth-child(3n) { background: var(--ink-2); }
.lane.is-limit .lane__film i { border-style: dashed; }
.lane__meter { height: 4px; border-radius: 2px; background: var(--ink-2); overflow: hidden; }
.lane__bar {
  display: block;
  height: 100%;
  background: var(--paper);
  transform-origin: left;
  transform: scaleX(0);
}
.lane__state {
  justify-self: start;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.lane.is-active .lane__state { color: var(--paper); border-color: var(--ink-3); }
.lane.is-limit .lane__state { color: var(--ink-0); background: var(--paper); }
.lane.is-queued .lane__state { color: var(--paper); border: 1px dashed var(--ink-3); }
.cut__mark {
  position: absolute;
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
}
.cut__mark-label {
  position: absolute;
  top: -1px;
  left: 6px;
  padding: 2px 6px;
  background: var(--paper);
  color: var(--ink-0);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
}
.cut__report {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  padding: 10px 12px 12px;
  display: grid;
  gap: 6px;
  background: var(--paper);
  color: var(--ink-0);
  border-radius: 4px;
  box-shadow: 0 14px 36px -8px rgb(0 0 0 / 0.75), 0 2px 6px rgb(0 0 0 / 0.5);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.cut__report-title { font-size: 0.6875rem; font-weight: 500; }
.cut__report i { display: block; height: 4px; border-radius: 2px; background: var(--ink-3); }
.cut__report i:nth-of-type(2) { width: 84%; }
.cut__report i:nth-of-type(3) { width: 92%; }
.cut__report i:nth-of-type(4) { width: 58%; }

@media (max-width: 719px) {
  .lane {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'id state' 'track track' 'meter meter';
    gap: 8px 12px;
  }
  .lane__id { grid-area: id; display: flex; gap: 10px; align-items: baseline; }
  .lane__state { grid-area: state; justify-self: end; }
  .lane__track { grid-area: track; height: 40px; }
  .lane__meter { grid-area: meter; }
  .cut__report { width: 160px; }
  .cut__task { flex-direction: column; gap: 2px; }
}

/* ---------- Scene: continuity report ---------- */

.report {
  background: var(--paper);
  color: var(--ink-0);
  border-radius: 4px;
  padding: clamp(16px, 2.2vw, 28px);
  display: grid;
  gap: 14px;
}
.report__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink-0);
  font-size: 0.75rem;
}
.report__from { font-weight: 600; font-size: 0.8125rem; }
.report__fields { display: grid; }
.report__row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding-block: 9px;
  border-bottom: 1px solid var(--ink-3);
}
.report__row dt { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 3px; color: var(--ink-2); }
.report__row dd { font-size: 0.9375rem; line-height: 1.45; }
.report__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.report__stamp {
  display: inline-grid;
  padding: 6px 12px;
  border: 2px solid var(--ink-0);
  border-radius: 3px;
  font-weight: 760;
  font-stretch: 124%;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  opacity: 0;
  transform: rotate(-4deg);
}
.report__stamp .mono { font-size: 0.6875rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.report__resumed { font-size: 0.8125rem; opacity: 0; }

.type { position: relative; display: block; }
/* Without JavaScript the scenes show their finished state instead of empty fields. */
.no-js .type__ghost { visibility: visible; }
.no-js .type__live { display: none; }
.no-js .entry, .no-js .report__stamp, .no-js .report__resumed { opacity: 1; transform: none; }
.no-js .report__stamp { transform: rotate(-4deg); }
.type__ghost { visibility: hidden; }
.type__live { position: absolute; inset: 0; }
.type__live.is-typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: currentColor;
}

/* ---------- Scene: multicam ---------- */

.multicam {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pane {
  border: 1px solid var(--ink-2);
  border-radius: 4px;
  background: var(--ink-1);
  overflow: hidden;
}
.pane__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--ink-2);
}
.pane__name { font-weight: 600; font-size: 0.875rem; color: var(--ink-3); transition: color 200ms ease; }
.pane.is-live .pane__name { color: var(--paper); }
.pane__model { font-size: 0.75rem; color: var(--ink-3); }
.pane__flag {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  visibility: hidden;
}
.pane.is-live .pane__flag { visibility: visible; background: var(--paper); color: var(--ink-0); }
.pane.is-asking .pane__flag { visibility: visible; background: transparent; color: var(--paper); border: 1px dotted var(--paper); }
.pane__log {
  height: calc(4 * 1.75rem);
  overflow: hidden;
  padding-inline: 12px;
  margin-block: 10px;
  /* Lines scroll out under a soft edge instead of being sliced in half. */
  -webkit-mask-image: linear-gradient(transparent, #000 10px, #000 calc(100% - 10px), transparent);
  mask-image: linear-gradient(transparent, #000 10px, #000 calc(100% - 10px), transparent);
}
.pane__lines { will-change: transform; }
.pane__lines li {
  height: 1.75rem;
  line-height: 1.75rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pane__lines li::before { content: '\203A\00a0'; color: var(--ink-2); }
.multicam__live {
  position: absolute;
  top: 0;
  left: 0;
  border: 2px solid var(--paper);
  border-radius: 6px;
  pointer-events: none;
}
@media (max-width: 719px) {
  .multicam { grid-template-columns: 1fr; }
  .pane__log { height: calc(3 * 1.75rem); }
}

/* ---------- Scene: call sheet ---------- */

.cast { display: flex; flex-direction: column-reverse; }
.cast__table { width: 100%; border-collapse: collapse; }
.cast__table th, .cast__table td { text-align: left; padding: 14px 12px 14px 0; border-top: 1px solid var(--ink-2); }
.cast__table thead th { border-top: 0; padding-top: 0; font-size: 0.6875rem; font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.cast__table tbody th { font-weight: 500; font-size: 0.9375rem; color: var(--ink-3); width: 30%; }
.cast__model { font-size: clamp(1.0625rem, 1.6vw, 1.375rem); font-weight: 640; font-stretch: 112%; letter-spacing: -0.01em; }
.cast__bill { font-size: 0.75rem; color: var(--ink-3); }
.cast__table tbody tr { transition: background-color 300ms ease; }
.cast__table tbody tr.is-swapping { background: var(--ink-1); }
.cast__table tbody tr.is-swapping th { color: var(--paper); }
.cast__takes {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  gap: 8px;
  align-items: baseline;
  font-size: 0.6875rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cast__takes b { font-size: 1.25rem; color: var(--paper); font-weight: 500; }

/* ---------- Scene: memory ---------- */

.dailies__head { font-size: 0.75rem; color: var(--ink-3); padding-bottom: 12px; border-bottom: 1px solid var(--ink-2); }
.entry {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 420ms var(--ease-out), grid-template-rows 450ms var(--ease-in-out);
}
.entry.is-in { opacity: 1; transform: none; }
.entry.is-removed { grid-template-rows: 0fr; opacity: 0; }
.entry__inner { min-height: 0; overflow: hidden; }
.entry__row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 4px 14px;
  align-items: start;
  padding-block: 11px;
  border-bottom: 1px solid var(--ink-2);
}
.entry__t { font-size: 0.75rem; color: var(--ink-3); padding-top: 3px; }
.entry__text { display: grid; gap: 4px; font-size: 0.9375rem; }
.entry__old { position: relative; justify-self: start; transition: color 300ms ease; }
.entry__old::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 2px;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 480ms var(--ease-in-out);
}
.entry.is-struck .entry__old { color: var(--ink-3); }
.entry.is-struck .entry__old::after { transform: scaleX(1); }
.entry__new { display: none; }
.entry.is-fixed .entry__new { display: block; }
.entry__tag {
  padding: 2px 7px;
  border: 1px dotted var(--ink-3);
  border-radius: 3px;
  font-size: 0.6875rem;
  color: var(--paper);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 240ms ease;
}
.entry.is-fixed .entry__tag, .entry.is-flagged .entry__tag { opacity: 1; }
@media (max-width: 479px) {
  .entry__row { grid-template-columns: 44px 1fr; }
  .entry__tag { grid-column: 2; justify-self: start; }
}

/* ---------- Scene: schedule ---------- */

.schedule { position: relative; --label: 220px; --state: 140px; }
.ruler, .job {
  display: grid;
  grid-template-columns: var(--label) 1fr var(--state);
  gap: 16px;
  align-items: center;
}
.ruler { padding-bottom: 10px; }
.ruler__ticks { position: relative; height: 1.25rem; }
.ruler__tick { position: absolute; top: 0; transform: translateX(-50%); font-size: 0.6875rem; color: var(--ink-3); }
.ruler__tick:first-child { transform: none; }
.ruler__tick:last-child { transform: translateX(-100%); }
.job { min-height: 44px; border-top: 1px solid var(--ink-2); }
.job__name { font-size: 0.875rem; color: var(--ink-3); transition: color 300ms ease; }
.job.is-running .job__name, .job.is-asking .job__name, .job.is-done .job__name { color: var(--paper); }
.job__lane { position: relative; height: 16px; }
.job__lane::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--ink-2);
}
.job__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 4px;
  border: 1px dashed var(--ink-3);
  border-radius: 2px;
  background: var(--ink-0);
  overflow: hidden;
  transition: border-color 300ms ease;
}
.job.is-running .job__bar { border-style: solid; border-color: var(--paper); }
.job.is-done .job__bar { border-style: solid; border-color: var(--paper); }
.job.is-asking .job__bar { border-style: dotted; border-color: var(--paper); }
.job__fill { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.job__state { font-size: 0.6875rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.job.is-asking .job__state { color: var(--paper); }
.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  pointer-events: none;
  will-change: transform;
}
.playhead__line { position: absolute; top: 1.75rem; bottom: 0; left: 0; width: 1px; background: var(--paper); }
.playhead__time {
  position: absolute;
  top: -2px;
  left: 0;
  transform: translateX(-50%);
  padding: 1px 6px;
  background: var(--paper);
  color: var(--ink-0);
  border-radius: 2px;
  font-size: 0.6875rem;
}
@media (max-width: 719px) {
  .schedule { --label: 0px; --state: 0px; }
  .ruler { grid-template-columns: 1fr; }
  .ruler__label { display: none; }
  .job { grid-template-columns: 1fr auto; grid-template-areas: 'name state' 'lane lane'; gap: 6px 12px; padding-block: 10px; }
  .job__name { grid-area: name; }
  .job__state { grid-area: state; }
  .job__lane { grid-area: lane; }
}

/* ---------- Scene: switchboard ---------- */

.board { width: 100%; height: auto; overflow: visible; }
.board__line { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.board__signal { fill: var(--paper); opacity: 0; }
.board__node circle { fill: var(--ink-0); stroke: var(--paper); stroke-width: 1.5; }
.board__node text { fill: var(--paper); font-family: var(--sans); font-size: 21px; font-weight: 500; }
.board__center rect { fill: var(--paper); }
.board__center text { fill: var(--ink-0); font-family: var(--sans); font-size: 22px; font-weight: 720; font-stretch: 120%; }
@media (max-width: 599px) {
  .board__node text { font-size: 30px; }
}

/* ---------- Scene: approvals ---------- */

.approvals__list { display: grid; gap: 10px; }
.req {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 24px;
  padding: 16px 20px;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius);
  background: var(--ink-1);
  transition: opacity 360ms ease, transform 520ms var(--ease-out), border-color 300ms ease, background-color 300ms ease;
}
html:not(.no-js) .req:not(.is-in) { opacity: 0; transform: translateX(28px); }
.req__body { display: grid; gap: 2px; }
.req__agent { font-size: 0.75rem; color: var(--ink-3); }
.req__action { font-size: 1.0625rem; font-weight: 620; font-stretch: 108%; }
.req__detail { font-size: 0.875rem; color: var(--ink-3); }
.req__controls { display: flex; align-items: center; gap: 8px; }
.req__state { font-size: 0.6875rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 8px; }
.req[data-state] .req__controls { visibility: hidden; }
.req[data-state='approved'] { border-color: var(--paper); background: var(--ink-0); }
.req[data-state='held'] { border-style: dashed; border-color: var(--ink-3); background: var(--ink-0); }
.req[data-state='held'] .req__action { color: var(--ink-3); }
.req__stamp {
  position: absolute;
  right: 22px;
  top: 50%;
  padding: 5px 12px;
  border: 2px solid var(--paper);
  border-radius: 3px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(-50%) rotate(-6deg) scale(1.25);
  filter: blur(4px);
  transition: opacity 180ms ease, transform 280ms var(--ease-out), filter 280ms var(--ease-out);
  pointer-events: none;
}
.req[data-state] .req__stamp { opacity: 1; transform: translateY(-50%) rotate(-6deg) scale(1); filter: none; }
.req[data-state='held'] .req__stamp { border-style: dashed; color: var(--ink-3); border-color: var(--ink-3); }
.no-js .req__controls button { display: none; }
.approvals__end { min-height: 56px; padding-top: 12px; }
@media (max-width: 719px) {
  .req { grid-template-columns: 1fr; }
  .req__controls { display: grid; grid-template-columns: 1fr 1fr; }
  .req__state { display: none; }
  .req__stamp { top: 18px; right: 14px; transform: rotate(-6deg) scale(1.25); }
  .req[data-state] .req__stamp { transform: rotate(-6deg) scale(1); }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); border-top: 1px solid var(--ink-2); }
/* Feature scenes run on as one reel: no rule between them, and a tighter cut from one to the next. */
.feature + .feature { border-top: 0; padding-top: calc(var(--section) * 0.55); }

.landscape { position: relative; isolation: isolate; overflow: hidden; }
.landscape__backdrop {
  inset: 0;
  -webkit-mask-image: radial-gradient(120% 90% at 0% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 0% 0%, #000 30%, transparent 75%);
}
.landscape__backdrop img { object-position: 0% 0%; opacity: 0.55; }
.landscape__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 24px;
  align-items: end;
}
.landscape .headline { grid-column: 1 / 8; font-size: clamp(2.25rem, 5.2vw, 4.75rem); }
.landscape__copy { grid-column: 8 / 13; display: grid; gap: 1.1em; color: var(--ink-3); }
.landscape__turn { color: var(--paper); font-size: 1.1875rem; font-weight: 560; line-height: 1.45; }

.feature__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px 24px;
  align-items: center;
}
.feature--scene-left .scene { grid-column: 1 / 8; }
.feature--scene-left .feature__copy { grid-column: 8 / 13; }
.feature--scene-right .feature__copy { grid-column: 1 / 6; }
.feature--scene-right .scene { grid-column: 6 / 13; }
.feature--tight .scene { grid-column: 1 / 7; }
.feature--tight .feature__copy { grid-column: 8 / 13; }
.feature__copy { display: grid; gap: 20px; align-content: center; }
.points { display: grid; gap: 18px; margin-top: 8px; }
.points > div { padding-top: 16px; border-top: 1px solid var(--ink-2); }
.points dt { font-weight: 620; font-stretch: 108%; }
.points dd { color: var(--ink-3); font-size: 0.9875rem; }

.wide__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px 24px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.wide__head .headline { grid-column: 1 / 7; }
.wide__head .lead { grid-column: 8 / 13; }
.wide__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.wide__points li { padding-top: 14px; border-top: 1px solid var(--ink-3); color: var(--ink-3); font-size: 0.9375rem; }

@media (max-width: 959px) {
  .landscape .headline, .landscape__copy, .wide__head .headline, .wide__head .lead, .feature__grid > * { grid-column: 1 / -1; }
  .feature--scene-left .scene, .feature--scene-right .scene, .feature--tight .scene,
  .feature--scene-left .feature__copy, .feature--scene-right .feature__copy, .feature--tight .feature__copy { grid-column: 1 / -1; }
  .feature__copy { order: -1; }
  .wide__points { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- First look (features.sneakPeek) ---------- */

.app { display: grid; gap: 14px; }
.app__window {
  border: 1px solid var(--ink-2);
  border-radius: 10px;
  background: var(--ink-0);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.9);
  font-size: 0.8125rem;
}
.app__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--ink-2);
  background: var(--ink-1);
}
.app__lights { display: flex; gap: 7px; }
.app__lights i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink-3); }
.app__title { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); }
.app__title b { color: var(--paper); font-weight: 600; }
.app__title .logo__mark { width: 16px; height: 16px; color: var(--paper); }
.app__kbd { justify-self: end; padding: 1px 7px; border: 1px solid var(--ink-2); border-radius: 3px; color: var(--ink-3); font-size: 0.6875rem; }
.app__body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; }
.app__side, .app__panel { padding: 16px 14px; background: var(--ink-1); display: grid; align-content: start; gap: 8px; }
.app__side { border-right: 1px solid var(--ink-2); }
.app__panel { border-left: 1px solid var(--ink-2); }
.app__label { margin-top: 6px; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.app__list { display: grid; gap: 2px; margin-bottom: 10px; }
.app__list li { display: grid; gap: 1px; padding: 7px 9px; border-radius: 5px; color: var(--ink-3); }
.app__list li .mono { font-size: 0.6875rem; }
.app__session.is-active { background: var(--ink-0); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink-2); }
.app__main { display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; padding: 16px; min-width: 0; }
.app__task { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--ink-2); }
.app__task b { font-size: 1rem; font-weight: 640; font-stretch: 110%; }
.app__task .mono { color: var(--ink-3); font-size: 0.6875rem; }
.app__agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: start; }
.app__history { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--ink-2); font-size: 0.75rem; color: var(--ink-3); }
.app__history li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 10px; }
.app__history li:last-child { color: var(--paper); }
.app__agent { border: 1px solid var(--ink-2); border-radius: 6px; background: var(--ink-1); overflow: hidden; }
.app__agent.is-rolling { border-color: var(--ink-3); }
.app__agent-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--ink-2); }
.app__agent-head b { font-weight: 600; }
.app__agent-head .mono { color: var(--ink-3); font-size: 0.6875rem; }
.app__agent-head em { margin-left: auto; padding: 1px 6px; border-radius: 3px; font-style: normal; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em; }
.app__agent.is-rolling em { background: var(--paper); color: var(--ink-0); }
.app__agent.is-asking em { border: 1px dotted var(--paper); }
.app__log { display: grid; gap: 4px; padding: 10px; color: var(--ink-3); font-size: 0.75rem; }
.app__log li::before { content: '\203A\00a0'; color: var(--ink-2); }
.app__log li:last-child { color: var(--paper); }
.app__command { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--ink-3); border-radius: 6px; color: var(--ink-3); }
.app__command .mono { font-size: 0.6875rem; padding: 1px 6px; border: 1px solid var(--ink-2); border-radius: 3px; }
.app__report { display: grid; gap: 8px; padding: 12px; border-radius: 5px; background: var(--paper); color: var(--ink-0); margin-bottom: 10px; }
.app__report dt { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); }
.app__report dd { font-size: 0.75rem; line-height: 1.4; }
.app__approval { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--ink-2); border-radius: 6px; background: var(--ink-0); }
.app__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app__btn { display: grid; place-items: center; min-height: 30px; border: 1px solid var(--ink-3); border-radius: 5px; font-weight: 600; font-size: 0.75rem; }
.app__btn--light { background: var(--paper); color: var(--ink-0); border-color: var(--paper); }
.app__caption { font-size: 0.8125rem; color: var(--ink-3); }
@media (max-width: 1099px) {
  .app__body { grid-template-columns: 200px minmax(0, 1fr); }
  .app__panel { display: none; }
}
@media (max-width: 719px) {
  .app__body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app__side { display: none; }
  .app__agents { grid-template-columns: minmax(0, 1fr); }
  .app__bar { grid-template-columns: auto 1fr; }
  .app__kbd { display: none; }
}

/* ---------- Compare ---------- */

.compare .headline { margin-bottom: 16px; }
.compare .lead { margin-bottom: clamp(28px, 4vw, 48px); }
.cmp-wrap { overflow-x: auto; border-top: 1px solid var(--paper); padding-inline: 4px; margin-inline: -4px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--ink-2); }
.cmp thead th { font-size: 0.6875rem; font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; padding-block: 12px; }
.cmp tbody th { width: 22%; font-weight: 400; }
.cmp td { color: var(--ink-3); }
.cmp__name { display: block; font-weight: 640; font-stretch: 110%; font-size: 1.0625rem; color: var(--paper); }
.cmp tr.is-ours th, .cmp tr.is-ours td { color: var(--paper); background: var(--ink-1); }
.cmp tr.is-ours th { padding-left: 14px; }
.row-status {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 7px;
  border: 1px dashed var(--paper);
  border-radius: 3px;
  font-size: 0.6875rem;
}
.ticket .icon { display: inline-block; vertical-align: -1px; margin-left: 4px; }
.ticket__end { white-space: nowrap; }
.ticket {
  display: inline-block;
  margin-top: 6px;
  line-height: 1.5;
  min-height: 24px;
  font-size: 0.6875rem;
  color: var(--ink-3);
  text-decoration: underline;
  text-decoration-color: var(--ink-2);
}
@media (hover: hover) and (pointer: fine) {
  .ticket:hover { color: var(--paper); text-decoration-color: var(--paper); }
}
.compare .note { margin-top: 20px; }
@media (max-width: 759px) {
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp tr { padding: 16px 0; border-bottom: 1px solid var(--ink-2); }
  .cmp tr.is-ours { background: var(--ink-1); padding-inline: 14px; }
  .cmp tbody th, .cmp td, .cmp tr.is-ours th, .cmp tr.is-ours td { width: auto; padding: 0; border: 0; background: none; }
  .cmp tbody th { margin-bottom: 10px; }
  .cmp tr.is-ours th { padding-left: 0; }
  .cmp td { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding-block: 4px; }
  .cmp td::before { content: attr(data-label); content: attr(data-label) / ''; font-family: var(--mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); padding-top: 3px; }
}

/* ---------- Principles ---------- */

.principles__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; }
.principles .headline { grid-column: 1 / 6; }
.principles__list { grid-column: 6 / 13; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
.principles__list dt { font-size: 1.3125rem; font-weight: 640; font-stretch: 114%; letter-spacing: -0.01em; margin-bottom: 8px; }
.principles__list dd { color: var(--ink-3); }
@media (max-width: 959px) {
  .principles .headline, .principles__list { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .principles__list { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Roadmap ---------- */

.roadmap .lead { margin: 16px 0 clamp(36px, 5vw, 64px); }
.reel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reel__name { font-size: 1.5rem; font-weight: 640; font-stretch: 120%; letter-spacing: -0.015em; }
.reel__line { display: block; height: 0; margin: 14px 0 18px; border-top: 2px solid var(--paper); }
.reel__phase--dashed .reel__line { border-top-style: dashed; }
.reel__phase--dotted .reel__line { border-top-style: dotted; border-top-color: var(--ink-3); }
.reel__phase ul { display: grid; gap: 10px; }
.reel__phase li { color: var(--ink-3); font-size: 0.9375rem; }
.reel__phase--solid li { color: var(--paper); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; font-size: 0.8125rem; color: var(--ink-3); }
.legend li { display: inline-flex; align-items: center; gap: 10px; }
.legend__sample { width: 40px; border-top: 2px solid var(--paper); }
.legend__sample--dashed { border-top-style: dashed; }
.legend__sample--dotted { border-top-style: dotted; border-top-color: var(--ink-3); }
@media (max-width: 759px) {
  .reel { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Early access ---------- */

.cta { background: var(--paper); color: var(--ink-0); border-top: 0; }
.cta__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 24px; align-items: center; }
.cta__inner { grid-column: 1 / 8; display: grid; justify-items: start; gap: 20px; }
.clapper { grid-column: 8 / 13; position: relative; padding-top: 56px; max-width: 460px; justify-self: end; width: 100%; }
.clapper__board { background: var(--ink-0); color: var(--paper); border-radius: 6px; overflow: hidden; }
.clapper__band, .clapper__stick {
  height: 44px;
  background: repeating-linear-gradient(-60deg, var(--paper) 0 22px, var(--ink-0) 22px 44px);
}
/* The stick runs its stripes the other way, so open or closed it reads as two parts. */
.clapper__stick { background: repeating-linear-gradient(60deg, var(--paper) 0 22px, var(--ink-0) 22px 44px); }
.clapper__band { border: 2px solid var(--ink-0); border-bottom-width: 4px; }
.clapper__stick {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border: 2px solid var(--ink-0);
  border-radius: 4px 4px 0 0;
  transform-origin: 14px 54px;
  transform: rotate(-11deg);
  transition: transform 220ms cubic-bezier(0.6, 0, 0.9, 0.4);
}
.clapper__hinge { position: absolute; left: 6px; top: 46px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-3); border: 3px solid var(--ink-0); z-index: 2; }
.clapper.is-clapped .clapper__stick { transform: rotate(0deg) translateY(11px); }
.clapper__fields { display: grid; grid-template-columns: 1fr 1fr; }
.clapper__fields > div { padding: 14px 18px 16px; border-top: 1px solid var(--ink-2); }
.clapper__fields > div:nth-child(odd) { border-right: 1px solid var(--ink-2); }
.clapper__fields > div:first-child, .clapper__fields > div:nth-child(2) { grid-column: 1 / -1; border-right: 0; }
.clapper__fields dt { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.clapper__fields dd { font-size: 1.375rem; font-weight: 640; font-stretch: 118%; letter-spacing: -0.01em; line-height: 1.2; }
.clapper__fields > div:first-child dd { font-size: 1.75rem; }
@media (max-width: 959px) {
  .cta__inner, .clapper { grid-column: 1 / -1; justify-self: start; }
}
.cta .headline { font-size: clamp(2.4rem, 6vw, 5.25rem); font-stretch: 118%; max-width: 13em; }
.cta .lead { color: var(--ink-2); }
.cta .signup { width: min(100%, 560px); margin-top: 12px; }
.cta .signup__label { color: var(--ink-0); }
.cta .signup__input { background: var(--paper); border-color: var(--ink-2); color: var(--ink-0); caret-color: var(--ink-0); }
.cta .signup__input::placeholder { color: var(--ink-2); }
.cta .signup__input:focus-visible { border-color: var(--ink-0); box-shadow: 0 0 0 1px var(--ink-0); }
.cta .signup__input:disabled { background: var(--paper); border-color: var(--ink-2); }
.cta .signup__msg, .cta .note { color: var(--ink-2); }
.cta .signup[data-state='invalid'] .signup__msg,
.cta .signup[data-state='error'] .signup__msg,
.cta .signup[data-state='success'] .signup__msg { color: var(--ink-0); }
.cta .signup[data-state='success'] .signup__button:disabled { background: var(--ink-0); color: var(--paper); border-color: var(--ink-0); }
.cta .btn--light { background: var(--ink-0); color: var(--paper); }
.cta .btn--light:disabled { background: var(--paper); color: var(--ink-2); border-color: var(--ink-2); }
.cta :focus-visible { outline-color: var(--ink-0); }
.cta .check { color: var(--ink-2); }
.cta .check__mark { border-color: var(--ink-2); color: var(--paper); }
.cta .check__box:checked + .check__mark { background: var(--ink-0); border-color: var(--ink-0); }
.cta .check__box:focus-visible + .check__mark { outline-color: var(--ink-0); }
.cta ::selection { background: var(--ink-0); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .cta .btn--light:hover:not(:disabled) { box-shadow: 0 0 0 1px var(--paper), 0 0 0 3px var(--ink-2); }
}

/* ---------- FAQ ---------- */

.faq__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px; }
.faq .headline { grid-column: 1 / 5; }
.faq__list { grid-column: 5 / 13; border-top: 1px solid var(--ink-2); }
.qa { border-bottom: 1px solid var(--ink-2); interpolate-size: allow-keywords; }
.qa::details-content {
  height: 0;
  overflow: clip;
  transition: height 300ms var(--ease-out), content-visibility 300ms allow-discrete;
}
.qa[open]::details-content { height: auto; }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: 16px;
  font-size: 1.125rem;
  font-weight: 560;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__mark { position: relative; width: 14px; height: 14px; flex: none; transition: transform 240ms var(--ease-out); }
.qa__mark::before, .qa__mark::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--paper); }
.qa__mark::after { transform: rotate(90deg); }
.qa[open] .qa__mark { transform: rotate(45deg); }
.qa__body { padding-bottom: 20px; color: var(--ink-3); max-width: 40em; }
@media (hover: hover) and (pointer: fine) {
  .qa summary:hover .qa__mark { transform: scale(1.15); }
  .qa[open] summary:hover .qa__mark { transform: rotate(45deg) scale(1.15); }
}
@media (max-width: 959px) {
  .faq .headline, .faq__list { grid-column: 1 / -1; }
}

/* ---------- Feedback ---------- */

.feedback__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; align-items: start; }
.feedback__head { grid-column: 1 / 6; display: grid; gap: 20px; position: sticky; top: 104px; }
.feedback .signup--feedback { grid-column: 7 / 13; }
@media (max-width: 959px) {
  .feedback__head, .feedback .signup--feedback { grid-column: 1 / -1; position: static; }
}

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--ink-2); padding-block: 40px 48px; font-size: 0.875rem; color: var(--ink-3); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer__inner p { flex: 1 1 28em; }
.footer__links { display: flex; gap: 8px 20px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover { color: var(--paper); }
}

/* ---------- Pitch deck ---------- */

.deck-body { padding-left: 0; overflow: hidden; }
.deck {
  position: relative;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  outline: none;
}
.slide {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: grid;
  align-items: center;
  padding: clamp(24px, 5vw, 72px) var(--gutter);
  opacity: 1;
  transform: none;
  /* A cut, not a dissolve: the old slide leaves at once, the new one settles in from the side it came from. */
  transition: opacity 260ms ease-out, transform 380ms var(--ease-out);
}
@starting-style {
  .slide { opacity: 0; transform: translateX(var(--enter-x, 24px)); }
}
.slide__frame { width: 100%; max-width: 1280px; margin-inline: auto; }
.slide__title { font-size: clamp(2.2rem, 5vw, 4.6rem); font-stretch: 116%; font-weight: 640; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; outline: none; }
.slide__text { margin-top: 20px; font-size: clamp(1.0625rem, 1.6vw, 1.4rem); color: var(--ink-3); max-width: 34em; line-height: 1.5; }
.slide__cover { display: grid; gap: 28px; }
.slide__cover .logo__mark { width: 64px; height: 64px; }
.slide__cover .slide__title { font-size: clamp(2.8rem, 7.4vw, 7rem); line-height: 0.94; }
.slide__statement .slide__title { font-size: clamp(2.6rem, 6.4vw, 6rem); max-width: 14em; }
.slide__split { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; align-items: center; }
.slide__split .slide__title { font-size: clamp(2rem, 3.8vw, 3.4rem); }
.slide__stack { display: grid; gap: 28px; }
.slide__stack .slide__title { font-size: clamp(2rem, 4vw, 3.6rem); }
.slide__stack .slide__text { margin-top: 0; }
.slide__ask { justify-items: start; }
.slide__ask .signup { width: min(100%, 560px); }
.cmp--compact { font-size: 0.875rem; }
@media (max-width: 959px) {
  .slide { align-items: start; }
  .slide__split { grid-template-columns: 1fr; gap: 28px; }
}

.deck__bar {
  position: fixed;
  inset: auto 0 0 0;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-inline: var(--gutter);
  border-top: 1px solid var(--ink-2);
  background: var(--ink-1);
}
.logo--small { font-size: 0.9375rem; }
.logo--small .logo__mark { width: 22px; height: 22px; }
.strip { display: flex; gap: 2px; }
.strip__frame {
  display: grid;
  place-items: center;
  width: 30px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.strip__frame::before {
  content: '';
  width: 22px;
  height: 16px;
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  transition: background-color 200ms ease, transform 200ms var(--ease-out), border-color 200ms ease;
}
.strip__frame[aria-current]::before { background: var(--paper); border-color: var(--paper); transform: scaleY(1.25); }
@media (hover: hover) and (pointer: fine) {
  .strip__frame:hover::before { border-color: var(--paper); }
}
.deck__controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.deck__controls .btn[aria-disabled='true'] { opacity: 0.35; cursor: default; }
.deck__bar > .visually-hidden { grid-column: 1; }
.deck__counter { font-size: 0.75rem; color: var(--ink-3); margin-right: 8px; white-space: nowrap; }
@media (max-width: 759px) {
  .deck__bar { grid-template-columns: auto 1fr; }
  .strip, .logo--small .logo__word { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  /* Movement goes; fades that explain a change of state stay. */
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .entry, .entry.is-in, html:not(.no-js) .req:not(.is-in), .slide, .btn:active, .motion-toggle:active, .scene__toggle:active { transform: none !important; }
  .clapper__stick { transition: none; }
  @starting-style { .slide { transform: none; } }
  .skip { transition: none; }
}
