/* Ago: the landing page. One screen: the text on the left, and on the right one illustration of how Ago works, a
   short film in four chapters on a picture of a Mac.

   The look, the owner's decision of 2026-11-25 with the app's designer: dark and warm, led by the iOS app How We
   Feel (seen on Mobbin). From it: a near-black page with a warm glow, soft cards, small labels in the accent colour, and a light
   button with round ends. Nothing is copied from the app: every shape is drawn here in CSS.

   The picture of the Mac takes its colours from the Ago app itself (app/Sources/Ago): black panels under the
   notch, the amber accent, the cream paper of the Card, and the desktop behind them. So the page and the app in
   the picture have one look.

   One font, Geist, served from this folder. In this file --ink is the colour of the text (light) and --white is
   the colour of a surface (dark): the names are from the light page that came before. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --page: #0d0b09;
  --ink: #f6f1e8;
  --soft: rgba(246, 241, 232, 0.68);
  --faint: rgba(246, 241, 232, 0.42);
  --edge: rgba(255, 255, 255, 0.14);
  --white: #17130f;
  --panel: #e7e7e7;
  --lime: #dff07a;
  --blue: #2946c6;
  --who: #ffcf27;
  --do: #a6d8fb;
  --preferences: #eaa0cb;
  --relationships: #f0867f;
  --goals: #f0a06a;
  --priorities: var(--lime);
  --intent: var(--blue);
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --amber: #ffa852;
  --gold: #ffa852;
  /* The time of one part. The fill of the rail's mark runs this long, and the illustration plays inside it. */
  --beat: 14s;
  /* The space at the left and the right. On a very wide window the page stays 1560 px wide, so the picture and
     its text do not grow past the size of the text beside them. */
  --side: max(40px, calc((100vw - 1560px) / 2 + 40px));
}
[data-part="who"] {
  --c: var(--who);
}
[data-part="do"] {
  --c: var(--do);
}
[data-part="preferences"] {
  --c: var(--preferences);
}
[data-part="relationships"] {
  --c: var(--relationships);
}
[data-part="goals"] {
  --c: var(--goals);
}
[data-part="priorities"] {
  --c: var(--priorities);
}
[data-part="intent"] {
  --c: var(--intent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(70% 60% at 72% 46%, rgba(190, 120, 40, 0.3), transparent 70%),
    radial-gradient(50% 50% at 8% 90%, rgba(120, 70, 30, 0.22), transparent 70%),
    var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
p,
ol,
ul,
figure {
  margin: 0;
  padding: 0;
}
ol,
ul {
  list-style: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Small spaced capitals: labels and notes. */
.cap {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

/* ---- The top bar: the logo and one note ---- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 var(--side);
}
/* As in the brand's lockup (brand/logo/ago-lockup-on-light.svg): Geist
   SemiBold, its capital 78% of the mark's height, set a quarter of the mark
   after it. */
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
/* The mark: the app's ring and dot, in the accent colour. */
.brand__mark {
  flex: none;
  width: 24px;
  height: 24px;
}
/* The ring is drawn from the top, clockwise, as the app draws it. */
.m-ring {
  fill: none;
  stroke: var(--amber);
  stroke-width: 4.16;
  stroke-dasharray: 87.46;
  transform: rotate(-90deg);
  transform-origin: 16px 16px;
  animation: m-draw 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s backwards;
}
.m-dot {
  fill: var(--amber);
  transform-origin: 22.4px 9.6px;
  animation: m-drop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s backwards;
  transition:
    opacity 0.2s ease,
    transform 0.25s ease;
}
/* Now and then the eye looks around: left, down, and back to rest. */
.m-look {
  animation: m-look 11s ease-in-out 4s infinite;
}
/* Pointed at, it smiles: the dot goes and an arc draws in its place. */
.m-smile {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3.84;
  stroke-linecap: round;
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
  opacity: 0;
  transition:
    stroke-dashoffset 0.35s ease 0.05s,
    opacity 0.1s ease;
}
.brand:hover .m-dot {
  opacity: 0;
  transform: translateY(5px) scale(0.6);
}
.brand:hover .m-look {
  animation-play-state: paused;
}
.brand:hover .m-smile {
  opacity: 1;
  stroke-dashoffset: 0;
}
.brand__word {
  animation: m-word 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s backwards;
}
@keyframes m-draw {
  from {
    stroke-dashoffset: 87.46;
    transform: rotate(-150deg);
  }
}
@keyframes m-drop {
  from {
    transform: scale(0);
  }
}
@keyframes m-look {
  0%,
  70%,
  100% {
    transform: none;
  }
  74%,
  80% {
    transform: translate(-12.8px, 1.6px);
  }
  84%,
  90% {
    transform: translate(-6.4px, 10.4px);
  }
}
@keyframes m-word {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
}
/* The one link of the top bar. */
.top__link {
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.top__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.top__note {
  color: var(--ink);
  text-align: right;
}
[data-cta="download"] .for-waitlist,
[data-cta="waitlist"] .for-download {
  display: none;
}

/* ---- The field: the text and the illustration ---- */
.field {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 40px;
  min-height: 0;
  padding: 0 var(--side);
}

/* ---- The text ---- */
.say {
  container-type: inline-size;
}
.tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gold);
}
.tag__bar,
.step__bar {
  flex: none;
  width: 14px;
  height: 7px;
  border-radius: 1px;
  background: var(--gold);
}
/* Two lines at every size: the changing words have a line of their own, in grey, so the text below never moves.
   The size follows the width of the column, so "Your AI needs a map" stays on one line. */
.say h1 {
  margin-top: 18px;
  font-size: clamp(24px, min(8.6cqw, 7vh), 58px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.say__fixed,
.say__part {
  display: block;
  white-space: nowrap;
}
.say__part {
  color: rgba(246, 241, 232, 0.5);
}
.say__more {
  max-width: 33em;
  margin-top: 22px;
  font-size: 15px;
  color: var(--soft);
}
/* The words to take away: where the map comes from, the person's part, and who reads it. Bright, not bold. */
.say__more strong {
  font-weight: 500;
  color: var(--ink);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 26px;
}

/* The button: black, with round ends. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 24px 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover {
  background: #ffffff;
}
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.btn svg {
  flex: none;
  width: 10px;
  height: 10px;
  fill: currentColor;
}
.get,
.waitlist {
  display: flex;
  align-items: stretch;
}
/* The early-access form is one pill: the field, and the button set inside its right end. The pill's edge lights
   up while the field has the cursor, and turns red when the address is wrong. */
.waitlist {
  width: min(100%, 420px);
  padding: 4px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(246, 241, 232, 0.05);
  transition: border-color 0.15s ease;
}
.waitlist:focus-within {
  border-color: rgba(255, 168, 82, 0.7);
}
.waitlist:has(input[aria-invalid="true"]) {
  border-color: #c2412d;
}
.waitlist input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  outline: none;
}
.waitlist input::placeholder {
  color: var(--faint);
}
.waitlist .btn {
  height: 40px;
  padding: 0 20px;
}
/* The note of the button or the form. Its line is always there, so the text above does not move when it speaks. */
.say__note {
  min-height: 1.5em;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

/* ---- The rail: pause or play, seven marks and a count. The mark in front is the clock (see ago.js). ---- */
.rail {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px 0 4px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--white);
}
.rail[hidden] {
  display: none;
}
.say__hold {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.say__hold[hidden] {
  display: none;
}
/* A larger place to press than what is drawn. Not to the right: the first mark is there. */
.say__hold::after {
  content: "";
  position: absolute;
  inset: -8px 0 -8px -8px;
}
.say__hold:hover {
  color: #ffffff;
}
.say__hold svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}
.say__hold[data-state="run"] .i-play,
.say__hold[data-state="stop"] .i-pause {
  display: none;
}
.marks {
  display: flex;
  align-items: center;
}
.say__hold[hidden] + .marks {
  margin-left: 6px;
}
/* A mark is a button as high as the rail and 18px wide; what is drawn is the small bar inside it. */
.mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width 0.3s ease;
}
.mark.is-on {
  width: 40px;
}
.mark:focus-visible {
  outline-offset: -3px;
}
.mark__bar {
  position: relative;
  display: block;
  width: 6px;
  height: 6px;
  overflow: hidden;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.24);
  transition:
    width 0.3s ease,
    background-color 0.2s ease;
}
.mark:hover .mark__bar {
  background: rgba(255, 255, 255, 0.45);
}
.mark.is-on .mark__bar {
  width: 28px;
  background: rgba(255, 255, 255, 0.24);
}
.mark__fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}
.rail[data-mode="run"] .mark.is-on .mark__fill,
.rail[data-mode="pause"] .mark.is-on .mark__fill {
  animation: mark-fill var(--beat) linear forwards;
}
.rail[data-mode="pause"] .mark.is-on .mark__fill {
  animation-play-state: paused;
}
.rail[data-mode="held"] .mark.is-on .mark__fill {
  transform: scaleX(1);
}
@keyframes mark-fill {
  to {
    transform: scaleX(1);
  }
}
.rail__count {
  margin-left: 8px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- The illustration ----
   One picture, 100 units wide and 76 high. A unit (--u) is one hundredth of its width, so the picture keeps its
   shape, and each line of text wraps the same way, at every size. The Mac is the top 62 units; the sentence of
   the chapter is under it. In a narrow box (a phone) the parts stand one under the other on the same dark ground
   and a unit is a fixed 7 px (see the container rule below).

   What is written below is the END of a part: the kind of source marked, the statement in the library, the Card
   under the notch, the last sentence. The Review card is gone by then, so it is hidden here and the motion shows
   it in its time. With no script, with "reduce motion", and when a part is held, the picture is the end. */
.stage {
  container: stage / inline-size;
  justify-self: end;
  width: min(100%, calc((100vh - 64px - 44px - 36px) * 1.3158));
  width: min(100%, calc((100svh - 64px - 44px - 36px) * 1.3158));
}
.signs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.kind {
  flex: none;
  width: calc(var(--u) * 1.5);
  height: calc(var(--u) * 1.5);
  fill: currentColor;
}
/* Inside the Mac the type is the Mac's own (SF Pro, as the app uses), not the page's Geist: a picture of an app
   set in a web font reads as a mock-up. */
.art {
  --u: 1cqw;
  position: relative;
  aspect-ratio: 100 / 76;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: calc(var(--u) * 1.5);
  line-height: 1.3;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}
.art p,
.art li {
  min-width: 0;
}
/* The Mac: the desktop of the app's own mock stage, the menu bar and the notch. */
.mac {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(var(--u) * 62);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--u) * 2.2);
  /* A plain, dark desktop with one soft light from the notch, where Ago is. */
  background:
    radial-gradient(45% 55% at 50% 0%, rgba(255, 168, 82, 0.12), transparent 70%),
    linear-gradient(180deg, #24211f, #151413 70%, #121110);
  box-shadow: 0 calc(var(--u) * 1.4) calc(var(--u) * 5) rgba(0, 0, 0, 0.2);
}
.mac__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 2.8);
  padding: 0 calc(var(--u) * 1.8);
  font-size: calc(var(--u) * 1.15);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}
.mac__notch {
  position: absolute;
  left: 50%;
  top: 0;
  display: grid;
  place-items: center;
  width: calc(var(--u) * 13);
  height: calc(var(--u) * 2.8);
  margin-left: calc(var(--u) * -6.5);
  border-radius: 0 0 calc(var(--u) * 1) calc(var(--u) * 1);
  background: #000;
  color: var(--amber);
}
/* Ago's mark in the notch, as an eye. What is written here is the still mark; the motion below gives it the app's
   states. It stands above the panels, which are black where it is. */
.eye {
  position: absolute;
  z-index: 3;
  left: calc(var(--u) * 49);
  top: calc(var(--u) * 0.45);
  width: calc(var(--u) * 2);
  height: calc(var(--u) * 2);
  overflow: visible;
  pointer-events: none;
}
.eye__ring {
  fill: none;
  stroke: var(--amber);
  stroke-width: 4.16;
}
.eye__dot,
.eye__spin circle,
.eye__spark {
  fill: var(--amber);
}
.eye__spin,
.eye__smile,
.eye__spark {
  opacity: 0;
}
.eye__spin {
  transform-origin: 16px 16px;
}
.eye__smile {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3.84;
  stroke-linecap: round;
}
.eye__spark {
  transform-origin: 16px 16px;
}

/* The window that the person works in, before the library comes. */
.ghost {
  position: absolute;
  left: calc(var(--u) * 35);
  top: calc(var(--u) * 23);
  width: calc(var(--u) * 62);
  height: calc(var(--u) * 34);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--u) * 1.4);
  background: #1d1d1f;
  opacity: 0;
}
.ghost__bar {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.6);
  height: calc(var(--u) * 3);
  padding: 0 calc(var(--u) * 1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: calc(var(--u) * 1.2);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}
.ghost__bar i {
  width: calc(var(--u) * 0.9);
  height: calc(var(--u) * 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.ghost__bar span {
  margin-left: calc(var(--u) * 0.8);
}
.ghost__body {
  display: flex;
  justify-content: flex-end;
  padding: calc(var(--u) * 3) calc(var(--u) * 2.4);
}
/* In an AI chat the words are the person's message; in an app, a message in a thread; in a file, a line of it. */
.ghost__said {
  max-width: 70%;
  padding: calc(var(--u) * 1) calc(var(--u) * 1.4);
  border-radius: calc(var(--u) * 1.4);
  background: rgba(255, 255, 255, 0.1);
  font-size: calc(var(--u) * 1.45);
  color: rgba(255, 255, 255, 0.88);
}
.ghost__said[data-kind="app"] {
  margin-right: auto;
}
.ghost__said[data-kind="file"] {
  margin-right: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: calc(var(--u) * 1.3);
}
.step {
  position: absolute;
}
.step__name {
  display: none;
}
.art .cap {
  font-size: calc(var(--u) * 1.2);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.45);
}

/* Chapter 1: the three kinds of source, as a panel of the app's Settings. The kind of the piece in front
   (data-kind on the figure) is marked in amber. */
.step--from {
  left: calc(var(--u) * 3);
  top: calc(var(--u) * 23);
  width: calc(var(--u) * 29);
}
.glass {
  padding: calc(var(--u) * 1.5) calc(var(--u) * 1.5) calc(var(--u) * 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--u) * 1.6);
  background: rgba(22, 22, 24, 0.86);
  box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 3.5) rgba(0, 0, 0, 0.3);
}
.sources {
  margin-top: calc(var(--u) * 0.7);
}
.src {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: calc(var(--u) * 1.1);
  align-items: center;
  padding: calc(var(--u) * 0.8) 0;
}
.src:nth-child(n + 2) {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.src__kind {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: calc(var(--u) * 3);
  height: calc(var(--u) * 3);
  border-radius: calc(var(--u) * 0.8);
  background: rgba(255, 255, 255, 0.1);
}
.src__name {
  font-weight: 500;
}
.src__note {
  font-size: calc(var(--u) * 1.3);
  color: rgba(255, 255, 255, 0.55);
}
.stage[data-kind="ai"] .src--ai .src__kind,
.stage[data-kind="file"] .src--file .src__kind,
.stage[data-kind="app"] .src--app .src__kind {
  background: var(--amber);
  color: #000;
}

/* Chapters 2 and 4: a black panel that comes down from the notch. */
.step--ask,
.step--read {
  left: calc(var(--u) * 24);
  top: 0;
  width: calc(var(--u) * 52);
}
.panel {
  padding: 0 calc(var(--u) * 1.4) calc(var(--u) * 1.4);
  border-radius: 0 0 calc(var(--u) * 2.6) calc(var(--u) * 2.6);
  background: #000;
  box-shadow: 0 calc(var(--u) * 1.2) calc(var(--u) * 4) rgba(0, 0, 0, 0.35);
}
.panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 3.6);
  padding: 0 calc(var(--u) * 0.6);
  font-size: calc(var(--u) * 1.3);
  font-weight: 600;
}
.panel__note {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}
.panel__dots {
  display: flex;
  gap: calc(var(--u) * 0.5);
}
.panel__dots i {
  width: calc(var(--u) * 0.55);
  height: calc(var(--u) * 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.panel__dots i:first-child {
  width: calc(var(--u) * 1.5);
  border-radius: calc(var(--u) * 0.3);
  background: var(--amber);
}
/* The Review card: where the statement comes from, its kind, the statement, the person's words, and the acts. Its
   buttons are pictures: nothing on this page keeps or declines. On the wide picture it is gone at the end of a
   part, so it is hidden at rest. */
.step--ask {
  opacity: 0;
  pointer-events: none;
}
.ask {
  padding: calc(var(--u) * 1.5) calc(var(--u) * 1.8) calc(var(--u) * 1.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--u) * 1.8);
  background: #1c1c1e;
}
.ask__meta,
.ask__from,
.ask__acts {
  display: flex;
  align-items: center;
}
.ask__meta {
  justify-content: space-between;
  gap: calc(var(--u) * 1);
  font-size: calc(var(--u) * 1.3);
  color: rgba(255, 255, 255, 0.6);
}
.ask__from {
  gap: calc(var(--u) * 0.7);
}
.chip {
  padding: calc(var(--u) * 0.35) calc(var(--u) * 1);
  border-radius: 999px;
  background: rgba(255, 168, 82, 0.16);
  color: var(--amber);
  font-size: calc(var(--u) * 1.1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ask__line {
  margin-top: calc(var(--u) * 0.9);
  font-size: calc(var(--u) * 2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ask__quote {
  margin-top: calc(var(--u) * 0.6);
  padding-left: calc(var(--u) * 1);
  border-left: calc(var(--u) * 0.25) solid rgba(255, 168, 82, 0.6);
  font-size: calc(var(--u) * 1.35);
  color: rgba(255, 255, 255, 0.6);
}
.ask__acts {
  gap: calc(var(--u) * 0.8);
  margin-top: calc(var(--u) * 1.5);
}
.act {
  display: grid;
  place-items: center;
  height: calc(var(--u) * 3.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 600;
}
.act--edit {
  margin-right: auto;
  padding: 0 calc(var(--u) * 1.5);
  font-size: calc(var(--u) * 1.3);
}
.act--no,
.act--yes {
  width: calc(var(--u) * 3.4);
}
.act--yes {
  background: var(--amber);
  color: #000;
}

/* Chapter 3: the library, on the page "Me". Each statement is a button that chooses its part. */
.step--map {
  left: calc(var(--u) * 35);
  top: calc(var(--u) * 23);
  width: calc(var(--u) * 62);
}
.lib {
  display: grid;
  grid-template-columns: calc(var(--u) * 12.5) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--u) * 1.4);
  background: #1b1b1d;
  box-shadow: 0 calc(var(--u) * 1.4) calc(var(--u) * 5) rgba(0, 0, 0, 0.4);
}
.lib__side {
  padding: calc(var(--u) * 1.2) calc(var(--u) * 1) calc(var(--u) * 1.2);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: #222224;
  font-size: calc(var(--u) * 1.3);
  font-weight: 500;
}
.lib__side li {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.8);
  height: calc(var(--u) * 2.7);
  padding: 0 calc(var(--u) * 0.7);
  border-radius: calc(var(--u) * 0.6);
}
.lib__side li.is-on {
  background: rgba(255, 255, 255, 0.1);
}
.lib__side li .kind {
  color: rgba(255, 255, 255, 0.5);
}
.lib__side li.is-on .kind {
  color: var(--amber);
}
.lib__side .lib__dots {
  gap: calc(var(--u) * 0.6);
  height: calc(var(--u) * 2.2);
  margin-bottom: calc(var(--u) * 0.6);
}
.lib__side .lib__dots i {
  width: calc(var(--u) * 1);
  height: calc(var(--u) * 1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.lib__main {
  padding: calc(var(--u) * 1.6) calc(var(--u) * 1.6) calc(var(--u) * 1.6);
}
.lib__head {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1.2);
}
.lib__face {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 4);
  height: calc(var(--u) * 4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: calc(var(--u) * 1.8);
  font-weight: 600;
}
.lib__head b {
  display: block;
  font-size: calc(var(--u) * 2);
  font-weight: 600;
  line-height: 1.15;
}
.lib__sub {
  font-size: calc(var(--u) * 1.3);
  color: rgba(255, 255, 255, 0.55);
}
.pieces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--u) * 0.8);
  margin-top: calc(var(--u) * 1.4);
}
.piece {
  display: grid;
  align-content: start;
  gap: calc(var(--u) * 0.4);
  width: 100%;
  height: 100%;
  padding: calc(var(--u) * 0.9) calc(var(--u) * 1.1);
  border: 1px solid transparent;
  border-radius: calc(var(--u) * 1);
  background: #27272a;
  font: inherit;
  font-size: calc(var(--u) * 1.35);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.piece:hover {
  background: #303033;
}
.piece:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}
.piece.is-on {
  border-color: rgba(255, 168, 82, 0.4);
  background: #2c2925;
}
.piece__line {
  font-weight: 500;
  line-height: 1.25;
}
.piece__where {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.6);
  font-size: calc(var(--u) * 1.3);
  color: rgba(255, 255, 255, 0.55);
}
.piece__where .kind {
  width: calc(var(--u) * 1.2);
  height: calc(var(--u) * 1.2);
}

/* Chapter 4: the Card, as the agents get it, and who gets it. */
.given {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: calc(var(--u) * 1.6);
}
.paper {
  min-height: calc(var(--u) * 14);
  padding: calc(var(--u) * 1.4) calc(var(--u) * 1.6);
  border-radius: calc(var(--u) * 1.4);
  background: #f7f2e8;
  color: #1c1c1c;
  /* New York, as the app sets its card (Font.Design.serif); Georgia where it is missing. */
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: calc(var(--u) * 1.5);
}
.paper__from {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 0.7);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: calc(var(--u) * 1.3);
  font-weight: 600;
  color: rgba(28, 28, 28, 0.55);
}
.paper__from .kind {
  color: #e0862f;
}
.paper li {
  position: relative;
  margin-top: calc(var(--u) * 0.7);
  padding-left: calc(var(--u) * 1.4);
}
.paper li::before {
  content: "";
  position: absolute;
  left: calc(var(--u) * 0.2);
  top: 0.55em;
  width: calc(var(--u) * 0.4);
  height: calc(var(--u) * 0.4);
  border-radius: 50%;
  background: #e0862f;
}
.given__name {
  margin-top: calc(var(--u) * 0.3);
  font-size: calc(var(--u) * 1.4);
  font-weight: 700;
  line-height: 1.25;
}
.reader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--u) * 3.2);
  font-size: calc(var(--u) * 1.4);
  color: rgba(255, 255, 255, 0.85);
}
.given__to ul {
  margin-top: calc(var(--u) * 0.8);
}
.reader .kind {
  color: var(--amber);
}

/* Chapter 4, second part: an agent's session, with the three tools that it calls. It stands under the "Learns
   from" panel. */
.calls {
  position: absolute;
  left: calc(var(--u) * -21);
  top: calc(var(--u) * 44.6);
  width: calc(var(--u) * 29);
  padding: 0 calc(var(--u) * 1.5) calc(var(--u) * 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(var(--u) * 1.6);
  background: #101012;
  box-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 3.5) rgba(0, 0, 0, 0.3);
}
.calls__top {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1);
  height: calc(var(--u) * 3.2);
  font-size: calc(var(--u) * 1.2);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}
.calls__dots {
  display: flex;
  gap: calc(var(--u) * 0.5);
}
.calls__dots i {
  width: calc(var(--u) * 0.9);
  height: calc(var(--u) * 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}
.call {
  display: grid;
  grid-template-columns: calc(var(--u) * 9.4) minmax(0, 1fr);
  align-items: center;
  gap: calc(var(--u) * 0.8);
  padding: calc(var(--u) * 0.6) 0;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: calc(var(--u) * 1.3);
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.72);
}
.call code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: calc(var(--u) * 1.25);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* The sentence of each chapter, under the Mac. All four are in one place; what is written here is the last one. */
.story,
.chapters {
  position: absolute;
  color: var(--ink);
}
.story {
  left: 0;
  top: calc(var(--u) * 65);
  width: calc(var(--u) * 74);
  height: calc(var(--u) * 10);
}
.story__line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  font-size: calc(var(--u) * 3.9);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  opacity: 0;
}
.story__line--4 {
  opacity: 1;
}
.chapters {
  right: 0;
  top: calc(var(--u) * 65.4);
  display: grid;
  gap: calc(var(--u) * 0.9);
}
.art .chapters .cap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: calc(var(--u) * 1.2);
  color: var(--ink);
}
.chapters li::after {
  content: "";
  width: calc(var(--u) * 3.4);
  height: 1px;
  background: var(--ink);
}

/* ---- The motion of one part. It runs only while the rail runs (or is paused in the middle). ----
   Chapter 1, from 0 s: the signs of the sources come; the person's window is on the desktop. Chapter 2, from
   3.3 s: the kind of the piece in front is marked and the Review card comes down; the yes is pressed; the card
   goes. Chapter 3, from 6.6 s: the library comes in place of the window, and its statements come one by one, the
   one in front last. Chapter 4, from 10.2 s: the Card comes down and each agent gets its mark; then an
   agent's session comes, and its three tools one by one. */
/* The eye: at work (the dot goes round, one turn in 1.6 s) while the person works and while the library fills; it
   looks down at the Review card; it smiles, with a few sparks, at the yes; then it is the still mark. */
.stage.is-go:not([data-mode="held"]) .eye__spin {
  animation:
    eye-turn 1.6s linear infinite,
    eye-work var(--beat) linear backwards;
}
.stage.is-go:not([data-mode="held"]) .eye__dot {
  animation: eye-look var(--beat) ease-in-out backwards;
}
.stage.is-go:not([data-mode="held"]) .eye__smile {
  animation: eye-smile var(--beat) linear backwards;
}
.stage.is-go:not([data-mode="held"]) .eye__spark {
  animation: eye-spark 0.9s ease-out 5.15s backwards;
}
.stage.is-go:not([data-mode="held"]) .ghost {
  animation: ghost var(--beat) linear backwards;
}
.stage.is-go:not([data-mode="held"]) .src__kind {
  animation: read 0.45s ease-out calc(0.2s + var(--n) * 0.25s) backwards;
}
.stage.is-go:not([data-mode="held"])[data-kind="ai"] .src--ai .src__kind,
.stage.is-go:not([data-mode="held"])[data-kind="file"] .src--file .src__kind,
.stage.is-go:not([data-mode="held"])[data-kind="app"] .src--app .src__kind {
  animation:
    read 0.45s ease-out calc(0.2s + var(--n) * 0.25s) backwards,
    lit 0.5s ease-out 3.3s backwards;
}
.stage.is-go:not([data-mode="held"]) .act--yes {
  animation: press 0.45s ease-out 5.1s backwards;
}
.stage.is-go:not([data-mode="held"]) .lib {
  animation: come 0.5s ease-out 6.6s backwards;
}
.stage.is-go:not([data-mode="held"]) .piece {
  animation: show 0.35s ease-out calc(7s + var(--i) * 0.12s) backwards;
}
.stage.is-go:not([data-mode="held"]) .piece.is-on {
  animation:
    show 0.35s ease-out 8.1s backwards,
    kept 1.2s ease-out 8.1s backwards;
}
.stage.is-go:not([data-mode="held"]) .step--read {
  animation: drop 0.5s ease-out 10.2s backwards;
}
.stage.is-go:not([data-mode="held"]) .reader .kind {
  animation: read 0.45s ease-out calc(10.8s + var(--n) * 0.3s) backwards;
}
.stage.is-go:not([data-mode="held"]) .calls {
  animation: show 0.4s ease-out 10.6s backwards;
}
.stage.is-go:not([data-mode="held"]) .call {
  animation: show 0.4s ease-out calc(11s + var(--n) * 0.7s) backwards;
}
.stage.is-go:not([data-mode="held"]) .story__line--1 {
  animation: story-1 var(--beat) linear backwards;
}
.stage.is-go:not([data-mode="held"]) .story__line--2 {
  animation: story-2 var(--beat) linear backwards;
}
.stage.is-go:not([data-mode="held"]) .story__line--3 {
  animation: story-3 var(--beat) linear backwards;
}
.stage.is-go:not([data-mode="held"]) .story__line--4 {
  animation: show 0.5s linear 10.3s backwards;
}
.stage.is-go:not([data-mode="held"]) .chapters li:nth-child(1) {
  animation: chapter-1 var(--beat) linear backwards;
}
.stage.is-go:not([data-mode="held"]) .chapters li:nth-child(2) {
  animation: chapter-2 var(--beat) linear backwards;
}
.stage.is-go:not([data-mode="held"]) .chapters li:nth-child(3) {
  animation: chapter-3 var(--beat) linear backwards;
}
.stage.is-go:not([data-mode="held"]) .chapters li:nth-child(4) {
  animation: chapter-4 var(--beat) linear backwards;
}
/* The Review card comes and goes only on the wide picture. On a phone it stays in view (see below). */
@container stage (min-width: 600px) {
  .stage.is-go:not([data-mode="held"]) .step--ask {
    animation: ask var(--beat) linear backwards;
  }
}
/* After the film has played once, the picture stays on its last frame and each next part swaps its example in:
   the statement in front glows and settles, and its kind of source pops in the list (see ago.js). */
.stage.is-swap .piece.is-on {
  animation: swap-on 0.9s ease-out;
}
.stage.is-swap[data-kind="ai"] .src--ai .src__kind,
.stage.is-swap[data-kind="file"] .src--file .src__kind,
.stage.is-swap[data-kind="app"] .src--app .src__kind {
  animation: swap-kind 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes swap-on {
  from {
    background: #4a3b2b;
    box-shadow: 0 0 0 calc(var(--u) * 0.5) rgba(255, 168, 82, 0.22);
  }
}
@keyframes swap-kind {
  from {
    transform: scale(0.6);
  }
}
.stage[data-mode="pause"] *,
.stage[data-mode="pause"] *::before {
  animation-play-state: paused !important;
}
@keyframes eye-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes eye-work {
  0%,
  22% {
    opacity: 1;
  }
  24%,
  46% {
    opacity: 0;
  }
  48%,
  70% {
    opacity: 1;
  }
  72%,
  100% {
    opacity: 0;
  }
}
@keyframes eye-look {
  0%,
  22% {
    opacity: 0;
    transform: none;
  }
  24%,
  35% {
    opacity: 1;
    transform: translate(-3.4px, 9.4px);
  }
  36.5%,
  46% {
    opacity: 0;
    transform: translate(-3.4px, 9.4px);
  }
  48%,
  70% {
    opacity: 0;
    transform: none;
  }
  72%,
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes eye-smile {
  0%,
  35% {
    opacity: 0;
  }
  36.5%,
  45% {
    opacity: 1;
  }
  47%,
  100% {
    opacity: 0;
  }
}
@keyframes eye-spark {
  0% {
    opacity: 0;
    transform: rotate(var(--a)) translateY(-14px);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--a)) translateY(-34px);
  }
}
@keyframes ghost {
  0%,
  45% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}
@keyframes ask {
  0%,
  25% {
    opacity: 0;
    transform: translateY(calc(var(--u) * -2));
  }
  29%,
  43% {
    opacity: 1;
    transform: none;
  }
  46%,
  100% {
    opacity: 0;
    transform: translateY(calc(var(--u) * -2));
  }
}
@keyframes come {
  from {
    opacity: 0;
    transform: translateY(calc(var(--u) * 0.8));
  }
}
@keyframes show {
  from {
    opacity: 0;
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(calc(var(--u) * -2));
  }
}
@keyframes press {
  0% {
    transform: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }
  45% {
    transform: scale(0.88);
    background: var(--amber);
  }
}
@keyframes read {
  from {
    opacity: 0.25;
    transform: scale(0.6);
  }
}
@keyframes lit {
  from {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
}
@keyframes kept {
  0%,
  30% {
    background: var(--amber);
    color: #000;
  }
}
@keyframes story-1 {
  0% {
    opacity: 0;
  }
  3%,
  22% {
    opacity: 1;
  }
  25%,
  100% {
    opacity: 0;
  }
}
@keyframes story-2 {
  0%,
  25% {
    opacity: 0;
  }
  28%,
  44% {
    opacity: 1;
  }
  47%,
  100% {
    opacity: 0;
  }
}
@keyframes story-3 {
  0%,
  47% {
    opacity: 0;
  }
  50%,
  70% {
    opacity: 1;
  }
  73%,
  100% {
    opacity: 0;
  }
}
@keyframes chapter-1 {
  0%,
  24% {
    opacity: 1;
  }
  26%,
  99% {
    opacity: 0.3;
  }
}
@keyframes chapter-2 {
  0%,
  24% {
    opacity: 0.3;
  }
  26%,
  46% {
    opacity: 1;
  }
  48%,
  99% {
    opacity: 0.3;
  }
}
@keyframes chapter-3 {
  0%,
  46% {
    opacity: 0.3;
  }
  48%,
  71% {
    opacity: 1;
  }
  73%,
  99% {
    opacity: 0.3;
  }
}
@keyframes chapter-4 {
  0%,
  71% {
    opacity: 0.3;
  }
  73%,
  100% {
    opacity: 1;
  }
}

/* ---- The foot: two notes ---- */
.base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 8px var(--side) 12px;
}
.base__right {
  text-align: right;
}

/* One screen with no scroll, when the window has the room for it. */
@media (min-width: 1160px) and (min-height: 640px) {
  body {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
  }
}
/* A smaller window: the text, then the illustration, and the page scrolls. */
@media (max-width: 1159px), (max-height: 639px) {
  :root {
    --side: 20px;
  }
  .field {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding-top: 24px;
    padding-bottom: 40px;
  }
  .say {
    max-width: 560px;
  }
  .stage {
    justify-self: start;
    width: min(100%, 760px);
  }
}
@media (max-width: 520px) {
  .base {
    flex-direction: column;
    align-items: start;
    gap: 4px;
  }
  .base__right {
    text-align: left;
  }
}

/* In a narrow box (a phone) the parts stand one under the other on the dark ground of the desktop, a unit is a
   fixed size, the Review card stays in view, and the four sentences are a list at the top. */
@container stage (max-width: 599px) {
  .art {
    --u: 7px;
    display: grid;
    gap: 18px;
    aspect-ratio: auto;
    padding: 22px 14px 22px;
    font-size: 13px;
  }
  .mac {
    height: 100%;
    border-radius: 16px;
  }
  .mac__bar,
  .mac__notch,
  .eye,
  .ghost,
  .chapters {
    display: none;
  }
  .step,
  .story {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
  }
  .step--ask {
    opacity: 1;
    pointer-events: auto;
  }
  .step__name {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
  }
  .panel {
    border-radius: 14px;
  }
  /* "order" also sets the order of painting: without the z-index the desktop, which comes later in that order,
     is painted over the sentences. */
  .story {
    z-index: 1;
    display: grid;
    gap: 8px;
    order: -1;
    color: #ffffff;
  }
  /* The four sentences stay in view on a phone: they do not come and go with the chapters. */
  .stage .story__line {
    position: static;
    font-size: 21px;
    opacity: 1;
    animation: none !important;
  }
  .lib {
    grid-template-columns: minmax(0, 1fr);
  }
  .lib__side {
    display: none;
  }
  .pieces {
    grid-template-columns: minmax(0, 1fr);
  }
  /* A statement is high enough for a finger. */
  .piece {
    min-height: 44px;
    font-size: 13px;
  }
  .piece__where,
  .src__note,
  .ask__meta,
  .lib__sub,
  .paper__from {
    font-size: 11px;
  }
  .chip {
    font-size: 9.5px;
  }
  .ask__line {
    font-size: 17px;
  }
  .ask__quote,
  .paper,
  .given__name,
  .reader,
  .act--edit {
    font-size: 13px;
  }
  .given {
    grid-template-columns: minmax(0, 1fr);
  }
  .calls {
    position: static;
    width: auto;
    margin-top: 12px;
    padding: 0 12px 8px;
    border-radius: 14px;
  }
  .calls__top {
    height: 30px;
    font-size: 11px;
  }
  .call,
  .call code {
    font-size: 12.5px;
  }
  .call {
    padding: 7px 0;
  }
  .paper {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    transition: none !important;
  }
  /* No moving fill and no motion in the picture: the mark in front is simply full, and the picture is complete. */
  .mark__fill,
  .stage *,
  .stage *::before {
    animation: none !important;
  }
  .mark.is-on .mark__fill {
    transform: scaleX(1);
  }
  /* The logo is still; pointed at, it still smiles, without the motion. */
  .m-ring,
  .m-dot,
  .m-look,
  .brand__word {
    animation: none !important;
  }
}
