/* Halftone launch site. Tokens are the brief's, shared with the app. */
:root {
  color-scheme: light dark;
  --paper: #f6f1e7; /* page background */
  --surface: #fffcf5; /* panels, cards */
  --ink: #1b1a1f; /* text, borders, hard shadows */
  --ink-muted: #5a5650; /* secondary text (AA on paper) */
  --line: #d9d0bf; /* hairlines, gutters */
  --accent: #d62828; /* printer's red: primary CTA, current panel, focus */
  --accent-hover: #b51f1f;
  --accent-ink: #ffffff; /* text on red */
  --canvas: #ece6da; /* behind the embedded app and comic art */
  --dot: rgb(27 26 31 / 0.14); /* halftone dot fill */
  --dot-accent: rgb(214 40 40 / 0.22);
  --shadow-panel: 5px 5px 0 var(--ink);
  --shadow-lift:
    0 10px 30px rgb(27 26 31 / 0.14), 0 2px 6px rgb(27 26 31 / 0.08);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --font-display: "Archivo", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: 12px;
  --pad: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121114;
    --surface: #1c1b20;
    --ink: #f1ece2;
    --ink-muted: #a9a398;
    --line: #34323a;
    --accent: #ff4d4d;
    --accent-hover: #ff7070;
    --accent-ink: #160707;
    --canvas: #0a0a0b;
    --dot: rgb(241 236 226 / 0.09);
    --dot-accent: rgb(255 77 77 / 0.18);
    --shadow-panel: 5px 5px 0 #000;
    --shadow-lift: 0 10px 30px rgb(0 0 0 / 0.5), 0 2px 6px rgb(0 0 0 / 0.4);
  }
}

@media (max-width: 419.98px) {
  :root {
    --pad: 1rem;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 70;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 1.6rem + 5.5vw, 6rem);
  line-height: 0.92;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.15;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

a {
  color: inherit;
}

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

main:focus {
  outline: none;
}

svg {
  display: block;
}

.wrap {
  width: 100%;
  max-width: calc(72rem + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.muted {
  color: var(--ink-muted);
}

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

.caption,
.caption-box {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 70;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.caption {
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.caption-box {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Halftone dots: the only decoration */
.dots {
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    var(--dot) 1.1px,
    transparent 1.6px
  );
  background-size: 9px 9px;
}

.dots--accent {
  background-image: radial-gradient(
    circle,
    var(--dot-accent) 1.6px,
    transparent 2.2px
  );
}

/* Buttons and links */
.button,
.reader button,
.tabs button {
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 1.1rem;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 80;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.1;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease);
}

.button--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.button--large {
  min-height: 56px;
  padding: 0 1.5rem;
  font-size: 1.125rem;
}

@media (hover: hover) {
  .button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 var(--ink);
  }
  .button--accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
  }
}

.button:active {
  transform: none;
  box-shadow: none;
}

.button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0.9rem;
}

.text-link,
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}

.text-button {
  padding: 0 0.25rem;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.fine-print {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* 0. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}

.site-header.is-scrolled {
  border-bottom-color: var(--ink);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}

.wordmark {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 70;
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.75rem;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 80;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.site-nav ul a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

@media (max-width: 719.98px) {
  .site-nav ul {
    display: none;
  }
  .site-nav__cta {
    padding: 0 0.85rem;
    font-size: 1rem;
  }
}

/* 1. Hero */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6rem);
  overflow-x: clip;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 5fr 6fr;
    align-items: end;
  }
}

.lede {
  font-size: 1.1875rem;
  max-width: 34rem;
}

.hero__art {
  position: relative;
  isolation: isolate;
}

.hero__dots {
  inset: -2.5rem -2rem -2rem -2rem;
  z-index: -1;
  -webkit-mask-image: radial-gradient(
    ellipse at top right,
    #000 10%,
    transparent 72%
  );
  mask-image: radial-gradient(ellipse at top right, #000 10%, transparent 72%);
  transform: translateY(var(--parallax, 0px));
}

.hero__dots-accent {
  z-index: -1;
  right: -1.25rem;
  bottom: -1.25rem;
  width: 11rem;
  height: 11rem;
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  transform: translateY(var(--parallax, 0px));
}

.strip {
  display: grid;
  gap: var(--gutter);
}

@media (min-width: 560px) {
  .strip {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .strip {
    transform: rotate(-1.5deg);
  }
}

.strip__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 19rem;
  padding: 2.75rem 0.85rem 1rem;
  background: var(--surface);
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

@media (min-width: 960px) {
  .strip__panel {
    min-height: 24rem;
  }
}

.strip__panel .caption-box {
  position: absolute;
  top: -2px;
  left: -2px;
  z-index: 2;
  border-width: 2.5px;
}

.mock-toolbar {
  width: 100%;
  padding: 0.3rem 0.4rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.2;
  text-align: center;
}

.mini-page {
  width: min(11rem, 80%);
  height: auto;
}

.mock-arrows {
  display: flex;
  gap: 0.75rem;
}

.mock-arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
}

.mock-arrow + .mock-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.strip__panel--2 {
  background: var(--canvas);
}

.strip__night {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}

.mini-page--faded {
  opacity: 0.3;
}

.strip__wash {
  inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.moon {
  position: absolute;
  top: -0.5rem;
  right: 0.25rem;
  width: 2.25rem;
  height: 2.25rem;
}

.ribbon {
  position: absolute;
  top: -2px;
  right: 1.1rem;
  width: 2rem;
  height: auto;
}

.mock-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 80;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-align: center;
  box-shadow: 3px 3px 0 var(--ink);
}

/* Ink-in on load: CSS only, so it never waits for main.js. */
@media (prefers-reduced-motion: no-preference) {
  .js .strip__panel {
    animation: ink-in 420ms var(--ease) both;
  }
  .js .strip__panel--2 {
    animation-delay: 140ms;
  }
  .js .strip__panel--3 {
    animation-delay: 280ms;
  }
  .js .strip__panel .caption-box {
    animation: caption-drop 260ms var(--ease) both;
    animation-delay: 700ms;
  }
  .js .strip__panel--2 .caption-box {
    animation-delay: 780ms;
  }
  .js .strip__panel--3 .caption-box {
    animation-delay: 860ms;
  }
}

@keyframes ink-in {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 -8px -8px 0);
  }
}

@keyframes caption-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Section rhythm: gutters between page "panels" */
.how,
.features,
.try,
.closing {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 2px solid var(--line);
}

.section-lede {
  max-width: 40rem;
  font-size: 1.125rem;
}

/* 2. How it reads */
.reader {
  max-width: 62rem;
  margin-top: 2rem;
}

.reader__welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.85rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-left: 6px solid var(--accent);
}

.reader__welcome[hidden],
[data-controls][hidden] {
  display: none;
}

.reader__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.reader__status {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75;
  font-weight: 700;
  font-size: 1rem;
}

.segmented {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.segmented button {
  min-height: 44px;
  padding: 0 0.85rem;
  background: var(--surface);
  color: var(--ink);
  border: 0;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 80;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
}

.segmented button + button {
  border-left: 2px solid var(--ink);
}

.segmented button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.segmented button:focus-visible {
  outline-offset: -5px;
}

.reader__stage {
  position: relative;
  isolation: isolate;
  padding: var(--gutter);
  background: var(--canvas);
  border: 2px solid var(--ink);
}

.reader__bleed {
  top: 0;
  bottom: 0;
  right: calc(-1 * (100vw - 100%) / 2);
  width: 60%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to left, #000 15%, transparent);
  mask-image: linear-gradient(to left, #000 15%, transparent);
}

.reader__panels {
  display: grid;
  gap: var(--gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}

.reader-panel {
  display: grid;
  align-content: center;
  gap: 1rem 2rem;
  padding: clamp(1rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-panel);
}

.reader-panel__art {
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin-inline: auto;
}

.reader-panel__text p {
  margin: 0;
  max-width: 30rem;
  font-size: 1.1875rem;
}

.reader-panel__text h3 {
  font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem);
  font-weight: 800;
}

@media (min-width: 720px) {
  .reader-panel {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
  .reader-panel__art {
    max-width: none;
  }
}

/* Single page: one panel at a time, stacked in one grid cell. */
.reader[data-mode="single"] .reader__panels {
  grid-template-areas: "stack";
}

.reader[data-mode="single"] .reader-panel {
  grid-area: stack;
  aspect-ratio: 4 / 5;
  transition:
    opacity 240ms var(--ease),
    transform 240ms var(--ease);
}

@media (min-width: 720px) {
  .reader[data-mode="single"] .reader-panel {
    aspect-ratio: 4 / 3;
  }
}

.reader[data-mode="single"] .reader-panel.is-before,
.reader[data-mode="single"] .reader-panel.is-after {
  opacity: 0;
  pointer-events: none;
}

.reader[data-mode="single"] .reader-panel.is-before {
  transform: translateX(-24px);
}

.reader[data-mode="single"] .reader-panel.is-after {
  transform: translateX(24px);
}

.reader[data-mode="scroll"] .reader-panel.is-current {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.reader__nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.reader__nav .button {
  flex: 1 1 0;
  max-width: 14rem;
}

/* 3. Features */
.features__title {
  max-width: 44rem;
}

@media (min-width: 720px) {
  .features__title {
    margin-left: auto;
    text-align: right;
  }
}

.feature-grid {
  display: grid;
  gap: 14px;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .feature {
    grid-column: span 2;
  }
  .feature--wide {
    grid-column: span 4;
  }
}

.feature {
  padding: 1.5rem;
  background: var(--surface);
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-panel);
}

.feature__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.feature p {
  margin: 0;
  color: var(--ink);
}

.motion-ready .feature {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 360ms var(--ease),
    transform 360ms var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.motion-ready .feature.is-in {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature.is-done,
  html:not(.motion-ready) .feature {
    transition: transform 160ms var(--ease);
  }
  .feature.is-done:hover,
  html:not(.motion-ready) .feature:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--ink);
  }
}

/* 4. Try it */
.try .section-lede {
  max-width: 42rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  margin: 2rem auto 1rem;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 6px 8px;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0 1.1rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 80;
  font-weight: 700;
  cursor: pointer;
}

.tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--accent);
}

.frame {
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel), var(--shadow-lift);
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 2px solid var(--ink);
}

.frame__dots {
  display: inline-flex;
  gap: 6px;
}

.frame__dots i {
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.frame__route {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.frame__body {
  position: relative;
  display: grid;
  height: 640px;
  background: var(--canvas);
}

@media (min-width: 720px) {
  .frame__body {
    height: min(78vh, 760px);
  }
}

.frame__loading {
  grid-area: 1 / 1;
  place-self: center;
  margin: 0;
  color: var(--ink-muted);
}

.frame__body iframe {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  transition: opacity 200ms var(--ease);
}

.frame__body iframe.is-fading {
  opacity: 0;
}

.try__after {
  margin: 1.5rem auto 0;
}

/* 5. Publish */
.publish {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--surface);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.publish__inner {
  max-width: calc(52rem + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.steps {
  display: grid;
  gap: var(--gutter);
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.step {
  padding: 1rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 70;
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.step h3 {
  margin-bottom: 0.25rem;
}

.step p {
  margin: 0;
}

.step__file {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.file-card {
  margin: 0 0 1.25rem;
  padding: 1rem;
  overflow-x: auto;
  background: var(--canvas);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* 6. End card */
.endcard {
  position: relative;
  isolation: isolate;
  max-width: 40rem;
  margin-inline: auto;
  padding: 4rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
  text-align: center;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.endcard__dots {
  inset: 0;
  z-index: -1;
  -webkit-mask-image: radial-gradient(
    circle at bottom right,
    #000 5%,
    transparent 70%
  );
  mask-image: radial-gradient(circle at bottom right, #000 5%, transparent 70%);
}

.endcard__cluster {
  z-index: -1;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 8rem;
  height: 8rem;
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  mask-image: radial-gradient(circle, #000 25%, transparent 70%);
}

.endcard__caption {
  position: absolute;
  top: -2px;
  left: -2px;
  margin: 0;
}

.endcard p {
  max-width: 28rem;
  margin-inline: auto;
}

.endcard .button {
  margin: 0.75rem 0 0.75rem;
}

.endcard p:last-child {
  margin-bottom: 0;
}

.motion-ready .endcard.is-in {
  animation: ink-in 480ms var(--ease) both;
}

/* 7. Footer */
.site-footer {
  padding-block: 1.75rem;
  border-top: 2px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem 1.5rem;
}

.site-footer__inner p {
  margin: 0;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.wordmark--small {
  font-size: 1.125rem;
}

@media (min-width: 720px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
  }
  .site-footer__inner .text-link {
    margin-left: auto;
  }
}

/* Reduced motion: everything at rest. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero__dots,
  .hero__dots-accent {
    transform: none;
  }
  .motion-ready .feature,
  .motion-ready .endcard {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}
