/* The landing page (/welcome), for people who aren't signed in.
   One canvas, one camera: the whole page is a things{i}fw board, and scrolling moves the
   camera through the life of a save. Everything on it is the product's own vocabulary
   (dot grid, cards, label blocks, pistachio selection with square handles, the plum +)
   plus the brand's marketing pieces (browser frames with hard shadows, the caption card, the
   chat card with a pistachio shadow). Light, like the posters, whatever the system theme. */

:root {
  --white: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #5e5e5e;
  --line: #e6e6e6;
  --fill: #f2f2f2;
  --dot: #e8e8e8;
  --pist: #b8d98a;
  --pist-ink: #7fa650;
  --pist-tint: #eef6e4;
  --plum: #4a1d3f;
  --plum-hover: #5d2750;
  --shadow-grey: #c6c6c6;
  --ease-snap: cubic-bezier(0.2, 0, 0, 1);
  --font: "Mona Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 3.4vw, 48px);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { overflow-x: clip; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/24px var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
svg { flex: none; }
svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--pist-ink); outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Brand pieces ---------- */

.display {
  margin: 0;
  font-size: clamp(54px, 8.6vw, 132px);
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-shadow: 0.045em 0.045em 0 var(--shadow-grey);
}

.wm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 24px;
  font-stretch: 125%;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
  text-shadow: 1px 1px 0 var(--shadow-grey);
  white-space: nowrap;
}

.wm-sel {
  position: relative;
  display: inline-flex;
  padding: 0 4px 3px;
  border: 2px solid var(--pist-ink);
  background: #b8d98a33;
  letter-spacing: 0.01em;
}

.wm-sel i {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--pist-ink);
  background: var(--white);
}

.wm-sel i:nth-of-type(1) { left: -5px; top: -5px; }
.wm-sel i:nth-of-type(2) { right: -5px; top: -5px; }
.wm-sel i:nth-of-type(3) { left: -5px; bottom: -4px; }
.wm-sel i:nth-of-type(4) { right: -5px; bottom: -4px; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 28px 0 22px;
  border-radius: 999px;
  background: var(--plum);
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.cta:hover { background: var(--plum-hover); }
.cta svg path { stroke-width: 2.2; }
.cta-sm { gap: 6px; height: 40px; padding: 0 18px 0 14px; font-size: 14px; line-height: 20px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.note { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 22px; }

/* ---------- The shot ---------- */

/* Its height is the length of the camera move (welcome.js sets it from the beats). */
.shot { position: relative; height: 900vh; }

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.viewport {
  position: absolute;
  inset: 0;
  background-color: var(--white);
  background-image: radial-gradient(circle, var(--dot) 1.2px, transparent 1.5px);
}

/* --z is the zoom, so things on the canvas can keep a steady size on screen, like the app:
   --px is one screen pixel in canvas units. */
.world {
  --z: 1;
  --px: calc(1px / var(--z));
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}

/* Browser windows, as in the store screenshots. */
.win {
  position: absolute;
  overflow: hidden;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 10px 10px 0 var(--ink);
}

.win-bar {
  display: flex;
  height: 52px;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 2px solid var(--ink);
}

.win-dots { display: flex; gap: 7px; }
.win-dots i { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; }

.win-url {
  display: flex;
  min-width: 0;
  height: 30px;
  flex: 1;
  align-items: center;
  overflow: hidden;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post { display: grid; gap: 16px; padding: 22px 24px 18px; }
.post-head { display: flex; align-items: center; gap: 12px; }

.post-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-stretch: 125%;
  font-weight: 800;
}

.post-head b { display: block; font-size: 16px; line-height: 20px; }
.post-head small { color: var(--ink-2); font-size: 14px; line-height: 18px; }
.post-text { margin: 0; font-size: 18px; line-height: 26px; }

.post-img {
  display: block;
  height: 560px;
  border-radius: 14px;
  background-position: 50% 30%;
  background-size: cover;
}

.post-actions { display: flex; justify-content: space-between; padding: 0 8px; }
.post-actions i { width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 50%; }

.pins { display: grid; gap: 12px; padding: 16px; grid-template-columns: repeat(3, 1fr); align-items: start; }
.pins div { display: grid; gap: 12px; }
.pins span, .grid4 span { display: block; border-radius: 16px; background-position: 50%; background-size: cover; }
.grid4 { display: grid; gap: 8px; padding: 14px; grid-template-columns: repeat(4, 1fr); }
.grid4 span { aspect-ratio: 1; border-radius: 6px; }

/* Your board. */
.board .card {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 8px;
  background-color: var(--fill);
  background-position: 50%;
  background-size: cover;
  transition: opacity 0.35s ease;
}

/* While your AI searches: everything else dims, like a search on the canvas. */
.board.searching .card:not(.match) { opacity: 0.16; }
.board .card.match { outline: calc(3 * var(--px)) solid var(--pist-ink); outline-offset: calc(4 * var(--px)); }

/* Section names stay a steady size on screen, sitting just above their cards. */
.sec { position: absolute; width: 0; height: 0; }

.sec-in {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
  transform: scale(calc(1 / var(--z)));
  transform-origin: 0 100%;
  white-space: nowrap;
}

.sec b {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-stretch: 75%;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 14px;
  text-transform: uppercase;
}

.sec span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 11px;
  font-weight: 600;
}

/* The picture you save. */
.fly {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  border-radius: var(--r, 14px);
  background-position: 50% 30%;
  background-size: cover;
}

.fly::before {
  position: absolute;
  inset: calc(-1 * var(--ring, 0px));
  border: var(--ring, 0px) solid var(--pist-ink);
  content: "";
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fly .h {
  position: absolute;
  width: calc(13 * var(--px));
  height: calc(13 * var(--px));
  border: calc(2.5 * var(--px)) solid var(--pist-ink);
  background: var(--white);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fly .h:nth-of-type(1) { left: calc(-9 * var(--px)); top: calc(-9 * var(--px)); }
.fly .h:nth-of-type(2) { right: calc(-9 * var(--px)); top: calc(-9 * var(--px)); }
.fly .h:nth-of-type(3) { left: calc(-9 * var(--px)); bottom: calc(-9 * var(--px)); }
.fly .h:nth-of-type(4) { right: calc(-9 * var(--px)); bottom: calc(-9 * var(--px)); }

.fly.sel { --ring: calc(3 * var(--px)); border-radius: 0; }
.fly.sel::before,
.fly.sel .h { opacity: 1; }

/* The extension's +, then its ✓. */
.fly-btn {
  position: absolute;
  right: calc(12 * var(--px));
  top: calc(12 * var(--px));
  display: grid;
  width: calc(44 * var(--px));
  height: calc(44 * var(--px));
  place-items: center;
  border: calc(2.5 * var(--px)) solid var(--white);
  border-radius: 50%;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.2s ease, scale 0.35s var(--ease-snap);
}

.fly-btn svg { width: 52%; height: 52%; }
.fly-btn path { stroke-width: 2.4; }
.fly-plus { background: var(--plum); color: var(--white); }
.fly-check { background: var(--pist); color: var(--ink); }
.fly.plus .fly-plus,
.fly.check .fly-check { opacity: 1; scale: 1; }
.fly.press .fly-plus { scale: 0.86; }

.fly-tag {
  position: absolute;
  left: calc(-3 * var(--px));
  top: calc(100% + 12 * var(--px));
  padding: calc(3 * var(--px)) calc(9 * var(--px));
  background: var(--pist);
  font-size: calc(14 * var(--px));
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  translate: 0 calc(-6 * var(--px));
  transition: opacity 0.25s ease, translate 0.35s var(--ease-snap);
}

.fly.saving .fly-saving,
.fly.picked .fly-picked { opacity: 1; translate: 0 0; }

/* In the air: lifted, with a hard shadow, like a print. */
.fly.lifted { box-shadow: calc(10 * var(--px)) calc(10 * var(--px)) 0 var(--ink); }
.fly.match { outline: calc(3 * var(--px)) solid var(--pist-ink); outline-offset: calc(4 * var(--px)); }

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(30 * var(--px));
  height: calc(34 * var(--px));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor path { fill: var(--ink); stroke: var(--white); stroke-width: 2; }
.fly.pointer .cursor { opacity: 1; }

/* ---------- On the glass ---------- */

.hud {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 28px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hud .wm { padding: 8px 10px 8px 6px; border-radius: 12px; background: rgb(255 255 255 / 0.86); }

.hero {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  z-index: 5;
  display: grid;
  max-width: 60vw;
  gap: 40px;
  translate: 0 -58%;
}

.hero .display { font-size: clamp(54px, 7.2vw, 120px); text-shadow: 0.045em 0.045em 0 var(--shadow-grey), 0 0 40px var(--white); }

/* Your AI app. The pistachio shadow is from the store's "Ask" card. */
.chat {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  z-index: 5;
  display: grid;
  width: min(500px, 42vw);
  gap: 20px;
  padding: 24px 24px 50px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 10px 10px 0 var(--pist), 0 0 0 1.5px rgb(11 11 11 / 0.08);
  opacity: 0;
  pointer-events: none;
  translate: 40px -50%;
}

.chat-ask {
  justify-self: end;
  min-height: 52px;
  max-width: 420px;
  padding: 13px 18px;
  margin: 0;
  border-radius: 20px 20px 6px 20px;
  background: var(--fill);
  font-size: 18px;
  line-height: 26px;
}

.chat-ask:empty { visibility: hidden; }

.chat-tool,
.chat-answer {
  margin: 0;
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.3s ease, translate 0.4s var(--ease-snap);
}

.chat.tool .chat-tool,
.chat.answer .chat-answer { opacity: 1; translate: 0 0; }

.chat-tool { display: flex; align-items: center; gap: 10px; }
.chat-bot { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: var(--ink); }
.chat-bot i { width: 11px; height: 11px; border-radius: 50%; background: var(--white); }

.chat-used {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  padding: 5px 12px 5px 9px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-used svg { color: var(--ink); }
.chat-used b { color: var(--ink); font-weight: 700; }
.chat-answer { padding-left: 42px; font-size: 18px; line-height: 26px; }

.chat-results {
  position: relative;
  display: grid;
  margin-left: 42px;
  gap: 10px;
  padding: 10px;
  border: 2.5px dashed var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.chat-results [data-slot] {
  display: block;
  aspect-ratio: 1;
  border-radius: 7px;
  background-color: var(--fill);
  background-position: 50% 30%;
  background-size: cover;
  opacity: 0;
}

.chat-results .h {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2.5px solid var(--pist-ink);
  background: var(--white);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.chat-results .h:nth-of-type(1) { left: -9px; top: -9px; }
.chat-results .h:nth-of-type(2) { right: -9px; top: -9px; }
.chat-results .h:nth-of-type(3) { left: -9px; bottom: -9px; }
.chat-results .h:nth-of-type(4) { right: -9px; bottom: -9px; }

.chat-tag {
  position: absolute;
  left: -2.5px;
  bottom: -36px;
  padding: 4px 10px;
  background: var(--pist);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.chat.found .chat-results { border-style: solid; border-color: var(--pist-ink); background: var(--pist-tint); }
.chat.found .chat-results [data-slot] { opacity: 1; }
.chat.found .chat-results .h,
.chat.found .chat-tag { opacity: 1; }

.clones { position: absolute; inset: 0; z-index: 7; pointer-events: none; }

.clone {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 7px;
  background-position: 50% 30%;
  background-size: cover;
  box-shadow: 6px 6px 0 var(--ink);
}

.veil { position: absolute; inset: 0; z-index: 4; background: var(--white); opacity: 0; pointer-events: none; }

/* The step you're watching, as a card pinned beside it (welcome.js places it each frame):
   above the picture, below it, or inside its corner when it fills the screen. */
.cue {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: min(400px, calc(100vw - var(--gutter) * 2));
  padding: 14px 20px 18px 16px;
  border-radius: 14px;
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--pist);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.18s var(--ease-snap);
  will-change: transform;
}

.cue.on { opacity: 1; }

.cue-label {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-stretch: 75%;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 16px;
  text-transform: uppercase;
}

.cue-text {
  font-size: clamp(24px, 2.4vw, 34px);
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.cue-text.in { animation: caption-in 0.4s var(--ease-snap); }

@keyframes caption-in {
  from { opacity: 0; translate: 0 40%; }
}

/* The header's "Create your board" waits until the hero's own button has scrolled away,
   and steps aside again for the closing one: one CTA per screen. */
.hud .cta-sm { transition: opacity 0.2s ease, translate 0.2s var(--ease-snap), visibility 0s; }
.hud.cta-off .cta-sm { opacity: 0; translate: 0 -6px; pointer-events: none; visibility: hidden; transition: opacity 0.2s ease, translate 0.2s var(--ease-snap), visibility 0s 0.2s; }

/* ---------- After the story: the +s, the line, the button, the footer ---------- */

.outro {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--white);
  grid-template-rows: 1fr auto;
}

/* The board's dot grid, fading out toward the edges so the words hold the middle. */
.outro::before {
  position: absolute;
  inset: 0 0 var(--foot-h, 80px);
  background-image: radial-gradient(circle, #dcdcdc 1.3px, transparent 1.6px);
  background-position: center;
  background-size: 28px 28px;
  content: "";
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 48%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 48%, #000 30%, transparent 100%);
  opacity: 0;
  transition: opacity 1.2s ease;
}

.outro.in::before { opacity: 1; }

.outro-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
  padding: 96px var(--gutter);
  text-align: center;
  pointer-events: none;
}

.outro-copy > * { pointer-events: auto; }

.outro-title {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 96px);
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-shadow: 0.045em 0.045em 0 var(--shadow-grey);
}

.outro-title > span { display: block; }

/* A section's tag, like the ones on your board, with an Inbox that keeps filling up. */
.outro-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 -4px;
}

.outro-tag b {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-stretch: 75%;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 16px;
  text-transform: uppercase;
}

.outro-tag span {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  box-sizing: border-box;
  padding: 0 9px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 16px;
}

/* Another save arrives: the count steps up and the pill blinks green. */
.outro-tag span.tick { animation: count-tick 0.7s var(--ease-snap); }

@keyframes count-tick {
  0% { translate: 0 0; }
  25% { translate: 0 -3px; border-color: var(--pist-ink); background: var(--pist-tint); }
  100% { translate: 0 0; }
}

/* "every damn thing", selected the way the logo selects {i}: a pistachio box with
   four square handles, put there by the pointer. */
.pick-line { position: relative; }

.pick {
  --hs: 0.16em;
  position: relative;
  display: inline-block;
  padding: 0 0.14em 0.06em;
}

/* The box and its fill, drawn left to right. */
.pick::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: max(2px, 0.03em) solid var(--pist-ink);
  background: var(--pist-fill, #b8d98a33);
  content: "";
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.45s var(--ease-snap) 1.35s;
}

.pick i {
  position: absolute;
  width: var(--hs);
  height: var(--hs);
  box-sizing: border-box;
  border: max(2px, 0.03em) solid var(--pist-ink);
  background: var(--white);
  scale: 0;
  transition: scale 0.35s var(--ease-snap) 1.65s;
}

.pick i:nth-of-type(1) { left: calc(var(--hs) / -2); top: calc(var(--hs) / -2); }
.pick i:nth-of-type(2) { right: calc(var(--hs) / -2); top: calc(var(--hs) / -2); }
.pick i:nth-of-type(3) { left: calc(var(--hs) / -2); bottom: calc(var(--hs) / -2); }
.pick i:nth-of-type(4) { right: calc(var(--hs) / -2); bottom: calc(var(--hs) / -2); }

/* The pointer glides in, clicks, and rests by the corner. */
.pick-cursor {
  position: absolute;
  right: -0.32em;
  bottom: -0.5em;
  width: 0.34em;
  height: 0.4em;
  overflow: visible;
  opacity: 0;
  translate: 1.4em 1em;
  transition: opacity 0.4s ease 0.75s, translate 0.7s var(--ease-snap) 0.75s;
  filter: drop-shadow(2px 2px 0 rgb(11 11 11 / 0.12));
}

.pick-cursor path { fill: var(--ink); stroke: var(--white); stroke-width: 2; stroke-linejoin: round; }

.outro.in .pick::before { clip-path: inset(0 0 0 0); }
.outro.in .pick i { scale: 1; }
.outro.in .pick-cursor { opacity: 1; translate: 0 0; animation: cursor-click 0.3s ease 1.3s; }

@keyframes cursor-click {
  50% { scale: 0.86; }
}

/* Hover the line: the handles reach out, like grabbing a selection. */
.outro.settled .pick i { transition-delay: 0s; transition-duration: 0.25s; }
.outro.settled .pick:hover i { scale: 1.3; }

/* The words rise in, a line at a time. */
.outro-tag,
.outro-title > span,
.outro-cta,
.outro-copy .note {
  opacity: 0;
  translate: 0 0.6em;
  transition: opacity 0.6s ease, translate 0.8s var(--ease-snap);
}

.outro-title > span:nth-child(1) { transition-delay: 0.15s; }
.outro-title > span:nth-child(2) { transition-delay: 0.25s; }
.outro-title > span:nth-child(3) { transition-delay: 0.35s; }
.outro-cta { translate: 0 16px; transition-delay: 0.5s; }
.outro-copy .note { margin-top: -14px; translate: 0 12px; transition-delay: 0.6s; }

.outro.in .outro-tag,
.outro.in .outro-title > span,
.outro.in .outro-cta,
.outro.in .outro-copy .note { opacity: 1; translate: 0 0; }

/* The button's + turns as you reach for it. */
.cta svg { transition: rotate 0.4s var(--ease-snap); }
.cta:hover svg { rotate: 90deg; }

/* ---------- Footer ---------- */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(var(--gutter), 5vw, 88px);
  background: var(--white);
}

/* Its rule draws in from the left, then the logo and links follow. */
.foot::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1.5px;
  background: var(--ink);
  content: "";
  transform-origin: 0 50%;
  scale: 0 1;
  transition: scale 0.9s var(--ease-snap) 0.35s;
}

.foot > * { opacity: 0; translate: 0 10px; transition: opacity 0.5s ease 0.7s, translate 0.6s var(--ease-snap) 0.7s; }
.foot nav { transition-delay: 0.8s; }
.outro.in .foot::before { scale: 1 1; }
.outro.in .foot > * { opacity: 1; translate: 0 0; }

.foot-wm { padding: 6px 8px 6px 0; font-size: 26px; line-height: 26px; }

/* The logo's selection: the handles reach out on hover, and every so often it's
   re-selected, a quick blink of the handles. */
.foot-wm .wm-sel { transition: background-color 0.25s ease; }
.foot-wm .wm-sel i { transition: scale 0.3s var(--ease-snap); }
.foot-wm:hover .wm-sel { background: #b8d98a66; }
.foot-wm:hover .wm-sel i { scale: 1.35; }
.outro.in .foot-wm .wm-sel i { animation: handles-blink 9s ease-in-out 2.4s infinite; }
.foot-wm:hover .wm-sel i { animation: none; }

@keyframes handles-blink {
  0%, 90%, 100% { scale: 1; }
  93% { scale: 0; }
  96% { scale: 1.25; }
}

.foot nav { display: flex; flex-wrap: wrap; gap: 28px; }

/* Links underline from the left; the ↗ leans out. */
.foot nav a {
  position: relative;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

.foot nav a::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  border-radius: 1px;
  background: var(--pist-ink);
  content: "";
  transform-origin: 0 50%;
  scale: 0 1;
  transition: scale 0.35s var(--ease-snap);
}

.foot nav a:hover::after,
.foot nav a:focus-visible::after { scale: 1 1; }

.foot-arrow { display: inline-block; transition: translate 0.3s var(--ease-snap); }
.foot nav a:hover .foot-arrow { translate: 2px -2px; }

/* ---------- Phones ---------- */

@media (max-width: 760px) {
  .hud { top: 18px; }
  .hud .wm { font-size: 20px; line-height: 20px; }
  .hud .cta-sm { height: 36px; padding: 0 14px 0 10px; font-size: 13px; }
  .hero { top: 104px; max-width: none; right: var(--gutter); gap: 22px; translate: none; }
  .hero .display { font-size: clamp(44px, 13vw, 64px); }
  .cta { height: 54px; font-size: 17px; }
  .chat { left: var(--gutter); right: var(--gutter); top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); width: auto; gap: 12px; padding: 16px 16px 44px; translate: 0 30px; }
  .chat-ask { min-height: 42px; font-size: 15px; line-height: 21px; }
  .chat-answer { padding-left: 0; font-size: 15px; line-height: 21px; }
  .chat-results { margin-left: 0; gap: 6px; padding: 6px; }
  .chat-used { font-size: 12px; }
  .chat-bot { width: 26px; height: 26px; }
  .cue { gap: 8px; padding: 12px 16px 14px 12px; }
  .cue-label { height: 22px; padding: 0 7px; font-size: 11px; }
  .cue-text { font-size: clamp(20px, 6vw, 26px); }
  .outro-copy { gap: 22px; padding: 72px var(--gutter); }
  .outro-tag b, .outro-tag span { height: 22px; font-size: 12px; }
  .outro-tag span { min-width: 22px; padding: 0 7px; }
  .outro-title { font-size: clamp(28px, 8.4vw, 52px); }
  .outro-copy .note { margin-top: -10px; }
  /* The footer, centred: the logo over its three links. */
  .foot { flex-direction: column; justify-content: center; gap: 14px; padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom)); text-align: center; }
  .foot nav { justify-content: center; gap: 12px 28px; }
  .foot-wm { padding-right: 0; font-size: 22px; line-height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .cue-text.in { animation: none; }
  .outro-tag span.tick, .outro.in .pick-cursor, .outro.in .foot-wm .wm-sel i { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
