/* ==========================================================================
   decidespeak.com — design system v3. Documented in /brand-spec.md.
   The mark is a black D (decide) with a blue S (speak) struck through it.
   The page is the paper it sits on: warm white, ink, one blue. Motion tells
   the mark's story — the D settles first, then the S passes through it.
   ========================================================================== */

:root {
  /* paper */
  --bg: #fbfaf7;
  --bg-2: #f3f0ea;
  --surface: #ffffff;

  /* ink — the D */
  --fg: #232323;
  --fg-2: #4a4945;
  --fg-3: #6b6964;
  --fg-4: #75726c;

  /* signal — the S, and the gate's other two answers */
  --blue: #0865f4;
  --blue-ink: #0549b0;
  --blue-wash: #eaf1fe;
  --orange: #e87722;
  --orange-ink: #a9520f;
  --orange-wash: #fdf1e7;
  --red: #d92d20;
  --red-ink: #b42318;
  --red-wash: #fcebea;

  /* lines */
  --line: rgba(35, 35, 35, 0.1);
  --line-2: rgba(35, 35, 35, 0.16);
  --line-3: rgba(35, 35, 35, 0.32);

  /* type */
  --sans: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --sh: 0 1px 2px rgba(35, 35, 35, 0.04), 0 16px 40px -20px rgba(35, 35, 35, 0.18);

  /* motion */
  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --e-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --gut: clamp(20px, 4.2vw, 64px);
  --page: 1240px;
}

/* --- reset --------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-variation-settings: "wdth" 100, "wght" 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

::selection {
  background: var(--blue);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus-visible {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  clip: auto;
  border-radius: var(--r-sm);
  background: var(--fg);
  color: var(--bg);
}

/* --- layout -------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.wrap--narrow {
  max-width: 820px;
}

/* Grid children that hold code or tables must be allowed to shrink, or they
   push the whole column past the viewport instead of scrolling inside. */
.docs > *,
.gate > *,
.cards > *,
.dl > *,
.pro-hero__in > *,
.pro-gate__in > *,
.split > *,
.foot__grid > *,
.panel,
.prose,
.toc {
  min-width: 0;
}

.band {
  padding-block: clamp(80px, 10vw, 144px);
}

.band + .band {
  border-top: 1px solid var(--line);
}

.band--page {
  padding-top: 148px;
}

.center {
  text-align: center;
  margin-inline: auto;
}

.center .lede {
  margin-inline: auto;
}

.center .hero__actions {
  justify-content: center;
}

/* Heading column beside narrow content, so half the page is never empty. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.split > .shead {
  position: sticky;
  top: 120px;
  margin-bottom: 0;
}

/* --- type ---------------------------------------------------------------- */

.h-display {
  font-variation-settings: "wdth" 112, "wght" 800;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.h1 {
  font-variation-settings: "wdth" 108, "wght" 760;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h3 {
  font-variation-settings: "wdth" 100, "wght" 660;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.lede {
  font-size: clamp(1.06rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 52ch;
  text-wrap: pretty;
}

.lede strong {
  color: var(--fg);
  font-variation-settings: "wdth" 100, "wght" 620;
}

.tiny {
  font-size: 0.8125rem;
  color: var(--fg-3);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.eyebrow b {
  font-weight: 500;
  color: var(--blue);
}

.eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line-3);
}

/* --- nav ----------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--e-out), border-color 300ms var(--e-out);
}

.nav.is-stuck {
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}

.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__mark {
  width: 32px;
  height: auto;
}

.brand__name {
  font-variation-settings: "wdth" 108, "wght" 720;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  font-size: 0.94rem;
  color: var(--fg-2);
  transition: color 160ms linear;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--fg);
}

.nav__link--mobile {
  display: none;
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  color: var(--fg);
}

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.72em 1.3em;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-variation-settings: "wdth" 100, "wght" 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 180ms linear, color 180ms linear, border-color 180ms linear,
    transform 180ms var(--e-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--fg);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--blue);
}

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--fg);
}

.btn--lg {
  padding: 0.9em 1.6em;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

/* --- the mark, animated ---------------------------------------------------
   <svg class="mark"> holds the D, the S, and a centreline mask that reveals
   the S as it is drawn. Add .is-play to run: the D settles, then the S
   passes through it. --s-end stops the S part-way (the 404 uses this). */

.mark {
  width: 100%;
  height: auto;
  overflow: visible;
}

.mark__d {
  fill: var(--fg);
  transform-box: fill-box;
  transform-origin: 50% 60%;
}

.mark__s {
  fill: var(--blue);
}

.mark__draw {
  fill: none;
  stroke: #fff;
  stroke-width: 116;
  stroke-linecap: round;
  /* The gap is longer than the path and the start sits just past it, so no
     zero-length dash (which a round cap would paint as a dot) lands on it. */
  stroke-dasharray: 1 1.1;
  stroke-dashoffset: 1.02;
}

.js .mark .mark__d {
  opacity: 0;
  transform: translateY(6%) scale(0.96);
}

.mark.is-play .mark__d {
  animation: markD 800ms var(--e-out) forwards;
}

.mark.is-play .mark__draw {
  animation: markS 1150ms var(--e-in-out) 520ms forwards;
}

@keyframes markD {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes markS {
  to {
    stroke-dashoffset: var(--s-end, 0);
  }
}

/* --- hero ---------------------------------------------------------------- */

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-block: 0.08em;
  margin-block: -0.08em;
}

.js .hero__title .line > span {
  display: block;
  transform: translateY(105%);
  animation: rise 900ms var(--e-out) forwards;
}

.hero__title .line:nth-child(2) > span {
  animation-delay: 90ms;
}
.hero__title .line:nth-child(3) > span {
  animation-delay: 180ms;
}

@keyframes rise {
  to {
    transform: none;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* --- reveal -------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--e-out), transform 700ms var(--e-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* --- section head -------------------------------------------------------- */

.shead {
  max-width: 60ch;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.shead .lede {
  margin-top: 20px;
}

/* --- two-column grid (decision layer), and the 404's faint route -------- */

.gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.stage__track {
  fill: rgba(35, 35, 35, 0.08);
}

.gate__foot {
  font-size: 0.92rem;
  color: var(--fg-2);
  text-wrap: pretty;
}

.gate__foot strong {
  color: var(--fg);
  font-variation-settings: "wdth" 100, "wght" 620;
}

/* --- cards: plain editorial cells ---------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px);
}

.card {
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}

.card__n {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--blue);
}

.card__t {
  font-variation-settings: "wdth" 102, "wght" 680;
  font-size: 1.14rem;
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.card__b {
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* --- timeline ------------------------------------------------------------ */

.tl {
  position: relative;
  padding-left: 40px;
}

.tl::before,
.tl__fill {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 2px;
  border-radius: 2px;
}

.tl::before {
  bottom: 8px;
  background: var(--line);
}

.tl__fill {
  bottom: 8px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: 50% 0;
}

html:not(.film) .tl__fill {
  transform: none;
}

.tl__item {
  position: relative;
  padding-bottom: 40px;
}

.tl__item:last-child {
  padding-bottom: 0;
}

.tl__item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-3);
  transition: border-color 300ms linear, background-color 300ms linear;
}

.tl__item.in::before {
  border-color: var(--blue);
  background: var(--blue);
}

.tl__t {
  font-variation-settings: "wdth" 104, "wght" 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.tl__b {
  color: var(--fg-2);
  max-width: 60ch;
  text-wrap: pretty;
}

/* --- panels and code ----------------------------------------------------- */

.panel {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  overflow: hidden;
}

.panel__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.panel__label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fg-3);
}

.panel__body {
  padding: 26px 24px;
}

.panel--ink {
  background: #1d1c1a;
  border-color: #1d1c1a;
}

.panel--ink .panel__top {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.panel--ink .panel__label {
  color: #a39d94;
}

/* Code on ink. Token classes are shared with the docs .snippet. */
.code,
.snippet {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
  overflow-x: auto;
  white-space: pre;
  color: #e9e4dc;
}

.code .k,
.snippet .k {
  color: #7fb0ff;
}
.code .s,
.snippet .s {
  color: #f5a35e;
}
.code .n {
  color: #fff;
  font-weight: 700;
}
.snippet .c {
  color: #8f897f;
}

.notes {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.note-item {
  padding-left: 18px;
  border-left: 2px solid var(--line-2);
}

/* --- facts rail and task budget ------------------------------------------ */

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}

.budget {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 8px 32px;
  margin: 32px 0 10px;
}

.budget dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  order: 2;
}

.budget dd {
  margin: 0;
  font-variation-settings: "wdth" 112, "wght" 800;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.budget div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- cta ----------------------------------------------------------------- */

.cta {
  display: grid;
  justify-items: center;
  text-align: center;
}

.cta .h1 {
  max-width: 18ch;
}

.cta .lede {
  margin-top: 20px;
}

.cta .hero__actions {
  justify-content: center;
}

/* --- footer -------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 56px 40px;
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.foot__blurb {
  color: var(--fg-3);
  font-size: 0.92rem;
  max-width: 38ch;
  margin-top: 14px;
  text-wrap: pretty;
}

.foot__h {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}

.foot__link {
  display: block;
  color: var(--fg-2);
  font-size: 0.93rem;
  padding-block: 4px;
  transition: color 160ms linear;
}

.foot__link:hover {
  color: var(--blue);
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--fg-3);
}

.foot--slim .foot__base {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* --- auth and 404 -------------------------------------------------------- */

.auth {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 116px 20px 60px;
}

.auth__card {
  width: 100%;
  max-width: 440px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh);
  padding: clamp(28px, 4vw, 44px);
}

.auth__mark {
  width: 52px;
  margin-bottom: 26px;
}

.auth__t {
  font-variation-settings: "wdth" 106, "wght" 760;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.auth__s {
  color: var(--fg-2);
  margin-top: 12px;
  font-size: 0.96rem;
  text-wrap: pretty;
}

.oauth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.oauth__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: 0.96rem;
  text-align: left;
  transition: border-color 160ms linear;
}

.oauth__btn:hover {
  border-color: var(--fg);
}

a.oauth__btn {
  color: inherit;
  text-decoration: none;
}

.oauth__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.oauth__btn:disabled:hover {
  border-color: var(--line-2);
}

[hidden] {
  display: none !important;
}

.oauth__btn svg {
  flex-shrink: 0;
}

.oauth__btn span {
  flex: 1;
}

.oauth__btn small {
  color: var(--fg-3);
  font-size: 0.76rem;
}

.auth__sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--fg-3);
  font-size: 0.8rem;
}

.auth__sep::before,
.auth__sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.84rem;
  color: var(--fg-2);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.96rem;
  transition: border-color 160ms linear, box-shadow 200ms var(--e-out);
}

.field input::placeholder {
  color: var(--fg-4);
}

.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-wash);
}

.auth__note {
  margin-top: 22px;
  font-size: 0.84rem;
  color: var(--fg-3);
  text-wrap: pretty;
}

.lost {
  text-align: center;
}

.lost__mark {
  width: min(220px, 50vw);
  margin: 0 auto 40px;
}

/* The 404 mark: the S starts, meets the D, and is stopped there. */
.lost__mark .mark__s {
  fill: var(--red);
}

.lost__mark .mark__draw {
  --s-end: 0.89;
}

/* --- download ------------------------------------------------------------ */

.dl {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.dl__row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.dl__row:first-child {
  border-top: 1px solid var(--line);
}

.dl__ico {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--fg);
  background: var(--bg-2);
}

.dl__meta {
  flex: 1;
  min-width: 0;
}

.dl__name {
  font-variation-settings: "wdth" 102, "wght" 660;
  font-size: 1.02rem;
}

.dl__sub {
  color: var(--fg-3);
  font-size: 0.86rem;
  margin-top: 2px;
}

.badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  color: var(--orange-ink);
  background: var(--orange-wash);
  white-space: nowrap;
}

.badge--soon {
  color: var(--fg-3);
  background: var(--bg-2);
}

.card__ico {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--orange-ink);
  background: var(--orange-wash);
}

/* --- docs ---------------------------------------------------------------- */

.docs {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-block: 128px clamp(80px, 10vw, 140px);
}

.toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.toc__h {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}

.toc__link {
  display: block;
  font-size: 0.9rem;
  color: var(--fg-2);
  padding: 4px 0 4px 12px;
  border-left: 2px solid var(--line);
  transition: color 160ms linear, border-color 160ms linear;
}

.toc__link:hover {
  color: var(--fg);
}

.toc__link.is-active {
  color: var(--fg);
  border-left-color: var(--blue);
  font-variation-settings: "wdth" 100, "wght" 620;
}

.prose {
  max-width: 72ch;
  overflow-wrap: break-word;
}

.prose > * + * {
  margin-top: 20px;
}

.prose h2 {
  font-variation-settings: "wdth" 106, "wght" 740;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-variation-settings: "wdth" 100, "wght" 660;
  font-size: 1.06rem;
  margin-top: 32px;
}

.prose p,
.prose li {
  color: var(--fg-2);
  text-wrap: pretty;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prose li {
  padding-left: 20px;
  position: relative;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 2px;
  background: var(--blue);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.84em;
  color: var(--fg);
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--fg);
  font-variation-settings: "wdth" 100, "wght" 620;
}

.snippet {
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: #1d1c1a;
  line-height: 1.8;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.tbl th {
  text-align: left;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 0 20px 10px 0;
  border-bottom: 1px solid var(--line-2);
  vertical-align: bottom;
}

.tbl td {
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--fg-2);
  text-wrap: pretty;
}

.tbl td:first-child {
  color: var(--fg);
  font-variation-settings: "wdth" 100, "wght" 580;
  width: 30%;
}

.tbl code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--fg);
}

.note {
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--blue-wash);
  color: var(--fg-2);
  font-size: 0.93rem;
  text-wrap: pretty;
}

.note--warn {
  background: var(--orange-wash);
}

.note strong {
  color: var(--fg);
  font-variation-settings: "wdth" 100, "wght" 620;
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1000px) {
  .gate,
  .dl,
  .split,
  .docs {
    grid-template-columns: 1fr;
  }
  .split > .shead {
    position: static;
    margin-bottom: clamp(40px, 6vw, 64px);
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px 32px;
  }
  .toc__link {
    border-left: 0;
    border-bottom: 2px solid var(--line);
    padding: 4px 0;
  }
  .toc__link.is-active {
    border-bottom-color: var(--blue);
  }
  .tbl {
    display: block;
    overflow-x: auto;
  }
  .tbl td {
    min-width: 190px;
  }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px var(--gut) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav__burger {
    display: grid;
  }
  .nav__cta .btn--ghost {
    display: none;
  }
  .nav__link--mobile {
    display: block;
  }
  .cards,
  .foot__grid {
    grid-template-columns: 1fr;
  }
}

/* Tables stack on phones; sideways scrolling inside prose is hostile. */
@media (max-width: 700px) {
  .tbl,
  .tbl thead,
  .tbl tbody,
  .tbl tr,
  .tbl th,
  .tbl td {
    display: block;
    width: auto;
    min-width: 0;
  }
  .tbl thead {
    display: none;
  }
  .tbl tr {
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
  }
  .tbl td {
    padding: 3px 0;
    border: 0;
  }
  .tbl td:first-child {
    margin-bottom: 4px;
  }
}

/* --- reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   v4 — the editorial layer. One italic serif for the quiet word, a ticker
   that repeats the sentence, and the mark's six states as a contact sheet.
   ========================================================================== */

.serif {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: normal;
  letter-spacing: -0.02em;
  font-size: 1.1em;
  line-height: 0.9;
}

.blue {
  color: var(--blue);
}

/* --- hero type ----------------------------------------------------------- */

.hero__title {
  font-size: clamp(3.2rem, min(9.4vw, 15vh), 8.6rem);
  line-height: 0.88;
}

.hero__title .serif {
  display: inline-block;
  padding-left: 0.42em;
  color: var(--fg-2);
}

/* "Speak." waits in grey until the S has passed through the D, then fills
   blue. The fill is a clipped copy moved by transform, so the wipe never
   animates colour. Static end state: filled. */
.speak {
  position: relative;
  display: inline-block;
  color: var(--fg-3);
}

/* the clip box reaches past the line so the blue "p" keeps its descender */
.speak__fill {
  position: absolute;
  inset: -0.1em 0 -0.3em;
  overflow: hidden;
  color: var(--blue);
  white-space: nowrap;
}

.speak__fill > span {
  display: block;
  padding-top: 0.1em;
}

/* --- ticker -------------------------------------------------------------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line-2);
  padding-block: clamp(14px, 2vw, 26px);
  user-select: none;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__g {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px);
  font-variation-settings: "wdth" 112, "wght" 800;
  font-size: clamp(2.6rem, 7.4vw, 6.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__g .serif {
  text-transform: none;
  color: var(--fg-2);
}

.ticker__g img {
  width: 0.62em;
  height: auto;
  flex-shrink: 0;
}

.ticker__o {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* --- plates: the mark's six states, as a contact sheet ------------------- */

.shead--wide {
  max-width: 72ch;
}

.plates {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--line-2);
}

.plate {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 16px clamp(12px, 1.4vw, 20px) 22px;
  min-width: 0;
  transition: background-color 240ms linear, opacity 700ms var(--e-out), transform 700ms var(--e-out);
}

.plate + .plate {
  border-left: 1px solid var(--line-2);
}

.plate:hover {
  background: var(--surface);
}

.plate__svg {
  width: 100%;
  height: auto;
  margin-block: clamp(28px, 4vw, 56px);
  overflow: visible;
}

.plate__d {
  fill: var(--fg);
}

.plate__d--ghost {
  fill: none;
  stroke: var(--line-3);
  stroke-width: 3;
  stroke-dasharray: 7 9;
}

.plate__track {
  fill: rgba(35, 35, 35, 0.08);
}

.plate__s {
  fill: var(--v);
}

.plate__dot {
  fill: var(--surface);
  stroke: var(--v);
  stroke-width: 9;
}

.plate figcaption {
  margin-top: auto;
}

.plate__t {
  display: block;
  font-variation-settings: "wdth" 110, "wght" 780;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.plate--allow .plate__t {
  color: var(--blue);
}
.plate--confirm .plate__t {
  color: var(--orange-ink);
}
.plate--deny .plate__t {
  color: var(--red-ink);
}

.plate__c {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* --- manifesto ----------------------------------------------------------- */

.manifesto__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 5fr);
  gap: 24px clamp(24px, 4vw, 64px);
}

.manifesto__k {
  padding-top: 0.9em;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.manifesto__t {
  font-variation-settings: "wdth" 110, "wght" 780;
  font-size: clamp(2.1rem, 5.4vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 19ch;
  text-wrap: balance;
}

.manifesto__t .serif {
  color: var(--fg-2);
}

.manifesto__list {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--fg);
}

.manifesto__list li {
  padding: 16px 16px 0 0;
  font-variation-settings: "wdth" 104, "wght" 680;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.manifesto__list b {
  display: block;
  margin-bottom: 6px;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: normal;
  font-size: 1.3rem;
  color: var(--blue);
}

/* --- v4 responsive ------------------------------------------------------- */

@media (max-width: 1000px) {
  .plates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plate:nth-child(4) {
    border-left: 0;
  }
  .plate:nth-child(n + 4) {
    border-top: 1px solid var(--line-2);
  }
  .manifesto__in {
    grid-template-columns: 1fr;
  }
  .manifesto__k {
    padding-top: 0;
  }
  .manifesto__list {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  /* the contact sheet becomes a strip you pull sideways */
  .plates {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gut) * -1);
    padding-inline: var(--gut);
    scroll-padding-inline: var(--gut);
    scrollbar-width: none;
  }
  .plates::-webkit-scrollbar {
    display: none;
  }
  .plate {
    flex: 0 0 62vw;
    scroll-snap-align: start;
  }
  .plate:nth-child(4) {
    border-left: 1px solid var(--line-2);
  }
  .plate:nth-child(n + 4) {
    border-top: 0;
  }
  .manifesto__list {
    grid-template-columns: 1fr;
  }
  .manifesto__list li {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
}

/* ==========================================================================
   v5 — the film. The main page is one scroll-driven film: scroll position is
   the timeline. Each .scene is tall and pins its .stage while you scroll
   through it; site.js maps scroll to the frame and only ever writes
   transform and opacity. Default styles below are every scene's static end
   state (no JS, or prefers-reduced-motion). html.film switches on the film.
   ========================================================================== */

:root {
  --ink: #232323; /* the D's ink, used as a ground */
  --on-ink: #fbfaf7; /* 15.1:1 on --ink */
  --on-ink-2: #c9c4bb; /* 9.1:1 */
  --on-ink-3: #a39d94; /* 5.8:1 */
}

.scene {
  position: relative;
}

.stage {
  position: relative;
}

/* --- shared mark pieces --------------------------------------------------- */

/* A mask stroke that is never animated: the static end state of the S. The
   film replaces it with a brush (see site.js) that is driven by opacity. */
.draw-static {
  fill: none;
  stroke: #fff;
  stroke-width: 116;
  stroke-linecap: round;
  stroke-dasharray: 1 1.1;
  stroke-dashoffset: var(--t, 0);
}

.g-d {
  fill: var(--fg);
}

.g-track {
  fill: rgba(35, 35, 35, 0.08);
}

.gs--pending {
  fill: var(--fg-3);
}
.gs--allow {
  fill: var(--blue);
}
.gs--confirm {
  fill: var(--orange);
}
.gs--deny {
  fill: var(--red);
}

.dc {
  fill: var(--surface);
  stroke-width: 9;
}
.dc--pending {
  stroke: var(--fg-3);
}
.dc--allow {
  stroke: var(--blue);
}
.dc--confirm {
  stroke: var(--orange);
}
.dc--deny {
  stroke: var(--red);
}

.ring,
.ring-wait {
  fill: none;
  stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.ring--allow {
  stroke: var(--blue);
}
.ring--confirm,
.ring-wait {
  stroke: var(--orange);
}
.ring--deny {
  stroke: var(--red);
}

/* --- prologue, static ---------------------------------------------------- */

.pro-hero {
  padding-top: clamp(120px, 14vw, 168px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.pro-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.pro-hero .lede {
  margin-top: clamp(24px, 3vw, 36px);
}

.pro-hero__mark {
  width: 100%;
  max-width: 460px;
  justify-self: center;
}

.hdot {
  display: none;
}

.hdot__core {
  fill: var(--surface);
  stroke: var(--blue);
  stroke-width: 9;
}

.hdot__ring {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

/* RULE-BREAK: a dark moment. The brand keeps one light ground and separates
   sections with a hairline, never a background change. Here the page is
   inside the D, so the ground is the D's own ink. */
.pro-ink {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(96px, 12vw, 176px);
}

.ink-title {
  font-variation-settings: "wdth" 112, "wght" 800;
  font-size: clamp(2.5rem, 10vw, 9.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.ink-title .ln {
  display: block;
}

.ink-title .serif {
  color: var(--on-ink-3);
  padding-right: 0.06em;
}

.ink-lede {
  margin-top: clamp(28px, 3.4vw, 44px);
  max-width: 56ch;
  color: var(--on-ink-2);
}

.pro-gate {
  padding-block: clamp(80px, 10vw, 144px);
}

.gmark {
  display: none;
}

.gmark__svg,
.beat__mini {
  overflow: visible;
}

.beats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.beat {
  display: flex;
  flex-direction: column;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}

.beat__mini {
  order: -2;
  width: 100%;
  max-width: 200px;
  margin-bottom: 28px;
}

.beat__cmd {
  order: -1;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--fg-2);
  overflow-wrap: anywhere;
}

.beat__word {
  font-variation-settings: "wdth" 112, "wght" 800;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.beat__word > span {
  display: block;
}

.beat[data-v="allow"] .beat__word {
  color: var(--blue);
}
.beat[data-v="confirm"] .beat__word {
  color: var(--orange-ink);
}
.beat[data-v="deny"] .beat__word {
  color: var(--red-ink);
}

.beat__note {
  margin-top: 12px;
  max-width: 34ch;
  color: var(--fg-2);
  text-wrap: pretty;
}

.pro-gate .gate__foot {
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 64ch;
}

/* --- strip, manifesto, finale: static ------------------------------------ */

.scene--strip,
.scene--manifesto,
.scene--finale {
  padding-block: clamp(80px, 10vw, 144px);
  border-top: 1px solid var(--line);
}

.strip {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.strip__head {
  max-width: 72ch;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.strip__head .lede {
  margin-top: 20px;
}

.mf-b {
  display: block;
  margin-top: 0.28em;
}

html:not(.film) .strike {
  color: var(--fg-3);
  text-decoration: line-through;
  text-decoration-color: var(--red-ink);
  text-decoration-thickness: 0.07em;
}

.fmark {
  width: 96px;
  margin-bottom: 36px;
  overflow: visible;
}

.fmark__d {
  fill: var(--fg);
  transform-box: fill-box;
  transform-origin: 50% 60%;
}

.fmark__s {
  fill: var(--blue);
}

.fdot {
  display: none;
}

.fdot__core {
  fill: var(--surface);
  stroke: var(--blue);
  stroke-width: 9;
}

/* The full stop of "when to stop." is the action, come to rest. */
.stop__dot {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--blue);
}

.fly {
  display: none;
}

.cta__facts {
  justify-content: center;
  margin-top: 40px;
}

@media (max-width: 1000px) {
  .pro-hero__in {
    grid-template-columns: 1fr;
  }
  .pro-hero__mark {
    order: -1;
    max-width: 260px;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  /* the bar was a pixel wider than a 390px phone */
  .nav__in {
    gap: 12px;
  }
  .nav__cta .btn--primary {
    padding-inline: 1.05em;
  }
  .pro-hero__mark {
    max-width: 180px;
  }
  .beats {
    grid-template-columns: 1fr;
  }
  .beat__mini {
    max-width: 150px;
  }
}

/* ==========================================================================
   html.film — the scenes pin and the frames are scrubbed by scroll.
   ========================================================================== */

.film .scene {
  height: calc(var(--len, 3) * 100vh);
  padding: 0;
  border: 0;
}

.film .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* the brushes in site.js own every film mask */
.film .draw-static {
  display: none;
}

/* --- prologue ------------------------------------------------------------- */

.film .pro-hero,
.film .pro-ink,
.film .pro-gate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 68px 0 0;
}

.film .pro-hero {
  z-index: 2;
}

/* the ink and gate layers hold no controls; never let them catch a click
   meant for the hero beneath */
.film .pro-ink {
  z-index: 3;
  padding-top: 0;
  opacity: 0;
  pointer-events: none;
}

.film .pro-gate {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.film .hmark {
  overflow: visible;
}

.film .hdot {
  display: inline;
}

.film .hmark.is-idle .hdot__ring {
  animation: waitRing 1.9s var(--e-out) infinite;
}

.film .speak__fill {
  transform: translateX(-101%);
}

.film .speak__fill > span {
  transform: translateX(101%);
}

.film .pro-gate__in {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas:
    "mark beats"
    "mark foot";
  align-items: center;
  column-gap: clamp(32px, 6vw, 96px);
}

.film .gmark {
  display: block;
  grid-area: mark;
  width: 100%;
  max-width: min(480px, 62vh);
  justify-self: center;
}

.film .beats {
  grid-area: beats;
  grid-template-columns: minmax(0, 1fr);
  align-self: end;
}

.film .beat {
  grid-area: 1 / 1;
  padding: 0;
  border: 0;
  opacity: 0;
}

.film .beat__mini {
  display: none;
}

/* RULE-BREAK: type that moves. The verdict word is set at display size and
   rises out of its own line as the action reaches the gate. */
.film .beat__word {
  font-size: clamp(3.2rem, min(8.4vw, 15vh), 8.2rem);
  line-height: 0.95;
}

.film .beat__cmd {
  margin-bottom: 18px;
  font-size: clamp(0.95rem, 1.35vw, 1.25rem);
  color: var(--fg);
}

.film .beat__note {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
}

.film .pro-gate .gate__foot {
  grid-area: foot;
  align-self: start;
  margin-top: clamp(24px, 3vw, 40px);
  opacity: 0;
}

/* confirm: while the action holds at the gate, a ring keeps breathing */
.film .gmark__svg.is-wait .ring-wait {
  animation: waitRing 1.5s var(--e-out) infinite;
}

@keyframes waitRing {
  from {
    opacity: 0.9;
    transform: scale(0.8);
  }
  to {
    opacity: 0;
    transform: scale(2.6);
  }
}

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

.film .scene--strip .stage {
  display: flex;
  align-items: center;
}

/* RULE-BREAK: vertical scroll drives a horizontal pan. The native scroll is
   untouched; the strip is only translated by it. */
.film .strip {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 68px var(--gut) 0;
}

.film .strip__head {
  flex: none;
  width: min(36vw, 480px);
  margin: 0 clamp(48px, 7vw, 120px) 0 0;
}

.film .plates {
  display: flex;
  overflow: visible;
  margin: 0;
  padding: 0;
}

.film .plate {
  flex: none;
  width: clamp(240px, min(25vw, 42vh), 400px);
}

.film .plate:nth-child(n + 4) {
  border-top: 0;
}

.film .plate:nth-child(4) {
  border-left: 1px solid var(--line-2);
}

/* --- ticker --------------------------------------------------------------- */

.film .ticker__track {
  animation: none;
}

/* --- bands ---------------------------------------------------------------- */

/* RULE-BREAK: parallax type. Section headings drift in sideways as their
   section arrives, a beat behind the scroll. */
.film .band .shead .h1 {
  will-change: transform;
}

/* clip, not hidden: no scroll container, so the sticky heading still sticks */
.film .band {
  overflow-x: clip;
}

/* --- manifesto ------------------------------------------------------------ */

.film .scene--manifesto .stage,
.film .scene--finale .stage {
  display: flex;
  align-items: center;
  padding-top: 68px;
}

.film .scene--manifesto .wrap,
.film .scene--finale .wrap {
  width: 100%;
}

.film .manifesto__t {
  font-size: clamp(2.1rem, min(5.4vw, 8.2vh), 5.2rem);
  max-width: 20ch;
}

.w {
  display: inline-block;
  position: relative;
}

/* RULE-BREAK: red outside the gate demo. It is still a verdict: the gate
   denies "speak first", struck through word by word as you scroll. */
.w__x {
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 54%;
  height: 0.075em;
  border-radius: 0.04em;
  background: var(--red-ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* --- finale --------------------------------------------------------------- */

.film .fmark {
  width: clamp(112px, min(13vw, 20vh), 184px);
  margin-bottom: clamp(24px, 4vh, 40px);
}

.film .fdot {
  display: inline;
}

.film .stop__dot {
  opacity: 0;
}

.film .fly {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
  pointer-events: none;
}

/* --- nav over the dark moment -------------------------------------------- */

/* RULE-BREAK: the nav turns to ink while the page is inside the D, and the
   mark in it is inverted to read on the dark ground. */
.nav.is-ink,
.nav.is-ink .nav__links.is-open {
  background: rgba(35, 35, 35, 0.82);
  border-bottom-color: rgba(251, 250, 247, 0.1);
  color: var(--on-ink);
}

.nav.is-ink .brand__mark {
  filter: invert(1) hue-rotate(180deg);
}

.nav.is-ink .nav__link {
  color: var(--on-ink-2);
}

.nav.is-ink .nav__link:hover {
  color: var(--on-ink);
}

.nav.is-ink .btn--primary {
  background: var(--on-ink);
  color: var(--ink);
}

.nav.is-ink .btn--primary:hover {
  background: var(--blue);
  color: #fff;
}

.nav.is-ink .btn--ghost,
.nav.is-ink .nav__burger {
  border-color: rgba(251, 250, 247, 0.28);
  color: var(--on-ink);
}

.nav.is-ink .btn--ghost:hover {
  border-color: var(--on-ink);
}

/* --- film, smaller screens ------------------------------------------------ */

@media (max-width: 1000px) {
  .film .pro-hero__mark {
    max-width: min(260px, 26vh);
  }
  .film .pro-gate__in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "mark"
      "beats"
      "foot";
    row-gap: clamp(16px, 3vh, 32px);
  }
  .film .gmark {
    max-width: min(320px, 30vh);
    justify-self: start;
  }
  .film .strip__head {
    width: min(70vw, 480px);
  }
  .film .plate {
    width: min(46vw, 300px);
  }
}

@media (max-width: 720px) {
  .film .pro-hero__mark {
    max-width: min(180px, 22vh);
  }
  .film .gmark {
    max-width: min(220px, 26vh);
  }
  .film .beat__word {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }
  .film .strip__head {
    width: 82vw;
    margin-right: 10vw;
  }
  .film .plate {
    width: 68vw;
  }
}

/* Sign out is a form with one button that stands where the Sign in link stood. */
.signout { display: contents; }
.signout button { font: inherit; cursor: pointer; }
.signout button.nav__link, .signout button.foot__link { background: none; border: 0; }
