:root {
  --sage: #94bd84;
  --sage-deep: #2f6a3e;
  --pine: #13301f;
  --sky: #8fc7ec;
  --sky-deep: #7fb3d1;
  --sky-strong: #2f6f93;
  --sky-ink: #173e54;
  --coral: #ff5733;
  --coral-deep: #e2563a;
  --lavender: #b8a1f0;
  --lavender-deep: #6b55a3;
  --honey: #ffc53d;
  --honey-deep: #b7791f;
  --paper: #f5f7f3;
  --ink: #13241b;
  --muted: #536359;
  --line: #d6dfd6;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "system-ui", ".SFNSText-Regular", sans-serif;
  --soft: "SOFT" 100, "WONK" 0;   /* Fraunces' rounded, softer letterforms for display text */
  font-synthesis: none;
}
::selection { background: var(--lavender); color: var(--ink); }
* { box-sizing: border-box; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-feature-settings: "liga";
  font-size: 1rem;
  line-height: 1.65;
}
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* ---------- sage band (hero + page headers) ---------- */
.band {
  position: relative;
  overflow: hidden;
  background-color: var(--sage);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
  color: var(--pine);
  font-variation-settings: "SOFT" 100, "WONK" 1;   /* the wordmark gets the wonky, hand-drawn glyphs too */
}
.cols h2, .page-head h1 { font-variation-settings: var(--soft); }

/* ---------- content ---------- */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.cols { display: grid; gap: 24px 64px; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
.cols h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.625rem; line-height: 1.15; color: var(--pine); }
.prose { max-width: 62ch; }
.prose p:first-child { margin-top: 0; }
.prose h3 { margin: 2em 0 .4em; font-size: 1.0625rem; font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
/* photo of Kirstin, cut out from its background, with a soft shadow that follows her outline */
.portrait { position: relative; margin: 0; }
.portrait img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 22px rgba(19, 48, 31, .28)); }
.hero .note a { color: var(--pine); font-weight: 600; text-decoration-color: var(--lavender-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a { text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.site-foot { padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- inner pages ---------- */
.strip { padding: 22px 0 26px; }
.strip .wordmark { font-size: 2.25rem; line-height: 1; }
.page-head { padding: 64px 0 24px; }
.page-head h1 {
  margin: 0; font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.04;
  font-family: var(--display); font-weight: 600; letter-spacing: -.01em; color: var(--pine);
}
.page-head .lede { max-width: 46ch; margin: 18px 0 0; font-size: 1.1875rem; color: var(--muted); }
.disclaimer { font-size: .9375rem; color: var(--muted); }

.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--pine); color: #fff; font-weight: 600; text-decoration: none; }
.btn-coffee { display: inline-flex; align-items: center; gap: 8px; background: #c4432a; color: #fff; }   /* darker than --coral-deep so white text passes contrast */
.btn-coffee:hover { background: #a9381f; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); cursor: default; }

/* product illustration: popup + progress panel */
.demo {
  position: relative;
  margin: 40px 0 8px;
  padding: 48px 24px 64px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sky);
}
.demo-popup {
  width: 290px; max-width: 100%;
  margin-inline: auto;
  padding: 16px;
  border-radius: 12px;
  background: #fff; color: #1d2b2a;
  font: 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 18px 40px rgba(31,58,43,.25);
  transform: rotate(-1.5deg);
}
.demo-popup b { display: block; font-size: 16px; }
.demo-popup .ok { margin: 4px 0 12px; color: #0b6e66; }
.demo-popup .act { padding: 10px 0; border-top: 1px solid #d9e2e0; }
.demo-popup .act span { display: block; padding: 8px; border-radius: 6px; background: #0b6e66; color: #fff; font-weight: 600; text-align: center; }
.demo-popup .act span.red { background: #b3261e; }
.demo-popup .act small { display: block; margin-top: 5px; color: #5b6b69; }
.demo-panel {
  position: absolute; right: 7%; bottom: 22px;
  display: flex; gap: 12px; align-items: center;
  padding: 11px 13px; border-radius: 8px;
  background: #1d2b2a; color: #fff;
  font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 6px 18px rgba(31,58,43,.3);
  transform: rotate(1deg);
}
/* Pay Gap Check illustration: a job ad with the right-click option, and the result card */
.demo-ad {
  width: 330px; max-width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff; color: #1d2b2a;
  font: 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 10px 28px rgba(31,58,43,.18);
  transform: rotate(-1.2deg);
}
.demo-ad b { display: block; font-size: 16px; }
.demo-ad mark { background: #cfe3f3; color: inherit; padding: 0 2px; }
.demo-menu {
  width: max-content; max-width: 100%; margin: 12px 0 0 40px; padding: 7px 12px;
  border-radius: 6px; background: #fff; box-shadow: 0 4px 14px rgba(31,45,39,.22), 0 0 0 1px rgba(31,45,39,.08);
}
.demo-card {
  width: 290px; max-width: 100%;
  margin: -18px 0 0 auto;
  padding: 16px;
  border-radius: 16px;
  background: #fff; color: #1f2d27;
  font: 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 18px 44px rgba(31,45,39,.28);
  transform: rotate(1.2deg);
}
.demo-card small { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--sky-strong); }
.demo-card b { display: block; font-size: 16px; }
.demo-size { color: #536359; font-size: 12px; }
.demo-headline { margin: 10px 0 0; padding: 12px; border-radius: 10px; background: #e3f0f7; }
.demo-headline strong { display: block; font-size: 18px; line-height: 1.2; color: var(--sky-ink); }
.demo-headline span { display: block; margin-top: 3px; font-size: 12px; color: #2f5468; }
.demo-card p { margin: 8px 0 0; }
.demo:has(.demo-card) { display: grid; gap: 0; padding: 40px clamp(20px, 6vw, 72px) 48px; }

.demo-panel span:last-child { padding: 3px 9px; border-radius: 4px; background: #fff; color: #1d2b2a; font-weight: 600; }

@media (max-width: 760px) {
  .wrap { width: min(1120px, 100% - 32px); }
  .cols { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .demo-panel { position: relative; right: auto; bottom: auto; margin: 24px auto 0; width: max-content; }
  .demo { padding-bottom: 32px; }
}
/* ---------- home: the title fills the first screen, the rest follows below ---------- */
html { scrollbar-gutter: stable; overflow-x: clip; }
.hero .wrap { padding: 0; text-align: center; }
.hero h1 { font-family: var(--display); font-weight: 600; color: var(--ink); font-variation-settings: var(--soft); isolation: isolate; }   /* isolate: the highlighter sits behind the word, above the band */
.hero-title { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100svh; padding: 48px 0 72px; }
.hero h1.title { margin: 0; font-size: clamp(3.2rem, 10.5vw, 9.5rem); line-height: 1; letter-spacing: -.015em; }
/* "Building tools for small businesses and charities." sits above "Choose kirbly." at half the size */
.title .lead-in { display: block; max-width: 24ch; margin: 0 auto .45em; font-size: .42em; line-height: 1.12; letter-spacing: -.005em; }
.title .choose { display: block; }
.title .brand { white-space: nowrap; font-weight: 700; letter-spacing: -.025em; color: var(--pine); font-variation-settings: "SOFT" 100, "WONK" 1; }
/* "kir" rises into place letter by letter; clip rather than overflow:hidden, which would lift it off the baseline */
.wm-mask { display: inline-block; clip-path: inset(0 -.1em); padding: .12em 0 .22em; margin: -.12em 0 -.22em; }
.wm-letter { display: inline-block; }
/* the highlighter under "kir": joins the one under the ending, and stays while that one flips */
.wm-mask { position: relative; z-index: 1; }   /* above the ending, so its bar never covers the r's arm */
.wm-mask::before {
  content: ""; position: absolute; z-index: -1; left: -.04em; right: 0; bottom: .28em; height: .42em;
  border-radius: .12em 0 0 .12em; background: var(--lavender); transform-origin: left;
}
/* "Choose kir___." The ending flips between bly and stin like a split-flap board (headline.js):
   the old letters tumble back one by one as a lavender highlighter wipes off, then the new
   letters flip forward and the highlighter sweeps back under them. */
.h1-word { position: relative; display: inline-block; white-space: nowrap; perspective: 420px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.h1-word::before {
  content: ""; position: absolute; z-index: -1; left: -.15em; right: -.04em; bottom: .06em; height: .42em;
  border-radius: 0 .12em .12em 0; background: var(--lavender);   /* tucks under kir, so the bar has no seam */
  transform-origin: left; transition: transform .45s cubic-bezier(.6, 0, .2, 1);
}
.h1-word.hl-off::before { transform: scaleX(0); transform-origin: right; }
.h1-word .ch { display: inline-block; transform-origin: 50% 70%; backface-visibility: hidden;
  transition: transform .5s cubic-bezier(.3, 1.45, .5, 1) calc(var(--k) * 40ms), opacity .35s ease calc(var(--k) * 40ms), filter .35s ease calc(var(--k) * 40ms); }
.h1-word .ch.pre { transform: rotateX(95deg) translateY(.12em); opacity: 0; filter: blur(3px); transition: none; }
.h1-word .ch.gone { transform: rotateX(-95deg) translateY(-.12em); opacity: 0; filter: blur(3px);
  transition-timing-function: cubic-bezier(.5, 0, .9, .4), ease, ease; transition-duration: .32s, .3s, .3s; }
/* the pen that scribbles out the old ending before it tumbles away */
.scribble-out { position: absolute; left: -.08em; top: .22em; height: .62em; width: calc(100% + .16em); overflow: visible; pointer-events: none; }
.scribble-out path { fill: none; stroke: var(--coral); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;   /* in viewBox units; non-scaling-stroke would break pathLength */
  stroke-dasharray: 100; stroke-dashoffset: 100; }
.scribble-out.drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset .55s cubic-bezier(.4, 0, .4, 1); }
.scribble-out.gone { opacity: 0; transform: translateY(-.1em); transition: opacity .3s ease, transform .3s ease; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; margin-left: -22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--pine); }
.scroll-cue svg { animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-3px); opacity: .55; } 50% { transform: translateY(4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

.hero-body { padding: 8px 0 72px; }
.hero-body .lede { max-width: 40ch; margin: 0 auto; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.6; color: #2c3d34; }
.hero-body .note { margin: 22px 0 0; font-size: .9375rem; color: #22382b; }

/* ---------- the entrance (intro.js): the stripes draw back, then the title builds up ---------- */
.curtain { display: none; }
.intro .curtain {
  position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none;
  animation: curtain-failsafe 0s 4s forwards;   /* failsafe: gone after 4s, whatever happens */
}
.curtain i { display: block; background: var(--c); }
.curtain i:nth-child(1) { --c: var(--sage); --i: 0; }
.curtain i:nth-child(2) { --c: var(--lavender); --i: 1; }
.curtain i:nth-child(3) { --c: var(--coral); --i: 2; }
.curtain i:nth-child(4) { --c: var(--sky); --i: 3; }
.curtain i:nth-child(5) { --c: var(--honey); --i: 4; }
/* odd stripes go up, even ones down, one after another, like a blind opening */
.revealed .curtain i { transform: translateY(-101%); transition: transform .85s cubic-bezier(.75, 0, .2, 1) calc(var(--i) * 75ms); }
.revealed .curtain i:nth-child(even) { transform: translateY(101%); }
.curtain-gone .curtain { display: none; }
@keyframes curtain-failsafe { to { visibility: hidden; } }

/* the title: the words rise in one by one, then "Choose", then "kir"; headline.js then flips
   the ending in and sweeps the highlighter under it */
.title .w { display: inline-block; }
.intro .title .w { opacity: 0; transform: translateY(.5em) rotate(3deg); filter: blur(6px); }
.revealed .title .w {
  opacity: 1; transform: none; filter: none;
  transition: opacity .6s ease, transform .9s cubic-bezier(.2, .9, .25, 1.15), filter .6s ease;
  transition-delay: calc(.55s + var(--i, 0) * 55ms);
}
.revealed .title .w-choose { transition-delay: 1.05s; }
.intro .wm-letter { transform: translateY(150%); }   /* clears the mask's bottom padding, so no tops peek out */
.revealed .wm-letter { transform: none; transition: transform .95s cubic-bezier(.2, .8, .2, 1) calc(1.2s + var(--i) * 70ms); }
.intro .wm-mask::before { transform: scaleX(0); }
.revealed .wm-mask::before { transform: none; transition: transform .6s cubic-bezier(.6, 0, .2, 1) 1.2s; }
.intro .scroll-cue { opacity: 0; }
.revealed .scroll-cue { opacity: 1; transition: opacity .6s ease 2.4s; }
/* failsafe: if the scripts never run, show everything after 4s */
.intro .title .w, .intro .wm-letter, .intro .scroll-cue, .intro .h1-word .ch.pre, .intro .h1-word.hl-off::before, .intro .wm-mask::before {
  animation: intro-failsafe 0s 4s forwards;
}
@keyframes intro-failsafe { to { opacity: 1; transform: none; filter: none; } }

@media (max-width: 760px) {
  .hero h1.title { font-size: 19vw; }
  .title .lead-in { font-size: .36em; }
  .title .brand { display: block; }   /* "Choose" / "kirbly." on their own lines, so the flip never reflows */
  .hero-body { padding: 8px 0 48px; }
}

/* ---------- kits: one question per screen, then a personal plan (name-change/kit.js) ---------- */
.kit { max-width: 720px; padding: 48px 0 72px; min-height: 70vh; }
.kit-screen[hidden] { display: none; }
.kit-eyebrow { display: inline-block; margin: 0 0 14px; padding: 3px 12px; border-radius: 999px; background: var(--lavender); color: var(--pine); font-size: .875rem; font-weight: 600; }
.kit-q { margin: 0; font-family: var(--display); font-variation-settings: var(--soft); font-weight: 600; font-size: clamp(1.75rem, 4.5vw, 2.6rem); line-height: 1.12; color: var(--pine); outline: none; }
.kit-lede { margin: 14px 0 0; max-width: 52ch; font-size: 1.125rem; color: var(--muted); }
.kit-hint { margin: 10px 0 0; color: var(--muted); }
.kit-promises { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .9375rem; color: var(--sage-deep); font-weight: 500; }
.kit-promises li::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.kit-start, .kit-next { margin-top: 30px; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--pine); color: #fff; font: inherit; font-weight: 600; font-size: 1.0625rem; cursor: pointer; }
.kit-start:hover, .kit-next:hover { background: #12271c; }

.kit-top { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.kit-back { padding: 6px 12px 6px 4px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--sage-deep); cursor: pointer; }
.kit-back::before { content: "‹ "; }
.kit-progress { display: flex; flex: 1; gap: 6px; }
.kit-progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background .3s; }
.kit-progress span.done { background: var(--sage-deep); }
.kit-progress span.now { background: var(--lavender-deep); }

.kit-opts { display: grid; gap: 10px; margin-top: 26px; }
.kit-opts.multi { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kit-opt {
  display: block; width: 100%; padding: 18px 20px;
  border: 2px solid var(--line); border-radius: 18px; background: #fff;
  font: inherit; font-size: 1.0625rem; font-weight: 500; text-align: left; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.kit-opt:hover { border-color: var(--lavender-deep); }
.kit-opt:active { transform: scale(.99); }
.kit-opt.chosen { border-color: var(--lavender-deep); background: color-mix(in srgb, var(--lavender) 40%, #fff); }
.kit-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; }
.kit-chip:has(input:checked) { border-color: var(--lavender-deep); background: color-mix(in srgb, var(--lavender) 40%, #fff); }
.kit-chip input, .kit-item input { width: 20px; height: 20px; accent-color: var(--lavender-deep); flex: none; }

/* screens slide in, a little, in the direction you're going */
.enter-fwd { animation: kit-in-fwd .38s cubic-bezier(.2, .8, .2, 1); }
.enter-back { animation: kit-in-back .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes kit-in-fwd { from { opacity: 0; transform: translateX(28px); } }
@keyframes kit-in-back { from { opacity: 0; transform: translateX(-28px); } }

/* the plan */
.kit-meter { display: flex; align-items: center; gap: 14px; margin: 24px 0 0; font-weight: 600; color: var(--pine); }
.kit-meter-bar { flex: 1; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.kit-meter-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--lavender-deep); transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.kit-callout { margin: 24px 0 0; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--lavender) 30%, #fff); }
.kit-steps { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: step; }
.kit-step + .kit-step { margin-top: 34px; }
.kit-step h3 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--display); font-variation-settings: var(--soft); font-weight: 600; font-size: 1.4rem; color: var(--pine); }
.kit-step-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pine); color: #fff; font-family: var(--body); font-size: 1rem; font-weight: 700; }
.kit-note { margin: 10px 0 0 46px; color: var(--muted); }
.kit-items { margin: 14px 0 0 46px; padding: 0; list-style: none; }
.kit-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.kit-item + .kit-item { margin-top: 10px; }
.kit-item label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.kit-item-t { font-weight: 600; }
.kit-item:has(input:checked) .kit-item-t { text-decoration: line-through; text-decoration-color: var(--lavender-deep); text-decoration-thickness: 2px; color: var(--muted); }
.kit-item p { margin: 6px 0 0 32px; font-size: .9375rem; color: #3b4a41; }
.kit-item a, .kit-callout a, .kit-fine a { text-decoration-color: var(--lavender-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.kit-item.optional { border-style: dashed; }
.kit-tool { margin: 10px 8px 0 32px; padding: 8px 14px; border: 1.5px solid var(--pine); border-radius: 999px; background: none; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--pine); cursor: pointer; }
.kit-tool:hover { background: var(--pine); color: #fff; }
.kit-tool.quiet { border-color: transparent; color: var(--muted); }
.kit-actions .kit-tool { margin-left: 0; }
.kit-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 30px; }
.kit-fine { margin: 18px 0 0; font-size: .875rem; color: var(--muted); }

/* the deed poll / letter writer, opened under the item that asked for it */
.kit-writer { margin: 10px 0 0 46px; padding: 18px; border: 2px solid var(--lavender-deep); border-radius: 18px; background: #fff; }
.kit-items .kit-writer { margin-left: 0; }
.kit-writer-head { display: flex; align-items: center; justify-content: space-between; }
.kit-writer-head h3 { margin: 0; font-size: 1.15rem; }
.kit-close { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.kit-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; margin-top: 14px; }
.kit-fields label { display: grid; gap: 4px; font-size: .875rem; font-weight: 600; color: var(--pine); }
.kit-fields label.wide { grid-column: 1 / -1; }
.kit-fields input, .kit-fields textarea { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; color: var(--ink); }
.kit-fields textarea { resize: vertical; }
.kit-plan > .kit-writer { margin: 24px 0 0; }
.kit-fields input:focus, .kit-fields textarea:focus { outline: 2px solid var(--lavender-deep); outline-offset: 1px; }
.kit-doc { margin: 16px 0 0; padding: 18px; max-height: 360px; overflow: auto; border-radius: 12px; background: var(--paper); white-space: pre-wrap; font: .9375rem/1.6 Georgia, "Times New Roman", serif; color: var(--ink); }
.kit-noscript { padding: 16px; border-radius: 12px; background: #fff; }

@media (max-width: 760px) {
  .kit { padding-top: 32px; }
  .kit-note, .kit-items, .kit-writer { margin-left: 0; }
  .kit-item p, .kit-tool { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .enter-fwd, .enter-back { animation: none; } }

/* printing: the plan prints as a clean checklist; a letter or deed poll prints on its own */
@media print {
  .kit-page .band, .kit-page .site-foot, .kit-top, .kit-actions, .kit-tool, .kit-meter, .kit-writer .kit-fields, .kit-close { display: none !important; }
  .kit-item { break-inside: avoid; }
  .print-doc main > *:not(.kit-stage), .print-doc .kit-plan > *:not(.kit-steps):not(.kit-writer), .print-doc .kit-steps:not(:has(.kit-writer)),.print-doc .kit-step > *:not(.kit-items), .print-doc .kit-items > *:not(.kit-writer), .print-doc .kit-writer > *:not(.kit-doc) { display: none !important; }
  .print-doc .kit-writer { border: 0; padding: 0; margin: 0; }
  .print-doc .kit-doc { max-height: none; background: none; padding: 0; font-size: 12pt; }
}

/* date questions (a question with type: 'date') */
.kit-date { margin-top: 26px; }
.kit-date input {
  display: block; margin-top: 8px; padding: 14px 16px; min-width: 240px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 1.0625rem; color: var(--ink);
}
.kit-date input:focus { outline: none; border-color: var(--lavender-deep); }
.kit-error { margin: 10px 0 0; color: #a12a1d; font-weight: 600; }

/* ---------- home: poster sections (colour bands, big type, shape pictures) ---------- */
.block { padding: clamp(64px, 9vw, 120px) 0; }
.block-sky { background: var(--sky); }
.block-paper { background: var(--paper); }
.block-lavender { background: var(--lavender); }
.block-pine { background: var(--pine); color: #e8efe6; }
.block-honey { background: var(--honey); }
.big {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-family: var(--display); font-variation-settings: var(--soft); font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.02em; color: var(--pine);
}
.block-sky .big { color: var(--sky-ink); }
.block-pine .big { color: #fff; }
.block-lede { max-width: 46ch; margin: calc(clamp(28px, 4vw, 48px) * -.55) 0 clamp(28px, 4vw, 48px); font-size: 1.125rem; color: var(--muted); }

/* what I build: big rows, a picture built from flat shapes beside each title, alternating sides */
.build { display: grid; gap: clamp(56px, 12vh, 140px); margin: 0; padding: 0; list-style: none; }
.build li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 88px); align-items: center; }
.build li:nth-child(even) .art { order: 2; }
.art { display: block; width: 100%; max-width: 460px; height: auto; overflow: visible; justify-self: center; }
.build-copy strong { display: block; margin: 0 0 16px; font-family: var(--display); font-variation-settings: var(--soft); font-weight: 650; font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -.02em; color: var(--sky-ink); }
.build-copy span { display: block; max-width: 30ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: #23384a; }

/* free tools: three posters, each a picture built from shapes over its name; the whole poster
   is the link. They lift and tilt a little on hover. */
.posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.posters a { display: grid; gap: 8px; color: var(--ink); text-decoration: none; }
.posters .art { max-width: none; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.posters a:hover .art, .posters a:focus-visible .art { transform: translateY(-8px) rotate(-2deg); }
.poster-meta { margin-top: 14px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.posters b { font-family: var(--display); font-variation-settings: var(--soft); font-weight: 650; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.02; letter-spacing: -.015em; color: var(--pine);
  text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.posters b + span { max-width: 32ch; font-size: 1.0625rem; line-height: 1.55; }
.posters a:focus-visible { outline-offset: 8px; border-radius: 24px; }
@media (prefers-reduced-motion: reduce) { .posters .art { transition: none; } }

/* what kirbly stands for: the photo, framed by shapes, beside four statements on paper tiles */
.stands { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 32px 72px; align-items: start; }
.me { position: relative; width: min(280px, 70vw); margin: 36px 0 0 12px; }
.me-shape { position: absolute; z-index: 0; display: block; }
.me-circle { --c: var(--coral); width: 74%; right: -22%; top: -10%; overflow: visible; }
.me-half { --c: var(--honey); width: 80%; left: -16%; bottom: -8%; overflow: visible; }
.me-shape path { stroke-width: 8; }
.motion .me-shape { --dw: clamp(0, calc(var(--p, 1) * 1.3), 1); }   /* drawn in as the photo arrives */
.me .portrait { z-index: 1; width: 100%; margin: 0; }
.sticker { position: absolute; z-index: 2; left: -6%; bottom: 10%; margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--pine); color: #fff; font-weight: 600; font-size: .9375rem; transform: rotate(-6deg); box-shadow: 0 8px 18px rgba(31,58,43,.25); }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; color: var(--ink); }
.pillars li { --rot: -1.6deg; padding: 26px 28px 30px; border-radius: 28px; background: var(--paper); box-shadow: 0 14px 30px rgba(19,48,31,.16); transform: rotate(var(--rot)); transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.pillars li:nth-child(2) { --rot: 1.4deg; margin-top: 36px; }
.pillars li:nth-child(3) { --rot: 1deg; }
.pillars li:nth-child(4) { --rot: -1.2deg; margin-top: 36px; }
.pillars li:hover { transform: rotate(0deg) translateY(-4px); }
.pillars p { margin: 0; }
.pillar-art { width: 96px; height: 96px; margin: 0 0 14px; }
.pillars li:nth-child(3) .pillar-art .s { transform-box: view-box; transform-origin: 60px 60px; }   /* the ring orbits the centre */
.pillars b { display: block; margin-bottom: 8px; font-family: var(--display); font-variation-settings: var(--soft); font-weight: 650; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; color: var(--pine); }

/* get in touch: dark band, the email set big */
.contact, .coffee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 72px; align-items: start; }
.contact .big, .coffee .big { margin-bottom: 0; }
.contact-body p:first-child, .coffee p:first-child { margin-top: 0; }
.contact-body, .contact-intro { font-size: 1.0625rem; }
.contact-intro { margin-top: clamp(40px, 5vw, 64px); }   /* room for the squiggle under the heading */
.contact-intro p:first-child { margin-top: 0; }
.mail { display: inline-block; margin-top: 6px; font-family: var(--display); font-variation-settings: var(--soft); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.1; color: #fff; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.mail:hover { text-decoration-color: var(--honey); }
.contact-fine { color: #b9c9bd; font-size: .9375rem; }
.contact-form { display: grid; gap: 18px; margin: 0 0 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; font-weight: 600; font-size: .9375rem; color: #e8efe6; }
.field legend { padding: 0; margin-bottom: 8px; }
.field .optional { font-weight: 400; color: #b9c9bd; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 2px solid rgba(232, 239, 230, .28); border-radius: 16px;
  background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-weight: 400; font-size: 1rem;
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(232, 239, 230, .5); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--honey); background: rgba(255, 255, 255, .1); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pills span { display: inline-block; padding: 9px 16px; border: 2px solid rgba(232, 239, 230, .35); border-radius: 999px; font-weight: 600; font-size: .9375rem; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.pills input:checked + span { border-color: var(--honey); background: var(--honey); color: var(--pine); }
.pills input:focus-visible + span { outline: 3px solid var(--honey); outline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.send { padding: 13px 30px; border: 0; border-radius: 999px; background: var(--honey); color: var(--pine); font: inherit; font-weight: 700; font-size: 1.0625rem; cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.send:hover { transform: translateY(-2px); background: #f7d48c; }
.send:disabled { cursor: default; transform: none; opacity: .7; }
.form-status { margin: 0; font-weight: 600; color: var(--honey); }
.contact-form.sent .send { background: var(--sage); }
.or-email { margin: 36px 0 0; font-weight: 600; color: #b9c9bd; }
.or-email + .mail-row { margin-top: 2px; }
.block-pine :focus-visible { outline-color: var(--honey); }
.block-honey .disclaimer { color: #5c4613; }
.block-honey + .site-foot { border-top: 0; }

@media (max-width: 900px) {
  .posters { grid-template-columns: 1fr; max-width: 420px; gap: 56px; }
}
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars li:nth-child(n) { margin-top: 0; }
  .me { margin-left: 24px; }
  .build li { grid-template-columns: 1fr; }
  .build li:nth-child(even) .art { order: 0; }
  .art { max-width: 340px; }
  .stands, .contact, .coffee { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-side { display: contents; }   /* on a phone: heading, intro, the form, then the email */
  .contact-body { order: 1; }
  .contact-side > p { order: 2; }
  .contact .big, .coffee .big { margin-bottom: 8px; }
}

/* ---------- as you scroll (scroll.js adds "motion"; without it nothing is hidden) ---------- */
/* the lede fills in word by word */
.motion .lede .lw { color: rgba(44, 61, 52, .2); transition: color .3s ease; }
.motion .lede .lw.on { color: inherit; }

/* each section's content follows its heading in */
.motion :is(.block-lede, .contact-intro > *, .contact-side > p, .contact-body > *, .coffee > div > *, .hero-body .note) {
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, .85, .2, 1);
  transition-delay: calc(.25s + var(--d, 0) * 100ms);
}
.motion :is(.block, .hero-body):not(.in) :is(.block-lede, .contact-intro > *, .contact-side > p, .contact-body > *, .coffee > div > *, .hero-body .note) {
  opacity: 0; transform: translateY(28px);
}
:is(.contact-body > *, .coffee > div > *):nth-child(2) { --d: 1; }
:is(.contact-body > *, .coffee > div > *):nth-child(3) { --d: 2; }
:is(.contact-body > *, .coffee > div > *):nth-child(4) { --d: 3; }

/* the free tools: their pictures build like "What I build" (the same .art .s rules, --p and
   --u from scroll.js), the text follows, and on wide screens the middle poster travels at a
   different speed */
.motion .posters li > a > :not(.art) {
  --t: clamp(0, calc((var(--p, 1) - .5) * 2.4), 1);
  opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 24px));
}
@media (min-width: 901px) {
  .motion .posters li:nth-child(2) { translate: 0 calc((var(--u, .5) - .5) * -90px); }
}

/* words boxed like tags in "What kirbly stands for"; the boxes draw in after the text */
.pillars .box { padding: 0 .28em; border: 1.5px solid var(--pine); border-radius: .35em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.motion .pillars .box { transition: border-color .6s ease calc(.9s + var(--d, 0) * 100ms); }
.motion .block:not(.in) .pillars .box { border-color: transparent; }

/* stripe dividers between bands, in two colours, sliding sideways as you scroll */
.stripes { --s: 0; display: grid; grid-template-rows: repeat(3, clamp(14px, 2.2vw, 26px)); }
.stripes i {
  background-image: repeating-linear-gradient(90deg, var(--a) 0 140px, var(--b) 140px 176px, var(--a) 176px 232px, var(--b) 232px 330px);
  background-position-x: calc(var(--s) * .6px);
}
.stripes i:nth-child(2) {
  background-image: repeating-linear-gradient(90deg, var(--b) 0 90px, var(--a) 90px 112px, var(--b) 112px 268px, var(--a) 268px 300px);
  background-position-x: calc(var(--s) * -.9px);
}
.stripes i:nth-child(3) { background-position-x: calc(var(--s) * 1.2px + 70px); }

/* copy the email address */
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.copy { padding: 8px 16px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 999px; background: none; color: #fff; font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.copy:hover { border-color: var(--honey); color: var(--honey); }
.copy[hidden] { display: none; }

/* what I build, as you scroll: the shapes fly in and lock together. scroll.js sets --p on each
   row (0 as it enters, 1 once it's near the middle) and --u (0 to 1 across its whole trip up
   the screen). Each shape has its own start: --x, --y (offset), --r (turn), --k (how much
   smaller), --d (how late it sets off), and --spin to keep turning afterwards. With no --p
   (no script, or reduced motion) every shape is simply in place. */
.art .s {
  --t: clamp(0, calc((var(--p, 1) - var(--d, 0)) * 2.2), 1);
  --e: calc(var(--t) * var(--t) * (3 - 2 * var(--t)));   /* smoothstep */
  transform-box: fill-box; transform-origin: center;
  transform:
    translate(calc((1 - var(--e)) * var(--x, 0) * 1px), calc((1 - var(--e)) * var(--y, 0) * 1px))
    rotate(calc((1 - var(--e)) * var(--r, 0) * 1deg + (var(--u, .5) - .5) * var(--spin, 0) * 1deg))
    scale(calc(1 - (1 - var(--e)) * var(--k, 0)));
  opacity: clamp(0, calc(var(--t) * 4), 1);
}
.motion .build-copy strong, .motion .build-copy span {
  --t: clamp(0, calc((var(--p, 1) - .45) * 2.4), 1);
  opacity: var(--t);
  transform: translateX(calc((1 - var(--t)) * var(--from, -70px)));
}
.motion .build-copy span { --t: clamp(0, calc((var(--p, 1) - .6) * 2.4), 1); }
.motion .build li:nth-child(odd) .build-copy { --from: 70px; }
.motion .build li:nth-child(even) .build-copy { --from: -70px; }
.block-sky { overflow: clip; }

/* drifting shapes behind a band, moving and turning as you scroll (scroll.js sets --sy: how
   far the band is from the middle of the screen, in screens) */
.hero .wrap, .has-drift > .wrap { position: relative; z-index: 1; }
.has-drift { position: relative; overflow: clip; }
.drift { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dz {
  position: absolute; width: var(--sz); aspect-ratio: 1; background: var(--c);
  transform: translateY(calc(var(--sy, 0) * var(--vy, 0) * 1px)) rotate(calc(var(--sy, 0) * var(--vr, 0) * 1deg));
}
/* line drawings, all one family: swirls, square spirals, rainbows (nested arches) and fans
   (nested quarter-arcs). Thick rounded strokes; each draws itself as it comes up the screen
   (--dw, 0 to 1, from scroll.js) while it drifts and turns. Without --dw they're fully drawn. */
.dz-line { width: max(var(--sz), 64px); background: none; overflow: visible; }
.dz-rainbow { aspect-ratio: 100 / 56; }
.dz-line path, .me-shape path {
  fill: none; stroke: var(--c); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: calc((1 - var(--dw, 1)) * 100);
}

/* big words, two rows moving opposite ways as you scroll */
.marquee { overflow: clip; padding: clamp(28px, 5vw, 56px) 0; background: var(--honey); }
.mq-row {
  white-space: nowrap; font-family: var(--display); font-variation-settings: var(--soft); font-weight: 650;
  font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: 1.08; letter-spacing: -.02em; color: var(--pine);
  transform: translateX(calc(-12% + var(--sy, 0) * -22%));
}
.mq-back { color: transparent; -webkit-text-stroke: 1.5px var(--pine); transform: translateX(calc(-34% + var(--sy, 0) * 22%)); }
.mq-row .sep { display: inline-block; width: .32em; height: .32em; margin: 0 .38em; border-radius: 50%; background: var(--coral); vertical-align: .18em; }
.mq-back .sep { background: none; border: 1.5px solid var(--pine); }

/* what kirbly stands for, as you scroll: the tiles rock a little and their text follows the
   picture; the shapes round the photo drift and the photo tilts (--p and --u from scroll.js) */
.motion .pillars li { transform: rotate(calc(var(--rot) + (var(--u, .5) - .5) * 6deg)); }
.motion .pillars li:hover { transform: rotate(0deg) translateY(-4px); }
.motion .pillars p { --t: clamp(0, calc((var(--p, 1) - .45) * 2.4), 1); opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 20px)); }
.motion .me .portrait { transform: rotate(calc((var(--u, .5) - .5) * 6deg)); }
.motion .me-circle { transform: translate(calc((var(--u, .5) - .5) * 60px), calc((var(--u, .5) - .5) * -90px)) scale(calc(.6 + var(--p, 1) * .4)); }
.motion .me-half { transform: translateX(calc((var(--u, .5) - .5) * -80px)) rotate(calc((var(--u, .5) - .5) * 40deg)); }
.motion .sticker { --t: clamp(0, calc((var(--p, 1) - .6) * 3), 1); opacity: var(--t); transform: rotate(calc(-6deg - (1 - var(--t)) * 30deg)) scale(calc(.6 + var(--t) * .4)); }

/* headings: each section's title has its own entrance, driven by --h (how far it is into view,
   0 to 3; set by scroll.js). With no --h every letter is simply in place. */
.big { isolation: isolate; }
.big .fx { position: relative; display: inline-block; }
.big .word { position: relative; display: inline-block; white-space: nowrap; }
.big .ch { display: inline-block; }
.big .ch, .big .word, .big .fx { --e: calc(var(--t) * var(--t) * (3 - 2 * var(--t))); }

/* What I build: the letters fly in from all over, in the palette, and settle in ink */
.big[data-fx="scatter"] .ch {
  --t: clamp(0, calc((var(--h, 9) - var(--i) * .05) * 1.6), 1);
  transform: translate(calc((1 - var(--e)) * var(--sx) * 1px), calc((1 - var(--e)) * var(--sy) * 1px)) rotate(calc((1 - var(--e)) * var(--sr) * 1deg)) scale(calc(1 - (1 - var(--e)) * .4));
  opacity: clamp(0, calc(var(--t) * 3), 1);
  color: color-mix(in srgb, var(--lc) calc((1 - var(--e)) * 100%), currentColor);
}
/* Free tools: the two words slide in from either side, then an underline draws across */
.big[data-fx="converge"] .word {
  --t: clamp(0, calc((var(--h, 9) - var(--w) * .15) * 1.4), 1);
  transform: translateX(calc((1 - var(--e)) * (var(--w) * 2 - 1) * 45vw)) skewX(calc((1 - var(--e)) * (var(--w) * 2 - 1) * -18deg));
  opacity: clamp(0, calc(var(--t) * 2), 1);
}
.big[data-fx="converge"] .fx::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .13em; border-radius: .07em; background: var(--coral);
  transform-origin: left; transform: scaleX(clamp(0, calc((var(--h, 9) - 1.1) * 2), 1));
}
/* What kirbly stands for: the letters flip up like a split-flap board; "kirbly" goes wonky and
   gets a honey highlighter */
.big[data-fx="flip"] .word { perspective: 600px; }
.big[data-fx="flip"] .ch {
  --t: clamp(0, calc((var(--h, 9) - var(--i) * .04) * 2), 1);
  transform-origin: 50% 85%; transform: rotateX(calc((1 - var(--e)) * -100deg)) translateY(calc((1 - var(--e)) * .25em));
  opacity: clamp(0, calc(var(--t) * 2.5), 1);
}
.big .word.mark { font-variation-settings: "SOFT" 100, "WONK" 1; }
.big .word.mark::before {
  content: ""; position: absolute; z-index: -1; left: -.05em; right: -.05em; bottom: .08em; height: .4em; border-radius: .12em; background: var(--honey);
  transform-origin: left; transform: scaleX(clamp(0, calc((var(--h, 9) - 1.2) * 2), 1));
}
/* Get in touch: types itself out letter by letter with a coral cursor, then a squiggle draws.
   --k is how many letters are typed so far; the letters themselves never change shape. */
.big[data-fx="type"] .ch {
  --k: calc(var(--h, 9) * 9);
  position: relative;
  opacity: clamp(0, calc((var(--k) - var(--i)) * 4), 1);
}
.big[data-fx="type"] .ch::after {   /* the cursor, shown only after the letter being typed */
  content: ""; position: absolute; top: .14em; bottom: .1em; right: -.08em; width: .07em; border-radius: .04em; background: var(--coral);
  opacity: calc(clamp(0, calc((var(--k) - var(--i)) * 6), 1) * clamp(0, calc((var(--i) + 1 - var(--k)) * 6), 1));
}
.big .scribble { position: absolute; left: 0; bottom: -.32em; width: 100%; height: .3em; overflow: visible; }
.big .scribble path { fill: none; stroke: var(--coral); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 100; stroke-dashoffset: calc((1 - clamp(0, calc((var(--h, 9) - 1) * 1.6), 1)) * 100); }
/* Buy me a coffee: the letters drop in one by one and bounce as they land */
.big[data-fx="drop"] .ch {
  --t: clamp(0, calc((var(--h, 9) - var(--i) * .045) * 1.8), 1);
  --b: calc(1 + 2.70158 * (var(--t) - 1) * (var(--t) - 1) * (var(--t) - 1) + 1.70158 * (var(--t) - 1) * (var(--t) - 1));   /* ease out, with a bounce */
  transform: translateY(calc((1 - var(--b)) * -1.5em)) rotate(calc((1 - var(--t)) * var(--sr) * .5deg));
  opacity: clamp(0, calc(var(--t) * 4), 1);
}
