/* skinono.com · the Apothecary skin on the web.
   Teal paper with grain, big outlined words straight on the paper, every sentence on a cream label,
   ink outlines, flat offset shadows, a hand-placed lean. Tokens from design/system/tokens.json (apothecary). */

/* ---------- fonts (SIL OFL, subset, self-hosted) ---------- */
@font-face { font-family: "Lilita One"; src: url("../fonts/lilita-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat Brush"; src: url("../fonts/caveat-brush.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Amatic SC"; src: url("../fonts/amatic-sc-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Shantell Sans"; src: url("../fonts/shantell-sans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --teal: #5B8985;        /* teal paper */
  --teal-deep: #475A55;   /* lines on teal, shadows by day */
  --ink: #0B0C0C;
  --cream: #F0F2E8;
  --mint: #C2E5D0;
  --sage: #B9CFAA;
  --sea: #95C6BB;
  --blush: #F2B5B0;
  --peach: #F4B59A;       /* the lamp: the glow */
  --peeker: #DEEDDE;      /* cream with a mint tint */

  --page: var(--teal);
  --shadow: var(--teal-deep);
  --rule: var(--teal-deep);
  --on-page: var(--cream);
  --label: var(--cream);
  --on-label: var(--ink);
  --on-label-2: var(--teal-deep);
  --focus: var(--ink);

  --f-label: "Lilita One", "Arial Rounded MT Bold", "Avenir Next", system-ui, sans-serif;
  --f-script: "Caveat Brush", "Marker Felt", "Chalkboard SE", cursive;
  --f-tall: "Amatic SC", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --f-hand: "Shantell Sans", "Marker Felt", "Chalkboard SE", system-ui, sans-serif;
  --f-body: "Figtree", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --outline: 2.5px;
  --off: 5px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1.6 0 0 0 -.3 1.6 0 0 0 -.3 1.6 0 0 0 -.3 0 0 0 0 .42'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");

  --ease-out: cubic-bezier(.22, .8, .3, 1);
  --ease-spring: cubic-bezier(.3, 1.32, .55, 1);
  --ease-breath: cubic-bezier(.37, 0, .63, 1);
  color-scheme: light;
}
/* light only: the dark paper went grainy, so the site keeps the day look (D42) */

/* ---------- page ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--page);
  background-image: var(--grain);
  background-blend-mode: overlay;
  color: var(--on-page);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.wrap {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
svg { display: block; overflow: visible; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
p, h1, h2, h3, h4, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus-visible { top: 12px; }

/* ---------- type ---------- */
.big {
  font-family: var(--f-label);
  font-weight: 400;
  color: var(--on-page);
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 5px 0 var(--shadow);
  line-height: 1.02;
  letter-spacing: .005em;
  text-wrap: balance;
}
.d1 { font-size: clamp(42px, 7vw, 68px); }
.d2 { font-size: clamp(32px, 4.6vw, 44px); -webkit-text-stroke-width: 5px; }
.d3 { font-size: 28px; -webkit-text-stroke-width: 4px; text-shadow: 3px 4px 0 var(--shadow); }
.band {
  display: inline-block;
  align-self: flex-start;
  background: var(--ink);
  color: var(--cream);
  font: 800 12px/1 var(--f-body);
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 8px 10px 8px 13px;
  transform: rotate(-1.2deg);
  box-shadow: 3px 4px 0 var(--shadow);
}
.script { font-family: var(--f-script); }
.tall { font-family: var(--f-tall); font-weight: 700; }
.hand { font-family: var(--f-hand); }

/* ---------- labels: every sentence lives on one ---------- */
.label {
  background-color: var(--label);
  background-image: var(--grain);
  background-blend-mode: overlay;
  color: var(--on-label);
  border: var(--outline) solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--off) calc(var(--off) + 1px) 0 var(--shadow);
  padding: 14px 18px 15px;
  transform: rotate(var(--tilt, -.6deg));
  max-width: 64ch;
  min-width: 0;
}
.label.lede { font-size: 18px; line-height: 1.45; }
.label strong, .tag strong { font-weight: 800; }
.label a, .tag a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.label .k, .tag .k {
  font: 800 10.5px/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--on-label-2); display: block; margin-bottom: 6px;
}
.tag {
  background-color: var(--label);
  background-image: var(--grain);
  background-blend-mode: overlay;
  color: var(--on-label);
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 3px 4px 0 var(--shadow);
  padding: 9px 12px 10px;
  font-size: 14px;
  line-height: 1.45;
  transform: rotate(var(--tilt, .5deg));
  min-width: 0;
}
.t-l { --tilt: -1.4deg; } .t-r { --tilt: 1.2deg; } .t-0 { --tilt: 0deg; }

/* a sticker chip */
.chip {
  display: inline-flex; flex-direction: column; gap: 2px;
  border: 2px solid var(--ink); border-radius: 12px;
  padding: 8px 13px 9px;
  box-shadow: 3px 4px 0 var(--shadow);
  color: var(--ink);
  transform: rotate(var(--tilt, 0deg));
  background-image: var(--grain); background-blend-mode: overlay;
  text-decoration: none;
  transition: transform 150ms var(--ease-out);
}
.chip b { font: 800 15px/1.25 var(--f-body); }
.chip i { font: 400 13px/1.25 var(--f-hand); font-style: normal; }
.chip.hand-chip b { font: 500 16px/1.25 var(--f-hand); }
.c-mint { background-color: var(--mint); } .c-sage { background-color: var(--sage); } .c-sea { background-color: var(--sea); }
.c-cream { background-color: var(--cream); } .c-blush { background-color: var(--blush); } .c-peach { background-color: var(--peach); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 800 16px/1 var(--f-body);
  letter-spacing: .01em;
  padding: 15px 24px 16px;
  border-radius: 999px;
  border: var(--outline) solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  box-shadow: 4px 5px 0 var(--shadow);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
  white-space: nowrap;
}
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-outline { background-color: var(--cream); background-image: var(--grain); background-blend-mode: overlay; color: var(--ink); }
.btn:hover { transform: rotate(var(--tilt, 0deg)) translate(-1px, -1px); box-shadow: 5px 6px 0 var(--shadow); }
.btn:active { transform: rotate(var(--tilt, 0deg)) translate(2px, 3px); box-shadow: 2px 2px 0 var(--shadow); }
.btn svg { width: 22px; height: 22px; flex: none; }
.quiet {
  color: var(--on-page);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-shadow: 1px 1px 0 var(--shadow);
}
.quiet:hover { text-decoration-color: var(--peach); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta .small { font: 600 13px/1.4 var(--f-body); color: var(--on-page); text-shadow: 1px 1px 0 var(--shadow); max-width: 36ch; }
.coming { display: inline-flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.coming .chip { --tilt: -1deg; }
.coming .chip b { font-size: 16px; }

/* ---------- SVG paint (every fill reads --sh first, so a shadow copy turns solid) ---------- */
.sh { --sh: var(--shadow); }
.f-ink { fill: var(--sh, var(--ink)); }
.f-cream { fill: var(--sh, var(--cream)); }
.f-mint { fill: var(--sh, var(--mint)); }
.f-sage { fill: var(--sh, var(--sage)); }
.f-sea { fill: var(--sh, var(--sea)); }
.f-blush { fill: var(--sh, var(--blush)); }
.f-peach { fill: var(--sh, var(--peach)); }
.f-peeker { fill: var(--sh, var(--peeker)); }
.f-teal { fill: var(--sh, var(--teal)); }
.f-deep { fill: var(--sh, var(--teal-deep)); }
.f-page { fill: var(--sh, var(--page)); }
.f-shadow { fill: var(--shadow); }
.f-none { fill: none; }
.o, .o2, .o3 { stroke: var(--sh, var(--ink)); stroke-linejoin: round; stroke-linecap: round; }
.o { stroke-width: 2.5px; } .o2 { stroke-width: 2px; } .o3 { stroke-width: 3px; }
.ln, .ln2, .ln3 { fill: none; stroke: var(--sh, var(--ink)); stroke-linejoin: round; stroke-linecap: round; }
.ln { stroke-width: 2.5px; } .ln2 { stroke-width: 2px; } .ln3 { stroke-width: 3px; }
.s-cream { stroke: var(--sh, var(--cream)); }
.s-deep { stroke: var(--sh, var(--teal-deep)); }
.ff-lil { font-family: var(--f-label); }
.ff-script { font-family: var(--f-script); }
.ff-tall { font-family: var(--f-tall); font-weight: 700; }
.ff-hand { font-family: var(--f-hand); }
.ff-body { font-family: var(--f-body); }
.fw5 { font-weight: 500; } .fw6 { font-weight: 600; } .fw7 { font-weight: 700; } .fw8 { font-weight: 800; } .fw9 { font-weight: 900; }
.mid { text-anchor: middle; }
.grain { filter: url(#grain); }

/* the wordmark */
.wm text { font-family: var(--f-label); font-size: 112px; }
.wm text, .wm-ring {
  fill: var(--sh, var(--wm-fill, var(--cream)));
  stroke: var(--sh, var(--wm-line, var(--ink)));
  stroke-width: var(--wm-sw, 8px);
  paint-order: stroke fill;
  stroke-linejoin: round;
}
.wm-white { fill: var(--sh, var(--wm-eye, var(--cream))); stroke: var(--sh, var(--ink)); stroke-width: 2.5px; }
.wm-pupil { fill: var(--sh, var(--ink)); }
.wm-hi { fill: var(--sh, var(--cream)); }
.wm-spark { fill: var(--sh, var(--blush)); stroke: var(--sh, var(--ink)); stroke-width: 3px; stroke-linejoin: round; }
.wm-ink { --wm-fill: var(--ink); --wm-line: var(--ink); --wm-sw: 0px; }

/* ---------- header ---------- */
.site-head { padding-top: 18px; padding-bottom: 8px; }
.site-head .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.logo { display: inline-block; text-decoration: none; }
.logo svg { width: 164px; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.nav a:not(.btn) { color: var(--on-page); font-weight: 800; font-size: 15px; text-decoration: none; text-shadow: 1px 1px 0 var(--shadow); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--cream); }
.nav .btn { padding: 11px 18px 12px; font-size: 15px; --tilt: -1deg; }
.nav .coming .chip { padding: 7px 12px 8px; }
.nav .coming .chip b { font-size: 14px; }

/* ---------- layout ---------- */
main { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 120px); padding-block: clamp(32px, 6vw, 64px) 96px; }
.sec { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sec-head .label { max-width: 62ch; }
.grid { display: grid; gap: 28px 26px; min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cell > svg { width: 100%; height: auto; }
.cell .tag { align-self: stretch; }
.row { display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-copy .label { max-width: 46ch; }
/* the badge and the headline share the lede's width (46ch of the same 18px body font), and the headline is sized from
   what is left beside the badge, so "For hands that" always fits one line and the headline holds two */
.hero-title { display: flex; align-items: center; gap: 22px; width: 100%; max-width: 46ch; font-size: 18px; container-type: inline-size; }
.hero-title .big { margin: 0; font-size: clamp(30px, calc((100cqw - 146px) / 6.25), 68px); }
.hero-seal { width: 132px; height: 132px; flex: none; margin-left: -8px; }
.hero-stage { position: relative; width: 100%; aspect-ratio: 690 / 332; overflow: hidden; }
/* the desk scene: the clip is laid out at its own 690×332 and scaled to the stage (--k, --dx, --dy from site.js) */
.desk { position: absolute; left: 0; top: 0; width: 690px; height: 332px; transform-origin: 0 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(var(--k, 1)); }
.desk-video { display: block; width: 690px; height: 332px; background: var(--teal); }
.hero-skip { display: none; }

/* the sticker wall */
.wall { display: flex; flex-wrap: wrap; gap: 14px 12px; max-width: 900px; }
.wall .chip { --tilt: 0deg; }
.wall .chip:nth-child(3n) { --tilt: 1.4deg; } .wall .chip:nth-child(3n+1) { --tilt: -1.2deg; } .wall .chip:nth-child(4n) { --tilt: .6deg; }
.wall .chip:hover { transform: rotate(var(--tilt)) scale(1.05); }

/* the ladder */
.ladder { display: flex; flex-wrap: wrap; gap: 14px 12px; align-items: center; }
.ladder .chip b { font-family: var(--f-label); font-weight: 400; font-size: 17px; }
.ladder .chip i { font-size: 13px; }
.ladder .dot { font: 400 28px/1 var(--f-label); color: var(--on-page); text-shadow: 2px 2px 0 var(--shadow); }

/* two-up plan cards */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 26px; align-items: start; }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; max-width: none; }
.plan.free { background-color: var(--mint); --tilt: -.8deg; }
.plan.plus { background-color: var(--sea); --tilt: .9deg; }
.plan h3 { font: 400 34px/1 var(--f-label); }
.plan h3 .script { font-size: 30px; }
.plan ul { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.plan li svg { width: 20px; height: 20px; margin-top: 2px; }
.plan .fine { font-size: 13.5px; color: var(--on-label-2); font-weight: 600; }

/* the note sample */
.note { max-width: 52ch; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; --tilt: .8deg; }
.note .k { margin-bottom: 0; }
.note .hero-n { font: 400 48px/1 var(--f-label); }
.note .hero-n small { font: 600 14px/1.2 var(--f-body); color: var(--on-label-2); margin-left: 6px; }
.note .strip { display: flex; gap: 3px; align-items: flex-end; height: 44px; }
.note .strip i { flex: 1; background: var(--sea); border: 2px solid var(--ink); border-radius: 3px 3px 0 0; min-height: 6px; }
.note .strip i.hi { background: var(--peach); }
.note .axis { display: flex; justify-content: space-between; font: 700 10.5px/1 var(--f-body); color: var(--on-label-2); letter-spacing: .06em; }
.note .plain { font-family: var(--f-hand); font-size: 15px; border-top: 2px dashed var(--on-label-2); padding-top: 10px; }
.note .foot { font-size: 12.5px; color: var(--on-label-2); font-weight: 600; }

/* FAQ: native details on labels */
.faq { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.faq details { max-width: none; padding: 0; transform: rotate(0deg); }
.faq details:nth-child(odd) { --tilt: -.4deg; } .faq details:nth-child(even) { --tilt: .4deg; }
.faq details { transform: rotate(var(--tilt)); }
.faq summary {
  list-style: none; cursor: pointer;
  font: 400 21px/1.2 var(--f-label);
  padding: 14px 48px 14px 18px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq .a { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.faq summary:focus-visible { outline-offset: -4px; }

/* the privacy band: ink */
.inkband {
  background: var(--ink); color: var(--cream);
  border-radius: 10px; padding: 28px 28px 30px;
  box-shadow: 6px 7px 0 var(--shadow);
  transform: rotate(-.5deg);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 32px; align-items: center;
}
.inkband .big { color: var(--cream); -webkit-text-stroke: 0; text-shadow: none; }
.inkband .big .script { font-size: 1.15em; color: var(--blush); }
.inkband ul { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.inkband li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.inkband li svg { width: 20px; height: 20px; margin-top: 3px; }
.inkband svg.seal-art { width: 150px; height: 150px; }

/* footer */
.site-foot { padding-block: 24px 48px; display: flex; flex-direction: column; gap: 22px; }
.site-foot .row { align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot nav a { color: var(--on-page); font-weight: 700; text-decoration: none; text-shadow: 1px 1px 0 var(--shadow); border-bottom: 2px solid transparent; }
.site-foot nav a:hover { border-bottom-color: var(--cream); }
.site-foot .seal-art { width: 128px; height: 128px; flex: none; }
.site-foot .tag { max-width: 44ch; }
.site-foot .fine { font: 600 12.5px/1.5 var(--f-body); color: var(--on-page); text-shadow: 1px 1px 0 var(--shadow); max-width: 70ch; }

/* ---------- documents (privacy, support, terms): one tall label ---------- */
.doc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.doc {
  max-width: 76ch; width: 100%;
  padding: clamp(20px, 4vw, 40px) clamp(18px, 4vw, 44px) clamp(28px, 4vw, 44px);
  --tilt: 0deg;
  display: flex; flex-direction: column; gap: 14px;
  font-size: 16.5px; line-height: 1.55;
}
.doc h2 { font: 400 28px/1.1 var(--f-label); margin-top: 18px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font: 800 17px/1.3 var(--f-body); margin-top: 6px; }
.doc ul, .doc ol { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; }
.doc ul { list-style: disc; } .doc ol { list-style: decimal; }
.doc li::marker { font-weight: 800; }
.doc code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; background: var(--mint); padding: 1px 6px; border-radius: 4px; }
.doc .summary { background-color: var(--mint); border: 2px solid var(--ink); border-radius: 8px; padding: 14px 18px 16px; box-shadow: 3px 4px 0 var(--shadow); display: flex; flex-direction: column; gap: 8px; margin: 6px 0 8px; }
.doc .summary h2 { font-size: 24px; margin: 0; }
.doc .muted { color: var(--on-label-2); font-size: 15px; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.doc dt { font-weight: 800; }

/* ---------- motion ---------- */
.breathe { animation: breathe 4s var(--ease-breath) infinite alternate; }
@keyframes breathe { from { opacity: .6; } to { opacity: .9; } }
.blink { animation: blink 6s infinite; transform-box: fill-box; transform-origin: 50% 55%; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.08); } }
.peek { animation: peek 700ms var(--ease-spring) both; animation-delay: 400ms; }
@keyframes peek { from { transform: translateX(-130px); } to { transform: translateX(0); } }
.peek-later { animation-delay: 900ms; }
.hand-in { animation: handIn 500ms var(--ease-spring) both; }
@keyframes handIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.hand-in.h2 { animation-delay: 1100ms; } .hand-in.h3 { animation-delay: 1250ms; } .hand-in.h4 { animation-delay: 1400ms; }
.spark-float { animation: sparkFloat 3.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes sparkFloat { from { transform: translateY(0) rotate(0); } to { transform: translateY(-6px) rotate(12deg); } }
.caption-in { animation: captionIn 400ms var(--ease-out) both; animation-delay: 1300ms; }
@keyframes captionIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* sparkle particles on the call to action */
.sparkle-host { position: relative; display: inline-block; }
.sparkle-host .p {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; pointer-events: none; opacity: 0;
  background: var(--blush); border: 2px solid var(--ink); border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}
.sparkle-host.go .p { animation: sparkle 700ms var(--ease-out) forwards; }
@keyframes sparkle {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(45deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(135deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breathe { animation: none; opacity: .75; }
  .blink, .spark-float { animation: none; }
  .peek, .hand-in, .caption-in { animation: none; opacity: 1; transform: none; }
  .sparkle-host.go .p { animation: none; }
  .chip, .btn { transition: none; }
}

/* ---------- narrow ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { order: -1; max-width: 560px; justify-self: center; aspect-ratio: 4 / 3; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inkband { grid-template-columns: minmax(0, 1fr); }
  .inkband svg.seal-art { display: none; }
}
@media (max-width: 640px) {
  .g2, .g3, .plans { grid-template-columns: minmax(0, 1fr); }
  .big.d1 { -webkit-text-stroke-width: 5px; text-shadow: 3px 4px 0 var(--shadow); }
  .big.d2 { -webkit-text-stroke-width: 4.5px; }
  .label { padding: 12px 15px 13px; }
  .label.lede { font-size: 17px; }
  .logo svg { width: 132px; }
  .nav { gap: 6px 16px; }
  .btn { white-space: normal; text-align: center; }
  .site-foot .seal-art { width: 100px; height: 100px; }
}

/* ---------- the rebuilt home page (2026-10-23) ---------- */
.permission { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 26px; align-items: start; }
.permission .label { max-width: none; font-size: 16.5px; line-height: 1.5; }
.permission .label .k { margin-bottom: 8px; font-size: 11.5px; }
.sources { max-width: 70ch; font-size: 13.5px; }
.sources .k { margin-bottom: 4px; }
.faq .label.lede { max-width: 62ch; }
.doc-head .label.lede { max-width: 62ch; }
.faq details.label[open] summary { padding-bottom: 8px; }
@media (max-width: 720px) {
  .permission { grid-template-columns: minmax(0, 1fr); }
  .hero-title { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-title .big { font-size: clamp(34px, calc(100cqw / 6.7), 68px); }
  .hero-seal { width: 108px; height: 108px; margin: -8px 0 -6px -4px; }
  .hero { gap: 28px; }
}

/* the laptop screen: a flat 216×150 overlay mapped onto the clip's screen with one perspective matrix (corners in art/desk/README.md) */
.desk-screen { position: absolute; left: 0; top: 0; width: 216px; height: 150px; overflow: hidden; border-radius: 2px; transform-origin: 0 0; transform: matrix3d(0.559116, 0.155676, 0, -0.000245604, -0.071885, 0.691311, 0, 0.0000903419, 0, 0, 1, 0, 321, 55, 0, 1); }
.desk-ui { display: block; width: 100%; height: 100%; }
.du-row3, .du-row4 { opacity: 0; transform: translateY(5px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.desk.is-row3 .du-row3, .desk.is-row4 .du-row4 { opacity: 1; transform: none; }
.du-dots { opacity: 0; }
.desk.is-dots .du-dots { opacity: 1; }
.desk.is-dots .du-dots circle { animation: dDot 900ms ease-in-out infinite; }
.desk.is-dots .du-dots circle:nth-child(2) { animation-delay: 150ms; } .desk.is-dots .du-dots circle:nth-child(3) { animation-delay: 300ms; }
.du-caret { animation: dCaret 1s steps(1) infinite; }
.du-peeker { transform: translateX(-120px); transition: transform 520ms var(--ease-spring); }
.desk.is-peek .du-peeker { transform: none; }
.du-chime { opacity: 0; }
.desk.is-chime .du-chime { animation: dChime 350ms linear 2; }
.du-chat { transition: filter 500ms var(--ease-out), opacity 500ms var(--ease-out); }
.desk.is-soft .du-chat { filter: blur(5px); opacity: .35; }
.desk-spark { position: absolute; left: 292px; top: 75px; width: 34px; height: 34px; opacity: 0; }
.desk.is-spark .desk-spark { animation: dSpark 600ms var(--ease-out) forwards; }
@keyframes dDot { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-2.5px); opacity: 1; } }
@keyframes dCaret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes dChime { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes dSpark { 0% { opacity: 0; transform: scale(.3) rotate(0); } 35% { opacity: 1; transform: scale(1.15) rotate(20deg); } 70% { opacity: 1; transform: scale(1) rotate(40deg); } 100% { opacity: 0; transform: scale(.4) rotate(60deg); } }

/* the intro: the scene takes the fold for one loop, then shrinks into its slot and the copy comes in */
html.intro .hero-copy { opacity: 0; transform: translateX(-14px); }
html.intro-done .hero-copy { transition: opacity 600ms 450ms var(--ease-out), transform 600ms 450ms var(--ease-out); }
html.intro .hero-stage { z-index: 2; transform-origin: 0 0; }
.hero { min-height: 0; }
html.intro .hero { min-height: calc(100svh - 150px); }
html.intro-done .hero { transition: min-height 900ms var(--ease-out); }
html.intro-done .hero-stage { transition: transform 900ms var(--ease-out); }
html.intro .hero-skip {
  display: block; position: absolute; right: 2%; bottom: 2%;
  font: 700 calc(14px / var(--s, 1)) / 1 var(--f-body); color: var(--on-page); background: none; border: 0; padding: 6px 8px; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-shadow: 1px 1px 0 var(--shadow);
}
html.intro .hero-skip:hover { text-decoration-color: var(--peach); }
html.intro .hero-skip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Reduced Motion: the clip never plays; it holds one still (hand on the scalp, from site.js) with the Peeker in and the window softened */
@media (prefers-reduced-motion: reduce) {
  .du-row3, .du-row4, .du-dots circle, .du-caret, .du-peeker, .du-chat, .desk-spark { transition: none; animation: none; }
  html.intro-done .hero-copy, html.intro-done .hero-stage, html.intro-done .hero { transition: none; }
}
