/* Fonts are served from this site (SIL Open Font License; see
   assets/fonts/LICENSE-*.txt), so visitors' browsers never contact a font
   provider. */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ─────────────────────────────────────────────────────────────
   Chainmail — marketing site (v4)
   Dark-first developer-tool aesthetic with a light theme.
   Neutral zinc palette, one blue. Motion is authored, not sprinkled:
   hero word reveal, window tilt-on-scroll, one-shot demos, spotlight.
   ───────────────────────────────────────────────────────────── */

:root, [data-theme="dark"] {
  --bg: #08080a; --bg-2: #0e0e11; --bg-3: #16161a; --bg-4: #1e1e23;
  --fg: #f4f4f5; --fg-2: #a1a1aa; --fg-3: #71717a;
  --hair: #ffffff14; --hair-2: #ffffff0b; --hair-3: #ffffff24;
  --accent: #3b82f6; --accent-2: #60a5fa; --on-accent: #fff;
  --glow: 59 130 246;
  --dot: #ffffff1a;
  --btn-bg: #f4f4f5; --btn-fg: #09090b;
  --shadow-window: 0 0 0 1px #ffffff12, 0 40px 120px -30px #000, 0 20px 40px -20px #00000099;
  --ok: #4ade80;
  --hl: #ffffff12;
  --surface: linear-gradient(180deg, #131317, #0e0e11 60%);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #fafafa; --bg-2: #ffffff; --bg-3: #f4f4f5; --bg-4: #e4e4e7;
  --fg: #09090b; --fg-2: #52525b; --fg-3: #71717a;
  --hair: #09090b14; --hair-2: #09090b0a; --hair-3: #09090b24;
  --accent: #2563eb; --accent-2: #1d4ed8; --on-accent: #fff;
  --glow: 37 99 235;
  --dot: #09090b17;
  --btn-bg: #09090b; --btn-fg: #fafafa;
  --shadow-window: 0 0 0 1px #09090b12, 0 40px 100px -40px #09090b40, 0 12px 30px -16px #09090b26;
  --ok: #16a34a;
  --hl: #ffffff;
  --surface: linear-gradient(180deg, #ffffff, #fcfcfd);
  color-scheme: light;
}
:root {
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(110px, 13vw, 180px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; background: var(--bg); scroll-behavior: smooth; }
p { text-wrap: pretty; }
/* Film grain: barely there, stops flat fills looking digital */
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
[data-theme="light"] body::after { opacity: .025; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--font); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: rgb(var(--glow) / .35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
.h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.045em; }
.h2 em, .h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--mono); color: var(--fg-3); letter-spacing: .02em; }
.kicker::before { content: ""; width: 14px; height: 1px; background: var(--fg-3); }
.head { max-width: 640px; }
.head .h2 { margin-top: 18px; }
.head p { margin-top: 18px; font-size: 18px; color: var(--fg-2); max-width: 34em; }
.head.center { margin: 0 auto; text-align: center; }
.head.center p { margin-inline: auto; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); font: 500 15px/1 var(--font); letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 #ffffff40, inset 0 -1px 0 #00000014, 0 1px 2px #00000033;
  transition: transform 160ms var(--ease-out), opacity 160ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { box-shadow: inset 0 1px 0 #ffffff40, 0 0 0 4px var(--hair), 0 10px 30px -10px rgb(var(--glow) / .55); } }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--hair-3); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--hair-3); } }
.btn .arr { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .arr { transform: translateX(2px); } }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }

/* ── Floating nav ─────────────────────────────────────────── */
.nav { position: fixed; z-index: 60; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; width: min(760px, calc(100% - 24px)); }
.nav-inner {
  display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 8px 0 18px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px var(--hair), 0 10px 30px -12px #0000004d;
}
.brand { font-weight: 600; font-size: 16px; letter-spacing: -0.035em; margin-right: auto; }
.nav-links { position: relative; display: flex; gap: 2px; margin: 0 8px 0 0; padding: 0; list-style: none; }
.nav-pill { position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px; background: var(--bg-3); box-shadow: inset 0 1px 0 var(--hl); opacity: 0; transition: transform 380ms var(--ease-out), width 380ms var(--ease-out), opacity 200ms ease; pointer-events: none; }
.nav-links li { position: relative; }
.nav-links a[aria-current] { color: var(--fg); }
.nav.scrolled .nav-inner { background: color-mix(in srgb, var(--bg-2) 86%, transparent); box-shadow: inset 0 0 0 1px var(--hair-3), 0 14px 40px -16px #00000080; }
.nav-inner { transition: background-color 300ms ease, box-shadow 300ms ease; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; font-size: 13.5px; color: var(--fg-2); transition: color 150ms ease, background-color 150ms ease; }
.nav-links a:hover { color: var(--fg); }
.theme-toggle { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: none; border: 0; color: var(--fg-2); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.theme-toggle:hover { background: var(--bg-3); color: var(--fg); }
.theme-toggle svg { width: 17px; height: 17px; grid-area: 1 / 1; transition: transform 400ms var(--ease-out), opacity 200ms ease; }
[data-theme="dark"] .theme-toggle .sun, [data-theme="light"] .theme-toggle .moon { transform: rotate(-90deg) scale(.6); opacity: 0; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Theme switch: circular reveal (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(150px, 20vh, 210px) 0 0; text-align: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 auto; height: 1100px; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg::before { /* dot grid, faded at the edges */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-bg::after { /* overhead light */
  content: ""; position: absolute; left: 50%; top: -360px; width: 1100px; height: 760px; translate: -50% 0;
  background: radial-gradient(ellipse at center, rgb(var(--glow) / .22), transparent 62%);
  filter: blur(10px);
}
.spotlight { position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), rgb(var(--glow) / .10), transparent 70%); opacity: 0; transition: opacity 500ms ease;
  /* The layer ends at 1100px; fade the glow out well before that so it never meets a hard edge */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 90%);
          mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 90%); }
.hero:hover .spotlight { opacity: 1; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px;
  font-size: 13px; color: var(--fg-2); background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: box-shadow 200ms ease;
}
.chip { position: relative; }
.chip::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgb(var(--glow) / .9) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: chipspin 5s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes chipspin { to { --a: 360deg; } }
.chip:hover { box-shadow: inset 0 0 0 1px var(--hair-3); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgb(var(--glow) / .2); }
.chip .go { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--bg-3); color: var(--fg); font-size: 12px; }
.h1 { margin: 26px auto 0; max-width: 11em; font-size: clamp(50px, 8.6vw, 112px); line-height: .95; letter-spacing: -0.055em; }
.h1 .w { display: inline-block; }
.h1 em { padding-right: .04em; background: linear-gradient(180deg, var(--fg) 30%, var(--fg-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .h1 .w { opacity: 0; filter: blur(10px); transform: translateY(14px); transition: opacity 700ms var(--ease-out), filter 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(80ms + var(--i) * 70ms); }
.js .ready .h1 .w { opacity: 1; filter: blur(0); transform: none; }
.hero .lede { margin: 26px auto 0; max-width: 30em; font-size: clamp(17px, 1.6vw, 20px); color: var(--fg-2); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.js .hero .fade { opacity: 0; transform: translateY(8px); transition: opacity 600ms var(--ease-out) 450ms, transform 600ms var(--ease-out) 450ms; }
.js .ready .fade { opacity: 1; transform: none; }

/* Product window with tilt-on-scroll */
.shot { --t: 0; position: relative; margin: clamp(64px, 9vw, 96px) auto 0; max-width: 1060px; padding: 0 var(--gutter); perspective: 1600px; }
.shot::before { content: ""; position: absolute; inset: 8% 10% -4%; background: radial-gradient(ellipse at 50% 40%, rgb(var(--glow) / .35), transparent 65%); filter: blur(60px); opacity: calc(.4 + var(--t) * .6); z-index: -1; }
.tilt { transform: rotateX(calc((1 - var(--t)) * 22deg)) scale(calc(.94 + var(--t) * .06)); transform-origin: 50% 0%; will-change: transform; }

.window { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-window); text-align: left; font-size: 14px; }
.window::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, #ffffff40 30%, #ffffff40 70%, transparent); pointer-events: none; }
[data-theme="light"] .window::after { display: none; }
.titlebar { position: relative; display: flex; align-items: center; height: 38px; padding: 0 14px; background: var(--bg-3); border-bottom: 1px solid var(--hair-2); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--bg-4); }
.titlebar .url { position: absolute; left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 7px; background: var(--bg-2); font: 400 12px/1 var(--mono); color: var(--fg-3); }
.titlebar .url svg { width: 10px; height: 10px; }
.app { display: grid; grid-template-columns: 260px 1fr; height: 500px; }
.side { border-right: 1px solid var(--hair-2); padding: 12px 8px; background: var(--bg-2); }
.search { display: flex; align-items: center; gap: 8px; margin: 0 6px 12px; padding: 8px 10px; border-radius: 9px; background: var(--bg-3); color: var(--fg-3); font-size: 13px; }
.search kbd { margin-left: auto; font: 400 11px/1 var(--mono); padding: 3px 5px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--hair-3); }
.convo { display: grid; grid-template-columns: auto 1fr auto; gap: 1px 10px; align-items: center; padding: 9px 10px; border-radius: 10px; }
.convo.on { background: var(--bg-3); }
.convo .who { font: 500 13px/1.3 var(--mono); }
.convo time { font: 400 11px/1 var(--mono); color: var(--fg-3); }
.convo .snip { grid-column: 2 / 4; font-size: 12.5px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av { width: 32px; height: 32px; border-radius: 50%; grid-row: span 2; display: grid; place-items: center; font: 600 12px/1 var(--font); color: var(--fg-2); background: var(--bg-4); }
.main { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
[data-theme="light"] .main { background: #fcfcfd; }
.thead { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--hair-2); }
.thead .av { width: 28px; height: 28px; grid-row: auto; }
.thead .who { font: 500 14px/1.2 var(--mono); }
.thead .meta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 400 11.5px/1 var(--mono); color: var(--ok); }
.thead .meta svg { width: 12px; height: 12px; }
.thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 20px; overflow: hidden; }
.bubble { max-width: 68%; padding: 8px 13px; border-radius: 17px; line-height: 1.4; }
.bubble.in { align-self: flex-start; background: var(--bg-3); border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 17px; background: var(--bg-3); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-3); animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.receipt { align-self: flex-start; width: min(100%, 330px); padding: 14px 16px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--hair); }
.receipt .top { display: flex; align-items: center; justify-content: space-between; }
.receipt .label { font: 500 11px/1 var(--mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; }
.receipt .amt { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.receipt .amt small { font: 500 13px/1 var(--mono); color: var(--fg-3); margin-left: 6px; letter-spacing: 0; }
.receipt .foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hair-2); font: 400 11.5px/1 var(--mono); color: var(--fg-3); }
.receipt .foot .ok { color: var(--ok); }
.tick { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.tick svg { width: 12px; height: 12px; }
.tick path { stroke-dasharray: 22; stroke-dashoffset: 0; }
.composer { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--hair); color: var(--fg-3); font-size: 13.5px; }
.composer .pay { margin-left: auto; font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 8px; background: var(--bg-3); color: var(--fg); }
/* One-shot conversation playback */
.js .seq { opacity: 0; transform: translateY(10px) scale(.98); transform-origin: bottom left; transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.js .seq.out { transform-origin: bottom right; }
.js .seq.show { opacity: 1; transform: none; }
.js .seq.gone { display: none; }
.js .tick path { stroke-dashoffset: 22; transition: stroke-dashoffset 500ms var(--ease-out) 200ms; }
.js .seq.show .tick path { stroke-dashoffset: 0; }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; height: 440px; }
  .side { display: none; }
  .bubble { max-width: 84%; }
  .titlebar .url { display: none; }
}

/* ── Marquee ──────────────────────────────────────────────── */
.marquee-wrap { padding: clamp(72px, 9vw, 110px) 0 0; text-align: center; }
.marquee-wrap > p { font: 500 12.5px/1 var(--mono); color: var(--fg-3); }
.marquee { margin-top: 26px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; width: max-content; }
.track .group { display: flex; flex: none; }
.track ul { display: flex; flex: none; gap: 52px; padding: 0 26px; margin: 0; list-style: none; }
.track li { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; color: var(--fg-3); white-space: nowrap; transition: color 200ms ease; }
.track li:hover { color: var(--fg); }
.track.run { animation: marquee var(--dur, 60s) linear infinite; }
.marquee:hover .track.run { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
html:not(.js) .track, .track.static { width: auto; justify-content: center; }
html:not(.js) .track ul, .track.static ul { flex-wrap: wrap; justify-content: center; row-gap: 14px; flex: 1; }
.marquee-wrap .networks { margin-top: 26px; font: 400 13px/1.5 var(--font); letter-spacing: 0; color: var(--fg-3); }
.networks b { font-weight: 500; color: var(--fg-2); }

/* ── Bento with spotlight borders ─────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; }
.tile {
  --x: 50%; --y: 50%;
  position: relative; overflow: hidden; border-radius: 20px; padding: 28px; min-height: 300px;
  background: var(--surface); box-shadow: inset 0 1px 0 var(--hl), inset 0 0 0 1px var(--hair);
  display: flex; flex-direction: column;
}
.tile::before { /* spotlight on the border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--x) var(--y), rgb(var(--glow) / .7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 300ms ease;
}
.tile::after { /* soft fill under the cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--x) var(--y), rgb(var(--glow) / .06), transparent 60%);
  opacity: 0; transition: opacity 300ms ease;
}
@media (hover: hover) and (pointer: fine) { .bento:hover .tile::before, .bento:hover .tile::after { opacity: 1; } }
.tile.span2 { grid-column: span 2; }
.tile h3 { font-size: 19px; letter-spacing: -0.03em; }
.tile p { margin-top: 8px; color: var(--fg-2); font-size: 15px; max-width: 30em; }
.tile .vis { margin-top: auto; padding-top: 28px; position: relative; z-index: 1; }
/* Encrypt: what you send vs what the network sees */
.enc { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; }
.enc-step { display: grid; gap: 10px; min-width: 0; }
.enc-label { font: 500 11.5px/1 var(--mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; }
.enc .bubble { max-width: none; justify-self: start; font-size: 15px; }
.enc-lock { display: grid; justify-items: center; gap: 8px; padding-bottom: 6px; font: 400 11px/1.2 var(--mono); color: var(--fg-3); text-align: center; max-width: 110px; }
.enc-lock svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; color: var(--accent-2); background: rgb(var(--glow) / .12); box-shadow: 0 0 0 1px rgb(var(--glow) / .3); }
[data-theme="light"] .enc-lock svg { color: var(--accent); }
.enc-lock.busy svg { animation: lockpulse 700ms var(--ease-out); }
@keyframes lockpulse { 50% { transform: scale(1.12); } }
.cipher-box { padding: 9px 13px; border-radius: 12px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--hair); font: 400 14px/1.45 var(--mono); color: var(--fg-2); word-break: break-all; min-height: 42px; }
@media (max-width: 700px) {
  .enc { grid-template-columns: 1fr; align-items: start; }
  .enc-lock { grid-auto-flow: column; justify-content: start; max-width: none; padding: 0; }
  .enc-lock svg { width: 26px; height: 26px; padding: 6px; }
}
/* No forms */
.nofield { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 11px; background: var(--bg-3); font-size: 14px; color: var(--fg-3); }
.nofield + .nofield { margin-top: 8px; }
.nofield s { text-decoration-thickness: 1.5px; }
.nofield span { font: 400 11px/1 var(--mono); }
.nofield.yes { background: transparent; box-shadow: inset 0 0 0 1px rgb(var(--glow) / .5); color: var(--fg); }
.nofield.yes span { color: var(--accent-2); }
[data-theme="light"] .nofield.yes span { color: var(--accent); }
/* ENS search */
.ens-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--hair); font: 400 15px/1 var(--mono); }
.ens-input svg { width: 15px; height: 15px; color: var(--fg-3); flex: none; }
.caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--accent); margin-left: 1px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ens-result { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg-3); opacity: 0; transform: translateY(-4px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.ens-result.show, html:not(.js) .ens-result { opacity: 1; transform: none; }
.ens-result .av { width: 28px; height: 28px; grid-row: auto; }
.ens-result .who { font: 500 13.5px/1.2 var(--mono); }
.ens-result .addr { font: 400 11px/1.2 var(--mono); color: var(--fg-3); }
.ens-result .badge { margin-left: auto; font: 500 10.5px/1 var(--mono); padding: 5px 7px; border-radius: 6px; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
/* Confirm sheet */
.sheet-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.sheet-mini .big { font-size: clamp(34px, 4vw, 48px); font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.sheet-mini .big small { font: 500 14px/1 var(--mono); color: var(--fg-3); letter-spacing: 0; margin-left: 6px; }
.sheet-mini dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font: 400 12.5px/1.2 var(--mono); }
.sheet-mini dt { color: var(--fg-3); }
.sheet-mini dd { margin: 0; text-align: right; }
.sheet-mini dd.fee { color: var(--ok); }
.sheet-mini .btn { grid-column: 1 / -1; width: 100%; background: var(--accent); color: #fff; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tile.span2 { grid-column: auto; }
  .tile { min-height: 0; }
}

/* ── Take a closer look (kept) ────────────────────────────── */
.panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; margin-top: 56px;
  padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: var(--surface); box-shadow: inset 0 1px 0 var(--hl), inset 0 0 0 1px var(--hair);
}
.acc { list-style: none; margin: 0; padding: 12px 0; align-self: center; }
.acc li + li { border-top: 1px solid var(--hair); }
.acc button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 12px; text-align: left; background: none; border: 0; color: var(--fg); font: 500 17px/1.2 var(--font); letter-spacing: -0.015em; cursor: pointer; border-radius: 10px; }
.acc .ico { width: 24px; height: 24px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair-3); display: grid; place-items: center; color: var(--fg-2); transition: transform 250ms var(--ease-out), background-color 150ms ease; }
.acc .ico svg { width: 10px; height: 10px; }
.acc button[aria-expanded="true"] .ico { transform: rotate(45deg); background: var(--fg); color: var(--bg); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .acc button:hover .ico { background: var(--bg-3); } .acc button[aria-expanded="true"]:hover .ico { background: var(--fg); } }
.acc .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 280ms var(--ease-out); }
.acc .body > div { overflow: hidden; }
.acc .body p { padding: 0 12px 22px 50px; color: var(--fg-2); font-size: 15px; max-width: 30em; }
.acc li.open .body { grid-template-rows: 1fr; }
.stage { position: relative; display: grid; place-items: center; min-height: 420px; border-radius: 20px; background: var(--bg-3); overflow: hidden; }
.stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%); mask-image: radial-gradient(ellipse at center, #000, transparent 75%); }
.preview { position: relative; grid-area: 1 / 1; width: min(88%, 380px); opacity: 0; transform: translateY(8px) scale(.98); filter: blur(4px); transition: opacity 200ms ease, transform 200ms ease, filter 200ms ease; pointer-events: none; }
.preview.on { opacity: 1; transform: none; filter: none; transition: opacity 360ms var(--ease-out) 80ms, transform 360ms var(--ease-out) 80ms, filter 360ms var(--ease-out) 80ms; pointer-events: auto; }
.preview .window { font-size: 13.5px; }
.pv { padding: 16px 18px 18px; }
.pv-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--hair-2); }
.pv-row .who { font: 500 13px/1 var(--mono); }
.pv-row time { font: 400 11px/1 var(--mono); color: var(--fg-3); }
.pv-msg { margin: 16px 0 14px; }
.pv .receipt { width: 100%; align-self: auto; }
.pv-cipher { padding: 12px; border-radius: 10px; background: var(--bg-3); font: 400 11.5px/1.6 var(--mono); color: var(--fg-3); word-break: break-all; }
.pv-cipher b { display: block; font-weight: 500; color: var(--fg-2); margin-bottom: 4px; }
.wallets { display: grid; gap: 6px; margin-top: 14px; }
.wallets div { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg-3); }
.wallets .mono { font-size: 11px; color: var(--fg-3); }
.wallets .on .mono { color: var(--ok); }
.handle { display: flex; align-items: center; gap: 10px; }
.handle .av { width: 36px; height: 36px; grid-row: auto; }
.handle .who { font: 500 15px/1.2 var(--mono); }
.handle .meta { font: 400 11px/1.3 var(--mono); color: var(--fg-3); margin-top: 3px; }
.plat div { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--hair-2); }
.plat div:last-child { border-bottom: 0; }
.pill { font: 500 10.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: var(--bg-3); color: var(--fg-3); }
.pill.now { background: rgb(var(--glow) / .15); color: var(--accent-2); }
[data-theme="light"] .pill.now { color: var(--accent); }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } .stage { min-height: 320px; order: -1; } }

/* ── Stopwatch timeline ───────────────────────────────────── */
.clock { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 72px; }
.clock::before, .clock .fill { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--hair-3); }
.clock .fill { background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(1); box-shadow: 0 0 12px rgb(var(--glow) / .6); }
.js .clock .fill { transform: scaleX(0); transition: transform 1800ms var(--ease-in-out) 200ms; }
.js .clock.in .fill { transform: scaleX(1); }
.clock li { list-style: none; position: relative; padding: 40px 28px 0 0; }
.clock li::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair-3); transition: background-color 300ms ease, box-shadow 300ms ease; }
.clock.in li::before, html:not(.js) .clock li::before { background: var(--accent); box-shadow: 0 0 0 4px rgb(var(--glow) / .2); transition-delay: var(--d); }
.clock ol { display: contents; }
.clock .t { min-width: 4ch; font: 500 clamp(40px, 5vw, 64px)/1 var(--mono); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.clock .t small { font-size: .4em; color: var(--fg-3); margin-left: 4px; letter-spacing: 0; }
.clock h3 { margin-top: 18px; font-size: 18px; letter-spacing: -0.02em; }
.clock p { margin-top: 6px; color: var(--fg-2); font-size: 15px; max-width: 22em; }
.clock-note { margin-top: 40px; font: 400 12.5px/1.5 var(--mono); color: var(--fg-3); }
@media (max-width: 760px) {
  .clock { grid-template-columns: 1fr; gap: 40px; padding-left: 28px; }
  .clock::before, .clock .fill { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .clock .fill { transform-origin: top; }
  .js .clock .fill { transform: scaleY(0); }
  .js .clock.in .fill { transform: scaleY(1); }
  .clock li { padding: 0; }
  .clock li::before { left: -28px; }
}

/* ── Privacy ──────────────────────────────────────────────── */
.privacy-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px 80px; align-items: start; }
.spec { margin: 0; display: grid; grid-template-columns: 150px 1fr; }
.spec dt, .spec dd { margin: 0; padding: 16px 0; border-top: 1px solid var(--hair); }
.spec dt { font: 500 12px/1.6 var(--mono); color: var(--fg-3); padding-right: 16px; }
.spec dd { font-size: 15.5px; }
.spec dd.muted { color: var(--fg-2); }
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 64px; counter-reset: stop; }
.stop { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 1px 0 var(--hl), inset 0 0 0 1px var(--hair); }
.stop-n { font: 500 11.5px/1 var(--mono); color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; }
.stop .bubble { max-width: none; font-size: 15px; }
.stop .bubble.out { align-self: flex-end; }
.stop .bubble.in { align-self: flex-start; }
.stop p { margin-top: auto; color: var(--fg-2); font-size: 14.5px; }
.ciphertext { padding: 9px 13px; border-radius: 12px; background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--hair); font-size: 13.5px; line-height: 1.5; color: var(--fg-3); word-spacing: 2px; }
.server-sees { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: center; margin-top: 14px; padding: clamp(24px, 3.4vw, 40px); border-radius: 24px; background: var(--surface); box-shadow: inset 0 1px 0 var(--hl), inset 0 0 0 1px var(--hair); }
.ss-copy h3 { margin-top: 14px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.035em; }
.ss-copy h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--fg-2); }
.ss-copy p { margin-top: 14px; color: var(--fg-2); font-size: 15px; max-width: 32em; }
.ss-stage { position: relative; display: grid; gap: 14px; padding: 28px; border-radius: 18px; background: var(--bg-3); overflow: hidden; isolation: isolate; }
.ss-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 75%); }
.push { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--bg-2);
  box-shadow: inset 0 1px 0 var(--hl), inset 0 0 0 1px var(--hair-3), 0 18px 40px -18px #0000008c; }
.push-ico { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; padding: 8px; box-sizing: border-box; background: #2563eb; color: #fff; }
.push-ico svg { width: 100%; height: 100%; display: block; }
.push-body { min-width: 0; flex: 1; }
.push-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--fg-3); }
.push-top b { font-weight: 600; color: var(--fg-2); }
.push-title { margin-top: 2px; font-size: 14.5px; font-weight: 500; }
.payload { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair); font: 400 12.5px/1.65 var(--mono); color: var(--fg-2); overflow-x: auto; }
.payload .c { color: var(--fg-3); }
.payload .k { color: var(--fg); }
.payload .s { color: var(--accent-2); }
[data-theme="light"] .payload .s { color: var(--accent); }
.payload .n { color: var(--ok); }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; }
  .server-sees { grid-template-columns: 1fr; }
}
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .spec { grid-template-columns: 1fr; } .spec dd { border-top: 0; padding-top: 0; } .spec dt { padding-bottom: 4px; } }

/* ── Roadmap + FAQ ────────────────────────────────────────── */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.card { padding: 28px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 1px 0 var(--hl), inset 0 0 0 1px var(--hair); }
.card h3 { display: flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); color: var(--fg-3); }
.card h3 .pill { margin-left: auto; }
.card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.card li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hair-2); font-size: 15.5px; }
.card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.card.later li { color: var(--fg-2); }
.card-note { margin-top: 16px; font-size: 13.5px; color: var(--fg-3); }
.card.later li::before { background: transparent; box-shadow: inset 0 0 0 1px var(--fg-3); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px 80px; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq details:first-child { border-top: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 500; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--fg-3); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 40px 22px 0; color: var(--fg-2); }
.faq .answer p + p { margin-top: 8px; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }

/* ── CTA ──────────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(56px, 8vw, 104px) var(--gutter); text-align: center; background: var(--surface); box-shadow: inset 0 1px 0 var(--hl), inset 0 0 0 1px var(--hair); isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%); }
.cta::after { content: ""; position: absolute; z-index: -1; left: 50%; top: -55%; width: 900px; height: 600px; translate: -50% 0; background: radial-gradient(ellipse, rgb(var(--glow) / .28), transparent 60%); filter: blur(20px); }
.cta .h2 { font-size: clamp(40px, 6vw, 76px); }
.cta > p { margin: 18px auto 0; max-width: 28em; color: var(--fg-2); font-size: 18px; }
.waitlist { max-width: 460px; margin: 36px auto 0; }
.field { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair-3); transition: box-shadow 150ms ease; }
.field:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px rgb(var(--glow) / .2); }
.field[data-invalid] { box-shadow: inset 0 0 0 1px #ef4444; }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; color: var(--fg); font: 400 15.5px var(--font); caret-color: var(--accent); }
.field input:focus { outline: none; }
.field input::placeholder { color: var(--fg-3); }
.field .btn { height: 40px; }
.form-hint { margin-top: 14px; font-size: 13px; color: var(--fg-3); min-height: 1.4em; }
.form-hint.error { color: #f87171; }
[data-theme="light"] .form-hint.error { color: #dc2626; }
.wallet-join { margin-top: 6px; background: none; border: 0; padding: 6px; color: var(--fg-2); font: 500 14px/1 var(--font); cursor: pointer; }
.wallet-join:hover { color: var(--fg); }
.form-done { display: none; padding: 22px; border-radius: 18px; background: var(--bg-3); }
.form-done strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.form-done p { margin-top: 6px; color: var(--fg-2); font-size: 14.5px; }
.waitlist.done .form-body { display: none; }
.waitlist.done .form-done { display: block; }
@media (max-width: 480px) { .field { flex-direction: column; border-radius: 18px; } .field input { height: 44px; } .field .btn { width: 100%; } }

/* ── Footer with oversized wordmark ───────────────────────── */
.footer { position: relative; overflow: hidden; padding: 56px 0 0; margin-top: var(--section); border-top: 1px solid var(--hair); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 13px; color: var(--fg-3); }
.footer ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--fg-2); transition: color 150ms ease; }
.footer a:hover { color: var(--fg); }
.giant { margin-top: 40px; font-size: clamp(80px, 21vw, 300px); font-weight: 600; letter-spacing: -0.07em; line-height: .78; text-align: center; white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, var(--bg-4), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Reveal on scroll (JS opts in; content is visible without it) ── */
.js .reveal, .js .reveal-group > * { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in, .js .reveal-group.in > * { opacity: 1; transform: none; }
.js .h2.rise { opacity: 0; transform: translateY(26px); transition: opacity 600ms ease, transform 900ms var(--ease-out); }
.js .h2.rise.in { opacity: 1; transform: none; }
.js .giant.reveal { transform: translateY(30%); transition-duration: 1200ms; }
.js .giant.reveal.in { transform: none; }

/* ── Privacy page ─────────────────────────────────────────── */
.prose { max-width: 720px; padding-top: 160px; padding-bottom: 40px; }
.prose h1 { font-size: clamp(44px, 6vw, 72px); letter-spacing: -0.05em; line-height: 1; }
.prose h2 { font-size: 24px; letter-spacing: -0.03em; margin: 56px 0 14px; }
.prose p, .prose li { color: var(--fg-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--fg); font-weight: 500; }
.prose a, .faq .answer a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--hair-3); text-underline-offset: 3px; }
.prose a:hover, .faq .answer a:hover { text-decoration-color: currentColor; }
.prose .faq { margin-top: 16px; }
.prose .updated { margin-top: 18px; font: 400 13px/1.5 var(--mono); color: var(--fg-3); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose th { font: 500 12px/1.4 var(--mono); color: var(--fg-3); }
.prose td { color: var(--fg-2); }
.table-scroll { overflow-x: auto; }
.prose .table-scroll + p { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .tilt { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Logo (design/brand-pack) ─────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { display: inline-flex; width: 22px; height: 22px; flex: none; }
.brand-mark svg, .hero-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 18px; height: 18px; color: var(--fg-2); }

/* Hero intro, in three beats:
   1. The two links drift in from depth (blurred, turned, apart) and glide
      together along the chain's diagonal with a soft spring.
   2. They lock: the weave appears, the mark gives a small "click", a faint
      ring of light pulses out, and a highlight travels along the chain.
   3. The name rises in, letter by letter, sharpening as it comes. Then the
      headline follows (--intro delays it). */
.hero { --intro: 1050ms; }
.hero-brand { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 0 auto 34px; }
.hero-mark { position: relative; width: clamp(92px, 11vw, 128px); aspect-ratio: 1; color: var(--fg); }
.hero-mark::before { /* soft light pooled under the mark */
  content: ""; position: absolute; inset: -35%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--glow) / .22), transparent 62%); filter: blur(8px); opacity: .9; }
.hero-mark::after { /* the ring of light when the links lock */
  content: ""; position: absolute; inset: -6%; border-radius: 50%; box-shadow: 0 0 0 1px rgb(var(--glow) / .55), 0 0 24px rgb(var(--glow) / .35);
  opacity: 0; pointer-events: none; }
.hero-name { font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--fg); white-space: nowrap; }
.hero-name span { display: inline-block; }

.mark-anim .plain, .mark-anim .glint, .mark-anim .shine { opacity: 0; }
.mark-anim .link-a, .mark-anim .link-b { transform-box: fill-box; transform-origin: center; }
.js .mark-anim { animation: mark-click 520ms cubic-bezier(.2, .9, .3, 1.2) 1080ms both; }
.js .mark-anim .link-a { animation: mark-in-a 1100ms cubic-bezier(.65, 0, .25, 1) 60ms both; }
.js .mark-anim .link-b { animation: mark-in-b 1100ms cubic-bezier(.65, 0, .25, 1) 60ms both; }
.js .mark-anim .plain { opacity: 1; animation: mark-off 120ms linear 1080ms forwards; }
.js .mark-anim .woven { opacity: 0; animation: mark-on 120ms linear 1080ms forwards; }
.js .mark-anim .glint { animation: mark-glint 1500ms var(--ease-in-out) 1250ms both; }
.js .mark-anim .shine { opacity: 1; }
.js .hero-mark::after { animation: mark-ring 1100ms cubic-bezier(.2, .8, .2, 1) 1100ms both; }
.js .hero-mark::before { animation: mark-pool 1600ms var(--ease-out) 200ms both; }
.js .hero-name span { opacity: 0; filter: blur(10px); transform: translateY(.38em); animation: name-in 900ms var(--ease-out) calc(780ms + var(--l) * 42ms) forwards; }
@keyframes mark-in-a { from { transform: translateX(-72px) rotate(-16deg) scale(.9); opacity: 0; filter: blur(7px); } 40% { opacity: 1; } 88% { transform: translateX(2px) rotate(.6deg); filter: blur(0); } to { transform: none; opacity: 1; filter: blur(0); } }
@keyframes mark-in-b { from { transform: translateX(72px) rotate(16deg) scale(.9); opacity: 0; filter: blur(7px); } 40% { opacity: 1; } 88% { transform: translateX(-2px) rotate(-.6deg); filter: blur(0); } to { transform: none; opacity: 1; filter: blur(0); } }
@keyframes mark-off { to { opacity: 0; } }
@keyframes mark-on { to { opacity: 1; } }
@keyframes mark-click { 0% { transform: scale(1); } 30% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes mark-glint { 0% { opacity: 0; } 35% { opacity: .9; } 100% { opacity: 0; } }
@keyframes mark-ring { 0% { opacity: 0; transform: scale(.55); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes mark-pool { from { opacity: 0; transform: scale(.6); } to { opacity: .9; transform: none; } }
@keyframes name-in { to { opacity: 1; filter: blur(0); transform: none; } }
/* The headline and the rest wait for the logo. */
.js .hero .h1 .w { transition-delay: calc(var(--intro) + var(--i) * 70ms); }
.js .hero .fade { transition-delay: calc(var(--intro) + 380ms); }
.js .hero .chip.fade { transition-delay: calc(var(--intro) - 120ms); }
/* Dark theme: the blue chrome stays on as a soft tint over the white links. */
:root[data-theme="dark"] .mark-anim .glint { opacity: .5; }
:root[data-theme="dark"].js .mark-anim .glint { animation: mark-glint-dark 1700ms var(--ease-in-out) 1150ms both; }
@keyframes mark-glint-dark { 0% { opacity: 0; } 30% { opacity: .95; } 100% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) {
  .js .mark-anim, .js .mark-anim .link-a, .js .mark-anim .link-b, .js .mark-anim .glint,
  .js .hero-mark::after, .js .hero-mark::before { animation: none; }
  .js .mark-anim .plain { animation: none; opacity: 0; }
  .js .mark-anim .woven { animation: none; opacity: 1; }
  .js .mark-anim .shine { display: none; }
  :root[data-theme="dark"].js .mark-anim .glint { animation: none; opacity: .5; }
  .js .hero-name span { animation: none; opacity: 1; filter: none; transform: none; }
  .hero { --intro: 0ms; }
}

