/* Viadora — "The Quiet Ledger". Tokens are normative in DESIGN.md.
   Nothing on this page is divided by a drawn line. Space divides. */

:root {
  --ground: #f2f2f1;
  --surface: #ffffff;
  --ink: #111111;
  --ink-soft: #414344;
  --ink-faint: #747677;
  --edge: #c7c7c3;
  --green: #245343;
  --green-ink: #173b30;
  --green-soft: #dce9e1;
  --green-wash: #e8f0eb;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* A compact fixed scale. Section is shared by every major editorial transition;
     figure remains reserved for the single number a section is built around. */
  --t-display: clamp(2.6rem, 4.6vw, 4.25rem);
  --t-figure: clamp(2.75rem, 7vw, 5rem);
  --t-headline: clamp(2rem, 3.2vw, 2.75rem);
  --t-section: clamp(2.125rem, 3.6vw, 3.25rem);
  --t-statement: 1.5rem;
  --t-lede: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --xs: 8px;
  --sm: 14px;
  --md: 24px;
  --lg: 40px;
  --xl: 80px;
  --xxl: 136px;

  --radius: 2px;
  --card-pad: 36px;
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (max-width: 520px) {
  :root {
    --card-pad: 24px;
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
.bridge,
.pull,
.panel__note {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

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

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  background: var(--ink);
  color: var(--surface);
  font: 500 var(--t-small) / 1.2 var(--sans);
  padding: 12px 18px;
}

.skip:focus {
  left: 0;
}

.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--md);
}

@media (min-width: 900px) {
  .shell {
    padding-inline: var(--lg);
  }
}

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

.display {
  font-family: var(--serif);
  font-size: var(--t-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
  max-width: 18ch;
}

.headline {
  font-family: var(--serif);
  font-size: var(--t-section);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 28ch;
}

/* The one number a section is built around, used in place of its headline.
   Once per page at most — its whole force is that nothing else looks like it. */
.stat-figure {
  font-family: var(--serif);
  font-size: var(--t-figure);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.024em;
  font-variant-numeric: tabular-nums;
}

.statement {
  font-family: var(--serif);
  font-size: var(--t-statement);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.014em;
  max-width: 34ch;
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 64ch;
}

.prose {
  color: var(--ink-soft);
  max-width: 68ch;
}

.prose strong,
.prose b {
  color: var(--ink);
  font-weight: 500;
}

.index {
  font-size: var(--t-small);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.fine {
  font-size: var(--t-small);
  line-height: 1.45;
  color: var(--ink-faint);
}

/* -------------------------------------------------------------- header */

.rail {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
}

.rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  text-decoration: none;
}

.wordmark__name {
  font-family: var(--serif);
  font-size: var(--t-statement);
  line-height: 1;
  letter-spacing: -0.02em;
}

.wordmark__tag {
  color: var(--ink-faint);
  font-size: var(--t-small);
}

.rail__action {
  color: var(--ink-soft);
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: none;
}

.rail__action:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .wordmark__tag {
    display: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--sans);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: -0.004em;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 140ms var(--ease);
}

.btn:hover {
  opacity: 0.84;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.55;
}

.btn--small {
  padding: 10px 18px;
}

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

.hero {
  padding-block: 56px var(--xl);
}

@media (min-width: 980px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(25rem, 0.98fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
    min-height: calc(100svh - 72px);
    padding-block: var(--xl);
  }
}

.hero__lede {
  margin-top: var(--md);
}

.hero__cta {
  margin-top: var(--lg);
}

.hero__fine {
  margin-top: var(--sm);
}

.hero__figure {
  margin-top: 56px;
}

@media (max-width: 520px) {
  .hero {
    padding-block: 32px 64px;
  }

  .hero__lede {
    font-size: 1.125rem;
  }

  .hero__figure {
    margin-top: var(--lg);
  }

  .hero .btn {
    padding-inline: 16px;
    white-space: nowrap;
  }
}

@media (min-width: 980px) {
  .hero__figure {
    margin-top: 0;
  }
}

.globe {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

.hero__figure .globe {
  max-width: 560px;
  margin-inline: auto;
}

@media (max-width: 520px) {
  .hero__figure .globe {
    width: 88%;
  }
}

/* ---------------------------------------------------------------- form */

.signup {
  margin-top: var(--lg);
  max-width: 32rem;
}

.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--xs);
}

.signup__field {
  flex: 1 1 15rem;
  min-width: 0;
}

.signup input[type="email"] {
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  padding: 14px 16px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  transition: border-color 140ms var(--ease);
}

.signup input[type="email"]::placeholder {
  color: var(--ink-faint);
}

.signup input[type="email"]:focus {
  border-color: var(--ink);
}

.signup__fine {
  margin-top: var(--sm);
}

.turnstile.is-interactive {
  margin-top: var(--sm);
}

.signup__msg {
  display: none;
  margin-top: var(--sm);
  font-size: var(--t-small);
}

.signup__msg.is-shown {
  display: block;
}

.signup__msg--error {
  color: var(--ink);
  font-weight: 500;
}

.signup.is-done .signup__row,
.signup.is-done .signup__fine,
.signup.is-done .turnstile {
  display: none;
}

.confirm__stamp {
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.confirm__text {
  margin-top: var(--xs);
  color: var(--ink-soft);
}

/* ------------------------------------------------------------ sections */

.section {
  padding-block: 88px 0;
}

@media (max-width: 899px) {
  .section {
    padding-block: 72px 0;
  }
}

@media (min-width: 900px) {
  .section {
    padding-block: 112px 0;
  }
}

.section__note {
  margin-top: var(--md);
}

.burden-intro {
  max-width: none;
  margin-inline: auto;
  text-align: left;
}

.burden-intro__copy {
  max-width: 58rem;
  margin-inline: 0;
}

.burden-intro__copy .headline,
.burden-intro__copy .lede {
  margin-inline: 0;
}

.burden-list {
  width: 100%;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(132px, auto);
  gap: 16px;
  text-align: left;
}

.burden-list li {
  display: grid;
  grid-column: span 3;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: var(--surface);
  color: var(--ink);
  padding: var(--card-pad);
}

.burden-list svg {
  width: 28px;
  height: 28px;
  color: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.burden-card h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.014em;
}

.burden-card p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: var(--t-small);
  line-height: 1.45;
}

.burden-card--clinical {
  grid-row: span 2;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
}

.burden-card--clinical svg {
  width: 40px;
  height: 40px;
}

.burden-card--clinical h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.burden-card--clinical p {
  max-width: 28ch;
  font-size: var(--t-body);
}

.burden-note {
  margin-top: var(--md);
}

@media (max-width: 700px) {
  .burden-list {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .burden-list li {
    grid-column: auto;
  }

  .burden-card--clinical {
    grid-row: auto;
    min-height: 15rem;
  }
}

/* The line that hands the reader to the next section. */
.bridge {
  margin: 128px auto 0;
  min-height: 58svh;
  padding-block: 96px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: var(--t-section);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 28ch;
  text-align: center;
}

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

/* A genuine pull-quote, separated by scale and space rather than a rule. */
.pull {
  margin: 0 auto;
  font-family: var(--serif);
  font-size: var(--t-section);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 28ch;
  text-align: center;
}

.statement-section {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  min-height: 82svh;
  padding: 120px var(--md);
  display: grid;
  place-items: center;
}

@media (min-width: 900px) {
  .statement-section {
    padding-inline: var(--lg);
  }
}

.evidence {
  margin: var(--lg) auto 0;
  max-width: 62ch;
  text-align: center;
}

.evidence a {
  color: var(--ink-soft);
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------- rows */

.rows {
  margin-top: var(--xl);
  display: grid;
  gap: var(--lg);
}

@media (min-width: 700px) {
  .rows {
    gap: 52px;
  }
}

@media (max-width: 699px) {
  .rows {
    margin-top: 48px;
    gap: 32px;
  }
}

.row__index {
  /* inline-block, not block: a block span stretches to the row's full width,
     which turned the --mine chip into a long bar instead of wrapping "04". */
  display: inline-block;
}

.row__term {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: var(--t-statement);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.014em;
  max-width: 32ch;
}

.row__detail {
  margin-top: var(--sm);
  color: var(--ink-soft);
  max-width: 68ch;
}

/* The one line that belongs to the reader. */
.row--mine .row__index {
  color: var(--surface);
  background: var(--ink);
  border-radius: var(--radius);
  padding: 4px 8px;
}

.row--mine .row__term {
  font-weight: 500;
}

.rows--compact {
  gap: var(--md);
}

.rows--compact .row {
  display: flex;
  gap: var(--md);
  align-items: baseline;
}

.rows--compact .row__term {
  margin-top: 0;
  font-family: var(--sans);
  font-size: var(--t-body);
  letter-spacing: -0.006em;
  max-width: 48ch;
}

/* Three separate product surfaces inside the full-bleed ink band. */
.surface-band {
  margin-top: 112px;
  padding-block: 120px;
  background: var(--green-soft);
  color: var(--green-ink);
}

@media (max-width: 899px) {
  .surface-band {
    margin-top: 80px;
    padding-block: 80px;
  }
}

.surface-band .headline,
.surface-band .section__note {
  margin-inline: 0;
  text-align: left;
}

.surface-band .section__note {
  color: color-mix(in srgb, var(--green-ink) 72%, transparent);
}

.surface-cards {
  margin-top: 64px;
  display: grid;
  gap: var(--md);
}

@media (min-width: 820px) {
  .surface-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.surface-card {
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  padding: var(--card-pad);
  min-height: 21rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}

@media (max-width: 520px) {
  .surface-card {
    padding: var(--md);
  }
}

.surface-card__icon {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.surface-card__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.surface-card > div:last-child {
  margin-top: 72px;
  padding-top: 0;
}

.surface-card .row__term {
  margin-top: 0;
  color: var(--green-ink);
}

.surface-card .row__detail {
  margin-top: var(--sm);
  color: color-mix(in srgb, var(--green-ink) 74%, transparent);
}

.surface-band__statement {
  margin: 96px auto 0;
  min-height: 48svh;
  padding-block: 96px;
  display: grid;
  place-items: center;
  max-width: 28ch;
  color: var(--green-ink);
  font-family: var(--serif);
  font-size: var(--t-section);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

/* The connection is a single continuous chain, not four feature cards. */
.chain {
  margin: 64px auto 0;
  display: grid;
  gap: var(--md);
  max-width: none;
  text-align: left;
}

.chain__step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--md);
  align-items: start;
  background: var(--surface);
  padding: var(--card-pad);
  min-height: 13rem;
}

.chain__index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  border-radius: 50%;
}

.chain .row__term {
  margin-top: 2px;
}

.chain .row__detail {
  margin-top: 10px;
}

/* --------------------------------------------------------------- figures */
/* Supporting numbers beside the section's one big stat-figure. No index, no
   rule, no detail paragraph — a different register from the ledger row. */

.figures {
  margin-top: 64px;
  display: grid;
  gap: 0;
  background: var(--green-wash);
  padding: 16px;
}

@media (min-width: 700px) {
  .figures {
    grid-template-columns: repeat(3, 1fr);
  }
}

.figure {
  padding: var(--md);
}

@media (min-width: 700px) {
  .figure {
    padding: 32px;
  }
}

.figure__value {
  font-family: var(--serif);
  font-size: var(--t-headline);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.018em;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}

.figure__label {
  margin-top: var(--xs);
  color: var(--ink-soft);
  max-width: 32ch;
}

/* A quiet passage: no numbers, no rules, lead-in phrases carry the beat. */
.run {
  margin: 56px auto 0;
  display: grid;
  gap: 12px;
  max-width: none;
  text-align: left;
}

@media (min-width: 820px) {
  .run {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--md);
  }
}

.relief-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: var(--md);
  align-items: start;
  background: var(--surface);
  padding: var(--card-pad);
}

.relief-card > svg {
  width: 28px;
  height: 28px;
  color: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.relief-card h3 {
  font-family: var(--serif);
  font-size: var(--t-statement);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.014em;
}

.relief-card p {
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: none;
  font-size: var(--t-body);
  line-height: 1.5;
}

/* The exception to the page's ledger rhythm: the tool stack is a real set of
   separate objects, so it is shown as a compact comparison grid. */
.stack-grid {
  margin-top: 64px;
  display: grid;
  gap: var(--md);
  text-align: left;
}

@media (min-width: 820px) {
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--lg);
  }
}

.stack-card {
  background: var(--surface);
  padding: var(--card-pad);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

@media (max-width: 520px) {
  .stack-card {
    padding: var(--card-pad);
  }

  .stack-card__replacement {
    padding: var(--card-pad);
  }
}

.stack-card__eyebrow {
  color: var(--ink-faint);
  font-size: var(--t-small);
  font-weight: 500;
}

.stack-card__title {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: var(--t-statement);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.014em;
}

.stack-card__tools {
  margin-top: var(--sm);
  color: var(--ink);
  font-size: var(--t-body);
  font-weight: 500;
  line-height: 1.45;
}

.stack-card__detail {
  margin-top: var(--md);
  color: var(--ink-soft);
}

.stack-card__replacement {
  margin-top: 32px;
  margin-right: calc(-1 * var(--card-pad));
  margin-bottom: calc(-1 * var(--card-pad));
  margin-left: calc(-1 * var(--card-pad));
  position: relative;
  padding: var(--card-pad);
  background: var(--green-soft);
  color: var(--green-ink);
}

@media (min-width: 820px) {
  .stack-card__replacement {
    min-height: 16rem;
  }
}

.stack-card__replacement-title {
  display: block;
  padding-right: 44px;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--green);
}

.stack-card__replacement-title svg {
  position: absolute;
  top: var(--card-pad);
  right: var(--card-pad);
  width: 22px;
  height: 22px;
  padding: 3px;
  background: var(--green);
  color: var(--surface);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  border-radius: 50%;
}

.stack-card__replacement-copy {
  margin-top: 12px;
  padding-left: 0;
  color: color-mix(in srgb, var(--green-ink) 78%, transparent);
}

.stack-card--boundary {
  background: var(--surface);
}

.relief-section {
  padding-bottom: 8px;
}

.relief-section > .headline {
  max-width: 24ch;
}

@media (min-width: 900px) {
  .stack-section {
    display: grid;
    grid-template-columns: minmax(18rem, 0.76fr) minmax(0, 1.24fr);
    column-gap: clamp(64px, 8vw, 112px);
    align-items: start;
  }

  .stack-intro {
    position: sticky;
    top: 120px;
  }

  .stack-section > .stack-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .stack-section .stack-card__replacement {
    min-height: 0;
  }
}

.connection-section .chain {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .connection-layout {
    display: grid;
    grid-template-columns: minmax(18rem, 0.78fr) minmax(0, 1.22fr);
    column-gap: clamp(64px, 8vw, 112px);
    align-items: start;
  }

  .connection-intro {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 120px;
  }

  .connection-layout > .chain {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }
}

.boundary-section .rows {
  margin-top: 64px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--md);
  text-align: left;
}

.boundary-section .row {
  background: var(--surface);
  padding: var(--card-pad);
  min-height: 0;
}

.boundary-section .row--mine {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--green-soft);
  padding: clamp(40px, 6vw, 72px);
}

.boundary-section .row--mine .row__index {
  background: var(--green);
}

@media (max-width: 819px) {
  .boundary-section .rows {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .boundary-section .row--mine {
    grid-column: auto;
    grid-row: auto;
    padding: var(--card-pad);
  }

}

@media (max-width: 520px) {
  .burden-list {
    margin-top: 36px;
  }

  .burden-list li {
    padding: 15px 16px;
  }

  .figures {
    margin-top: 48px;
  }

  .statement-section {
    min-height: 72svh;
    padding-block: 80px;
  }

  .bridge {
    margin-top: 96px;
    min-height: 52svh;
    padding-block: 72px;
  }

  .chain {
    margin-top: 48px;
  }

  .chain__step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 16px;
    min-height: 0;
    padding: var(--card-pad);
  }

  .relief-card {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 16px;
  }

  .boundary-section .row {
    min-height: 0;
    padding: var(--card-pad);
  }

  .surface-card {
    min-height: 0;
  }

  .stack-card__replacement-copy {
    padding-left: 0;
  }
}

/* --------------------------------------------------------------- close */
/* The one ink surface on the site, and the page's anchor. */

.close {
  padding-block: var(--xxl) 0;
}

.panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--green-ink);
  color: var(--surface);
  border-radius: var(--radius);
  padding: var(--lg) var(--md);
  min-height: 26rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--lg);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy {
    animation: enter-up 620ms var(--ease) both;
  }

  .hero__figure {
    animation: enter-scale 760ms 100ms var(--ease) both;
  }

  @keyframes enter-up {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
  }

  @keyframes enter-scale {
    from {
      opacity: 0;
      transform: scale(0.97);
    }
  }
}

@media (min-width: 820px) {
  .panel {
    padding: 56px var(--lg);
    min-height: 28rem;
  }
}

.panel__title {
  font-family: var(--serif);
  font-size: var(--t-section);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 28ch;
}

.panel__ask {
  grid-row: 3;
  justify-self: stretch;
}

@media (min-width: 820px) {
  .panel__ask {
    justify-self: end;
    width: min(30rem, 100%);
  }
}

.panel__note {
  font-size: var(--t-lede);
  line-height: 1.35;
  color: color-mix(in srgb, var(--surface) 82%, transparent);
}

/* Underline-only field on the ink panel. */
.signup--ink {
  margin-top: var(--md);
  max-width: none;
}

.signup--ink .signup__row {
  gap: 0;
  align-items: center;
  /* One field, one arrow, one underline — never wrapped onto two lines. */
  flex-wrap: nowrap;
  border-bottom: 1px solid color-mix(in srgb, var(--surface) 45%, transparent);
  transition: border-color 140ms var(--ease);
}

.signup--ink .signup__field {
  flex: 1 1 auto;
}

.signup--ink .signup__row:focus-within {
  border-bottom-color: var(--surface);
}

.signup--ink input[type="email"] {
  background: transparent;
  color: var(--surface);
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  font-size: var(--t-lede);
}

.signup--ink input[type="email"]::placeholder {
  color: color-mix(in srgb, var(--surface) 62%, transparent);
}

.signup--ink input[type="email"]:focus {
  outline: none;
}

.signup--ink .btn {
  background: transparent;
  color: var(--surface);
  padding: 12px 0 12px var(--sm);
}

.signup--ink .btn svg {
  display: block;
  transition: transform 160ms var(--ease);
}

.signup--ink .btn:hover {
  opacity: 1;
}

.signup--ink .btn:hover svg {
  transform: translateX(4px);
}

.signup--ink .signup__fine,
.signup--ink .confirm__text {
  color: color-mix(in srgb, var(--surface) 64%, transparent);
}

.signup--ink .signup__fine a {
  color: var(--surface);
}

.signup--ink .signup__msg--error {
  color: var(--surface);
}

.signup--ink.is-done .confirm__stamp {
  color: var(--surface);
}

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

.foot {
  padding-block: var(--lg) var(--lg);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sm) var(--md);
  align-items: baseline;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: var(--t-small);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--md);
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------- legal */

.doc {
  padding-block: var(--xl);
}

.doc__body {
  max-width: 64ch;
}

.doc h2 {
  font-family: var(--serif);
  font-size: var(--t-statement);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.014em;
  margin-top: var(--xl);
}

.doc h2:first-of-type {
  margin-top: var(--lg);
}

.doc p,
.doc li {
  color: var(--ink-soft);
  margin-top: var(--sm);
}

.doc li {
  padding-left: var(--md);
  position: relative;
}

.doc li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.doc code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.doc__meta {
  margin-top: var(--md);
  color: var(--ink-faint);
  font-size: var(--t-small);
}

.oops {
  padding-block: var(--xxl);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
