@font-face {
  font-family: Bricolage;
  src: url('fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* The palette Diffy itself uses: lilac paper, purple ink, the yellow dot, and the bots' colors. */
  --paper: #f7f5fb;
  --paper-deep: #ece8f6;
  --ink: #2a1f3d;
  --muted: #6d6480;
  --line: #e1dbee;
  --dot: #ffc94a;
  --indigo: #4c5fe0;
  --add: #2fbf71;
  --add-soft: #e3f7ec;
  --del: #ff5c6c;
  --del-soft: #ffe9eb;
  --blue: #5b8cff;
  --coral: #ff8f6b;
  --mint: #3fd6a6;
  --violet: #b98cff;

  --display: Bricolage, 'Segoe UI Variable Display', system-ui, sans-serif;
  --text: 'Segoe UI Variable Text', Aptos, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;

  --ground: 17svh;
  --bot: clamp(68px, 8.4vw, 124px);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  overflow-x: clip;
}
h1,
h2,
p,
ul,
pre,
fieldset {
  margin: 0;
}
a {
  color: inherit;
}
code,
pre {
  font-family: var(--mono);
}
:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 12px;
}
.skip:focus {
  top: 12px;
}

/* The wordmark: Diffy, and the dot the crew lives in. */
.logo {
  font: 800 1.45rem/1 var(--display);
  letter-spacing: -0.045em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.logo-dot {
  width: 0.26em;
  height: 0.26em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--dot);
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4.5vw;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav nav {
  display: flex;
  gap: clamp(14px, 2.6vw, 34px);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav nav a:hover {
  color: var(--ink);
}
.nav .nav-gh {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 650 1.02rem/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-line {
  background: transparent;
  color: var(--ink);
}
.btn[aria-disabled='true'] {
  cursor: default;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(110px, 17svh, 170px) 4.5vw 9svh;
  display: flex;
  flex-direction: column;
}
.wordmark {
  font: 800 clamp(6.4rem, 29vw, 30rem)/0.8 var(--display);
  letter-spacing: -0.012em;
  margin-left: -0.055em;
  display: flex;
  align-items: baseline;
}
.wordmark-dot {
  display: inline-block;
  flex: none;
  width: 0.205em;
  height: 0.205em;
  margin-left: 0.035em;
  border-radius: 50%;
  background: var(--dot);
  position: relative;
}
.wordmark-dot.is-puff {
  animation: puff 0.32s ease-out;
}
@keyframes puff {
  50% {
    transform: scale(1.18);
  }
}
.hero-row {
  margin-top: clamp(28px, 6svh, 64px);
  display: grid;
  grid-template-columns: minmax(0, 33rem) minmax(0, 1fr);
  gap: 4vw;
  align-items: end;
}
.lede {
  font-size: clamp(1.15rem, 1.55vw, 1.42rem);
  line-height: 1.5;
  max-width: 36ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-crew {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: clamp(4px, 1vw, 16px);
  min-height: calc(var(--bot) * 1.3);
}
.hero-bot {
  width: calc(var(--bot) * 1.15);
}
.hop {
  display: block;
}
.js .hero-bot.is-popping {
  animation: fly-x 0.95s cubic-bezier(0.25, 0.7, 0.35, 1) both;
  animation-delay: var(--delay);
}
.js .hero-bot.is-popping .hop {
  animation: fly-y 0.95s both;
  animation-delay: var(--delay);
}
@keyframes fly-x {
  from {
    transform: translateX(var(--dx));
  }
  35% {
    transform: translateX(calc(var(--dx) * 0.62));
  }
}
@keyframes fly-y {
  from {
    transform: translateY(var(--dy)) scale(0.18);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.4, 1);
  }
  6% {
    opacity: 1;
  }
  38% {
    transform: translateY(calc(var(--dy) - 90px)) scale(0.8);
    animation-timing-function: cubic-bezier(0.55, 0, 0.8, 0.4);
  }
  86% {
    transform: translateY(0) scale(1.08, 0.9);
  }
  to {
    transform: none;
  }
}
.hint {
  margin-top: auto;
  padding-top: 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* The story: vertical scrolling moves a pull request's day past the crew. */
.story {
  position: relative;
}
.story-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.track {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  will-change: transform;
}
.scene {
  position: relative;
  flex: 0 0 100vw;
  height: 100%;
}
.scene:first-of-type {
  margin-left: 34vw;
}
.scene:last-of-type {
  margin-right: 0;
}
.copy {
  position: absolute;
  left: 6vw;
  top: clamp(96px, 16svh, 170px);
  width: min(27rem, 36vw);
  z-index: 2;
}
.copy h2 {
  font: 780 clamp(2.15rem, 4.3vw, 4.4rem)/0.98 var(--display);
  letter-spacing: -0.026em;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.copy p:not(.when) {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  max-width: 34ch;
}
.when {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 700 1rem/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.when time {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}
.who svg {
  width: 30px;
  height: 30px;
}
.prop {
  position: absolute;
  left: 47%;
  top: clamp(110px, 19svh, 200px);
  width: min(33rem, 43vw);
  z-index: 1;
}
.file-tab {
  font: 500 0.82rem/1 var(--mono);
  color: var(--muted);
  margin-bottom: 12px;
}

/* The steps of a scene appear as its part of the story passes the middle of the screen. */
.js .step-1,
.js .step-2,
.js .step-3 {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.js .at-1 .step-1,
.js .at-2 .step-2,
.js .at-3 .step-3 {
  opacity: 1;
  transform: none;
}
.js .step-1-only {
  display: none;
}
.js .at-1:not(.at-2) .step-1-only {
  display: flex;
}
.js .at-1:not(.at-2) .comment-bot .step-2 {
  display: none;
}

/* The ground: the pull request's diff, seen from far away. */
.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--ground);
  border-top: 2px solid color-mix(in srgb, var(--ink) 14%, transparent);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}
.ground svg {
  display: block;
  height: 100%;
}

.crew {
  position: absolute;
  left: 3.5vw;
  bottom: calc(var(--ground) - 4px);
  display: flex;
  align-items: flex-end;
  gap: clamp(0px, 0.6vw, 10px);
  z-index: 3;
  pointer-events: none;
}
.crew-bot {
  position: relative;
  width: var(--bot);
  transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.crew-bot.is-actor {
  transform: translateY(-8px) scale(1.1);
  z-index: 2;
}
.crew.is-running .crew-bot:not(.is-actor) .hop {
  animation: run 0.34s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.11s);
}
@keyframes run {
  from {
    transform: translateY(0) scale(1.04, 0.95);
  }
  to {
    transform: translateY(-12px) scale(0.97, 1.04);
  }
}
.say {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 38%;
  width: max-content;
  max-width: min(310px, 60vw);
  padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  background: #fff;
  color: var(--ink);
  font: 650 0.95rem/1.3 var(--display);
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 16%, transparent);
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transform-origin: bottom left;
  transition:
    opacity 0.25s ease,
    transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.say.is-on {
  opacity: 1;
  transform: none;
}
.clock {
  position: absolute;
  right: 4.5vw;
  bottom: calc(var(--ground) + 18px);
  font: 800 clamp(3rem, 8vw, 8rem)/0.8 var(--display);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--ink) 11%, transparent);
  z-index: 0;
}
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  z-index: 4;
}
.progress span {
  display: block;
  height: 100%;
  width: calc(var(--progress, 0) * 100%);
  background: var(--ink);
}

/* Scene props */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font: 700 0.85rem/1 var(--display);
}
.pill-open {
  background: var(--add);
  color: #fff;
}
.pr-card {
  background: #fff;
  border-radius: 26px;
  padding: 26px 28px;
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--ink) 40%, transparent);
}
.js .scene[data-scene='open'] .pr-card {
  transform: translateY(-40px) rotate(-3deg);
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.3, 1.4, 0.5, 1),
    opacity 0.4s ease;
}
.js .scene[data-scene='open'].at-0 .pr-card,
.js .scene[data-scene='open'].at-1 .pr-card {
  transform: rotate(-1.5deg);
  opacity: 1;
}
.pr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pr-num {
  font: 700 1.05rem/1 var(--display);
  color: var(--muted);
}
.pr-title {
  font: 760 clamp(1.4rem, 2.2vw, 2rem)/1.08 var(--display);
  letter-spacing: -0.03em;
  margin: 18px 0 12px;
}
.pr-branch {
  color: var(--muted);
  font-size: 0.95rem;
}
.pr-branch code {
  color: var(--ink);
  background: var(--paper-deep);
  border-radius: 7px;
  padding: 2px 7px;
  font-size: 0.85em;
}
.pr-stats {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  font: 700 1rem/1 var(--mono);
}
.plus {
  color: var(--add);
}
.minus {
  color: var(--del);
}
.pr-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1.5px dashed var(--line);
  font-weight: 650;
}
.mini {
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: none;
}

.code-panel,
.ci {
  background: var(--ink);
  color: #efeaf7;
  border-radius: 24px;
  padding: 22px 24px 26px;
  position: absolute;
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--ink) 70%, transparent);
}
.code-panel .file-tab,
.ci .file-tab {
  color: #a69db8;
}
.code,
.log {
  white-space: normal;
}
.code {
  font-size: clamp(0.78rem, 0.95vw, 0.95rem);
  line-height: 1.75;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.code span {
  display: block;
  white-space: pre;
}
.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(48px + var(--p, 0) * (100% - 96px));
  height: 1.9em;
  background: color-mix(in srgb, var(--dot) 22%, transparent);
  border-left: 4px solid var(--dot);
  pointer-events: none;
}
.notes {
  list-style: none;
  padding: 0;
  position: absolute;
  right: -22px;
  bottom: -30px;
  display: grid;
  justify-items: end;
  gap: 8px;
  z-index: 2;
}
.notes li {
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 15px 8px 12px;
  font: 650 0.92rem/1 var(--display);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--ink) 18%, transparent);
}
.notes li::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--add);
}

.diff {
  background: #fff;
  border-radius: 24px;
  padding: 20px 0 30px;
  box-shadow: 0 30px 80px -34px color-mix(in srgb, var(--ink) 40%, transparent);
}
.diff .file-tab {
  padding: 0 22px;
}
.dl,
.cl {
  display: flex;
  gap: 14px;
  padding: 3px 22px;
  font: 500 clamp(0.8rem, 0.98vw, 0.98rem)/1.7 var(--mono);
  white-space: pre;
}
.dl span {
  color: var(--muted);
  width: 1.4em;
  text-align: right;
  flex: none;
}
.dl.del {
  background: var(--del-soft);
}
.dl.add {
  background: var(--add-soft);
}
.bug {
  position: absolute;
  width: 40px;
  left: var(--x);
  top: var(--y);
  z-index: 2;
}
.bug svg {
  display: block;
  width: 100%;
}
.js .diff .bug {
  transform: scale(0) translateY(14px);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1),
    opacity 0.3s ease,
    left 0.8s cubic-bezier(0.5, 0, 0.3, 1),
    top 0.8s cubic-bezier(0.5, 0, 0.3, 1);
  transition-delay: calc(var(--i) * 0.12s);
}
.js .diff.at-1 .bug,
.js .at-1 .diff .bug {
  transform: none;
  opacity: 1;
}
.js .at-1 .diff .bug svg {
  animation: crawl 0.7s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.23s);
}
.js .at-3 .diff .bug {
  left: var(--jx);
  top: var(--jy);
  transform: scale(0.62);
}
.js .at-3 .diff .bug svg {
  animation-duration: 0.25s;
}
@keyframes crawl {
  from {
    transform: translateX(-6px) rotate(-8deg);
  }
  to {
    transform: translateX(6px) rotate(8deg);
  }
}
.jar {
  position: absolute;
  right: 3%;
  bottom: -38px;
  width: 92px;
  height: 104px;
  border: 3px solid var(--ink);
  border-radius: 16px 16px 26px 26px;
  background: color-mix(in srgb, #fff 55%, transparent);
  z-index: 3;
}
.jar::before {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  top: -14px;
  height: 12px;
  border-radius: 6px;
  background: var(--ink);
}
.jar::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 12px;
  width: 10px;
  height: 46px;
  border-radius: 8px;
  background: #fff;
  opacity: 0.8;
}

.findings {
  display: grid;
  gap: 18px;
}
.finding {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: #fff;
  border-radius: 22px;
  padding: 18px 20px;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.finding.is-false {
  transform: rotate(-1.4deg);
}
.finding.is-real {
  transform: rotate(0.8deg);
  box-shadow: 0 24px 60px -28px color-mix(in srgb, var(--ink) 45%, transparent);
}
.finding-title {
  font: 720 1.15rem/1.2 var(--display);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.finding p:not(.finding-title) {
  color: var(--muted);
  font-size: 0.95rem;
}
.js .at-1 .finding.is-false {
  opacity: 0.5;
}
.js .at-1 .is-false .finding-title {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.js .is-false .bug {
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}
.js .at-1 .is-false .bug {
  transform: scale(0.2) rotate(40deg);
  opacity: 0;
}
.js .at-3 .is-real .bug {
  filter: grayscale(1) opacity(0.4);
}
.bug-still {
  position: static;
}
.stamp {
  position: absolute;
  top: -12px;
  right: 16px;
  padding: 4px 12px;
  border: 2.5px solid currentColor;
  border-radius: 10px;
  background: #fff;
  font: 800 0.95rem/1 var(--display);
  rotate: -7deg;
}
.stamp-no {
  color: #c23c4f;
}
.stamp-yes {
  color: #1f8a5b;
}
.suggestion {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--add-soft);
}
.suggestion code {
  font-size: clamp(0.72rem, 0.9vw, 0.88rem);
  color: #1d6b48;
  white-space: pre-wrap;
}
.fake-btn {
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 7px 14px;
  font: 650 0.82rem/1 var(--display);
}

.thread {
  display: grid;
  gap: 14px;
}
.comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.comment > div {
  background: #fff;
  border-radius: 6px 22px 22px 22px;
  padding: 14px 18px;
  min-width: 0;
}
.comment-bot {
  margin-left: 46px;
}
.comment-bot > div {
  background: color-mix(in srgb, var(--coral) 18%, #fff);
}
.comment-name {
  font: 720 0.92rem/1 var(--display);
  margin-bottom: 6px;
}
.face {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-content: center;
  font: 750 1rem/1 var(--display);
}
.typing {
  display: flex;
  gap: 5px;
  padding: 6px 0;
}
.typing i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: typing 1.2s ease-in-out infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}
.started {
  margin-left: 96px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 650 0.9rem/1 var(--display);
}
.started::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
}

.ci .pipeline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.job {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  font: 650 0.88rem/1 var(--display);
  background: #3b3150;
  transition: background 0.4s ease;
}
.job::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8d84a0;
  transition: background 0.4s ease;
}
.job.is-ok::before {
  background: var(--add);
}
.job.is-bad {
  background: color-mix(in srgb, var(--del) 30%, #2a1f3d);
}
.job.is-bad::before {
  background: var(--del);
}
.js .at-3 [data-heal] {
  background: #3b3150;
}
.js .at-3 [data-heal]::before {
  background: var(--add);
}
.log {
  font-size: clamp(0.74rem, 0.92vw, 0.9rem);
  line-height: 1.75;
  overflow: hidden;
}
.log span {
  display: block;
  white-space: pre;
  padding: 0 6px;
  border-radius: 6px;
  transition: background 0.3s ease;
}
.js .at-1 .log .hot {
  background: color-mix(in srgb, var(--del) 32%, transparent);
}
.js .at-3 .log {
  opacity: 0.45;
  transition: opacity 0.4s ease;
}
.commit {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #3b3150;
  font-size: 0.95rem;
}
.sha {
  font-family: var(--mono);
  color: var(--dot);
  margin-right: 8px;
}

.conflict {
  background: #fff;
  border-radius: 24px;
  padding: 20px 0 26px;
  box-shadow: 0 30px 80px -34px color-mix(in srgb, var(--ink) 40%, transparent);
}
.conflict .file-tab {
  padding: 0 22px;
}
.cl {
  transition:
    max-height 0.5s ease,
    opacity 0.35s ease,
    padding 0.5s ease,
    background 0.4s ease;
  max-height: 3em;
  overflow: hidden;
}
.cl.marker {
  color: var(--muted);
  background: var(--paper-deep);
}
.js .at-1 .cl.ours {
  background: color-mix(in srgb, var(--blue) 16%, #fff);
  box-shadow: inset 4px 0 var(--blue);
}
.js .at-1 .cl.theirs {
  background: color-mix(in srgb, var(--violet) 18%, #fff);
  box-shadow: inset 4px 0 var(--violet);
}
.js .at-2 .cl.marker {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.kept {
  margin: 16px 22px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 0.95rem/1 var(--display);
  color: #1f8a5b;
}
.kept::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--add);
}

.merge-box {
  background: #fff;
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--ink) 40%, transparent);
}
.checks-ok {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 720 1.25rem/1.2 var(--display);
}
.tick {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--add);
  position: relative;
  flex: none;
}
.tick::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  width: 7px;
  height: 13px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  rotate: 45deg;
}
.checks-sub {
  color: var(--muted);
  margin: 6px 0 24px 42px;
  font-size: 0.95rem;
}
.merge-btn {
  display: inline-grid;
  padding: 15px 24px;
  border-radius: 14px;
  background: #1f883d;
  color: #fff;
  font: 700 1.05rem/1 var(--display);
  transition:
    background 0.3s ease,
    transform 0.15s ease;
}
.merge-btn > span {
  grid-area: 1 / 1;
  transition: opacity 0.25s ease;
}
.merged-label {
  opacity: 0;
}
.js .at-2 .merge-btn {
  background: #8250df;
  transform: scale(0.97);
}
.js .at-2 .merge-label {
  opacity: 0;
}
.js .at-2 .merged-label {
  opacity: 1;
}
.cursor {
  position: absolute;
  width: 34px;
  left: 70%;
  top: 120%;
  transition:
    left 0.7s cubic-bezier(0.5, 0, 0.3, 1),
    top 0.7s cubic-bezier(0.5, 0, 0.3, 1);
  filter: drop-shadow(0 4px 6px color-mix(in srgb, var(--ink) 30%, transparent));
}
.js .at-1 .cursor {
  left: 34%;
  top: 74%;
}
.still .cursor {
  display: none;
}

/* Make a bot */
.builder {
  padding: clamp(90px, 15svh, 170px) 4.5vw;
}
.builder-copy h2,
.home h2,
.open h2 {
  font: 790 clamp(2.6rem, 6.6vw, 6.2rem)/0.94 var(--display);
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.builder-copy p,
.home-lede,
.open > p {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  max-width: 44ch;
  margin-top: 22px;
  color: color-mix(in srgb, var(--ink) 82%, var(--paper));
}
.builder-grid {
  margin-top: clamp(40px, 7svh, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.stage {
  position: sticky;
  top: 90px;
  min-height: min(560px, 70svh);
  border-radius: 40px;
  background: var(--field, #fff3d6);
  display: grid;
  place-items: center;
  align-content: center;
  padding: 48px 24px 32px;
  transition: background 0.4s ease;
}
.stage-bot {
  width: min(300px, 64%);
}
.bubble {
  background: #fff;
  border-radius: 22px 22px 22px 6px;
  padding: 14px 18px;
  font: 700 clamp(1rem, 1.4vw, 1.2rem)/1.3 var(--display);
  letter-spacing: -0.015em;
  max-width: 30ch;
  justify-self: center;
  margin-bottom: 18px;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ink) 14%, transparent);
}
.stage-state {
  margin-top: 18px;
  font: 650 1rem/1 var(--display);
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}
.controls {
  display: grid;
  gap: 28px;
}
.name-field {
  display: grid;
  gap: 8px;
}
.name-field span,
legend {
  font: 720 1.05rem/1 var(--display);
  margin-bottom: 12px;
  padding: 0;
}
.name-field span {
  margin-bottom: 0;
}
.name-field input {
  font: 700 1.3rem/1 var(--display);
  color: var(--ink);
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  width: 100%;
}
.name-field input:focus-visible {
  border-color: var(--indigo);
  outline-offset: 1px;
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.opt {
  position: relative;
  cursor: pointer;
}
.opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.opt-face {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: #fff;
  border: 2px solid var(--line);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.opt-face svg {
  width: 48px;
}
.opt:hover .opt-face {
  transform: translateY(-2px);
}
.opt input:checked + .opt-face {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.opt input:focus-visible + .opt-face {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
}
.swatches .opt-face {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border-width: 3px;
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--line);
}
.swatches .opt input:checked + .opt-face {
  box-shadow: 0 0 0 3px var(--ink);
}
.states .opt-face {
  width: auto;
  height: auto;
  border-radius: 999px;
  padding: 10px 16px;
  font: 650 0.95rem/1 var(--display);
}

/* It lives on your server */
.home {
  padding: clamp(90px, 14svh, 160px) 4.5vw;
  background: var(--paper-deep);
}
.map {
  margin-top: clamp(44px, 7svh, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
}
.map-side p:not(.map-title) {
  color: var(--muted);
  max-width: 30ch;
}
.map-side:last-child {
  text-align: right;
  justify-self: end;
}
.map-side:last-child p {
  margin-left: auto;
}
.map-title {
  font: 760 clamp(1.4rem, 2.2vw, 2rem)/1.05 var(--display);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.house {
  position: relative;
  background: #fff;
  border-radius: 34px;
  padding: 34px 20px 18px;
  text-align: center;
  margin-top: 46px;
}
.house::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: -44px;
  height: 46px;
  background: #fff;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.house::after,
.house-crew::before {
  content: '';
  position: absolute;
  top: 50%;
  height: 0;
  width: clamp(16px, 3vw, 44px);
  border-top: 3px dashed color-mix(in srgb, var(--ink) 30%, transparent);
}
.house::after {
  right: calc(-1 * clamp(16px, 3vw, 44px));
}
.house-crew::before {
  left: calc(-1 * clamp(16px, 3vw, 44px));
}
.house-crew {
  display: flex;
  justify-content: center;
  gap: 2px;
}
.house-crew .house-bot {
  width: clamp(44px, 4.4vw, 70px);
}
.house-label {
  margin-top: 8px;
  font: 720 1rem/1 var(--display);
}
.terminal {
  margin: clamp(48px, 8svh, 90px) auto 0;
  max-width: 38rem;
  background: var(--ink);
  color: #efeaf7;
  border-radius: 22px;
  padding: 22px 26px;
}
.terminal pre {
  font-size: clamp(0.88rem, 1.1vw, 1.02rem);
  line-height: 1.8;
  white-space: pre-wrap;
}
.prompt {
  color: var(--dot);
  margin-right: 6px;
}
.out {
  color: #a69db8;
}

/* Going open source */
.open {
  padding: clamp(100px, 16svh, 180px) 4.5vw;
  display: grid;
  justify-items: start;
}
.open .btn {
  margin-top: 34px;
}
.open-crew {
  display: flex;
  gap: 6px;
  margin-bottom: 30px;
}
.open-crew .open-bot {
  width: clamp(64px, 6vw, 96px);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  padding: 34px 4.5vw 44px;
  border-top: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.foot .logo {
  color: var(--ink);
}
.credit {
  margin-left: auto;
}

/* Small screens: the story still runs sideways, one scene to a screen. */
@media (max-width: 760px) {
  :root {
    --ground: 13svh;
    --bot: clamp(52px, 15vw, 70px);
  }
  .nav nav a:not(.nav-gh) {
    display: none;
  }
  .hero-row {
    grid-template-columns: 1fr;
  }
  .hero-crew {
    justify-content: flex-start;
    order: -1;
  }
  .scene:first-of-type {
    margin-left: 12vw;
  }
  .copy {
    left: 6vw;
    width: 88vw;
    top: 84px;
  }
  .copy h2 {
    margin: 10px 0 8px;
  }
  .copy p:not(.when) {
    font-size: 0.98rem;
  }
  .prop {
    left: 6vw;
    width: 88vw;
    top: auto;
    bottom: calc(var(--ground) + var(--bot) + 64px);
  }
  .code-panel,
  .ci {
    position: absolute;
  }
  .notes {
    right: 8px;
  }
  .jar {
    width: 62px;
    height: 70px;
    bottom: -22px;
  }
  .clock {
    display: none;
  }
  .builder-grid,
  .map {
    grid-template-columns: 1fr;
  }
  .stage {
    position: relative;
    top: 0;
    min-height: 380px;
  }
  .map-side:last-child {
    text-align: left;
    justify-self: start;
  }
  .map-side:last-child p {
    margin-left: 0;
  }
  .house::after,
  .house-crew::before {
    display: none;
  }
  .credit {
    margin-left: 0;
  }
}
@media (max-width: 760px) and (max-height: 720px) {
  .copy p:not(.when) {
    display: none;
  }
}

/* Without motion the story is told top to bottom, every step shown. */
.still .story-pin {
  position: static;
  height: auto;
  overflow: visible;
}
.still .track {
  position: static;
  flex-direction: column;
  transform: none !important;
}
.still .scene,
.still .scene:first-of-type,
.still .scene:last-of-type {
  flex: none;
  height: auto;
  margin: 0;
  padding: 70px 4.5vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 5vw;
  align-items: center;
  background: none;
}
.still .copy,
.still .prop,
.still .code-panel,
.still .ci {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  width: auto;
}
.still .ground,
.still .crew,
.still .clock,
.still .progress,
.still .scan,
.still .jar,
.still .diff .bug {
  display: none;
}
@media (max-width: 760px) {
  .still .scene {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
