/* celariwallet.com: the Celari landing page, in the wallet's own look
   (src/styles.css, src/styles/account.css): Obsidian & Gold on a dark system,
   ivory paper on a light one, the same tokens; Fraunces for display, Geist for
   text, Geist Mono for addresses; the engraved C of the wallet's welcome screen.
   No scripts and nothing from another origin (vercel.json's CSP), so every
   motion here is CSS, and all of it stops for prefers-reduced-motion. Without
   scroll-driven animations (animation-timeline) the page is simply still. */

/* --- Fonts: the wallet's files (SIL OFL 1.1, FONT_LICENSES.txt) ------------ */

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/fraunces-latin-ext-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/fraunces-latin-ext-opsz-italic.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/fraunces-latin-opsz-italic.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens: the wallet's (src/styles.css), dark first, then light -------- */

:root {
  color-scheme: dark;
  --bg: #0d0c0a;
  --surface: #161512;
  --surface-2: #1c1a17;
  --raised: #24221d;
  --inset: #100f0d;
  --border: #26241f;
  --border-2: #33302a;
  --input-border: #7a7264;
  --text: #eee8dc;
  --muted: #b8af9f;
  --subtle: #a0978a;
  --accent: #f4b728;
  --accent-hover: #f7c54d;
  --accent-text: #1a1407;
  --accent-fg: #f0be4e;
  --accent-mark: #f4b728;
  --accent-line: rgba(244, 183, 40, 0.36);
  --focus: #f4b728;
  --brand-facet: #f4b728;
  --shielded: #8fc3a1;
  --transparent: #e59b6e;
  --warn: #d2ac80;
  --shadow-1: inset 0 1px 0 rgba(255, 244, 222, 0.035), 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-2: inset 0 1px 0 rgba(255, 244, 222, 0.04), 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 44px -26px rgba(0, 0, 0, 0.75);
  --shadow-gold: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(120, 80, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.45);
  /* Landing only: the light that runs across gold type, the hero's glow, the card's lift. */
  --shine: #fff0c2;
  --glow: rgba(244, 183, 40, 0.1);
  --lift: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 244, 222, 0.02);
  --header: rgba(13, 12, 10, 0.72);

  --font-ui: 'Geist Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces Variable', ui-serif, Georgia, 'Times New Roman', serif;
  --font-mono: 'Geist Mono Variable', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --page: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  /* The card's story, one loop for all its parts. */
  --loop: 12s;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4f1ea;
    --surface: #fffdf9;
    --surface-2: #f7f4ee;
    --raised: #efebe2;
    --inset: #ffffff;
    --border: #e4ded2;
    --border-2: #d6cfc1;
    --input-border: #857d6e;
    --text: #1a1712;
    --muted: #514a40;
    --subtle: #625b4e;
    --accent: #f4b728;
    --accent-hover: #f6c142;
    --accent-text: #1a1407;
    --accent-fg: #7f5c0c;
    --accent-mark: #a87b0d;
    --accent-line: rgba(168, 123, 13, 0.42);
    --focus: #94690a;
    /* Gold is too weak on ivory paper: the mark is one ink here. */
    --brand-facet: currentColor;
    --shielded: #2a6e4c;
    --transparent: #9c4d28;
    --warn: #7a5a33;
    --shadow-1: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 2px rgba(60, 45, 20, 0.06);
    --shadow-2: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(60, 45, 20, 0.06), 0 14px 34px -22px rgba(60, 45, 20, 0.22);
    --shadow-gold: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(140, 95, 0, 0.22), 0 1px 2px rgba(80, 55, 0, 0.18);
    --shine: #b07d12;
    --glow: rgba(244, 183, 40, 0.16);
    --lift: 0 40px 80px -44px rgba(60, 45, 20, 0.45), 0 0 0 1px rgba(60, 45, 20, 0.02);
    --header: rgba(244, 241, 234, 0.78);
  }
}

/* Animated custom properties: the stat counters and the closing panel's ring. */
@property --n {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}
@property --a {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* --- Base ---------------------------------------------------------------- */

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  background: var(--accent);
  color: var(--accent-text);
  padding: 8px 14px;
  border-radius: 8px;
}

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

.icon {
  flex: none;
  width: 20px;
  height: 20px;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 360;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Gold italic, as the wallet's welcome title sets its accent, with a light running through it. */
h1 em,
h2 em {
  font-style: italic;
  font-weight: 300;
  padding-right: 0.06em;
  color: var(--accent-fg);
  background: linear-gradient(100deg, var(--accent-fg) 0%, var(--accent-fg) 38%, var(--shine) 50%, var(--accent-fg) 62%, var(--accent-fg) 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 7s ease-in-out 1.6s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  45%,
  100% {
    background-position: 0% 0;
  }
}

/* The wallet's eyebrow: a gold rule, then small capitals. */
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 560;
  letter-spacing: 0.085em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--subtle);
}
.rule {
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--accent-mark);
}

/* --- Header -------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.lockup .mark {
  width: 28px;
  height: 34px;
  transition: transform 0.6s var(--out);
}
.lockup:hover .mark {
  transform: rotate(-8deg) scale(1.06);
}
.lockup .word {
  height: 17px;
  width: auto;
}
.facet {
  fill: var(--brand-facet);
}
.top nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
}
.top nav .section-link {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
}
.top nav .section-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent-mark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--out);
}
.top nav .section-link:hover {
  color: var(--text);
}
.top nav .section-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.lang {
  font-size: 14px;
  color: var(--subtle);
  text-decoration: none;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 3px 11px;
  transition: color 0.2s, border-color 0.2s;
}
.lang:hover {
  color: var(--text);
  border-color: var(--input-border);
}
/* How far down the page you are: a gold hairline on the header's edge. */
.progress {
  display: none;
}

/* --- Buttons --------------------------------------------------------------- */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 560;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--out), background-color 0.2s, border-color 0.2s, box-shadow 0.3s;
}
.button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 12px;
}
.button .icon {
  width: 18px;
  height: 18px;
}
.button.primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow-gold);
}
/* A glint crosses the gold button on hover. */
.button.primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
}
.button.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold), 0 14px 30px -14px rgba(244, 183, 40, 0.6);
}
.button.primary:hover::before {
  transform: translateX(120%);
  transition: transform 0.8s var(--ease);
}
.button .go {
  transition: transform 0.3s var(--out);
}
.button:hover .go {
  transform: translateX(4px);
}
.button.secondary {
  border: 1px solid var(--border-2);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--text);
}
.button.secondary:hover {
  border-color: var(--input-border);
  background: var(--surface);
  transform: translateY(-2px);
}
.button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 10px;
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: clip;
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - 69px), 940px);
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
}
.glow {
  position: absolute;
  width: 900px;
  height: 900px;
  right: -180px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  to {
    transform: translate(-160px, 120px) scale(1.15);
  }
}

/* The engraved C (build.py draws it from the wallet's numbers): the lines and,
   over them, the light, each its own layer so the light never redraws the lines. */
.hero-motif {
  position: absolute;
  pointer-events: none;
  color: var(--text);
}
.engraved {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}
.engraved-facet {
  fill: var(--accent-mark);
  fill-opacity: 0.26;
  stroke: var(--accent-mark);
  stroke-opacity: 0.7;
}
/* The letter stands just right of the card, its echoes running out behind it. */
.hero-motif {
  width: 1400px;
  height: 1400px;
  left: calc(min(100% - 116px, 50% + 604px) - 700px);
  top: calc(44% - 700px);
}
/* The echoes open out from the letter, one after another… */
.echoes path {
  transform-box: view-box;
  transform-origin: 600px 600px;
  animation: echo-in 1.6s var(--out) both;
  animation-delay: calc(0.25s + var(--i) * 55ms);
}
@keyframes echo-in {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
}
/* …then pulses of gold light keep going out from the letter through them: an echo's
   shape, drawn once, only scaled and faded (no repaint). */
.pulse path {
  fill: none;
  stroke: var(--accent-mark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pulse {
  opacity: 0;
  transform: scale(0.4);
  animation: pulse 7s cubic-bezier(0.25, 0.6, 0.3, 1) infinite;
}
.pulse.p0 {
  animation-delay: 2s;
}
.pulse.p1 {
  animation-delay: 5.5s;
}
@keyframes pulse {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  12% {
    opacity: 0.55;
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}
/* The facet lights up as each pulse leaves it. */
.glint path {
  fill: var(--accent-mark);
  fill-opacity: 0.5;
}
.glint {
  opacity: 0;
  animation: glint 3.5s ease-in-out 1.6s infinite;
}
@keyframes glint {
  0%,
  100% {
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.letter {
  animation: fade-in 1.4s var(--ease) both;
}
.engraved-facet {
  animation: facet 1.2s var(--out) 0.9s both;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes facet {
  from {
    opacity: 0;
    fill-opacity: 0;
  }
}
.i0 { --i: 0; } .i1 { --i: 1; } .i2 { --i: 2; } .i3 { --i: 3; } .i4 { --i: 4; }
.i5 { --i: 5; } .i6 { --i: 6; } .i7 { --i: 7; } .i8 { --i: 8; } .i9 { --i: 9; }
.i10 { --i: 10; } .i11 { --i: 11; } .i12 { --i: 12; } .i13 { --i: 13; } .i14 { --i: 14; }
.i15 { --i: 15; } .i16 { --i: 16; } .i17 { --i: 17; } .i18 { --i: 18; } .i19 { --i: 19; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.badge.live {
  color: var(--accent-fg);
  border-color: var(--accent-line);
}
/* NU7's badge has a live dot with a ring that keeps going out. */
.badge.live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 183, 40, 0.55);
  }
  80%,
  100% {
    box-shadow: 0 0 0 8px rgba(244, 183, 40, 0);
  }
}
h1 {
  margin-top: 6px;
  font-size: clamp(46px, 6.6vw, 100px);
  font-weight: 330;
  letter-spacing: -0.032em;
  line-height: 1.02;
}
h1 .line {
  display: block;
  animation: title-in 1.3s var(--out) both;
}
h1 .l0 {
  animation-delay: 0.12s;
}
h1 .l1 {
  animation-delay: 0.26s;
}
@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(0.45em);
    filter: blur(10px);
  }
}
.lede {
  margin: 28px 0 34px;
  max-width: 34em;
  font-size: clamp(17px, 1.45vw, 19.5px);
  line-height: 1.65;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.caution {
  display: flex;
  gap: 10px;
  margin: 30px 0 0;
  max-width: 36em;
  font-size: 14.5px;
  color: var(--warn);
}
.caution .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.rise {
  animation: rise 1s var(--out) both;
}
.r0 {
  animation-delay: 0s;
}
.r3 {
  animation-delay: 0.42s;
}
.r4 {
  animation-delay: 0.56s;
}
.r5 {
  animation-delay: 0.7s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* --- The hero's card: the wallet's balance card, telling one story --------
   0–12%: a transparent balance; to 30%: shielded; 40–86%: balances hidden and
   a new address on each turn; then back to the start, out of sight. */

.hero-visual {
  position: relative;
  justify-self: start;
  width: min(clamp(380px, 28vw, 440px), 100%);
  perspective: 1600px;
  padding: 40px 0;
  animation: rise 1.2s var(--out) 0.35s both;
}
.float {
  transform-style: preserve-3d;
  animation: float 10s ease-in-out infinite;
  transform: rotateX(5deg) rotateY(-9deg);
}
@keyframes float {
  0%,
  100% {
    transform: rotateX(5deg) rotateY(-9deg) translateY(0);
  }
  50% {
    transform: rotateX(2deg) rotateY(-3deg) translateY(-12px);
  }
}
.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border-2);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-2), var(--lift);
}
/* The wallet's gold hairline on the card's top edge. */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line) 18%, var(--accent) 50%, var(--accent-line) 82%, transparent);
}
/* A sheet of light passes over the card now and then. */
.card::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 244, 222, 0.07) 50%, transparent 58%);
  transform: translateX(-60%);
  animation: sheen 9s ease-in-out 2s infinite;
  pointer-events: none;
}
@keyframes sheen {
  0% {
    transform: translateX(-60%);
  }
  30%,
  100% {
    transform: translateX(60%);
  }
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-label,
.addr-label {
  font-size: 11.5px;
  font-weight: 560;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--subtle);
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 520;
  color: var(--muted);
}
.switch {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--input-border);
  background: var(--inset);
  animation: switch-bg var(--loop) linear infinite;
}
.switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--subtle);
  animation: knob var(--loop) var(--out) infinite;
}
@keyframes switch-bg {
  0%,
  38%,
  86%,
  100% {
    background: var(--inset);
    border-color: var(--input-border);
  }
  40%,
  84% {
    background: var(--accent);
    border-color: var(--accent);
  }
}
@keyframes knob {
  0%,
  38%,
  86%,
  100% {
    transform: none;
    background: var(--subtle);
  }
  41%,
  84% {
    transform: translateX(12px);
    background: var(--accent-text);
  }
}
.card-figure {
  margin: 14px 0 22px;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 68px;
  font-weight: 320;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fig {
  display: inline-grid;
}
.fig > span {
  grid-area: 1 / 1;
}
.fig .hide {
  opacity: 0;
  letter-spacing: 0.06em;
  animation: fig-hide var(--loop) var(--ease) infinite;
}
.fig .show {
  animation: fig-show var(--loop) var(--ease) infinite;
}
@keyframes fig-show {
  0%,
  39%,
  90%,
  100% {
    opacity: 1;
    filter: none;
  }
  44%,
  85% {
    opacity: 0;
    filter: blur(14px);
  }
}
@keyframes fig-hide {
  0%,
  40%,
  88%,
  100% {
    opacity: 0;
    filter: blur(10px);
  }
  45%,
  84% {
    opacity: 1;
    filter: none;
  }
}
.card-figure small {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 560;
  letter-spacing: 0.06em;
  color: var(--subtle);
  margin-left: 6px;
}
/* Shielded and transparent, as on the wallet's dashboard; then shielding. */
.bar {
  display: flex;
  height: 4px;
  animation: bar-fade var(--loop) linear infinite;
}
.bar span {
  border-radius: 2px;
}
.seg-s {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  background: var(--shielded);
}
.seg-s::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-100%);
  animation: run 2.4s ease-in-out infinite;
}
@keyframes run {
  60%,
  100% {
    transform: translateX(100%);
  }
}
.seg-t {
  flex: none;
  width: 29%;
  margin-left: 4px;
  background: var(--transparent);
  animation: shield var(--loop) var(--ease) infinite;
}
@keyframes shield {
  0%,
  12% {
    width: 29%;
    margin-left: 4px;
  }
  30%,
  89% {
    width: 0%;
    margin-left: 0;
  }
  90%,
  100% {
    width: 29%;
    margin-left: 4px;
  }
}
@keyframes bar-fade {
  0%,
  86%,
  96%,
  100% {
    opacity: 1;
  }
  88%,
  92% {
    opacity: 0;
  }
}
.legend {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 520;
}
.legend > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend .s {
  color: var(--text);
}
.legend .s i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--shielded);
}
.legend .t,
.legend .done {
  grid-area: 1 / 2;
  justify-self: end;
}
.legend .t {
  color: var(--muted);
  animation: legend-t var(--loop) var(--ease) infinite;
}
.legend .t i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--transparent);
}
.legend .done {
  color: var(--shielded);
  opacity: 0;
  animation: legend-done var(--loop) var(--out) infinite;
}
.legend .done .icon {
  width: 16px;
  height: 16px;
}
@keyframes legend-t {
  0%,
  14%,
  94%,
  100% {
    opacity: 1;
  }
  24%,
  90% {
    opacity: 0;
  }
}
@keyframes legend-done {
  0%,
  26%,
  87%,
  100% {
    opacity: 0;
    transform: translateY(4px) scale(0.96);
  }
  31%,
  85% {
    opacity: 1;
    transform: none;
  }
}
.addr-label {
  margin: 26px 0 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 450;
}
.address {
  display: grid;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--inset);
  border: 1px solid var(--border);
  font: 14px/1.5 var(--font-mono);
  font-variant-ligatures: none;
  color: var(--muted);
  overflow: hidden;
}
.address span {
  grid-area: 1 / 1;
  animation: addr var(--loop) var(--ease) infinite both;
}
.address .a1,
.address .a2 {
  opacity: 0;
}
.address .a1 {
  animation-delay: calc(var(--loop) / 3);
}
.address .a2 {
  animation-delay: calc(var(--loop) * 2 / 3);
}
@keyframes addr {
  0% {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  4%,
  30% {
    opacity: 1;
    transform: none;
    filter: none;
  }
  34%,
  100% {
    opacity: 0;
    transform: translateY(-10px);
    filter: blur(4px);
  }
}
.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--subtle);
}
.chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 11px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  font-size: 13.5px;
  font-weight: 520;
  white-space: nowrap;
}
.chip .icon {
  width: 17px;
  height: 17px;
  color: var(--accent-fg);
}
.chip.c0 {
  top: 0;
  left: -12%;
  animation: bob 7s ease-in-out infinite;
}
.chip.c1 {
  bottom: 2%;
  right: -10%;
  animation: bob 8s ease-in-out -3s infinite;
}
.chip.c1 .icon {
  color: var(--shielded);
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* --- Ticker ---------------------------------------------------------------- */

.ticker {
  position: relative;
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker ul {
  flex: none;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 48s linear infinite;
}
.ticker:hover ul {
  animation-play-state: paused;
}
.ticker li {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0 18px 28px;
  font: 500 13.5px var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.ticker li::before {
  content: '';
  width: 6px;
  height: 6px;
  rotate: 45deg;
  background: var(--accent-mark);
  opacity: 0.8;
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* --- Stats ----------------------------------------------------------------- */

.stats-band {
  padding: clamp(48px, 6vw, 80px) 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.stat {
  padding: 4px 28px 4px 0;
  margin-right: 28px;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border-right: 0;
  margin-right: 0;
}
.stat dt {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat:last-child dt {
  color: var(--accent-fg);
}
/* The numbers count up: a registered integer, shown with a CSS counter. */
.count {
  counter-reset: num var(--n);
}
.count::before {
  content: counter(num);
}
.n600 {
  --n: 600;
}
.n24 {
  --n: 24;
}
.n256 {
  --n: 256;
}
.n0 {
  --n: 0;
}
.count {
  animation: count 2.4s var(--out) 0.4s both;
}
@keyframes count {
  from {
    --n: 0;
  }
}
.stat dd {
  margin: 14px 0 0;
  max-width: 17em;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* --- Sections ------------------------------------------------------------- */

section {
  padding: clamp(72px, 9vw, 128px) 0;
  border-top: 1px solid var(--border);
}
.section-head {
  max-width: 44em;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.section-head h2 {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 330;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.section-head > p:last-child:not(.eyebrow) {
  max-width: 38em;
  margin: 18px 0 0;
  font-size: 18px;
  color: var(--muted);
}

/* Features */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  position: relative;
  overflow: hidden;
  padding: 28px 28px 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform 0.45s var(--out), border-color 0.3s, box-shadow 0.45s;
}
/* On hover: a gold hairline draws across the top and a glow rises in the corner. */
.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.6s var(--out);
}
.feature::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  top: -130px;
  right: -110px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-2), var(--lift);
}
.feature:hover::before {
  transform: scaleX(1);
}
.feature:hover::after {
  opacity: 1;
}
.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--out), box-shadow 0.35s;
}
.feature:hover .feature-icon {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-text);
  box-shadow: var(--shadow-gold);
  transform: rotate(-6deg) scale(1.06);
}
.feature .num {
  font: 500 12.5px var(--font-mono);
  color: var(--subtle);
}
.feature h3 {
  margin: 22px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}
.feature p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
}

/* How it works: blocks travel from the server to the browser, which scans them. */
.pipe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin: 0 0 18px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(60% 120% at 50% 0%, var(--glow), transparent 70%),
    var(--surface);
}
.node {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}
.node strong {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.node > span:last-child {
  font-size: 14px;
  color: var(--subtle);
}
.node-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--border-2);
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--muted);
}
.node-icon .icon {
  width: 26px;
  height: 26px;
}
.device .node-icon {
  color: var(--shielded);
  border-color: color-mix(in srgb, var(--shielded) 45%, var(--border-2));
  animation: halo 3s ease-out infinite;
}
@keyframes halo {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--shielded) 40%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 14px color-mix(in srgb, var(--shielded) 0%, transparent);
  }
}
/* The scan: a line of light down the device, over and over. */
.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
  translate: 0 -24px;
  animation: scan 2.2s ease-in-out infinite;
}
@keyframes scan {
  to {
    translate: 0 66px;
  }
}
.track {
  position: relative;
  height: 64px;
  margin-top: -40px;
}
.track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-2) 0 6px, transparent 6px 12px);
}
.track-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  text-align: center;
  font: 500 12px var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--subtle);
}
.blocks span {
  position: absolute;
  top: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--raised);
  animation: travel 6s linear infinite;
}
.blocks span::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 1px;
  background: var(--accent-mark);
  opacity: 0.55;
}
.blocks .b0 { left: 4%; animation-delay: 0s; }
.blocks .b1 { left: 20%; animation-delay: -1s; }
.blocks .b2 { left: 36%; animation-delay: -2s; }
.blocks .b3 { left: 52%; animation-delay: -3s; }
.blocks .b4 { left: 68%; animation-delay: -4s; }
.blocks .b5 { left: 84%; animation-delay: -5s; }
@keyframes travel {
  0% {
    left: 0%;
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
  }
  12% {
    opacity: 1;
    transform: none;
  }
  86% {
    opacity: 1;
    transform: none;
  }
  100% {
    left: calc(100% - 14px);
    opacity: 0;
    transform: scale(0.5);
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--shielded);
}
.panel.sees::before {
  background: var(--transparent);
}
.panel h3 {
  margin-bottom: 16px;
  font-size: 26px;
}
.panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel li {
  position: relative;
  padding-left: 24px;
  margin: 12px 0;
  font-size: 15.5px;
  color: var(--muted);
}
.panel li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--shielded);
}
.panel.sees li::before {
  border-radius: 1px;
  background: none;
  border: 1.5px solid var(--transparent);
}

/* The life of a payment: four steps, a light running through them. */
.journey {
  margin-top: 18px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.journey h3 {
  font-size: 26px;
}
.steps {
  --dot: 14px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.steps::before,
.steps::after {
  content: '';
  position: absolute;
  top: calc(var(--dot) / 2);
  height: 1px;
}
.steps::before {
  left: 0;
  right: 0;
  background: var(--border-2);
}
/* The light: a short gold streak from the first step to the last. */
.steps::after {
  left: 0;
  width: 120px;
  margin-top: -1px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent));
  opacity: 0;
  animation: streak 4.8s linear infinite;
}
@keyframes streak {
  0% {
    left: -120px;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  94% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
.step {
  position: relative;
  display: grid;
  gap: 4px;
  padding-right: 20px;
}
.step-dot {
  position: relative;
  z-index: 1;
  width: var(--dot);
  height: var(--dot);
  margin-bottom: 14px;
  border: 1px solid var(--input-border);
  border-radius: 50%;
  background: var(--surface);
  animation: lit 4.8s linear infinite;
}
.s0 .step-dot { animation-delay: 0.1s; }
.s1 .step-dot { animation-delay: 1.3s; }
.s2 .step-dot { animation-delay: 2.5s; }
.s3 .step-dot { animation-delay: 3.7s; }
@keyframes lit {
  0% {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent);
  }
  22%,
  100% {
    background: var(--surface);
    border-color: var(--input-border);
    box-shadow: 0 0 0 0 transparent;
  }
}
.step-n {
  font: 500 12px var(--font-mono);
  color: var(--subtle);
}
.step strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 420;
  letter-spacing: -0.01em;
}
.step-sub {
  font-size: 14.5px;
  color: var(--muted);
}
.flow-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--subtle);
}

/* Before you start: the wallet's warning, a neutral card whose icon carries the tone. */
.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 0.3s, transform 0.45s var(--out);
}
.note:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}
.note-icon {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--warn);
}
.note h3 {
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.note p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
}

/* Closing call: a panel with a ring of gold light running round its edge. */
.closing {
  border-top: 0;
  padding-top: 0;
}
.closing-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px);
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, var(--glow), transparent 70%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-2), var(--lift);
}
.closing-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--a), transparent 0deg, var(--accent) 50deg, transparent 110deg, transparent 180deg, var(--accent-line) 240deg, transparent 300deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 9s linear infinite;
}
@keyframes spin {
  to {
    --a: 360deg;
  }
}
.closing .eyebrow {
  justify-content: center;
}
.closing h2 {
  max-width: 14em;
  margin: 0 auto;
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 320;
  letter-spacing: -0.032em;
  line-height: 1.04;
  text-wrap: balance;
}
.closing-panel > p:not(.eyebrow) {
  max-width: 34em;
  margin: 20px auto 34px;
  font-size: 18px;
  color: var(--muted);
}
.closing .actions {
  justify-content: center;
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--subtle);
}
footer .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px 40px;
  align-items: center;
}
footer .lockup .mark {
  width: 22px;
  height: 27px;
}
footer .lockup .word {
  height: 13px;
}
footer p {
  margin: 0;
  max-width: 52em;
}
footer nav {
  display: flex;
  gap: 18px;
}
footer nav a {
  color: var(--muted);
  text-underline-offset: 3px;
}
footer nav a:hover {
  color: var(--text);
}

/* --- Scroll-driven: the header's progress line and sections rising in ------ */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .progress {
      display: block;
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 1px;
      background: linear-gradient(90deg, var(--accent-line), var(--accent));
      transform-origin: left;
      animation: progress linear both;
      animation-timeline: scroll(root);
    }
    @keyframes progress {
      from {
        transform: scaleX(0);
      }
      to {
        transform: scaleX(1);
      }
    }
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
    .grid .reveal:nth-child(3n + 2),
    .notes .reveal:nth-child(2n),
    .split .reveal:nth-child(2),
    .stat:nth-child(2) {
      animation-range: entry 6% cover 32%;
    }
    .grid .reveal:nth-child(3n),
    .stat:nth-child(3) {
      animation-range: entry 12% cover 36%;
    }
    .stat:nth-child(4) {
      animation-range: entry 18% cover 40%;
    }
    @keyframes reveal {
      from {
        opacity: 0;
        translate: 0 48px;
        scale: 0.97;
        filter: blur(6px);
      }
    }
    /* The counters run as their figures scroll into view. */
    .count {
      animation: count linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 50%;
    }
    /* The hero's motif sinks a little and fades as you scroll past it. */
    .hero-motif {
      animation: motif-out linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }
    @keyframes motif-out {
      to {
        opacity: 0.3;
        translate: 0 -38%;
        scale: 0.92;
      }
    }
  }
}

/* --- Narrower screens ------------------------------------------------------ */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    min-height: 0;
  }
  .hero-visual {
    justify-self: center;
    padding: 24px 0 8px;
  }
  /* The letter beside the title, as on the wallet's tablet layout; its light dimmer behind text. */
  .hero-motif {
    width: 1000px;
    height: 1000px;
    left: calc(100% - 130px - 500px);
    top: -290px;
  }
  .pulse path {
    stroke-opacity: 0.6;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }
  .stat:nth-child(2) {
    border-right: 0;
    margin-right: 0;
  }
}

@media (max-width: 900px) {
  .top nav .section-link {
    display: none;
  }
  .split,
  .notes {
    grid-template-columns: minmax(0, 1fr);
  }
  footer .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .top .wrap {
    gap: 14px;
  }
  .top nav {
    gap: 12px;
  }
  .top .button.small {
    padding: 0 12px;
  }
  /* Phones: the letter in a room of its own above the statement, as the wallet's welcome. */
  .hero-copy {
    padding-top: 118px;
  }
  .hero-motif {
    width: 760px;
    height: 760px;
    left: calc(100% - 78px - 380px);
    top: -284px;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .actions .button {
    flex: 1 1 100%;
  }
  .card {
    padding: 22px;
  }
  .card-figure {
    font-size: 54px;
  }
  .float {
    transform: none;
    animation-name: float-flat;
  }
  @keyframes float-flat {
    50% {
      transform: translateY(-8px);
    }
  }
  .chip.c0 {
    top: -2%;
    left: 0;
  }
  .chip.c1 {
    bottom: -2%;
    right: 0;
  }
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat,
  .stat:nth-child(2) {
    padding: 0 0 28px;
    margin: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  /* The pipe stands upright, the blocks falling from the server to the browser. */
  .pipe {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .track {
    width: 64px;
    height: 120px;
    margin: 0 auto;
  }
  .track::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--border-2) 0 6px, transparent 6px 12px);
  }
  .track-label {
    display: none;
  }
  .blocks span[class] {
    left: calc(50% - 7px);
    animation-name: fall;
  }
  .blocks .b0 { top: 4%; } .blocks .b1 { top: 20%; } .blocks .b2 { top: 36%; }
  .blocks .b3 { top: 52%; } .blocks .b4 { top: 68%; } .blocks .b5 { top: 84%; }
  @keyframes fall {
    0% {
      top: 0%;
      opacity: 0;
      transform: scale(0.5);
    }
    14%,
    86% {
      opacity: 1;
      transform: none;
    }
    100% {
      top: calc(100% - 14px);
      opacity: 0;
      transform: scale(0.5);
    }
  }
  /* The steps stand in a column, the light running down their line. */
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .steps::before {
    left: calc(var(--dot) / 2);
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }
  .steps::after {
    left: calc(var(--dot) / 2 - 1px);
    width: 3px;
    height: 80px;
    margin-top: 0;
    background: linear-gradient(180deg, transparent, var(--accent));
    animation-name: streak-down;
  }
  @keyframes streak-down {
    0% {
      top: -80px;
      opacity: 0;
    }
    6%,
    94% {
      opacity: 1;
    }
    100% {
      top: 100%;
      opacity: 0;
    }
  }
  .step {
    grid-template-columns: var(--dot) minmax(0, 1fr);
    column-gap: 18px;
    padding: 0;
  }
  .step > :not(.step-dot) {
    grid-column: 2;
  }
  .step-dot {
    grid-row: 1 / span 3;
    margin: 4px 0 0;
  }
  .panel,
  .journey {
    padding: 24px;
  }
}

/* --- Reduced motion: everything still, in its resting state --------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Forced colours: gold type keeps its letters. */
@media (forced-colors: active) {
  h1 em,
  h2 em {
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}
