:root {
  color-scheme: dark;
  --ink: #000f17;
  --cream: #f6f4ef;
  --quiet: #bdc5c6;
  --rule: #48565b;
  --gutter: max(clamp(20px, 4.5vw, 118px), env(safe-area-inset-left), env(safe-area-inset-right));
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #ffd5a5; outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 5; left: 1rem; top: -5rem; background: var(--cream); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
.stage { background: #020a0d; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.poster, .poster picture, .poster img, video { display: block; width: 100%; height: 100%; }
.poster img { object-fit: cover; object-position: center; }
video { object-fit: contain; background: #020a0d; }
.poster { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; color: #fff; text-align: left; }
.poster:after { content: ""; position: absolute; inset: 72% 0 0; background: linear-gradient(transparent, #0008); pointer-events: none; }
.poster:focus-visible { outline-offset: -4px; }
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  z-index: 1;
  bottom: clamp(13px, 2vw, 25px);
  inset-inline: var(--gutter);
}
.play {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.015em;
  background: #061013dc;
  border: 1px solid #ffffff69;
  border-radius: 30px;
  padding: 13px 19px;
}
.play:before { content: ""; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.poster:hover .play { background: var(--cream); color: var(--ink); }
.duration { font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.petition-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding-inline: var(--gutter);
  border-block: 1px solid #f6f4ef35;
}
.petition-nav a, .share-progress {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; text-decoration: none; font-size: 14px; font-weight: 600;
}
.petition-nav a:hover, .share-progress:hover { text-decoration: underline; text-underline-offset: 4px; }
.petition-nav a span[aria-hidden], .share-progress span { font-size: 1.2em; }
#signatureTotal { font-variant-numeric: tabular-nums; }
.petition {
  width: 100%;
  padding: clamp(32px, 4.5vw, 92px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 190px);
  align-items: center;
}
h1 { margin: 0; }
.lockup { display: block; width: 100%; height: auto; }
h2 { font: 700 clamp(30px, 2.8vw, 43px)/1.05 Georgia, serif; letter-spacing: -.04em; margin: 0 0 10px; }
.formarea { min-width: 0; scroll-margin-top: 24px; }
.intro { max-width: 43ch; color: #d6dbdb; font-size: 15px; line-height: 1.45; margin: 0 0 19px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: 13px; font-weight: 600; display: block; }
input, select {
  display: block;
  min-width: 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #839094;
  color: var(--cream);
  background: #ffffff05;
  border-radius: 0;
  padding: 6px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}
select { min-height: 44px; padding-inline: 8px; cursor: pointer; background: #0c1c23; }
#survey > label { margin-block: 14px; }
.trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; min-height: 44px; padding-top: 14px; line-height: 1.5; }
.consent input { width: 17px; height: 17px; flex: none; margin: 1px 0 0; padding: 0; accent-color: var(--cream); }
.note { font-size: 12px; color: var(--quiet); margin: 10px 0 13px; }
.submit {
  background: var(--cream);
  color: var(--ink);
  width: 100%;
  border: 0;
  border-radius: 2px;
  font-size: 15px;
  min-height: 44px;
  font-weight: 700;
}
.submit:hover { background: #fff; }
button:disabled { opacity: .6; cursor: wait; }
.actions { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.link-button { background: transparent; border: none; color: var(--cream); text-decoration: underline; text-underline-offset: 4px; padding: 10px; min-height: 44px; font-size: 14px; }
.feedback { color: #ffdbbd; font-size: 14px; margin-block: 12px; }
.transcript { padding-inline: var(--gutter); margin: 0 0 30px; border-top: 1px solid #ffffff24; color: var(--quiet); font-size: 13px; }
.transcript summary { width: fit-content; cursor: pointer; padding: 12px 0; }
.transcript p { max-width: 74ch; line-height: 1.65; margin: 8px 0; }
.film-error { max-width: 65ch; margin: 8px auto; padding: 0 18px; font-size: 14px; }

@media (max-width: 700px) {

  .petition { display: block; padding: 32px var(--gutter) 24px; }
  .lockup { width: 100%; margin: 0 auto 30px; }
  .formarea { border-top: 1px solid #ffffff24; padding-top: 22px; }
  .intro { margin-bottom: 15px; }
  .fields { grid-template-columns: 1fr; gap: 13px; }
  .petition-nav a { min-height: 46px; font-size: 13px; }
  .play { font-size: 13px; padding: 9px 13px; }
  .duration { font-size: 12px; }
  .controls { bottom: 12px; }
  .note { line-height: 1.45; }
  .submit { min-height: 46px; }
}

/* Pick the matching master on Play. A rotation keeps the current cut running. */
.player[data-format="portrait"] { aspect-ratio: 9 / 16; max-height: 100svh; }
@media (max-width: 900px) and (orientation: portrait) {
  .player:not([data-format]) { aspect-ratio: 9 / 16; max-height: calc(100svh - 48px); }
  .player:not([data-format]) .poster img { object-position: center 25%; }
}
