@font-face {
  font-family: "Funnel Display";
  src: url(fonts/funnel-display.woff2) format("woff2");
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: "Funnel Sans";
  src: url(fonts/funnel-sans.woff2) format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url(fonts/caveat.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --hand: "Caveat", "Bradley Hand", cursive;
  --paper: #f2f4f8;
  --ink: #18181b;
  --ink-2: #27272a;
  --blue: #3b82f6;
  --text: #fafafa;
  --muted: #a1a1aa;
  --dim: #52525b;
  --line: rgba(255, 255, 255, 0.14);
  --display: "Funnel Display", system-ui, sans-serif;
  --sans: "Funnel Sans", system-ui, sans-serif;
  --pad: clamp(20px, 4.5vw, 72px);
  --spring: cubic-bezier(0.3, 1.6, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  overflow: clip;
}
/* once the tour has slid over it, the hero is taken out so it cannot show behind what follows */
.hero.covered { visibility: hidden; }
.hero-in {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4.2vh, 52px);
  padding: clamp(24px, 4vh, 56px) var(--pad) clamp(84px, 11vh, 116px);
  position: relative;
}
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-icon { width: clamp(56px, 8.5vh, 92px); height: auto; flex: none; border-radius: 22%; box-shadow: 0 10px 30px rgba(24, 24, 27, 0.22); overflow: visible; }
.js .hero-icon:not(.go) { visibility: hidden; }
/* the blue dot is the marker: it keeps sending out a ring */
.hero-icon-ring { fill: none; stroke: var(--blue); stroke-width: 5; transform-origin: 90px 92px; animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { scale: 1; opacity: 0.9; } to { scale: 2.5; opacity: 0; } }
.hero h1 {
  width: fit-content;
  font: 700 clamp(3rem, min(13.2vw, 20.5vh), 14rem)/0.9 var(--display);
  letter-spacing: -0.035em;
  padding-bottom: 0.1em;
  text-align: center;
}
.hero h1 .line, .hero h1 .line > span { display: block; white-space: nowrap; }
/* each letter falls in on its own (fx.js) */
.ch { display: inline-block; font-weight: inherit; will-change: translate; }
.js .hero h1:not(.split) .line, .js .hero h1 .ch:not(.go) { visibility: hidden; }

.pitch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 34rem));
  justify-content: center;
  gap: clamp(36px, 6vw, 104px);
  text-align: center;
}
.pitch h2 {
  font: 600 clamp(1.3rem, 2.1vw, 1.9rem)/1.15 var(--display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.pitch h2 + p { margin: 0.7em auto 0; color: var(--dim); font-size: clamp(1rem, 1.25vw, 1.2rem); max-width: 34em; }
.pitch h2, .pitch h2 + p { transition: opacity 0.8s, transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1); }
.pitch h2 + p { transition-delay: 0.18s; }
.js .pitch section:not(.show) > h2, .js .pitch section:not(.show) > h2 + p { opacity: 0; transform: translateY(16px); }

/* hand-drawn labels: which block is the problem and which is the answer */
.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  margin-bottom: 0.7em;
  font: 700 clamp(1.8rem, 2.7vw, 2.7rem)/1 var(--hand);
  rotate: -3deg;
}
.tag-problem { color: #d6333a; }
.tag-solution { color: #1c8a55; rotate: 2.5deg; }
.tag svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tag-icon { width: 0.72em; height: 0.72em; }
.tag-line { position: absolute; left: 0; top: 100%; width: 100%; height: auto; stroke-width: 1.7; }
.tag-arrow { position: absolute; left: 100%; top: 0.3em; width: 1.45em; height: 1.35em; margin-left: 0.3em; }
.tag path { stroke-dasharray: 1 1.3; transition: stroke-dashoffset 0.45s ease; }
.tag span { transition: opacity 0.4s, translate 0.5s var(--spring); }
.tag-icon path + path { transition-delay: 0.14s; }
.tag span { transition-delay: 0.1s; }
.tag-line path { transition-delay: 0.38s; }
.tag-arrow path { transition-delay: 0.66s; }
.tag-arrow path + path { transition-delay: 0.92s; transition-duration: 0.25s; }
.js .pitch section:not(.told) .tag path { stroke-dashoffset: 1.15; }
.js .pitch section:not(.told) .tag svg { visibility: hidden; }
.js .pitch section:not(.told) .tag span { opacity: 0; translate: 0 8px; }

/* bottom centre: says there is more below, and shows only while the page is waiting for a scroll */
.cue {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 1px;
  translate: -50% 0;
  color: var(--ink);
  font: 700 1.55rem/1 var(--hand);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, color 0.3s;
}
.cue.on { opacity: 1; transition-delay: 0.3s, 0s; }
.cue.dark { color: var(--text); }
.cue svg { width: 19px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.3s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 6px; } }

/* the three blocks are marked the way the extension marks elements on a page */
.mark { position: relative; }
.mark::before {
  content: "";
  position: absolute;
  inset: -12px -14px;
  border-radius: 6px;
  outline: 2px solid var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
.mark.is-hover::before, .mark:hover::before { opacity: 1; }
.pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent, var(--blue));
  color: #fff;
  font: 600 11px/1 system-ui, sans-serif;
  font-style: normal;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.mark > .pin {
  top: -23px;
  right: -25px;
}
.js .mark:not(.is-marked) > .pin { visibility: hidden; }
.pin.loose { margin: -11px 0 0 -11px; z-index: 2; pointer-events: none; }
.mark > .pin, .pin.n { transition: rotate 0.3s var(--spring), scale 0.3s var(--spring); }
.mark:hover > .pin { rotate: -14deg; scale: 1.15; }
.hero h1 > .pin { width: 34px; height: 34px; font-size: 16px; top: -29px; right: -31px; }

.pointer {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  margin: -3px 0 0 -5px;
  fill: var(--ink);
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  will-change: transform;
}
.hero-pointer {
  width: 34px;
  height: 34px;
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.3s;
}
.hero-pointer path { transition: scale 0.12s; transform-origin: 5px 3px; }
.hero-pointer.down path { scale: 0.82; }

/* ---------- tour ---------- */

.tour {
  position: relative;
  z-index: 2;
  height: calc(var(--beats, 13) * 135vh + 100vh);
  background: var(--ink);
  color: var(--text);
  border-radius: clamp(18px, 3vw, 40px);
}
.tour-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(20px, 5vh, 56px) var(--pad) max(66px, 5vh);
  overflow: clip;
}

.steps { display: grid; align-items: center; }
.step {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.45s, transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: none;
}
.step.before { transform: translateY(-28px); }
.step.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.3s; }
.step h3 {
  font: 600 clamp(1.5rem, 2.7vw, 2.75rem)/1.05 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.step p { margin-top: 0.8em; color: var(--muted); font-size: clamp(0.95rem, 1.2vw, 1.15rem); max-width: 30em; }

.screen {
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  transform: translateY(calc((1 - var(--enter, 1)) * 90px)) scale(calc(0.86 + 0.14 * var(--enter, 1)));
}
.fit { position: relative; }
/* the first step: everything but the extension icon dims, and a note points at it */
.shade { position: absolute; inset: 0; z-index: 2; border-radius: 12px; background: rgba(24, 24, 27, 0.5); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.browser.spot .shade { opacity: 1; }
.browser.spot .ext { z-index: 3; scale: 1.75; background: #fff; box-shadow: 0 0 0 3px var(--blue), 0 6px 18px rgba(0, 0, 0, 0.4); }
.browser.spot .ext.down { scale: 1.5; }
.browser.spot .ext::before, .browser.spot .ext::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--blue); animation: ring 1.8s ease-out infinite; }
.browser.spot .ext::after { animation-delay: 0.9s; }
.note { position: absolute; right: 12px; bottom: calc(100% + 4px); z-index: 3; display: flex; align-items: flex-start; gap: 0.3em; margin: 0; color: var(--text); font: 700 clamp(1.4rem, 2vw, 2rem)/1 var(--hand); rotate: -2deg; opacity: 0; translate: 0 8px; transition: opacity 0.4s, translate 0.5s var(--spring); pointer-events: none; }
.note.on { opacity: 1; translate: 0 0; }
.note svg { width: 1.3em; height: 1.2em; margin-top: 0.25em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.browser {
  position: absolute;
  left: 0;
  top: 0;
  width: 660px;
  transform-origin: 0 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #18181b;
  text-align: left;
}
.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px 0 14px;
  border-radius: 12px 12px 0 0;
  background: #e4e7ec;
}
.url { flex: 1; height: 24px; padding: 0 12px; border-radius: 12px; background: #fff; color: #52525b; font-size: 12px; line-height: 24px; }
.ext { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; transition: background 0.15s, scale 0.3s var(--spring), box-shadow 0.3s; }
.ext svg { width: 18px; height: 18px; display: block; }
.ext.hot { background: #cfd5df; }
.ext.down { scale: 0.86; }
.vp { position: relative; isolation: isolate; height: 460px; overflow: hidden; border-radius: 0 0 12px 12px; background: #fff; }

/* the page being annotated */
.s-nav { display: flex; align-items: center; gap: 18px; height: 40px; padding: 0 20px; border-bottom: 1px solid #e4e4e7; color: #52525b; }
.s-nav b { margin-right: 6px; color: #18181b; font-size: 14px; }
.s-cart { margin-left: auto; }
.s-body { padding: 18px 20px; }
.s-h { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.s-intro { margin: 6px 0 16px; color: #3f3f46; }
.s-intro span { white-space: nowrap; }
.s-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.s-card { position: relative; display: grid; gap: 2px; padding: 12px; border: 1px solid #d4d4d8; border-radius: 8px; }
.s-card b { font-size: 14px; }
.s-card span { color: #52525b; }
.s-plant { width: 64px; height: 56px; margin-bottom: 6px; }
.sway { transform-origin: 32px 40px; animation: sway 2.6s ease-in-out infinite alternate; }
.s-card:nth-child(2) .sway { animation-duration: 3.1s; }
.s-card:nth-child(3) .sway { animation-duration: 2.2s; }
@keyframes sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.s-badge { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; }
.s-badge svg { grid-area: 1 / 1; width: 40px; height: 40px; fill: #f59e0b; animation: spin 5s linear infinite; }
.s-badge em { grid-area: 1 / 1; z-index: 1; color: #18181b; font: 700 10px/1 system-ui, sans-serif; font-style: normal; }
@keyframes spin { to { transform: rotate(360deg); } }
.site.paused .sway, .site.paused .s-badge svg { animation-play-state: paused; }
.s-pay { display: flex; gap: 8px; margin-top: 16px; }
.s-btn { height: 32px; padding: 0 14px; border: 1px solid #a1a1aa; border-radius: 6px; background: #fff; font-weight: 500; line-height: 30px; }
.s-btn.primary { border-color: #18181b; background: #18181b; color: #fff; }

/* the extension's own interface, with the values from extension/content/styles.js */
.ui { --accent: #3b82f6; --group: #30a46c; z-index: 4; position: absolute; left: 0; right: 0; top: 38px; bottom: 0; color: var(--text); pointer-events: none; }
.ui > * { position: absolute; left: 0; top: 0; }
.ui [hidden] { display: none !important; }
.box { border-radius: 3px; opacity: 0; }
.box.hover { outline: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.box.hover.sel { background: none; }
.box.area { outline: 2px dashed var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.box.text { background: color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 2px; }
.box.ghost { outline: 2px dashed var(--muted); }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.label { padding: 2px 6px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; }
.ui > .pin { margin: -11px 0 0 -11px; opacity: 0; }

.popup, .settings, .review {
  width: 320px;
  padding: 10px;
  border-radius: 10px;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
}
.popup-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popup-quote { margin-top: 4px; padding-left: 8px; border-left: 2px solid var(--accent); color: var(--muted); }
.field { height: 72px; margin: 8px 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2); }
.popup .field { outline: 2px solid var(--accent); outline-offset: 1px; }
.field.auto { height: auto; min-height: 52px; }
.field.ph { color: var(--muted); }
.caret { display: inline-block; width: 1px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: var(--text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.row { display: flex; align-items: center; gap: 6px; }
.row + .row { margin-top: 8px; }
.grow { flex: 1; min-width: 0; }
.select {
  height: 28px;
  padding: 0 24px 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink-2) no-repeat;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-size: 4px 4px;
  background-position: right 12px center, right 8px center;
  color: var(--muted);
  line-height: 26px;
  white-space: nowrap;
}
.select.on { color: var(--text); }
.select.hot { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2); color: var(--text); line-height: 26px; white-space: nowrap; }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.primary.down { filter: brightness(0.8); scale: 0.95; }
.shot-row { display: flex; align-items: center; gap: 8px; height: 60px; margin-bottom: 8px; }
.shot-thumb { display: grid; place-items: center; width: 96px; height: 60px; flex: none; border-radius: 6px; background: var(--ink-2); }
.thumb { display: flex; gap: 4%; padding: 8% 5%; border-radius: 4px; background: #fff; }
.thumb i { flex: 1; border: 1px solid #d4d4d8; border-radius: 3px; background: linear-gradient(#46b983, #46b983) 18% 30% / 30% 34% no-repeat; }
.thumb.mini { width: 84px; height: 40px; }
.thumb.wide { width: 100%; height: 92px; margin-top: 8px; padding: 12px 10px; }
.check { flex: none; width: 13px; height: 13px; border: 1px solid #71717a; border-radius: 3px; background: var(--ink-2); }
.check.on { border-color: transparent; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }

.settings { width: 300px; }
.settings .row { gap: 8px; }
.swatches { display: flex; gap: 6px; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; background-clip: padding-box; }
.swatch.on { border-color: #fff; }

.review { display: flex; flex-direction: column; width: 420px; max-width: calc(100% - 16px); }
.review-title { font-weight: 600; }
.review-body { flex: 1; min-height: 0; margin: 8px 0; overflow: hidden; }
.item { padding: 10px 0; border-top: 1px solid var(--line); }
.item-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.num { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: var(--accent); color: #fff; font: 600 11px/1 system-ui, sans-serif; }
.preview { padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2); font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-note { color: var(--muted); }

.toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform-origin: 100% 100%;
}
.tool {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text);
  transition: transform 0.38s var(--spring), background 0.15s, box-shadow 0.2s, color 0.15s;
}
.tool.sm { position: static; }
.tool.on { background: var(--accent); color: #fff; }
.tool.off { color: #52525b; }
.tool svg, .grip svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool svg[hidden] { display: none; }
.tool.confirm { background: #b42318; color: #fff; }
.tool.copy-btn:not(.off) { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 7px 0 color-mix(in srgb, var(--accent) 55%, transparent); }
.tool.review-btn { display: flex; align-items: center; gap: 6px; width: auto; padding: 0 7px 0 10px; margin: 0 2px; background: #fafafa; color: #18181b; font-weight: 600; }
.tool.review-btn.off { background: none; color: #52525b; font-weight: 400; }
.review-label { white-space: nowrap; }
.count { flex: none; width: 30px; height: 18px; border-radius: 9px; background: #18181b; color: #fafafa; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 18px; text-align: center; }
.count.none { visibility: hidden; }
.grip { display: grid; place-items: center; width: 18px; height: 32px; border-radius: 6px; color: var(--muted); transition: transform 0.38s var(--spring), background 0.15s, box-shadow 0.2s; }
.grip svg { width: 14px; height: 14px; stroke-width: 3; }
.sep { width: 1px; height: 18px; margin: 0 3px; background: var(--line); }

/* the button the current step is about lifts out of the toolbar */
.tool.pop, .grip.pop {
  z-index: 2;
  transform: translateY(-30px) scale(1.4);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.tool.pop:not(.on):not(.confirm):not(.review-btn), .grip.pop { background: var(--ink-2); }
.tool.review-btn.pop { transform: translateY(-30px) scale(1.2); }
.tool.review-btn.off.pop { background: var(--ink-2); }
.tool.copy-btn.pop:not(.off) { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 12px 1px color-mix(in srgb, var(--accent) 70%, transparent), 0 10px 22px rgba(0, 0, 0, 0.55); }
.tool.down, .grip.down { transition-duration: 0.1s; filter: brightness(1.35); }

.hint {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
}
.hint kbd { min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px; background: var(--ink-2); border: 1px solid var(--line); color: var(--muted); font: 11px/16px ui-monospace, Menlo, monospace; text-align: center; }
.hint [hidden] { display: none; }
.ui .pointer path { transition: scale 0.1s; transform-origin: 5px 3px; }
.ui .pointer.down path { scale: 0.82; }

.agent {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #0d0d0f;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  color: #d4d4d8;
  opacity: 0;
}
/* a dotted line runs round the prompt, the dots moving along it */
.agent-dots { position: absolute; left: -7px; top: -7px; width: calc(100% + 14px); height: calc(100% + 14px); overflow: visible; fill: none; stroke: #8ab4ff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0.1 9; animation: dots 0.9s linear infinite; pointer-events: none; }
@keyframes dots { to { stroke-dashoffset: -9.1; } }
.agent-bar { flex: none; height: 32px; padding: 0 14px; border-radius: 12px 12px 0 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: var(--muted); font-size: 12px; line-height: 32px; }
.agent-body { flex: 1; min-height: 0; overflow: hidden; padding: 12px 14px; mask-image: linear-gradient(#000 82%, transparent); }
.agent-text { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
/* the prompt types itself: lines already typed, the line being typed with its caret, and the rest not there yet */
.agent-text div { position: relative; min-height: 1.5em; opacity: 0; }
.agent-text div.in { opacity: 1; }
.agent-text div.typing { opacity: 1; clip-path: inset(0 max(0px, calc(100% - (var(--n) + 1) * 1ch)) 0 0); }
.agent-text div.typing::after { content: ""; position: absolute; left: min(calc(var(--n) * 1ch), calc(100% - 1ch)); top: 0.15em; width: 1ch; height: 1.2em; background: #8ab4ff; }
.agent-text .h { color: #fff; font-weight: 700; }
.agent-text .k { color: #8ab4ff; }
.agent-text .say { color: #fff; }

/* ---------- end ---------- */

.end {
  position: relative;
  z-index: 2;
  background: var(--paper);
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: var(--pad);
}
.maker {
  position: relative;
  display: grid;
  gap: 0.15em;
  padding: 0.55em 0.9em 0.6em;
  border-radius: 0.42em;
  background: var(--ink);
  color: var(--text);
  font: 700 clamp(1.9rem, 6.4vw, 6rem)/1 var(--display);
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: transform 0.35s var(--spring), background 0.2s;
}
.maker-url { color: var(--muted); font: 500 0.32em/1.2 var(--sans); letter-spacing: 0; }
.maker::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: calc(0.42em + 6px);
  outline: 2px solid var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  opacity: 0;
  transition: opacity 0.18s;
}
.js .maker:not(.in) { opacity: 0; transform: translateY(48px) scale(0.86); }
.maker { transition: transform 0.6s var(--spring), opacity 0.4s, background 0.2s; }
.maker:hover { transform: scale(1.03); }
.maker:hover::after { opacity: 1; }
.maker:active { transform: scale(0.98); }
.maker:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }

.end { align-content: center; gap: 72px; }
.end-links { display: flex; gap: 28px; }
.end-links a { color: var(--dim); font: 500 1rem/1.2 var(--sans); }
.end-links a:hover { color: var(--ink); }

/* ---------- text pages: privacy, support ---------- */

.doc { max-width: 44rem; margin: 0 auto; padding: clamp(28px, 6vh, 72px) var(--pad) clamp(48px, 10vh, 120px); }
.doc-nav { display: flex; gap: 24px; }
.doc-nav a { color: var(--dim); font-weight: 500; text-decoration: none; }
.doc-nav a:hover { color: var(--ink); text-decoration: underline; }
.doc h1 { margin: 1.2em 0 0.2em; font: 700 clamp(2rem, 5vw, 3.25rem)/1.05 var(--display); letter-spacing: -0.03em; }
.doc h2 { margin: 2.2em 0 0.5em; font: 700 1.35rem/1.2 var(--display); letter-spacing: -0.01em; }
.doc h3 { margin: 1.6em 0 0.3em; font: 700 1.0625rem/1.35 var(--sans); }
.doc p, .doc li { max-width: 68ch; }
.doc p { margin: 0.6em 0; }
.doc ul { margin: 0.5em 0; padding-left: 1.2em; }
.doc li { margin: 0.45em 0; }
.doc .date { color: var(--dim); }
.doc a { color: inherit; }
.doc code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.doc kbd { padding: 0.05em 0.4em; border: 1px solid var(--muted); border-radius: 4px; font: 500 0.9em var(--sans); }

/* ---------- narrow ---------- */

@media (max-width: 860px) {
  .pitch { grid-template-columns: 1fr; }
  .tour-pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding: 18px 16px 62px; align-items: start; }
  .tag-arrow { display: none; }
  .hero-in { justify-content: flex-start; }
  .steps { min-height: 12.5rem; align-items: start; }
  .step p { margin-top: 0.55em; }
  .mark::before { inset: -8px -10px; }
  .mark > .pin { top: -19px; right: -6px; }
  .hero h1 > .pin { width: 26px; height: 26px; font-size: 13px; top: -21px; right: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero h1 .line > span, .js .pitch section > h2, .js .pitch section > h2 + p { opacity: 1; transform: none; transition: none; }
  .tag path, .tag span { transition: none; }
  .cue svg { animation: none; }
  .js .maker { opacity: 1; transform: none; }
  .screen { transform: none; }
  .mark > .pin { transition: none; }
  .hero-in { transform: none; }
  .step, .tool, .grip, .agent-text div, .maker { transition-duration: 0.01s; }
  .sway, .s-badge svg, .caret { animation: none; }
}

/* ---------- two steps, and what the agent gets ---------- */

.how, .why { position: relative; z-index: 1; padding: clamp(64px, 13vh, 150px) var(--pad); }
.why { padding-top: clamp(16px, 4vh, 48px); }
.big {
  max-width: 15em;
  margin: 0 auto;
  font: 700 clamp(2.1rem, 5.4vw, 4.75rem)/1 var(--display);
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}
.js .big { transition: opacity 0.8s, transform 0.9s cubic-bezier(0.2, 0.9, 0.2, 1); }
.js .big:not(.in) { opacity: 0; transform: translateY(40px) scale(0.96); }

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px);
  max-width: 76rem;
  margin: clamp(40px, 8vh, 88px) auto 0;
  padding: 0;
  list-style: none;
}
/* the step numbers are the extension's own markers, and fall into place (fx.js) */
.pin.n { position: static; width: 46px; height: 46px; border-width: 3px; font-size: 21px; }
.js .two li:not(.in) .pin.n { visibility: hidden; }
.two li:hover .pin.n { rotate: -14deg; scale: 1.12; }
.two h3 { margin-top: 0.7em; font: 600 clamp(1.4rem, 2.3vw, 2.1rem)/1.12 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.two p { margin-top: 0.6em; color: var(--dim); font-size: clamp(1rem, 1.2vw, 1.15rem); max-width: 32em; }
.js .two h3, .js .two li > p, .js .two .scene { transition: opacity 0.7s, transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1); }
.js .two li > p { transition-delay: 0.14s; }
.js .two .scene { transition-delay: 0.28s; }
.js .two li + li h3 { transition-delay: 0.2s; }
.js .two li + li > p { transition-delay: 0.34s; }
.js .two li + li .scene { transition-delay: 0.48s; }
.js .two li:not(.in) h3, .js .two li:not(.in) > p, .js .two li:not(.in) .scene { opacity: 0; transform: translateY(26px); }

/* a small looping picture of each step */
.scene {
  position: relative;
  height: 236px;
  margin-top: 1.6em;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(24, 24, 27, 0.06), 0 18px 40px rgba(24, 24, 27, 0.1);
  overflow: hidden;
  font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #18181b;
}
.scene * { animation-duration: 7s; animation-iteration-count: infinite; animation-play-state: paused; }
li.in .scene * { animation-play-state: running; }
.scene > * { position: absolute; }
@media (min-width: 861px) {
  .scene { height: 320px; }
  .scene > * { zoom: 1.4; }
}
.sc-btn { left: 30px; top: 34px; width: 90px; height: 36px; border-radius: 7px; background: #18181b; color: #fff; font-weight: 500; line-height: 36px; text-align: center; }
.sc-box { left: 26px; top: 30px; width: 98px; height: 44px; border-radius: 4px; outline: 2px solid var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); animation-name: sc-box; }
.sc-pop { left: 30px; top: 90px; width: 250px; max-width: calc(100% - 60px); padding: 10px; border-radius: 10px; background: var(--ink); color: var(--text); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); transform-origin: 20px 0; animation-name: sc-pop; }
.sc-pop b { display: block; font-weight: 600; }
.sc-pop i { display: block; height: 46px; margin-top: 8px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink-2); outline: 2px solid var(--blue); outline-offset: 1px; font-style: normal; }
.sc-pop em { display: inline-block; font-style: normal; animation-name: sc-type; animation-timing-function: steps(15); }
.sc-pin { left: 120px; top: 34px; margin: -11px 0 0 -11px; animation-name: sc-pin; }
.scene .sc-ptr { animation-name: sc-ptr; }
.scene .sc-ptr path { transform-origin: 5px 3px; animation-name: sc-click; }
@keyframes sc-ptr { 0% { transform: translate(250px, 200px); } 14%, 100% { transform: translate(76px, 56px); } }
@keyframes sc-click { 0%, 17%, 23%, 100% { scale: 1; } 20% { scale: 0.78; } }
@keyframes sc-box { 0%, 12% { opacity: 0; } 15%, 95% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes sc-pop { 0%, 21% { opacity: 0; scale: 0.9; } 25%, 74% { opacity: 1; scale: 1; } 78%, 100% { opacity: 0; scale: 0.95; } }
@keyframes sc-type { 0%, 29% { clip-path: inset(0 100% 0 0); } 60%, 100% { clip-path: inset(0 0 0 0); } }
/* the marker falls and bounces: each fall speeds up, each rise slows down */
@keyframes sc-pin {
  0%, 79% { opacity: 0; translate: 0 -90px; }
  80% { opacity: 1; translate: 0 -90px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  85% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  88% { translate: 0 -20px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  91% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  93% { translate: 0 -6px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  95%, 97% { opacity: 1; translate: 0 0; }
  100% { opacity: 0; translate: 0 0; }
}

.sc-bar { left: 30px; top: 28px; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ink); color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.sc-copy { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 7px 0 color-mix(in srgb, var(--blue) 55%, transparent); animation-name: sc-press; }
.sc-copy svg { grid-area: 1 / 1; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-copy svg[hidden] { display: block; }
.sc-copy svg[data-icon="copy"] { animation-name: sc-out; }
.sc-copy svg[data-icon="check"] { animation-name: sc-in; }
.sc-bar b { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 7px 0 10px; border-radius: 8px; background: #fafafa; color: #18181b; font-weight: 600; }
.sc-bar em { width: 30px; height: 18px; border-radius: 9px; background: #18181b; color: #fafafa; font: 600 11px/18px system-ui, sans-serif; text-align: center; }
.sc-term { left: 30px; right: 30px; top: 86px; bottom: 24px; padding: 12px 14px; border-radius: 10px; background: #0d0d0f; color: #d4d4d8; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; }
.sc-term u { display: block; overflow: hidden; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; animation-name: sc-l1; }
.sc-term u:first-child { color: #fff; font-weight: 700; }
.sc-term u:nth-child(2) { animation-name: sc-l2; }
.sc-term u:nth-child(3) { animation-name: sc-l3; }
.sc-term u:nth-child(4) { animation-name: sc-l4; }
.scene-copy .sc-ptr { animation-name: sc-ptr2; }
.scene-copy .sc-ptr path { animation-name: sc-click2; }
@keyframes sc-ptr2 { 0% { transform: translate(240px, 190px); } 16%, 100% { transform: translate(48px, 46px); } }
@keyframes sc-click2 { 0%, 19%, 25%, 100% { scale: 1; } 22% { scale: 0.78; } }
@keyframes sc-press { 0%, 20%, 26%, 100% { scale: 1; } 23% { scale: 0.86; } }
@keyframes sc-out { 0%, 22% { opacity: 1; } 24%, 94% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes sc-in { 0%, 22% { opacity: 0; } 24%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes sc-l1 { 0%, 33% { opacity: 0; translate: 0 8px; } 38%, 93% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; } }
@keyframes sc-l2 { 0%, 42% { opacity: 0; translate: 0 8px; } 47%, 93% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; } }
@keyframes sc-l3 { 0%, 51% { opacity: 0; translate: 0 8px; } 56%, 93% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; } }
@keyframes sc-l4 { 0%, 60% { opacity: 0; translate: 0 8px; } 65%, 93% { opacity: 1; translate: 0 0; } 98%, 100% { opacity: 0; } }

.why .big { margin-bottom: clamp(36px, 7vh, 80px); }
.gain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(20px, 5vw, 80px);
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(26px, 5vh, 52px) 0;
  border-top: 1px solid rgba(24, 24, 27, 0.12);
}
.gain h3 { font: 600 clamp(1.6rem, 3.2vw, 3rem)/1.08 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.gain p { margin-top: 0.6em; color: var(--dim); font-size: clamp(1rem, 1.2vw, 1.15rem); max-width: 32em; }
/* the main words are picked out the way the extension shows selected text */
mark {
  margin: 0 -0.1em;
  padding: 0 0.1em;
  border-radius: 0.14em;
  background: linear-gradient(rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.3)) no-repeat 0 50% / 100% 100%;
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.js .gain mark { transition: background-size 0.7s cubic-bezier(0.3, 0.7, 0.2, 1) 0.4s; }
.js .gain:not(.in) mark { background-size: 0% 100%; }
.proof {
  display: block;
  padding: 18px 20px;
  border-radius: 12px;
  background: #0d0d0f;
  box-shadow: 0 18px 40px rgba(24, 24, 27, 0.16);
  color: #8ab4ff;
  font: clamp(0.8rem, 1.12vw, 1.05rem)/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}
.proof mark { background-image: linear-gradient(rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.6)); color: #fff; }
.js .gain .proof mark { transition-delay: 1.15s; }
.js .gain > div { transition: opacity 0.7s, transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1); }
.js .gain:not(.in) > div { opacity: 0; transform: translateY(26px); }
.js .gain .proof { transition: clip-path 0.85s steps(30) 0.3s; }
.js .gain:not(.in) .proof { clip-path: inset(0 100% 0 0); }

@media (max-width: 860px) {
  .two, .gain { grid-template-columns: 1fr; }
  .note { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .big, .js .two h3, .js .two li > p, .js .two .scene, .js .gain > div, .js .gain .proof, .js .gain mark { transition: none; }
  .scene *, .hero-icon-ring, .browser.spot .ext::before, .browser.spot .ext::after { animation: none; }
  .hero-icon-ring, .browser.spot .ext::before, .browser.spot .ext::after { display: none; }
}

/* ---------- several screenshots ---------- */

.shots, .map { position: relative; z-index: 1; padding: clamp(40px, 9vh, 110px) var(--pad) clamp(64px, 13vh, 150px); }
.shots-in {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  max-width: 76rem;
  margin: clamp(40px, 8vh, 88px) auto 0;
}
.trio { display: grid; gap: clamp(22px, 4vh, 40px); margin: 0; padding: 0; list-style: none; }
.trio li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; }
.trio .pin.n { width: 40px; height: 40px; font-size: 18px; }
.js .trio li:not(.in) .pin.n { visibility: hidden; }
.trio li:hover .pin.n { rotate: -14deg; scale: 1.12; }
.trio h3 { font: 600 clamp(1.25rem, 1.9vw, 1.7rem)/1.15 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.trio p { margin-top: 0.45em; color: var(--dim); font-size: clamp(0.98rem, 1.15vw, 1.1rem); }
.js .trio li > div { transition: opacity 0.7s, transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1); }
.js .trio li:not(.in) > div { opacity: 0; transform: translateY(24px); }

/* the page on the left gets three boxes dragged over it; each lands in the one image on the right */
.scene.scene-shots { height: auto; aspect-ratio: 16 / 10.5; margin-top: 0; background: #e3e8f1; }
.scene.scene-shots > * { zoom: 1; }
.scene-shots * { animation-duration: 12s; }
.scene-shots.in * { animation-play-state: running; }
.js .scene-shots { transition: opacity 0.8s, transform 0.9s cubic-bezier(0.2, 0.9, 0.2, 1); }
.js .scene-shots:not(.in) { opacity: 0; transform: translateY(30px) scale(0.97); }
.sh-page { left: 4%; top: 7%; bottom: 7%; width: 60%; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(24, 24, 27, 0.14); }
.sh-page > * { position: absolute; }
.sh-nav { left: 8%; top: 5%; width: 30%; height: 3.5%; border-radius: 99px; background: #d4d4d8; box-shadow: 14em 0 0 -0.1em #e4e4e7; }
.sh-banner { left: 8%; top: 16%; width: 84%; height: 20%; border-radius: 6px; background: linear-gradient(#93b4fb, #93b4fb) 6% 34% / 42% 16% no-repeat, linear-gradient(#b9cdfc, #b9cdfc) 6% 68% / 30% 12% no-repeat, #dbe7ff; }
.sh-card { top: 47%; width: 26%; height: 22%; border: 1px solid #d4d4d8; border-radius: 6px; background: linear-gradient(#46b983, #46b983) 14% 26% / 26% 34% no-repeat, linear-gradient(#d4d4d8, #d4d4d8) 14% 78% / 56% 10% no-repeat, #fff; }
.sh-card.c1 { left: 8%; }
.sh-card.c2 { left: 37%; }
.sh-card.c3 { left: 66%; }
.sh-input { left: 8%; top: 80%; width: 30%; height: 11%; border: 1px solid #a1a1aa; border-radius: 5px; }
.sh-go { left: 41%; top: 80%; width: 17%; height: 11%; border-radius: 5px; background: #18181b; }
.sh-area { border-radius: 3px; outline: 2px dashed var(--blue); background: color-mix(in srgb, var(--blue) 9%, transparent); }
.sh-area::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; }
.sh-pin { margin: -11px 0 0 -11px; }
.scene-shots .sh-ptr { animation-name: sh-ptr; animation-timing-function: cubic-bezier(0.5, 0, 0.3, 1); }
.sh-sheet { right: 4%; top: 7%; bottom: 7%; width: 28%; display: flex; flex-direction: column; gap: 5%; padding: 5% 4%; border-radius: 10px; background: #0d0d0f; box-shadow: 0 10px 30px rgba(24, 24, 27, 0.25); animation-name: sh-sheet; }
.sh-item { flex: 1; display: flex; flex-direction: column; min-height: 0; border-radius: 5px; overflow: hidden; background: #fff; }
.sh-item b { flex: none; padding: 0.3em 0.6em; background: #27272a; color: #fafafa; font: 600 clamp(9px, 0.85vw, 12px)/1.3 system-ui, sans-serif; }
.sh-item i { flex: 1; display: flex; align-items: center; gap: 6%; padding: 0 8%; }
.sh-item .t1 { background: linear-gradient(#93b4fb, #93b4fb) 12% 36% / 46% 18% no-repeat, linear-gradient(#b9cdfc, #b9cdfc) 12% 70% / 32% 14% no-repeat, #dbe7ff; }
.sh-item u { flex: 1; height: 62%; border: 1px solid #d4d4d8; border-radius: 3px; background: linear-gradient(#46b983, #46b983) 18% 30% / 30% 34% no-repeat; }
.sh-item .t3 u { flex: none; width: 48%; height: 40%; border-color: #a1a1aa; background: none; }
.sh-item .t3 u + u { width: 26%; border: 0; background: #18181b; }
@keyframes sh-sheet { 0%, 78%, 92%, 100% { box-shadow: 0 10px 30px rgba(24, 24, 27, 0.25); } 82%, 88% { box-shadow: 0 0 0 3px var(--blue), 0 0 26px 4px color-mix(in srgb, var(--blue) 60%, transparent); } }
.sh-area.a1 { left: 6%; top: 14%; animation-name: sh-a1; }
@keyframes sh-a1 { 0%, 5.9% { width: 0; height: 0; opacity: 0; } 6% { width: 0; height: 0; opacity: 1; } 16%, 93% { width: 88%; height: 24%; opacity: 1; } 97%, 100% { width: 88%; height: 24%; opacity: 0; } }
.sh-area.a1::after { animation-name: sh-f1; }
@keyframes sh-f1 { 0%, 16% { opacity: 0; } 17% { opacity: 0.95; } 22%, 100% { opacity: 0; } }
.sh-pin.p1 { left: 94%; top: 14%; animation-name: sh-p1; }
.sh-item.i1 { animation-name: sh-i1; }
@keyframes sh-p1 {
  0%, 16.9% { opacity: 0; translate: 0 -50px; }
  17.0% { opacity: 1; translate: 0 -50px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  19.4% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  20.6% { translate: 0 -11px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  21.8% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  22.4% { translate: 0 -3px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  23.0%, 93% { opacity: 1; translate: 0 0; }
  97%, 100% { opacity: 0; translate: 0 0; }
}
@keyframes sh-i1 {
  0%, 18.9% { opacity: 0; translate: 0 -34px; }
  19.0% { opacity: 1; translate: 0 -34px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  21.4% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  22.6% { translate: 0 -7px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  23.8% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  24.4% { translate: 0 -2px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  25.0%, 93% { opacity: 1; translate: 0 0; }
  97%, 100% { opacity: 0; translate: 0 0; }
}
.sh-area.a2 { left: 6%; top: 44%; animation-name: sh-a2; }
@keyframes sh-a2 { 0%, 29.9% { width: 0; height: 0; opacity: 0; } 30% { width: 0; height: 0; opacity: 1; } 40%, 93% { width: 88%; height: 28%; opacity: 1; } 97%, 100% { width: 88%; height: 28%; opacity: 0; } }
.sh-area.a2::after { animation-name: sh-f2; }
@keyframes sh-f2 { 0%, 40% { opacity: 0; } 41% { opacity: 0.95; } 46%, 100% { opacity: 0; } }
.sh-pin.p2 { left: 94%; top: 44%; animation-name: sh-p2; }
.sh-item.i2 { animation-name: sh-i2; }
@keyframes sh-p2 {
  0%, 40.9% { opacity: 0; translate: 0 -50px; }
  41.0% { opacity: 1; translate: 0 -50px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  43.4% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  44.6% { translate: 0 -11px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  45.8% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  46.4% { translate: 0 -3px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  47.0%, 93% { opacity: 1; translate: 0 0; }
  97%, 100% { opacity: 0; translate: 0 0; }
}
@keyframes sh-i2 {
  0%, 42.9% { opacity: 0; translate: 0 -34px; }
  43.0% { opacity: 1; translate: 0 -34px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  45.4% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  46.6% { translate: 0 -7px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  47.8% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  48.4% { translate: 0 -2px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  49.0%, 93% { opacity: 1; translate: 0 0; }
  97%, 100% { opacity: 0; translate: 0 0; }
}
.sh-area.a3 { left: 6%; top: 77%; animation-name: sh-a3; }
@keyframes sh-a3 { 0%, 53.9% { width: 0; height: 0; opacity: 0; } 54% { width: 0; height: 0; opacity: 1; } 64%, 93% { width: 54%; height: 17%; opacity: 1; } 97%, 100% { width: 54%; height: 17%; opacity: 0; } }
.sh-area.a3::after { animation-name: sh-f3; }
@keyframes sh-f3 { 0%, 64% { opacity: 0; } 65% { opacity: 0.95; } 70%, 100% { opacity: 0; } }
.sh-pin.p3 { left: 60%; top: 77%; animation-name: sh-p3; }
.sh-item.i3 { animation-name: sh-i3; }
@keyframes sh-p3 {
  0%, 64.9% { opacity: 0; translate: 0 -50px; }
  65.0% { opacity: 1; translate: 0 -50px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  67.4% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  68.6% { translate: 0 -11px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  69.8% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  70.4% { translate: 0 -3px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  71.0%, 93% { opacity: 1; translate: 0 0; }
  97%, 100% { opacity: 0; translate: 0 0; }
}
@keyframes sh-i3 {
  0%, 66.9% { opacity: 0; translate: 0 -34px; }
  67.0% { opacity: 1; translate: 0 -34px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  69.4% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  70.6% { translate: 0 -7px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  71.8% { translate: 0 0; animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1); }
  72.4% { translate: 0 -2px; animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  73.0%, 93% { opacity: 1; translate: 0 0; }
  97%, 100% { opacity: 0; translate: 0 0; }
}
@keyframes sh-ptr { 0% { left: 70%; top: 92%; } 6% { left: 6%; top: 14%; } 16%, 22% { left: 94%; top: 38%; } 30% { left: 6%; top: 44%; } 40%, 46% { left: 94%; top: 72%; } 54% { left: 6%; top: 77%; } 64%, 70% { left: 60%; top: 94%; } 78%, 100% { left: 70%; top: 92%; } }

/* ---------- the toolbar, with every button named ---------- */

.map-in {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 28px);
  row-gap: clamp(64px, 11vh, 104px);
  max-width: 78rem;
  margin: clamp(40px, 8vh, 80px) auto 0;
}
.map-stage { grid-area: 2 / 1 / 3 / -1; display: grid; place-items: center; }
.js .map-in:not(.landed) .map-stage { visibility: hidden; }
.map-bar { --accent: #3b82f6; position: static; opacity: 1; color: var(--text); font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
.map-bar .tool, .map-bar .grip { transition: translate 0.35s var(--spring), scale 0.35s var(--spring), background 0.15s, box-shadow 0.2s; }
.map-bar .lift { z-index: 2; translate: 0 -9px; scale: 1.22; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.25); }
.map-bar .lift:not(.on):not(.review-btn) { background: var(--ink-2); }
.map-list { display: contents; }
.map-list li { list-style: none; text-align: center; transition: opacity 0.5s calc(0.2s + var(--i) * 0.08s), translate 0.6s var(--spring) calc(0.2s + var(--i) * 0.08s); }
.map-list li:nth-child(even) { grid-row: 1; align-self: end; }
.map-list li:nth-child(odd) { grid-row: 3; }
.map-list li:nth-child(1), .map-list li:nth-child(2) { grid-column: 1; }
.map-list li:nth-child(3), .map-list li:nth-child(4) { grid-column: 2; }
.map-list li:nth-child(5), .map-list li:nth-child(6) { grid-column: 3; }
.map-list li:nth-child(7), .map-list li:nth-child(8) { grid-column: 4; }
.map-list li:nth-child(9), .map-list li:nth-child(10) { grid-column: 5; }
.js .map-in:not(.drawn) .map-list li { opacity: 0; translate: 0 10px; }
.map-list b { display: block; font: 700 clamp(1.6rem, 2.3vw, 2.2rem)/1 var(--hand); }
.map-list kbd { display: inline-block; min-width: 1.5em; margin-left: 0.2em; padding: 0.1em 0.35em; border: 1.5px solid currentColor; border-radius: 5px; font: 700 0.5em/1.2 var(--sans); vertical-align: 0.25em; text-align: center; }
.map-list p { margin: 0.35em auto 0; max-width: 15em; color: var(--dim); font-size: clamp(0.88rem, 1.02vw, 1rem); line-height: 1.4; }
.map-list li.hot b { color: var(--blue); }
.map-list .chip { display: none; }
.map-arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.map-arrows path { stroke-dasharray: 1 1.3; stroke-dashoffset: 1.15; visibility: hidden; transition: stroke-dashoffset 0.5s ease calc(0.3s + var(--i) * 0.08s); }
.map-arrows .head { transition-duration: 0.2s; transition-delay: calc(0.75s + var(--i) * 0.08s); }
.map-in.drawn .map-arrows path { stroke-dashoffset: 0; visibility: visible; }
.map-arrows path.hot { stroke: var(--blue); }

@media (max-width: 860px) {
  .shots-in { grid-template-columns: 1fr; }
  .map-in { grid-template-columns: 1fr; row-gap: 22px; }
  .map-stage { grid-area: auto; margin-bottom: 10px; }
  .map-list li, .map-list li:nth-child(n) { grid-row: auto; grid-column: 1; align-self: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; text-align: left; }
  .map-list .chip { display: grid; grid-row: 1 / 3; align-self: start; background: var(--ink); color: var(--text); }
  .map-list .review-chip { font: 600 13px/1 system-ui, sans-serif; }
  .map-list p { margin: 0.2em 0 0; max-width: none; }
  .map-arrows { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .trio li > div, .js .scene-shots, .map-list li, .map-arrows path, .map-bar .tool, .map-bar .grip { transition: none; }
}

/* ---------- first screen: the words that matter, picked out quietly ---------- */

.pitch strong { color: var(--ink); font-weight: 600; }
/* a soft band under the phrase, in the colour of its label, drawn in once the text is there */
.pitch mark {
  margin: 0;
  padding: 0 0.06em;
  border-radius: 0;
  background: linear-gradient(var(--tint), var(--tint)) no-repeat 0 88% / 100% 34%;
  transition: background-size 0.8s cubic-bezier(0.3, 0.7, 0.2, 1) 0.7s;
}
.pitch section:nth-child(1) { --tint: rgba(214, 51, 58, 0.2); }
.pitch section:nth-child(2) { --tint: rgba(28, 138, 85, 0.22); }
.js .pitch section:not(.show) mark { background-size: 0% 34%; }
@media (prefers-reduced-motion: reduce) { .pitch mark { transition: none; } }

/* two of the three screenshots also get a typed description; the third is left as a picture alone */
.sh-say { z-index: 1; padding: 0.35em 0.6em; border-radius: 0.5em; background: var(--ink); color: var(--text); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); font: 500 clamp(8px, 0.82vw, 12px)/1.3 system-ui, sans-serif; white-space: nowrap; transform-origin: 100% 0; }
.sh-say em { display: block; font-style: normal; }
.sh-say.s1 { right: 8%; top: 33%; animation-name: sh-s1; }
@keyframes sh-s1 { 0%, 17.5% { opacity: 0; scale: 0.7; } 18.5%, 93% { opacity: 1; scale: 1; } 97%, 100% { opacity: 0; scale: 1; } }
.sh-say.s1 em { animation-name: sh-t1; animation-timing-function: steps(20); }
@keyframes sh-t1 { 0%, 19% { clip-path: inset(0 100% 0 0); } 25%, 100% { clip-path: inset(0 0 0 0); } }
.sh-say.s2 { right: 8%; top: 67%; animation-name: sh-s2; }
@keyframes sh-s2 { 0%, 41.5% { opacity: 0; scale: 0.7; } 42.5%, 93% { opacity: 1; scale: 1; } 97%, 100% { opacity: 0; scale: 1; } }
.sh-say.s2 em { animation-name: sh-t2; animation-timing-function: steps(24); }
@keyframes sh-t2 { 0%, 43% { clip-path: inset(0 100% 0 0); } 49%, 100% { clip-path: inset(0 0 0 0); } }
