/* dannyjliu.com: one stylesheet for every page. No build step. */

/* Fonts: vendored, Latin subset, woff2 (credited on /notices). */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Tokens. Light first on warm paper; dark is charcoal. */
:root {
  --paper: #F5F0E6;
  --paper-2: #E9E2D3;
  --ink: #14171C;
  --muted: #4A515C;
  --accent: #006CA8;
  --on-accent: #FFFFFF;
  --rule: rgb(20 23 28 / 0.16);
  --rule-strong: rgb(20 23 28 / 0.32);
  --sticker: #FFFFFF;

  /* Inverse surface: ink on the light theme, paper on the dark theme. */
  --inv-bg: #14171C;
  --inv-ink: #F5F0E6;
  --inv-muted: #A9B0BA;
  --inv-accent: #2DD0F5;
  --inv-on-accent: #0B0E12;
  --inv-rule: rgb(245 240 230 / 0.2);
  --inv-rule-strong: rgb(245 240 230 / 0.4);

  --display: "Montserrat", system-ui;
  --body: "Inter", system-ui;
  --gutter: 16px;
  --max: 75rem;
  --radius: 24px;
  --nav-h: 6.75rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1216;
    --paper-2: #171B21;
    --ink: #ECE8DF;
    --muted: #A9B0BA;
    --accent: #2DD0F5;
    --on-accent: #0B0E12;
    --rule: rgb(236 232 223 / 0.16);
    --rule-strong: rgb(236 232 223 / 0.32);

    --inv-bg: #ECE8DF;
    --inv-ink: #0F1216;
    --inv-muted: #4A515C;
    --inv-accent: #006CA8;
    --inv-on-accent: #FFFFFF;
    --inv-rule: rgb(15 18 22 / 0.18);
    --inv-rule-strong: rgb(15 18 22 / 0.4);
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; --nav-h: 5rem; }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-size-adjust: 0.546;
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: break-word;
}
@media (min-width: 640px) {
  body { font-size: 1.125rem; }
}

h1, h2, h3, .label, .display {
  font-family: var(--display);
  font-size-adjust: 0.54;
}
h1, h2, h3 { margin: 0; font-weight: 800; color: var(--ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.16em; }

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

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

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

/* Surfaces */
.band { padding-block: 4.5rem; background: var(--paper); }
.band--alt { background: var(--paper-2); }
@media (min-width: 960px) {
  .band { padding-block: 7.5rem; }
}

.inverse {
  --paper: var(--inv-bg);
  --paper-2: var(--inv-bg);
  --ink: var(--inv-ink);
  --muted: var(--inv-muted);
  --accent: var(--inv-accent);
  --on-accent: var(--inv-on-accent);
  --rule: var(--inv-rule);
  --rule-strong: var(--inv-rule-strong);
  background: var(--paper);
  color: var(--ink);
}

/* Labels and section headings */
.label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.label::before {
  content: "";
  flex: none;
  width: 2.5rem;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}
/* Small accent text stays on --paper only: on --paper-2 use ink. */
.band--alt .label { color: var(--ink); }

.section-title {
  max-width: 16ch;
  margin-bottom: 2.75rem;
  font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
@media (min-width: 960px) {
  .section-title { margin-bottom: 4rem; }
}

/* Skip link */
.skip {
  position: absolute;
  left: var(--gutter);
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.5rem;
  min-height: 4.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding-block: 0.625rem;
  color: var(--ink);
  font-family: var(--display);
  font-size-adjust: 0.54;
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 2.25rem; height: auto; }
.nav-links {
  display: flex;
  flex: 1 1 100%;
  justify-content: space-between;
  gap: 0.25rem;
  margin: 0;
  padding: 0 0 0.375rem;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.125rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}
.nav-links a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
@media (min-width: 640px) {
  .nav { flex-wrap: nowrap; }
  .nav-links { flex: none; gap: 1.75rem; padding: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3.75rem;
  padding: 1rem 1.75rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-size-adjust: 0.54;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
}
.btn::after,
.card-link::after {
  content: "";
  flex: none;
  width: 1.25em;
  height: 1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M12 0l8 8-8 8-2.1-2.1L14.3 9.5H0v-3h14.3L9.9 2.1z'/%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 16'%3E%3Cpath d='M12 0l8 8-8 8-2.1-2.1L14.3 9.5H0v-3h14.3L9.9 2.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-lg {
  min-height: 4.5rem;
  padding: 1.25rem 2.25rem;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
}

/* Home: hero */
.hero {
  position: relative;
  padding-top: 2.5rem;
  /* The portrait sits flush on the section edge; clip its entrance so it rises out of the edge instead of spilling below it. */
  clip-path: inset(-100vh -100vw 0 -100vw);
}
.hero-grid {
  display: grid;
  align-items: end;
}
.hero-copy { padding-bottom: 1.5rem; }
.hero h1 {
  font-size: clamp(3.5rem, 1.2rem + 10.5vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--accent); }
.hero-line {
  margin: 1.5rem 0 0;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 2.125rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.hero-statement {
  margin: 1.25rem 0 0;
  max-width: 34ch;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  color: var(--muted);
}

.hero-portrait {
  position: relative;
  z-index: 2;
  width: min(84%, 22rem);
  margin: 0.5rem 0 0 auto;
}
.hero-shape {
  position: absolute;
  inset: 6% 2% 1.5rem 14%;
  border-radius: 999px 999px 28px 28px;
  background: var(--accent);
}
.hero-portrait img {
  position: relative;
  width: 100%;
  filter:
    drop-shadow(0 -5px 0 var(--sticker))
    drop-shadow(5px 0 0 var(--sticker))
    drop-shadow(-5px 0 0 var(--sticker))
    drop-shadow(0 5px 0 var(--sticker));
  /* Keep the outline off the photo's straight crop edges. */
  clip-path: inset(-16px 0 0 0);
}

@media (min-width: 760px) {
  .hero { padding-top: 4rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; column-gap: 2rem; }
  .hero-copy { padding-bottom: 5.5rem; }
  .hero-portrait { width: 100%; max-width: 32rem; margin: 0 0 0 auto; }
  .hero-shape { bottom: 2rem; inset-inline: 16% 0; }
}

/* Home: proof */
.proof { padding-top: 5.5rem; }
@media (min-width: 960px) {
  .proof { padding-top: 9rem; }
}
.stats {
  display: grid;
  gap: 2rem 1.5rem;
}
@media (min-width: 520px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}
.stat {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.25rem 0 0.5rem;
  border-top: 8px solid var(--accent);
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-size-adjust: 0.54;
  font-weight: 800;
  font-size: 3.5rem;
  font-size: clamp(2.75rem, 23cqi, 7rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--accent);
}
.stat-label {
  font-weight: 600;
  font-size: 1.125rem;
}

.bank {
  display: grid;
  gap: 1.5rem 4rem;
  margin-top: 4rem;
  padding-top: 2.75rem;
  border-top: 2px solid var(--rule-strong);
}
.bank-statement {
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.bank p:not(.label) { max-width: 60ch; }
@media (min-width: 900px) {
  .bank { grid-template-columns: 1.1fr 1fr; align-items: end; margin-top: 5.5rem; }
}

/* Quotes */
.quotes {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 5rem 1.5rem 1.75rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--quote-bg, var(--paper));
}
.quote::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 3.75rem;
  height: 2.8rem;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath d='M0 48V29C0 12 8 3 25 0l2.5 7C18 10 14.5 15 14 22h12v26zm36 0V29c0-17 8-26 25-29l2.5 7C54 10 50.5 15 50 22h12v26z'/%3E%3C/svg%3E") left top / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath d='M0 48V29C0 12 8 3 25 0l2.5 7C18 10 14.5 15 14 22h12v26zm36 0V29c0-17 8-26 25-29l2.5 7C54 10 50.5 15 50 22h12v26z'/%3E%3C/svg%3E") left top / contain no-repeat;
}
.quote blockquote { margin: 0 0 1.5rem; font-size: 1.0625rem; }
.quote figcaption {
  margin-top: auto;
  padding-top: 1.125rem;
  border-top: 2px solid var(--rule-strong);
  color: var(--muted);
  font-size: 1rem;
}
.quote figcaption strong {
  color: var(--ink);
  font-family: var(--display);
  font-size-adjust: 0.54;
  font-weight: 700;
}
@media (min-width: 640px) {
  .quote { padding: 5.5rem 2rem 2rem; }
  .quote::before { left: 2rem; }
}
@media (min-width: 960px) {
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1.5rem; }
  .quote:nth-child(2) { margin-top: 3.5rem; }
  .quote:nth-child(3) { margin-top: 1.5rem; }
}

/* Videos */
.videos {
  display: grid;
  gap: 1.5rem;
}
.videos { max-width: 34rem; }
@media (min-width: 900px) {
  .videos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; max-width: none; }
}
@media (min-width: 1040px) {
  .videos { gap: 1.75rem; }
}
.video-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0.75rem 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
}
.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}
.video-date {
  display: block;
  margin: 1.125rem 0.5rem 0.375rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}
.video-title {
  margin: 0 0.5rem;
  font-size: 1.3125rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.video-card:hover .video-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.videos-more { margin-top: 2.75rem; }

/* Where next */
.next-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .next-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .next-feature { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .next-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .next-feature { grid-column: 1; grid-row: 1 / span 2; }
}
.next-grid > li { display: flex; }
.card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-height: 12.5rem;
  padding: 1.75rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.card h3 {
  font-size: 1.625rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: inherit;
}
.card p { color: var(--muted); max-width: 32ch; }
.card-link::after {
  margin-top: auto;
  width: 2rem;
  height: 1.5rem;
  -webkit-mask-position: left center;
  mask-position: left center;
  color: var(--accent);
}
.card--feature {
  min-height: 16rem;
  padding: 2rem;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.card--feature h3 { font-size: clamp(2.75rem, 1.5rem + 4.5vw, 5.5rem); letter-spacing: -0.03em; }
.card--feature p { color: var(--on-accent); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); max-width: 22ch; }
.card--feature.card-link::after { color: var(--on-accent); width: 3rem; height: 2.25rem; }
.card--pending {
  border: 2px dashed var(--muted);
  background: transparent;
  cursor: default;
}
.card--pending h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.badge {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Contact footer */
.site-footer { padding-block: 4.5rem 2rem; }
@media (min-width: 960px) {
  .site-footer { padding-top: 7rem; }
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
.footer-copy { container-type: inline-size; }
.footer-copy h2 {
  font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.mail { margin: 1.5rem 0 0; }
.mail a {
  display: inline-block;
  font-family: var(--display);
  font-size-adjust: 0.54;
  font-weight: 800;
  font-size: 1.5rem;
  font-size: clamp(1.375rem, 8.4cqi, 5.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}
.footer-portrait {
  position: relative;
  width: min(62%, 15rem);
}
.footer-portrait .shape {
  position: absolute;
  inset: 8% 0 0 18%;
  border-radius: 999px 999px 20px 20px;
  background: var(--accent);
}
.footer-portrait img {
  position: relative;
  width: 100%;
  filter:
    drop-shadow(0 -4px 0 var(--sticker))
    drop-shadow(4px 0 0 var(--sticker))
    drop-shadow(-4px 0 0 var(--sticker))
    drop-shadow(0 4px 0 var(--sticker));
  clip-path: inset(-14px 0 0 0);
}
.fine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--rule-strong);
  color: var(--muted);
  font-size: 1rem;
}
.fine ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.fine a { display: inline-block; padding-block: 0.375rem; color: var(--ink); font-weight: 600; }
.fine p { margin: 0; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: 3rem; }
  .footer-copy { align-self: center; }
  .footer-portrait { grid-row: 1; grid-column: 2; width: clamp(13rem, 22vw, 19rem); align-self: end; }
  .fine { grid-column: 1 / -1; }
  .footer-grid--plain { grid-template-columns: minmax(0, 1fr); }
}
.footer-grid--plain .fine { margin-top: 1.5rem; }

/* About: intro */
.intro { padding-block: 2.5rem 4.5rem; }
.intro-grid { display: grid; gap: 2.5rem; align-items: start; }
.intro-portrait { width: min(64vw, 17rem); }
.intro-portrait img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 var(--accent);
}
.intro h1 {
  font-size: clamp(3.5rem, 1rem + 5.2vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
}
.intro h1 span { color: var(--accent); }
@media (min-width: 900px) {
  .intro h1 span { white-space: nowrap; }
}
.lede { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem); line-height: 1.5; }
.intro-copy > p { max-width: 62ch; }
.facts {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
  max-width: 40rem;
}
.facts dl { display: grid; gap: 0.875rem 1.5rem; margin: 0; }
.facts dt {
  font-family: var(--display);
  font-size-adjust: 0.54;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: -0.625rem 0 0; font-weight: 600; }
.facts dd a { font-weight: 600; }
@media (min-width: 560px) {
  .facts dl { grid-template-columns: max-content 1fr; align-items: baseline; }
  .facts dd { margin: 0; }
}
@media (min-width: 900px) {
  .intro { padding-block: 4.5rem 7.5rem; }
  .intro-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 4.5rem; }
  .intro-portrait { position: sticky; top: calc(var(--nav-h) + 2rem); width: 100%; }
}

/* About: mission */
.mission { position: relative; overflow: hidden; }
.label--xl {
  font-size: clamp(3rem, 1.5rem + 8vw, 9rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.9;
  margin-bottom: 2rem;
}
.label--xl::before { display: none; }
.mission .section-title { max-width: 20ch; margin-bottom: 2.25rem; }
.mission .wrap { position: relative; }
.mission-copy { max-width: 64ch; }
.watermark {
  position: absolute;
  right: -4rem;
  bottom: -3rem;
  width: clamp(16rem, 36vw, 34rem);
  opacity: 0.08;
  pointer-events: none;
}
@media (min-width: 960px) {
  .mission-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 4.5rem; max-width: none; }
  .mission-copy .section-title { grid-row: 1 / span 3; margin: 0; }
  .mission-copy p { max-width: 60ch; }
}

/* About: the 20 years rail */
.years-grid { display: grid; gap: 1rem; }
@media (min-width: 960px) {
  .years-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: 4.5rem; align-items: start; }
  .years-head { position: sticky; top: calc(var(--nav-h) + 2rem); }
}
.rail { counter-reset: step; }
.step {
  counter-increment: step;
  position: relative;
  padding: 0 0 2.75rem 4.5rem;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  content: counter(step, decimal-leading-zero) / "";
  position: absolute;
  left: 0;
  top: -0.25rem;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-size-adjust: 0.54;
  font-weight: 800;
  font-size: 1.125rem;
}
.step::after {
  content: "";
  position: absolute;
  left: calc(1.625rem - 2px);
  top: 3.5rem;
  bottom: 0.25rem;
  width: 4px;
  border-radius: 2px;
  background: var(--rule-strong);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }
.step h3 {
  margin-bottom: 0.625rem;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.step p { max-width: 62ch; }
@media (min-width: 640px) {
  .step { padding-left: 6rem; padding-bottom: 3.5rem; }
  .step::before { width: 4rem; height: 4rem; font-size: 1.375rem; }
  .step::after { left: calc(2rem - 2px); top: 4.25rem; }
}

/* About: receipts */
.stat-band { padding-block: 3rem; margin-bottom: 3.5rem; }
@media (min-width: 960px) {
  .stat-band { padding-block: 4.5rem; margin-bottom: 5rem; }
}
.receipts {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.receipts li {
  padding: 1.75rem;
  border-top: 8px solid var(--accent);
  border-radius: 6px 6px var(--radius) var(--radius);
  background: var(--paper-2);
}
.receipts h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
@media (min-width: 900px) {
  .receipts { grid-template-columns: 1.3fr 1fr 1fr; margin-bottom: 5rem; }
}
.results .quote { --quote-bg: var(--paper); }

/* About: next step */
.cta { position: relative; overflow: hidden; }
.cta .section-title { max-width: 18ch; margin-bottom: 1.5rem; }
.cta p:not(.label) { max-width: 44ch; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); margin-bottom: 2.5rem; }

/* Simple pages: notices, 404 */
.page { padding-block: 3.5rem 5rem; min-height: 60vh; }
.page h1 {
  font-size: clamp(3.5rem, 1.6rem + 6.6vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
}
.page h2 { font-size: 1.75rem; margin: 2.5rem 0 0.75rem; letter-spacing: -0.015em; }
.page p, .page li { max-width: 64ch; }
.page .btn { margin-top: 1.5rem; }
@media (min-width: 960px) {
  .page { padding-block: 6rem 8rem; }
}

/* Motion: only when the visitor has not asked for less. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero-portrait img { animation: portrait-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-shape { animation: shape-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both; }

  .btn, .card, .video-card { transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
  .card-link:hover, .card-link:focus-visible,
  .video-card:hover, .video-card:focus-visible,
  .btn:hover, .btn:focus-visible { transform: translateY(-2px); }

  /* Scroll reveal: CSS scroll timelines where supported. */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
  /* Fallback: site.js marks below-the-fold blocks as pending, then clears them in view. */
  .reveal { transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .reveal.pending { transform: translateY(48px); }
}

@keyframes portrait-in {
  from { transform: translateY(2.5rem) rotate(-2deg); }
}
@keyframes shape-in {
  from { opacity: 0; transform: translate(-1.5rem, 1.5rem); }
}
/* Reveals move, never fade: text stays fully opaque for print, captures and contrast. */
@keyframes reveal {
  from { transform: translateY(48px); }
}
