/* Easeout site. Light only: the clips are light, so the page is too. */

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

:root {
  color-scheme: light;

  --bg: #ffffff;
  --ink: #111113;
  --ink-hover: #2b2b30;
  --muted: #6b6b73;
  --line: #e9e9ed;
  --line-strong: #dcdce2;
  --field: #f4f4f6;
  --green: #22c55e;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.top-sentinel {
  position: absolute;
  top: 0;
  height: 8px;
  width: 1px;
}

/* Header: the only glass on the page, and only a little. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.site-header[data-scrolled] {
  border-bottom-color: var(--line);
}

/* The bar follows what the library sites share (measured on fifteen of them):
   64 to 68 px tall, logo and a few links on the left, and on the right a row of
   36 px pills: search, GitHub stars, one main action. */

.bar {
  height: 68px;
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  flex: none;
  border-radius: 8px;
}

.logo img {
  display: block;
  width: auto;
  height: 30px;
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: 26px;
}

.nav a,
.menu-panel a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 160ms ease, background-color 160ms ease;
}

.nav a[aria-current],
.menu-panel a[aria-current] {
  color: var(--ink);
}

.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--field);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.search,
.stars,
.round {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 36px;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}

.search:active,
.stars:active,
.round:active {
  transform: scale(0.97);
}

.search {
  gap: 8px;
  width: 224px;
  padding: 0 8px 0 13px;
  background: var(--field);
  color: var(--muted);
  font-size: 14px;
}

.search svg {
  flex: none;
  width: 15px;
  height: 15px;
}

.search span {
  margin-right: auto;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

kbd + kbd {
  margin-left: -4px;
}

.stars {
  gap: 8px;
  padding: 0 12px;
  background: var(--field);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stars .gh {
  width: 17px;
  height: 17px;
}

.stars .star {
  width: 13px;
  height: 13px;
  margin-left: -2px;
  color: #b4b4bc;
  transition: color 200ms ease, transform 300ms var(--ease-out);
}

.round {
  justify-content: center;
  width: 36px;
  color: var(--muted);
}

.round svg {
  width: 15px;
  height: 15px;
}

.menu {
  display: none;
}

.bars {
  position: relative;
  width: 16px;
  height: 16px;
}

.bars i {
  position: absolute;
  left: 1.5px;
  right: 1.5px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms var(--ease-out);
}

.bars i:first-child {
  top: 4.6px;
}

.bars i:last-child {
  top: 9.6px;
}

.menu[aria-expanded="true"] .bars i:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.menu[aria-expanded="true"] .bars i:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

/* The phone menu lies over the page under the bar (the page does not jump).
   Opening: it unrolls from the bar with the iOS sheet curve, then its links
   come in one after another, sharpening from a slight blur. Closing is quicker. */
.menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  /* Solid: a see-through panel inside the bar's own blur would let the page show through. */
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px -24px rgba(17, 17, 19, 0.25);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 200ms var(--ease-out);
}

.menu-panel[data-open] {
  clip-path: inset(0 0 -40px 0);
  transition-duration: 380ms;
  transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
}

.menu-panel[hidden] {
  display: none;
}

.menu-inner {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding-top: 4px;
  padding-bottom: 18px;
}

.menu-inner > * {
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(3px);
  transition: opacity 140ms ease, transform 160ms var(--ease-out), filter 140ms ease;
}

.menu-panel[data-open] .menu-inner > * {
  opacity: 1;
  transform: none;
  filter: none;
  transition-duration: 300ms, 360ms, 300ms;
  transition-delay: calc(70ms + var(--i, 0) * 40ms);
}

.site-header:has(.menu-panel[data-open]) {
  border-bottom-color: var(--line);
}

.menu-panel a:not(.btn) {
  margin-left: -12px;
  font-size: 16px;
  height: 44px;
}

.menu-panel .btn {
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .menu-panel,
  .menu-inner > * {
    clip-path: none;
    transform: none;
    filter: none;
    transition: opacity 150ms ease;
  }

  .menu-panel {
    opacity: 0;
  }

  .menu-panel[data-open] {
    opacity: 1;
  }
}

/* Buttons: the two from the scenes, a black pill and a white outline pill. */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.005em;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}

/* A finger gets 44 px, whatever the button measures. */
.btn::before {
  content: "";
  position: absolute;
  inset: -6px 0;
}

.btn:active {
  transform: scale(0.97);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-line {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-small {
  height: 32px;
  padding: 0 13px;
  font-size: 13px;
}

@media (hover: hover) {
  .nav a:hover,
  .round:hover {
    color: var(--ink);
    background: var(--field);
  }

  .search:hover,
  .stars:hover {
    background: #ececf0;
  }

  .search:hover {
    color: var(--ink);
  }

  /* The star lights up in the logo's orange, the one colour moment of the bar. */
  .stars:hover .star {
    color: #fb8849;
    transform: scale(1.18) rotate(-8deg);
  }

  .btn-ink:hover {
    background: var(--ink-hover);
  }

  .btn-line:hover {
    background: var(--field);
  }

  .btn-soft:hover,
  .announce:hover,
  .card:hover {
    background: #ececf0;
  }

  .pill:hover {
    color: var(--ink);
  }

  .side a:not([aria-current]):hover {
    background: var(--field);
    color: var(--ink);
  }

  .round.soft:hover {
    background: #ececf0;
  }

  .back:hover {
    color: var(--ink);
  }

  .announce:hover svg {
    transform: translateX(2px);
  }

  .foot-social a:hover {
    background: var(--field);
  }

  .foot-pill:hover {
    background: #ebebef;
  }

  .foot-links a:hover {
    color: var(--muted);
  }

  .compare-play:hover {
    background: var(--ink-hover);
  }
}

/* Hero: small and centred. The scenes are the show, not the headline. */

/* The scale is the one the library sites share: a small pill, a two-line
   headline of about 46 px, one or two quiet lines, two small pill buttons. Under
   them the thing only this site has: a prompt you can copy right here. */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: 108px;
  padding-bottom: 96px;
  text-align: center;
}

/* The second line of the headline carries the fade of the logo. */
.fade-wrap {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.fade-line,
.fade-wrap::before {
  display: inline-block;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  /* Exactly the logo's colours, measured across the wordmark from left to right
     (the same stops as brand/easeout-wordmark.svg), and like the logo: flat, no glow. */
  background: linear-gradient(90deg, #ac52e1 0%, #b943b7 8%, #cb3479 17%, #d5325a 25%, #e53e4e 34%, #f24c43 43%, #f65c3f 52%, #f66c40 61%, #f77c45 70%, #f78746 78%, #f8964b 87%, #f99f4d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* No coloured glow under the line any more: the logo has none either. */
.fade-wrap::before {
  display: none;
}

@media (forced-colors: active) {
  .fade-line {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
  }

  .fade-wrap::before {
    display: none;
  }
}

/* The first line under the bar: what is new, as one quiet pill. No colour. */
.announce {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 11px 0 5px;
  border-radius: 999px;
  background: var(--field);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}

/* A finger gets 44 px. */
.announce::before {
  content: "";
  position: absolute;
  inset: -6px 0;
}

.announce:active {
  transform: scale(0.98);
}

.announce .tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.05),
    0 1px 2px rgb(0 0 0 / 0.05);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.announce svg {
  width: 11px;
  height: 11px;
  margin-left: -3px;
  color: #a0a0a8;
  transition: transform 200ms var(--ease-out), color 160ms ease;
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(38px, 20px + 3.4vw, 66px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.04em;
}

/* A bigger hero: the line, the buttons and the install row grow with the headline. */
.hero .lede {
  max-width: 38rem;
  margin-top: 28px;
  font-size: 19px;
  line-height: 29px;
}

.hero .actions {
  margin-top: 32px;
}

.hero .btn-big {
  height: 46px;
  padding: 0 22px;
  font-size: 16px;
}

.hero .announce {
  height: 34px;
  font-size: 14px;
}

/* Every black word throws a faint shadow down onto the page: a wide one and a
   tight one where the letters would touch. Kept very light (Roman: less shadow). */
.word {
  display: inline-block;
  filter: blur(0) drop-shadow(0 0.2em 0.2em rgb(0 0 0 / 0.025)) drop-shadow(0 0.03em 0.04em rgb(0 0 0 / 0.015));
}

/* One grey line under the headline, on the scale the library sites use for it:
   15 to 18 px, one or two lines, a plain fact about what you get. */
.lede {
  max-width: 34rem;
  margin: 26px auto 0;
  font-size: 17px;
  line-height: 26px;
  color: var(--muted);
  text-wrap: balance;
}

.lede + .actions {
  margin-top: 26px;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.btn-big {
  height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}

.btn-soft {
  background: var(--field);
  color: var(--ink);
}

/* The command that installs the skill, with its button. */
.try {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  height: 54px;
  margin: 40px auto 0;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  /* The same grey as every other grey pill on the page. No outline. */
  background: var(--field);
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 15.5px;
}

.try .btn-small {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.try .sign {
  color: #8e8e96;
  user-select: none;
}

.try code {
  min-width: 0;
  margin-right: 14px;
  overflow: hidden;
  font: inherit;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.try .btn {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
}

/* Scenes: filter pills, then a grid of cards in the manner of libraries.dev.
   A card is one link: a pale grey panel, in it a white stage with the scene's
   phone hanging from the stage's top edge, and under it a tile, the name and
   one line. The clip already has the phone on white in the stage's shape, so
   the stage only has to cut its corners. */

.scenes {
  margin-top: 128px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 24px;
}

/* Under the centred head the filters sit centred too. */
.scenes-head + .filters {
  justify-content: center;
  margin-top: 28px;
}

/* Home: three scenes right under the head, then the way to all of them. */
.scenes-head + .grid {
  margin-top: 36px;
}

.scenes-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.scenes-more .btn svg {
  width: 12px;
  height: 12px;
  margin-left: 4px;
}

/* The scenes page: the same head as a page title, closer to the bar. */
.scenes-index {
  margin-top: 64px;
}

/* Search and filters in one centred row; on a phone they stack. */
.scenes-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin: 28px 0 24px;
}

.scenes-tools .filters {
  margin: 0;
}

.scene-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  height: 40px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  background: var(--field);
  color: var(--muted);
  cursor: text;
  transition: box-shadow 160ms ease;
}

.scene-search:focus-within {
  box-shadow: 0 0 0 2px var(--ink);
}

.scene-search svg {
  flex: none;
  width: 15px;
  height: 15px;
}

.scene-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
}

.scene-search input::placeholder {
  color: var(--muted);
}

.scene-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.scene-search:focus-within kbd {
  opacity: 0;
}

.scenes-empty {
  padding: 48px 0;
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}

.pill {
  position: relative;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.005em;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}

/* A finger gets 44 px, whatever the pill measures. */
.pill::before {
  content: "";
  position: absolute;
  inset: -4px 0;
}

.pill:active {
  transform: scale(0.97);
}

.pill[aria-pressed="true"] {
  background: var(--field);
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.grid > li {
  min-width: 0;
}

.grid > li[hidden] {
  display: none;
}

/* The card's corner is the stage's corner plus the margin between them, so
   the two curves run parallel. */
.card {
  display: block;
  padding: 12px;
  border-radius: 26px;
  background: var(--field);
  -webkit-tap-highlight-color: transparent;
  transition: transform 200ms var(--ease-out), background-color 200ms ease;
}

.card:active {
  transform: scale(0.985);
}

.stage {
  aspect-ratio: 960 / 1336;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Every clip carries its still picture as background (set in the markup), so a
   paused or reloading video never shows an empty white box. */
video[data-clip] {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.step-art-phone video[data-clip] {
  background-position: center top;
}

.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px 4px;
}

.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
}

.tile svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.meta-text {
  flex: 1;
  min-width: 0;
}

.meta h3 {
  font-size: 16px;
  line-height: 21px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.meta p {
  margin-top: 2px;
  font-size: 14px;
  line-height: 19px;
  color: var(--muted);
  text-wrap: balance;
}

/* A scene's own page, in the manner of libraries.dev: the list of scenes at
   the left, the scene at the right. Its stage is a card of the home page, only
   larger, so a visitor recognises what they clicked. */

.scene-page {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px;
  padding-top: 44px;
}

.side {
  position: sticky;
  top: 92px;
  align-self: start;
}

.side-label {
  margin: 0 0 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.side ul {
  display: grid;
  gap: 2px;
}

.side a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px 0 8px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent;
  transition: background-color 200ms ease, color 200ms ease;
}

.side a[aria-current] {
  background: var(--field);
  color: var(--ink);
}

.mini {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
}

.side a[aria-current] .mini {
  background: #fff;
}

.mini svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.scene {
  min-width: 0;
}

/* On a wide screen the list leads back; on a narrow one this link does. */
.back {
  display: none;
  align-items: center;
  gap: 4px;
  height: 36px;
  margin: -6px 0 14px -4px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.back svg {
  width: 13px;
  height: 13px;
}

.scene-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tile-grey {
  background: var(--field);
}

.pager {
  display: flex;
  gap: 8px;
}

.round.soft {
  background: var(--field);
  color: var(--ink);
}

.round.soft svg {
  width: 13px;
  height: 13px;
}

.scene h1 {
  margin-top: 18px;
  font-size: clamp(30px, 22px + 1.4vw, 38px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.scene-lede {
  margin-top: 8px;
  font-size: 17px;
  line-height: 26px;
  color: var(--muted);
  text-wrap: pretty;
}

.scene-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}

.tabs {
  display: flex;
  gap: 4px;
}

.pill[aria-selected="true"] {
  background: var(--field);
  color: var(--ink);
}

.viewer {
  margin-top: 16px;
  padding: 12px;
  border-radius: 26px;
  background: var(--field);
}

.viewer-stage {
  display: flex;
  justify-content: center;
  height: clamp(420px, 48vw, 580px);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.viewer-stage[hidden] {
  display: none;
}

/* The clip is the card's clip: the phone fills most of its width, so a stage
   as tall as the clip shows the phone at the same cut as on the card. */
.viewer-stage video {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
}

.viewer-prompt {
  display: block;
  overflow: auto;
  overscroll-behavior: contain;
}

.viewer-prompt pre {
  margin: 0;
  padding: 22px 24px;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 4;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 28px 0 0;
  padding: 0 4px;
}

.facts dt {
  font-size: 14px;
  color: var(--muted);
}

.facts dd {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Before/after: the same prompt built by the same model, without and with the
   skill. One pale grey stage holds both phones close to the middle, split by a
   dotted line; a soft wash of the app's own colour sits behind the Easeout phone. */

.compare {
  margin-top: 128px;
}

.compare[data-shown="subs"] {
  --glow: rgba(255, 150, 60, 0.3);
}

.compare[data-shown="fit"] {
  --glow: rgba(239, 68, 68, 0.22);
}

.compare-head,
.scenes-head {
  text-align: center;
}

.compare-head h2,
.scenes-head h2,
.scenes-head h1 {
  font-size: clamp(32px, 22px + 1.8vw, 48px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.compare-head p,
.scenes-head p {
  max-width: 44rem;
  margin: 12px auto 0;
  font-size: 18px;
  line-height: 26px;
  color: var(--muted);
  text-wrap: balance;
}

/* The switch: a pale grey track, a white knob that slides behind the chosen app. */
.compare-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: max-content;
  margin: 28px auto 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--field);
}

.compare-knob {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.08), 0 2px 8px -2px rgba(17, 17, 19, 0.06);
  transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
}

.compare[data-topic="fit"] .compare-knob {
  transform: translateX(100%);
}

.compare-switch button {
  position: relative;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.005em;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent;
  transition: color 200ms ease, transform 160ms var(--ease-out);
}

.compare-switch button[aria-pressed="true"] {
  color: var(--ink);
}

.compare-switch button:active {
  transform: scale(0.97);
}

/* The stage: both phones, close to the dotted middle line. */
.compare-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 112px;
  margin-top: 28px;
  padding: 28px 24px 28px;
  border-radius: 32px;
  background: var(--field);
  overflow: hidden;
  isolation: isolate;
}

.compare-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 92px;
  bottom: 120px;
  width: 2px;
  margin-left: -1px;
  background: repeating-linear-gradient(to bottom, #c9c9d0 0 2px, transparent 2px 9px);
  pointer-events: none;
}

.compare-glow {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56%;
  background: radial-gradient(closest-side at 46% 56%, var(--glow), transparent);
  pointer-events: none;
}

.compare-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(300px, 100%);
}

.compare-without {
  justify-self: end;
}

.compare-with {
  justify-self: start;
}

.compare-tag {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 15px;
  font-weight: 550;
}

.compare-with .compare-tag {
  background: var(--ink);
  color: #fff;
}

.compare-phone {
  width: 100%;
  margin-top: 22px;
}

/* The recording is the bare screen: rounded and framed in black like a phone. */
.compare-phone video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 0 0 6px #17171a, 0 30px 50px -28px rgba(17, 17, 19, 0.35);
  background-color: #fff;
}

/* One player for both phones: a white capsule under them with play/pause, a
   bar you can drag to move both recordings, and the time. */
.compare-player {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(560px, 100%);
  margin-top: 36px;
  padding: 6px 20px 6px 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.06), 0 8px 24px -12px rgba(17, 17, 19, 0.12);
}

.compare-play {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}

.compare-play:active {
  transform: scale(0.94);
}

/* The three icons share one cell; the state shows one of them. */
.compare-play svg {
  grid-area: 1 / 1;
  width: 17px;
  height: 17px;
  opacity: 0;
  transform: scale(0.6);
  filter: blur(2px);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), filter 160ms var(--ease-out);
}

.compare-play[data-state="play"] .i-play,
.compare-play[data-state="pause"] .i-pause,
.compare-play[data-state="again"] .i-again {
  opacity: 1;
  transform: none;
  filter: none;
}

.compare-track {
  position: relative;
  flex: 1;
  height: 44px;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

/* The bar clips a full-width fill that slides in from the left, so both ends
   stay round (scaleX would squash the rounded end). */
.compare-track-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background: #e4e4ea;
  overflow: hidden;
}

.compare-track-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-100%);
}

.compare-track-thumb {
  position: absolute;
  left: -9px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 19, 0.08), 0 2px 6px rgba(17, 17, 19, 0.22);
}

.compare-track-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transition: transform 160ms var(--ease-out);
}

.compare-track[data-dragging] .compare-track-thumb {
  box-shadow: 0 0 0 1px rgba(17, 17, 19, 0.1), 0 3px 10px rgba(17, 17, 19, 0.28);
}

.compare-track:focus-visible {
  outline: none;
}

.compare-track:focus-visible .compare-track-bar {
  box-shadow: 0 0 0 3px rgba(17, 17, 19, 0.18);
}

.compare-time {
  flex: none;
  min-width: 34px;
  font-size: 15px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: right;
}

/* One recording per app; the other waits hidden. */
.compare-phone video[hidden] {
  display: none;
}

/* Switching the app: the old recordings blur out quickly, the new ones settle in. */
.compare-phone video,
.compare-glow {
  transition: opacity 240ms var(--ease-out), filter 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.compare[data-swapping] .compare-phone video,
.compare[data-swapping] .compare-glow {
  opacity: 0;
  filter: blur(6px);
  transform: scale(0.98);
  transition-duration: 140ms;
}

@media (prefers-reduced-motion: reduce) {
  .compare-knob {
    transition: none;
  }

  .compare[data-swapping] .compare-phone video,
  .compare[data-swapping] .compare-glow {
    filter: none;
    transform: none;
  }
}

/* Closing: the promise of the skill and its install button. */
.closing {
  margin-top: 160px;
  text-align: center;
}

.closing h2 {
  font-size: clamp(34px, 22px + 2.4vw, 56px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.closing p {
  max-width: 36rem;
  margin: 14px auto 0;
  font-size: 18px;
  line-height: 26px;
  color: var(--muted);
  text-wrap: balance;
}

.closing .actions {
  margin-top: 30px;
}

.closing-command {
  display: block;
  margin-top: 16px;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 13px;
  color: var(--muted);
}

/* Legal pages: one calm column of text. */
.legal {
  max-width: 44rem;
  margin-top: 64px;
}

.legal h1 {
  font-size: clamp(32px, 22px + 1.8vw, 44px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.legal-lede {
  margin-top: 14px;
  font-size: 18px;
  line-height: 27px;
  color: var(--muted);
}

.legal h2 {
  margin-top: 40px;
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 26px;
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-rows {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.legal-rows > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  font-size: 16px;
  line-height: 25px;
}

.legal-rows dt {
  color: var(--muted);
}

@media (max-width: 639px) {
  .legal-rows > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

.legal-date {
  margin-top: 40px;
  color: var(--muted);
}

/* Page not found. */
.not-found {
  margin-top: 120px;
  text-align: center;
}

.not-found-code {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.not-found h1 {
  margin-top: 10px;
  font-size: clamp(32px, 22px + 1.8vw, 48px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.not-found > p:not(.not-found-code) {
  margin-top: 12px;
  font-size: 18px;
  color: var(--muted);
}

/* Copy button: black, then green with a check and a small pop, like the
   buttons in the scenes. The three labels share one cell, so it never jumps. */

.copy {
  display: inline-grid;
  flex: none;
}

.copy > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: opacity 200ms ease, filter 200ms ease, transform 200ms var(--ease-out);
}

/* "Install skill" is one label: no gap inside it. */
.copy .copy-idle {
  gap: 0;
}

.copy-done,
.copy-fail {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(5px);
}

.copy[data-state="done"] {
  background: var(--green);
  color: #fff;
  animation: pop 420ms var(--ease-out);
}

.copy[data-state="done"] .copy-idle,
.copy[data-state="fail"] .copy-idle {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(-5px);
}

.copy[data-state="done"] .copy-done,
.copy[data-state="fail"] .copy-fail {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.check {
  width: 13px;
  height: 13px;
  margin-left: -1px;
}

.check path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.copy[data-state="done"] .check path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 320ms var(--ease-out) 80ms;
}

@keyframes pop {
  0% {
    transform: scale(0.97);
  }
  45% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

/* How it works: a centred heading with a tagline, then three cards that are
   built alike: a picture on top, a row of text under it. Steps 1 and 2 are
   stacked at the left; step 3 is one tall card at the right with the phone. */

.how {
  margin-top: 128px;
}

.how-head {
  text-align: center;
}

.how-head h2 {
  font-size: clamp(30px, 22px + 1.4vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.how-head p {
  margin-top: 10px;
  font-size: 18px;
  line-height: 26px;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
  gap: 20px;
  margin-top: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 26px;
  background: var(--field);
}

.step-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 214px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

/* Under the picture: the badge and the title at the left, the line at the right. */
.step-text {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px 6px;
}

.step-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 19px;
  line-height: 25px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.step-text p {
  max-width: 15rem;
  margin-left: auto;
  font-size: 15px;
  line-height: 21px;
  color: var(--muted);
  text-align: right;
  text-wrap: balance;
}

/* Step 3 spans both rows. Its text has the line under the title. */
.step-tall {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.step-tall .step-art {
  flex: 1;
  height: auto;
  min-height: 0;
}

/* The clip takes no part in the card's height: the two cards at the left set
   it, and the clip fills what is there. */
.step-tall .step-art video {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.step-tall .step-text {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
}

.step-tall .step-text p {
  grid-column: 1 / -1;
  margin-left: 0;
  text-align: left;
  max-width: none;
}

/* Step 1: the button a visitor will press, with the pointer on it. */
.art-copy {
  position: relative;
  display: grid;
  margin: 62px 0 0 64px;
}

.art-copy > .art-button {
  grid-area: 1 / 1;
}

.art-button.art-ghost {
  background: #e6e6eb;
  color: #fff;
}

.art-ghost-1 {
  transform: translate(-34px, -34px) scale(0.92);
}

.art-ghost-2 {
  transform: translate(-68px, -68px) scale(0.84);
  opacity: 0.6;
}

.art-button {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 550;
}

.pointer {
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: 26px;
  height: 26px;
}

/* The main button holds its two labels in one cell, so it never changes size. */
.art-main {
  position: relative;
  display: inline-grid;
  justify-items: center;
  isolation: isolate;
}

/* Black and green are two layers that cross-fade. The pill itself has no
   background, so no dark rim shows around the green. */
.art-main {
  background: none;
}

.art-main::before,
.art-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
}

.art-main::before {
  background: var(--ink);
}

.art-main::after {
  background: var(--green);
  opacity: 0;
}

/* Only the small things that fly get their own layer. The pills are drawn
   sharp at every scale (a fixed layer would blur their round ends). */
.pointer,
.packet {
  will-change: transform, opacity;
}

.art-main .lbl {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.art-main .lbl-done {
  opacity: 0;
}

.art-main .check {
  width: 15px;
  height: 15px;
}

.art-main .check path {
  stroke-dashoffset: 0;
}

/* Card 1: the skill file drops into the folder, in front of two sheets that are
   already in it. The folder's front pocket (with its tab on the left) hides the
   lower part of the papers. */
.art-skill {
  position: relative;
  width: 260px;
  height: 196px;
  margin-top: 0;
}

.skill-sheet,
.skill-file {
  position: absolute;
  left: 64px;
  top: 12px;
  width: 132px;
  height: 160px;
  border-radius: 12px;
  background: #fff;
}

.skill-sheet {
  box-shadow: inset 0 0 0 1.5px #dcdce2;
}

.skill-sheet-2 {
  transform: translate(-30px, 8px) rotate(-13deg);
}

.skill-sheet-1 {
  transform: translate(-14px, 3px) rotate(-7deg);
}

.skill-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 22px;
  box-shadow: inset 0 0 0 1.5px #d6d6dc, 0 8px 18px -12px rgba(17, 17, 19, 0.22);
  transform: rotate(-2deg);
  /* The folded corner: the corner is cut off and a grey triangle lies on it. */
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.skill-fold {
  position: absolute;
  right: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-bottom-left-radius: 6px;
  background: linear-gradient(225deg, transparent calc(50% - 0.75px), #d2d2d8 calc(50% - 0.75px), #d2d2d8 calc(50% + 0.75px), #e8e8ed calc(50% + 0.75px));
}

.skill-mark {
  display: block;
  width: 64px;
  height: auto;
}

.skill-file b {
  margin-top: 8px;
  font-size: 22px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.skill-file small {
  margin-top: 2px;
  font-size: 14px;
  line-height: 18px;
  color: var(--muted);
}

.skill-folder {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 260px;
  height: 84px;
  fill: #e5e5ea;
  transform-origin: bottom center;
}

/* Card 2: the packets start under the request and fly to the agents. */
.packet {
  position: absolute;
  top: 85px;
  left: 170px;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0;
}

/* Motion, only while the section is on screen and only without Reduce Motion. */
@media (prefers-reduced-motion: no-preference) {
  .steps[data-live] .art-main {
    animation: art-press 4s var(--ease-out) infinite;
  }

  .steps[data-live] .art-main::after {
    animation: art-green 4s ease infinite;
  }

  .steps[data-live] .art-main::before {
    animation: art-ink 4s ease infinite;
  }

  .steps[data-live] .art-main .lbl-copy {
    animation: lbl-out 4s ease infinite;
  }

  .steps[data-live] .art-main .lbl-done {
    animation: lbl-in 4s ease infinite;
  }

  .steps[data-live] .pointer {
    animation: art-pointer 4s cubic-bezier(0.32, 0.72, 0, 1) infinite;
  }

  .steps[data-live] .art-ghost-1 {
    animation: ghost-1 4s cubic-bezier(0.32, 0.72, 0, 1) infinite;
  }

  .steps[data-live] .art-ghost-2 {
    animation: ghost-2 4s cubic-bezier(0.32, 0.72, 0, 1) infinite;
  }

  .steps[data-live] .skill-file {
    animation: skill-drop 4s cubic-bezier(0.33, 0, 0.2, 1) infinite;
  }

  .steps[data-live] .skill-folder {
    animation: folder-take 4s var(--ease-out) infinite;
  }

  .steps[data-live] .packet {
    animation: packet 3.6s cubic-bezier(0.33, 0, 0.2, 1) infinite;
    animation-delay: calc(var(--k) * 0.32s);
  }

  .steps[data-live] .agent-logo {
    animation: tile-pop 3.6s cubic-bezier(0.34, 1.3, 0.64, 1) infinite;
    animation-delay: calc(var(--k) * 0.32s);
  }

  .steps[data-live] .agents-pill {
    animation: pill-send 3.6s var(--ease-out) infinite;
  }
}

/* Card 1, one loop of 4 s: in, click, copied, copies out, hold, back. */
@keyframes art-pointer {
  0% {
    transform: translate(46px, 40px);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  24% {
    transform: translate(0, 0);
  }
  28% {
    transform: translate(0, 0) scale(0.84);
  }
  33%,
  78% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  92%,
  100% {
    transform: translate(46px, 40px);
    opacity: 0;
  }
}

@keyframes art-press {
  0%,
  26% {
    transform: scale(1);
  }
  29% {
    transform: scale(0.95);
  }
  37%,
  100% {
    transform: scale(1);
  }
}

@keyframes art-green {
  0%,
  29% {
    opacity: 0;
  }
  36%,
  82% {
    opacity: 1;
  }
  90%,
  100% {
    opacity: 0;
  }
}

/* Card 1, one loop of 4 s: the file falls in (stretched and blurred while it is
   fast), the pocket gives a little, it rests, then lifts away and the loop
   starts again. */
@keyframes skill-drop {
  0%,
  6% {
    transform: translateY(-70px) rotate(-8deg);
    filter: blur(0);
    opacity: 0;
  }
  10% {
    transform: translateY(-62px) rotate(-8deg);
    filter: blur(0);
    opacity: 1;
  }
  17% {
    transform: translateY(-24px) rotate(-5deg) scale(0.97, 1.05);
    filter: blur(1.5px);
    opacity: 1;
  }
  23% {
    transform: translateY(4px) rotate(-2deg) scale(1.02, 0.97);
    filter: blur(0);
    opacity: 1;
  }
  29%,
  78% {
    transform: translateY(0) rotate(-2deg);
    filter: blur(0);
    opacity: 1;
  }
  90%,
  100% {
    transform: translateY(-14px) rotate(-2deg);
    filter: blur(0);
    opacity: 0;
  }
}

@keyframes folder-take {
  0%,
  21% {
    transform: scaleY(1);
  }
  25% {
    transform: scaleY(0.95);
  }
  31%,
  100% {
    transform: scaleY(1);
  }
}

/* The black layer fades out exactly while the green fades in, and back. */
@keyframes art-ink {
  0%,
  29% {
    opacity: 1;
  }
  36%,
  82% {
    opacity: 0;
  }
  90%,
  100% {
    opacity: 1;
  }
}

@keyframes lbl-out {
  0%,
  29% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
  35% {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(-6px);
  }
  84% {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(6px);
  }
  91%,
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes lbl-in {
  0%,
  30% {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(6px);
  }
  37%,
  82% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
  88%,
  100% {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(-6px);
  }
}

/* The copies leave from behind the button; at their fastest they are
   stretched and blurred, at rest they are sharp. */
@keyframes ghost-1 {
  0%,
  31% {
    transform: translate(0, 0) scale(0.92);
    filter: blur(0);
    opacity: 0;
  }
  38% {
    transform: translate(-18px, -18px) scale(0.92, 0.87);
    filter: blur(2.5px);
    opacity: 1;
  }
  50%,
  76% {
    transform: translate(-34px, -34px) scale(0.92);
    filter: blur(0);
    opacity: 1;
  }
  83% {
    transform: translate(-16px, -16px) scale(0.92, 0.87);
    filter: blur(2px);
    opacity: 0.6;
  }
  91%,
  100% {
    transform: translate(0, 0) scale(0.92);
    filter: blur(0);
    opacity: 0;
  }
}

@keyframes ghost-2 {
  0%,
  34% {
    transform: translate(0, 0) scale(0.84);
    filter: blur(0);
    opacity: 0;
  }
  42% {
    transform: translate(-36px, -36px) scale(0.84, 0.78);
    filter: blur(3px);
    opacity: 0.6;
  }
  56%,
  74% {
    transform: translate(-68px, -68px) scale(0.84);
    filter: blur(0);
    opacity: 0.6;
  }
  82% {
    transform: translate(-32px, -32px) scale(0.84, 0.78);
    filter: blur(2.5px);
    opacity: 0.4;
  }
  90%,
  100% {
    transform: translate(0, 0) scale(0.84);
    filter: blur(0);
    opacity: 0;
  }
}

/* Card 2, one loop of 3.6 s per packet. The packet turns towards its tile,
   stretches and blurs while it is fast, and is gone when it arrives. */
@keyframes packet {
  0% {
    transform: translate(0, 0) rotate(var(--a)) scale(0.6);
    filter: blur(0);
    opacity: 0;
  }
  3% {
    transform: translate(0, 0) rotate(var(--a)) scale(1);
    filter: blur(0);
    opacity: 1;
  }
  9% {
    transform: translate(calc(var(--dx) * 0.45), calc(var(--dy) * 0.45)) rotate(var(--a)) scale(2.6, 0.8);
    filter: blur(1.2px);
    opacity: 1;
  }
  17% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--a)) scale(1);
    filter: blur(0);
    opacity: 0.9;
  }
  21%,
  100% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--a)) scale(0.4);
    filter: blur(0);
    opacity: 0;
  }
}

@keyframes tile-pop {
  0%,
  15% {
    transform: scale(1);
  }
  19.5% {
    transform: scale(1.13);
  }
  30%,
  100% {
    transform: scale(1);
  }
}

@keyframes pill-send {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  2% {
    transform: translate(-50%, -50%) scale(0.96);
  }
  7% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Step 2: the prompt goes into whichever agent you use. Six agents' logos
   (Simple Icons) sit in a ring around the pill, joined to it by dotted lines.
   The step's text names the agents; nothing here claims a partnership. */
.agents {
  position: relative;
  width: 340px;
  height: 170px;
  /* zoom, not scale(): the ring is laid out at the larger size and drawn sharp,
     instead of drawn small and stretched (soft, uneven edges). */
  zoom: 1.12;
}

.agents-lines {
  position: absolute;
  inset: 0;
}

.agents-lines line {
  stroke: #b4b4bc;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 0.1 4.5;
}

.agent-logo {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.agent-logo svg {
  width: 21px;
  height: 21px;
}

/* Codex has no vector mark in Simple Icons: its logo is a small picture. */
.agent-img {
  display: block;
  width: 24px;
  height: 24px;
}

.agents-pill {
  position: absolute;
  top: 85px;
  left: 140px;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

/* The request: a white chat bubble in the middle of the ring. */
.agents-pill.agents-ask {
  left: 170px;
  height: 38px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 2px 8px -4px rgba(17, 17, 19, 0.12);
}

/* Step 3: the first scene, playing, at the same cut as on its card. */
.step-art-phone {
  place-items: start center;
}

.step-art-phone video {
  display: block;
  height: 104%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: top;
  margin-top: -2px;
}

/* Footer: open, no panel. A hairline, then brand / links / contact in one row,
   then the wordmark written huge in pale grey, cut off by the bottom of the page. */

.site-footer {
  position: relative;
  margin-top: 104px;
  padding-top: 40px;
  font-size: 14px;
  color: var(--muted);
}

/* The hairline runs only as wide as the content. */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}

.foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 40px 96px;
}

.foot-brand .logo img {
  height: 32px;
}

.foot-brand p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 22px;
}

.foot-cta {
  margin-top: 18px;
}

.foot-links {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  padding-top: 6px;
}

.foot-links ul {
  display: grid;
  align-content: start;
  gap: 8px;
}

.foot-links a {
  display: inline-block;
  padding: 3px 0;
  font-size: 15px;
  line-height: 20px;
  color: #3a3a40;
  transition: color 160ms ease;
}

.foot-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.foot-social {
  display: flex;
  gap: 6px;
}

.foot-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}

.foot-social a:active {
  transform: scale(0.94);
}

.foot-social svg {
  width: 19px;
  height: 19px;
}

.foot-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}

.foot-pill:active {
  transform: scale(0.97);
}

.foot-pill svg {
  width: 11px;
  height: 11px;
}

/* The wordmark: the traced logo used as a mask over a pale grey that fades
   downwards. Only its upper part shows; the page ends inside the letters. */
.foot-mark {
  aspect-ratio: 785 / 138;
  margin-top: 56px;
  background: linear-gradient(180deg, #d6d6db 0%, #ececf0 70%, #f6f6f8 100%);
  -webkit-mask: url("../brand/easeout-wordmark.svg") top center / 100% auto no-repeat;
  mask: url("../brand/easeout-wordmark.svg") top center / 100% auto no-repeat;
}

/* Entrance: once, on load, top to bottom. */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 640ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 55ms);
  }

  /* The hero comes into focus, piece by piece, the way the scenes do. */
  .reveal {
    animation: reveal 720ms var(--ease-out) both;
    animation-delay: calc(var(--d, 0) * 1ms);
  }

  .word.reveal {
    animation-name: reveal-word;
  }

  .grid[data-filtered] > li {
    animation: appear 260ms var(--ease-out) both;
  }

}

@keyframes appear {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(8px);
  }
}

/* The same for a word with its shadow: the list of filters has to match the
   resting one, or the blur would jump instead of clearing. */
@keyframes reveal-word {
  from {
    opacity: 0;
    filter: blur(8px) drop-shadow(0 0.22em 0.2em rgb(0 0 0 / 0)) drop-shadow(0 0.03em 0.04em rgb(0 0 0 / 0));
    transform: translateY(8px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .pill,
  .card,
  .copy > span,
  .check path {
    transition-duration: 1ms !important;
  }

  .copy[data-state="done"] {
    animation: none;
  }
}

/* Smaller screens */

@media (max-width: 1023px) {
  /* The search shrinks to its icon first. */
  .search {
    justify-content: center;
    width: 36px;
    padding: 0;
  }

  .search span,
  .search kbd,
  .scene-search kbd {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene-page {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 28px;
  }

  .side {
    display: none;
  }

  .back {
    display: inline-flex;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .how {
    margin-top: 104px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
  }

  .step-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .step-tall .step-art {
    flex: none;
    height: 440px;
  }
}

@media (max-width: 639px) {
  /* Phone: the two phones stay side by side, smaller, so they can still be compared. */
  .compare-stage {
    column-gap: 28px;
    padding: 18px 14px 14px;
    border-radius: 26px;
  }

  .compare-stage::after {
    top: 64px;
    bottom: 96px;
  }

  .compare-tag {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }

  .compare-phone {
    margin-top: 14px;
  }

  .compare-phone video {
    border-radius: 22px;
    box-shadow: 0 0 0 4px #17171a, 0 20px 30px -20px rgba(17, 17, 19, 0.35);
  }

  .compare-player {
    gap: 12px;
    margin-top: 22px;
    padding-right: 16px;
  }

  :root {
    --gutter: 20px;
  }

  .bar {
    height: 60px;
  }

  .logo img {
    height: 27px;
  }

  /* On a phone: logo, stars and a menu button. The rest moves into the menu. */
  .nav,
  .search,
  .only-wide {
    display: none;
  }

  .menu {
    display: inline-flex;
    background: var(--field);
    color: var(--ink);
  }

  html {
    scroll-padding-top: 76px;
  }

  .hero {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .btn {
    height: 40px;
    padding: 0 18px;
  }

  /* The headline finds its own even lines on a narrow screen. */
  .hero h1 {
    text-wrap: balance;
  }

  .hero h1 br {
    display: none;
  }

  .btn-big,
  .hero .btn-big {
    height: 46px;
    padding: 0 20px;
    font-size: 15.5px;
  }

  .hero .lede {
    font-size: 17px;
    line-height: 26px;
  }

  .try {
    width: 100%;
    height: 52px;
    margin-top: 32px;
    padding-left: 14px;
    gap: 6px;
    font-size: 11.5px;
    letter-spacing: -0.02em;
  }

  .try .btn-small {
    height: 38px;
    padding: 0 14px;
  }

  .try code {
    margin-right: auto;
  }

  /* The whole command has to stay readable: the sign and one word make room. */
  .try .sign,
  .try .wide {
    display: none;
  }

  .btn-small {
    height: 36px;
    padding: 0 15px;
    font-size: 14px;
  }

  .scenes {
    margin-top: 8px;
  }

  .filters {
    margin-bottom: 18px;
  }

  .pill {
    height: 38px;
    padding: 0 16px;
    font-size: 15px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .meta h3 {
    font-size: 17px;
    line-height: 22px;
  }

  .scene-page {
    padding-top: 20px;
  }

  .step .step-art {
    height: 200px;
  }

  .step-tall .step-art {
    height: 380px;
  }

  /* The ring is 340 wide: on a phone it is drawn a little smaller so it fits the card. */
  .agents {
    zoom: 0.84;
  }

  .art-skill {
    zoom: 0.9;
  }

  .step-text {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
  }

  .step-text p {
    grid-column: 1 / -1;
    margin-left: 0;
    text-align: left;
  }

  .step h3 {
    font-size: 18px;
    line-height: 24px;
    white-space: normal;
  }

  .step-text p {
    max-width: none;
  }

  .step-tall .step-art video {
    position: static;
    transform: none;
  }

  .scene-bar {
    flex-wrap: wrap;
  }

  .scene-bar .copy {
    order: -1;
    width: 100%;
    height: 46px;
    font-size: 15px;
  }

  .viewer-stage {
    height: min(132vw, 520px);
  }

  .facts {
    gap: 18px 16px;
  }


  .how {
    margin-top: 88px;
  }


  .site-footer {
    margin-top: 96px;
  }

  .foot-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .foot-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .foot-side p {
    width: 100%;
  }

  .foot-mark {
    margin-top: 40px;
  }
}
