*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0) / 1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 380;
  font-optical-sizing: auto;
  letter-spacing: -0.032em;
  line-height: 1;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--step-4); line-height: 0.96; letter-spacing: -0.04em; }
h2 { font-size: var(--step-3); }
h3 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 420;
  letter-spacing: -0.018em;
  line-height: 1.15;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 340; color: var(--accent); }
h2 em, h3 em { display: block; }
p { text-wrap: pretty; }
strong, b { font-weight: 600; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.skip {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100;
  padding: 0.7rem 1rem; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* Eyebrow: small label above headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ''; width: 0.5em; height: 0.5em; border-radius: 50%;
  background: var(--accent); flex: none;
}
.eyebrow[data-index]::before {
  content: attr(data-index); width: auto; height: auto; background: none; border-radius: 0;
  color: var(--accent); font-feature-settings: 'tnum';
}

/* Buttons and links */
.btn {
  --pad: 1.05em 1.5em;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: var(--pad); border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 0.98rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn:hover .arrow.down { transform: translateY(3px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { --pad: 0.8em 1.15em; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.arrow { width: 0.8em; height: 0.8em; flex: none; }

.link {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0; border: 0; background: none;
  font-weight: 600; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 0.3em;
  transition: background-size 0.4s var(--ease), color 0.25s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--accent); }
.link .arrow { transition: transform 0.35s var(--ease); }
.link:hover .arrow { transform: translate(2px, -2px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; }

/* Check list */
.checks { display: grid; border-top: 1px solid var(--line); }
.checks li {
  display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.75rem; align-items: start;
  padding: 0.95rem 0; border-bottom: 1px solid var(--line);
}
.checks li::before {
  content: ''; width: 1.15rem; height: 1.15rem; margin-top: 0.22em; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.6-5.3 6a.9.9 0 0 1-1.3 0L5.4 11a.9.9 0 0 1 1.2-1.2l2 1.9 4.7-5.3a.9.9 0 0 1 1.4 1.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.6-5.3 6a.9.9 0 0 1-1.3 0L5.4 11a.9.9 0 0 1 1.2-1.2l2 1.9 4.7-5.3a.9.9 0 0 1 1.4 1.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Scroll reveal: only active when JS has marked the document */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

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