@font-face { font-family: "BDO Grotesk"; src: url("assets/fonts/BDOGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "BDO Grotesk"; src: url("assets/fonts/BDOGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F4F0E7;
  --ink: #171716;
  --on-film: #F4F0E7;
  --on-film-2: rgba(244, 240, 231, 0.66);
  --on-film-3: rgba(244, 240, 231, 0.42);
  --line: rgba(244, 240, 231, 0.26);
  --sans: "BDO Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 3.6vw, 56px);
  /* the film is 4:3 at full height; the copy keeps 34rem and the film takes the rest, showing whole once the window allows and cropping its sides evenly before that */
  --panel: clamp(50vw, 100vw - 34rem, 100dvh * 4 / 3);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #000; }
body {
  margin: 0; min-height: 100dvh;
  color: var(--on-film); font-family: var(--sans); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { display: block; }

.head { position: fixed; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: flex-end; pointer-events: none; }
.head > * { pointer-events: auto; }
/* the emblem sits on the left column's centre line, level with where it used to be */
.brand { position: absolute; left: calc((100% - var(--panel)) / 2); top: 24px; transform: translateX(-50%); }
/* the sign-in waits in the corner: a hot zone that shows the pill on hover, focus or tap */
.corner { padding: 24px var(--gutter) 40px 60px; }
.corner .pill { opacity: 0; transition: opacity 0.3s ease; }
.corner:hover .pill, .corner .pill:focus-visible { opacity: 1; }
.brand { display: block; color: var(--on-film); }
.mark {
  display: block; width: 64px; height: 42px; background: currentColor;
  -webkit-mask: url("assets/pixelmark.svg") center / contain no-repeat;
  mask: url("assets/pixelmark.svg") center / contain no-repeat;
}

.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 100dvh; }
.copy { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 100px var(--gutter) 26vh; }
/* the opening screen sits low in the column, about three fifths of the way down; the intake and the receipt sit higher */
.copy:has(#pitch:not([hidden])) { padding: 26vh var(--gutter) 48px; }
.sentence {
  margin: 0 auto; max-width: 16ch;
  font-weight: 500; font-size: clamp(34px, 3.9vw, 60px); line-height: 1.08; letter-spacing: -0.022em;
  text-wrap: balance;
}
.lead { margin: 18px auto 0; max-width: 32ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.45; color: var(--on-film-2); text-wrap: balance; }
.invite { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 32px; }
.when { font-size: 13px; color: var(--on-film-3); }
.invite button { font: inherit; cursor: pointer; }

/* ---------- intake ---------- */

.pitch, .intake, .done { animation: rise 0.45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.program { margin: 0 0 6px; font-size: 13px; color: var(--on-film-3); }
.step { margin: 0 0 26px; font-size: 13px; color: var(--on-film-3); font-variant-numeric: tabular-nums; }
.question { display: block; max-width: 20ch; margin: 0 auto; font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.answer {
  display: block; width: 100%; max-width: 30rem; margin: 22px auto 0; padding: 10px 0; text-align: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--on-film); font: inherit; font-size: 18px; outline: none;
}
.answer::placeholder { color: var(--on-film-3); }
.answer:focus { border-bottom-color: var(--on-film); }
.choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.choices:empty { display: none; }
.choices .pill { font: inherit; cursor: pointer; }
.choices .pill[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.note { min-height: 1.4em; margin: 14px 0 0; font-size: 14px; color: var(--on-film-2); }
.note.error { color: var(--on-film); }
.row { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.row button { font: inherit; cursor: pointer; }
.back { padding: 0; border: 0; background: none; color: var(--on-film-2); font-size: 14px; }
.back:hover, .back:focus-visible { color: var(--on-film); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.done .sentence { font-size: clamp(28px, 2.9vw, 44px); }
.number { margin: 10px 0 0; font-size: clamp(28px, 2.9vw, 44px); font-weight: 500; letter-spacing: -0.018em; color: var(--on-film-2); font-variant-numeric: tabular-nums; }

.frame { margin: 0; width: var(--panel); height: 100dvh; position: sticky; top: 0; }
.film { width: 100%; height: 100%; object-fit: cover; background: #000; }

.thanks { position: absolute; right: var(--gutter); bottom: 24px; z-index: 2; opacity: 0; pointer-events: none; transition: opacity 0.8s ease; }
.thanks.on { opacity: 1; pointer-events: auto; }
.thanks button { cursor: pointer; font: inherit; }
.names {
  position: absolute; right: 0; bottom: calc(100% + 10px); min-width: 11em; padding: 12px 16px; border-radius: 16px;
  display: grid; gap: 4px; font-size: 14px; line-height: 1.3; white-space: nowrap;
  background: rgba(23, 23, 22, 0.72); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
.thanks:hover .names, .thanks:focus-within .names, .thanks.open .names { opacity: 1; transform: none; }

.pill {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--on-film);
  font-size: 14px; line-height: 1.3; text-decoration: none; white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.pill:hover, .pill:focus-visible { background: rgba(244, 240, 231, 0.14); outline: none; }
.pill.glass { background: rgba(23, 23, 22, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 500; font-size: 15px; padding: 11px 20px; }
.pill.solid:hover, .pill.solid:focus-visible { background: #fff; }

.foot { position: fixed; left: 0; bottom: 24px; z-index: 2; width: calc(100% - var(--panel)); padding: 0 var(--gutter); text-align: center; }
.credit { margin: 0; font-size: 13px; color: var(--on-film-3); }
.credit a { text-decoration: none; }
.credit a:hover { color: var(--on-film); }

@media (max-width: 768px) {
  .head {
    position: static; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 0 0 0 var(--gutter);
  }
  .brand { grid-column: 2; position: static; transform: none; margin: 18px 0 16px; }
  .corner { grid-column: 3; justify-self: end; padding: 14px var(--gutter) 14px 40px; }
  .mark { width: 48px; height: 31.5px; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .frame { order: -1; width: calc(100vw - 2 * var(--gutter)); height: calc(100vw - 2 * var(--gutter)); margin: 0 auto; position: relative; }
  .thanks { right: 14px; bottom: 14px; }
  .copy, .copy:has(#pitch:not([hidden])) { padding: 28px var(--gutter) 40px; justify-content: flex-start; }
  .foot { width: auto; }
  .sentence { font-size: clamp(32px, 10vw, 44px); max-width: 14ch; }
  .invite { margin-top: 26px; }
  .foot { position: static; width: auto; padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom)); }
}
/* ---------- the slow bleed: the film comes up out of black, then the words, one by one ---------- */

@keyframes bleed { from { opacity: 0; } to { opacity: 1; } }
@keyframes surface { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.frame { animation: bleed 7s cubic-bezier(0.2, 0, 0.2, 1) both; }
.brand { animation: bleed 2s ease both 2.4s; }
.pitch .sentence { animation: surface 1.6s ease both 4.2s; }
.pitch .lead { animation: surface 1.4s ease both 5.4s; }
.pitch .invite { animation: surface 1.2s ease both 6.6s; }
.foot { animation: bleed 1.6s ease both 7.6s; }
.corner { animation: bleed 1s ease both 8s; }
/* a return within the same session skips the wait */
html.quick .frame, html.quick .brand, html.quick .pitch .sentence, html.quick .pitch .lead, html.quick .pitch .invite, html.quick .foot, html.quick .corner { animation-duration: 0.6s; animation-delay: 0s; }
/* the intake and the receipt keep their own quick rise */
.pitch { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .frame, .brand, .pitch .sentence, .pitch .lead, .pitch .invite, .foot, .corner { animation: none; }
  .pill, .thanks, .names { transition: none; }
  .pitch, .intake, .done { animation: none; }
}
