/* Steaky: butcher's ticket. Pink butcher paper and three inks. Fat cream belongs to Steaky alone.
   The values match windows/Steaky/Theme.xaml and mac/Sources/Steaky/Theme.swift. */

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/BarlowCondensed-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/BarlowCondensed-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Permanent Marker";
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/PermanentMarker-Regular.ttf") format("truetype");
}

:root {
  --paper: #f1c5b1;
  --paper-light: #f8dacb;
  --paper-shade: #e3af99;
  --ink: #1f1917;
  --ink-soft: #6a4638;
  --red: #a51e18;
  --red-deep: #861510;
  --stamp: #46399b;
  --white: #fff8f3;
  --edge: #cf9f8a;
  --screen: #fffcfa;

  --label: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --hand: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--ink-soft) var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--body);
  caret-color: var(--ink);
  overflow-x: clip;
}

::selection {
  background: var(--stamp);
  color: var(--white);
}

:focus-visible {
  outline: 2.5px solid var(--stamp);
  outline-offset: 3px;
  border-radius: 4px;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--red);
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 5px;
}
.skip:focus {
  top: 0.75rem;
}
.skip:hover {
  color: var(--white);
}

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

/* ---------- Lettering ---------- */

.label {
  font: 600 0.95rem/1.2 var(--label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Grease pencil: his hand, and the page's display voice. The face has capitals only. */
.hand {
  font-family: var(--hand);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.display {
  font-size: clamp(3rem, 11.5vw, 6rem);
  rotate: -1.6deg;
  transform-origin: left center;
}

/* He stands at the end of the headline, about as tall as its capitals and a bit more. */
.display__end {
  white-space: nowrap;
}
.display .steak {
  width: 1.15em;
  margin-left: 0.14em;
  margin-bottom: -0.12em;
  vertical-align: baseline;
  rotate: 5deg;
}

.heading {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
}

.lede {
  max-width: 36ch;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}

.prose {
  max-width: 62ch;
}
.prose + .prose {
  margin-top: 0.9em;
}

/* ---------- Header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(14px, 2.4vw, 24px);
}

/* Three quiet links to the page's sections. On a phone there is only room for the name and the button. */
.top__nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  margin-left: auto;
  margin-right: clamp(4px, 1.4vw, 14px);
  font: 600 1.1rem/1 var(--label);
  letter-spacing: 0.04em;
}
.top__nav a {
  padding-block: 0.65rem;
  text-decoration: none;
}
@media (max-width: 760px) {
  .top__nav {
    display: none;
  }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 700 1.6rem/1 var(--label);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.wordmark:hover {
  color: var(--ink);
}
.wordmark img {
  width: 34px;
  height: 37px;
}

/* ---------- Buttons and the waitlist ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 5px;
  background: var(--red);
  color: var(--paper-light);
  font: 600 1.15rem/1 var(--label);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out), translate 0.15s var(--ease-out);
}
.btn:hover {
  background: var(--red-deep);
  color: var(--paper-light);
}
.btn:active {
  translate: 0 1px;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.btn--quiet {
  min-height: 40px;
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--quiet:hover {
  background: var(--paper-shade);
  color: var(--ink);
}

.waitlist {
  display: grid;
  gap: 0.55rem;
  max-width: 30rem;
}
.waitlist__row {
  display: flex;
  gap: 0.5rem;
}
.waitlist input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 0.85rem;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  background: var(--paper-light);
  color: var(--ink);
  font: inherit;
}
.waitlist input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}
.waitlist input:focus-visible {
  outline-offset: 1px;
  border-color: var(--stamp);
}
.waitlist__note {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.waitlist__note[data-state="error"] {
  color: var(--red);
  font-weight: 600;
}
.waitlist[data-done] .waitlist__row {
  display: none;
}
.waitlist__done {
  display: none;
  align-items: center;
  gap: 1rem;
}
.waitlist[data-done] .waitlist__done {
  display: flex;
}

@media (max-width: 420px) {
  .waitlist__row {
    flex-direction: column;
  }
}

/* ---------- Steaky ---------- */

.steak {
  display: inline-block;
  width: 96px;
  aspect-ratio: 96 / 104;
  line-height: 0;
}
.steak svg,
.steak img {
  width: 100%;
  height: 100%;
  overflow: visible;
}
button.steak {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  transition: scale 0.18s var(--ease-out);
}
button.steak:hover {
  scale: 1.06;
}
button.steak:active {
  scale: 0.95;
}

.steak__eyes {
  transform-box: view-box;
  transform-origin: 63.5px 60px;
  transition: translate 0.22s var(--ease-out);
}
.steak__lids {
  transform-box: view-box;
  transform-origin: 63.5px 60px;
}
.steak[data-blink] .steak__lids {
  animation: blink 0.17s linear;
}
@keyframes blink {
  40% {
    scale: 1 0.08;
  }
}

.steak__happy,
.steak__open,
.steak__flat,
.steak__heat {
  visibility: hidden;
}
.steak[data-mood="happy"] .steak__happy,
.steak[data-mood="oops"] .steak__flat,
.steak[data-mood="talking"][data-mouth="open"] .steak__open,
.steak[data-mood="thinking"] .steak__heat {
  visibility: visible;
}
.steak[data-mood="happy"] .steak__eyes,
.steak[data-mood="oops"] .steak__smile,
.steak[data-mood="talking"][data-mouth="open"] .steak__smile {
  visibility: hidden;
}
.steak[data-mood="asleep"] .steak__lids {
  scale: 1 0.1;
}
.steak[data-mood="oops"] .steak__body {
  rotate: -7deg;
}
.steak__body {
  transform-box: view-box;
  transform-origin: 48px 93px;
  transition: rotate 0.26s var(--ease-out);
}
.steak__heat path {
  animation: rise 1.3s linear infinite;
}
.steak__heat path:nth-child(2) {
  animation-delay: 0.42s;
}
.steak__heat path:nth-child(3) {
  animation-delay: 0.84s;
}
@keyframes rise {
  0% {
    opacity: 0;
    translate: 0 5px;
  }
  35% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    translate: 0 -5px;
  }
}

/* ---------- The slip ---------- */

.slip-shadow {
  filter: drop-shadow(0 3px 6px rgb(43 18 10 / 0.3));
}

.slip {
  padding: 22px 16px 16px;
  background: var(--paper);
  /* A serrated top edge, as torn off the roll's cutter bar. */
  -webkit-mask: conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) 0 0 / 10px 5px repeat-x,
    linear-gradient(#000 0 0) 0 5px / 100% calc(100% - 5px) no-repeat;
  mask: conic-gradient(from 135deg at 50% 0, #000 90deg, #0000 0) 0 0 / 10px 5px repeat-x,
    linear-gradient(#000 0 0) 0 5px / 100% calc(100% - 5px) no-repeat;
  font-size: 0.9rem;
  line-height: 1.45;
}

.slip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 1.2rem/1 var(--label);
  letter-spacing: 0.03em;
}
.slip__icons {
  display: flex;
  gap: 12px;
}
.slip__icons svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tear {
  height: 0;
  border: 0;
  border-top: 1.5px dashed rgb(106 70 56 / 0.55);
  margin: 8px 0 12px;
}

.slip__asked {
  color: var(--ink-soft);
  margin-top: 2px;
}
.slip__answer {
  margin-top: 9px;
}
.slip__answer p + p,
.slip__answer p + ol,
.slip__answer ol + p {
  margin-top: 0.55em;
}
.slip__answer ol {
  padding-left: 1.5em;
  list-style: decimal;
}
.slip__answer ul {
  padding-left: 1.2em;
  list-style: disc;
}
.slip__answer li + li {
  margin-top: 0.2em;
}
.slip__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  min-height: 0;
}

.slip__input {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.slip__input span {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  background: var(--paper-light);
  color: var(--ink-soft);
}
.slip__input i {
  display: grid;
  place-items: center;
  width: 38px;
  border-radius: 5px;
  background: var(--red);
  opacity: 0.4;
}
.slip__input i svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--paper-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slip__check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  font-size: 0.82rem;
}
.slip__check i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--paper-light);
}
.slip__check i svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slip__check[data-off] i svg {
  visibility: hidden;
}

/* The doneness scale: five marks, each lit by a real step of a request. */
.scale {
  --fill: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 12px;
}
.scale::before,
.scale::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 10%;
  height: 0;
}
.scale::before {
  right: 10%;
  border-top: 1.5px solid var(--ink-soft);
}
.scale::after {
  width: 80%;
  height: 3px;
  margin-top: -0.75px;
  background: var(--red);
  transform-origin: left center;
  scale: clamp(0, (var(--fill) - 1) / 4, 1) 1;
  transition: scale 0.32s var(--ease-out);
}
.scale li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  font: 600 0.78rem/1 var(--label);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.scale li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 2px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-light);
}
.scale li span {
  position: relative;
  padding: 3px 6px;
}
.scale li.is-reached {
  color: var(--ink);
}
.scale li.is-reached::before {
  border-color: var(--red);
  background: var(--red);
}
/* Where the request stands right now is circled in grease pencil. */
.scale li.is-current span::after {
  content: "";
  position: absolute;
  inset: -3px -5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath d='M19 7C50 0 99 3 97 20C95 38 54 39 14 34C-1 29 0 12 31 5' fill='none' stroke='%231f1917' stroke-width='1.7' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* Struck out: the step was skipped on purpose. */
.scale li.is-skipped span::after {
  content: "";
  position: absolute;
  inset: 0 -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath d='M2 25C30 21 68 20 98 15' fill='none' stroke='%231f1917' stroke-width='1.7' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.scale li.is-skipped::after {
  content: "";
  position: absolute;
  top: 6.5px;
  width: 17px;
  border-top: 1.7px solid var(--ink);
  rotate: -40deg;
}

/* An inked inspection stamp: the record that he looked at something of yours. */
.stamp {
  display: inline-grid;
  justify-items: center;
  padding: 9px 26px 8px;
  border: 2px solid var(--stamp);
  border-radius: 50%;
  outline: 1px solid var(--stamp);
  outline-offset: -5.5px;
  color: var(--stamp);
  font: 700 1.02rem/1.05 var(--label);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  rotate: -5deg;
  opacity: 0.9;
}
.stamp small {
  font-size: 0.8rem;
  font-weight: 600;
}
.stamp.is-landing {
  animation: land 0.22s var(--ease-out);
}
@keyframes land {
  from {
    scale: 1.45;
    opacity: 0;
  }
}

/* A white label stuck on the paper: plainly the thing to copy. */
.rewrite {
  margin-top: 11px;
  padding: 9px 12px 11px;
  border: 1px solid var(--edge);
  border-radius: 2px;
  background: var(--white);
}
.rewrite__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font: 600 0.9rem/1 var(--label);
  letter-spacing: 0.06em;
}
.rewrite__head i {
  padding: 3px 9px 2px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-style: normal;
  letter-spacing: 0.03em;
}

/* ---------- The pretend screen ---------- */

.screen {
  position: relative;
  overflow: hidden;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--screen);
}
.screen__bar .label {
  margin-right: auto;
}
.screen__bar {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 40px;
  padding-inline: 14px;
  border-top: 2px solid var(--ink);
  background: var(--paper-light);
  font: 600 0.95rem/1 var(--label);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.app {
  position: absolute;
  left: 4%;
  top: 6%;
  width: min(64%, 620px);
  bottom: 74px;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.4;
}
.app__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 2px solid var(--ink);
  background: var(--white);
  font: 600 0.9rem/1 var(--label);
  letter-spacing: 0.05em;
}
.app__title::before {
  content: "";
  flex: none;
  width: 34px;
  height: 8px;
  background: radial-gradient(circle 3.5px at 4px 4px, var(--ink) 96%, #0000) 0 0 / 13px 8px repeat-x;
}
.app__body {
  flex: 1;
  padding: 12px;
  overflow: hidden;
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.sheet th,
.sheet td {
  padding: 4px 8px;
  border: 1px solid #d9cfc9;
  text-align: left;
  white-space: nowrap;
}
.sheet th {
  background: #f3ece8;
  font-weight: 600;
}
.sheet td:last-child,
.sheet th:last-child {
  text-align: right;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.chat p {
  max-width: 85%;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f3ece8;
}
.chat .box,
.mail .box {
  margin-top: auto;
  padding: 9px 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
}
.caret::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--ink);
  vertical-align: text-bottom;
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}

.mail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}
.mail dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  margin: 0 0 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d9cfc9;
}
.mail dt {
  color: var(--ink-soft);
}
.mail dd {
  margin: 0;
}

/* ---------- Layout one: a day at the counter ---------- */

.hero {
  padding-block: clamp(20px, 5vw, 56px) clamp(28px, 5vw, 56px);
}
.hero__grid {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
}
.hero .lede {
  margin-top: 0.4rem;
}

/* The waitlist is an order ticket: the thing you hand across a butcher's counter. */
.order {
  position: relative;
  max-width: 30rem;
  padding: 26px 20px 18px;
  border-radius: 0 0 3px 3px;
  background: var(--white);
  box-shadow: 0 2px 5px rgb(43 18 10 / 0.22);
}
.order::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 1px 1px rgb(43 18 10 / 0.35);
}
.order__line {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    align-items: start;
    column-gap: clamp(28px, 5vw, 72px);
  }
  .hero__grid h1 {
    grid-column: 1 / -1;
  }
  .order {
    rotate: 1.3deg;
    margin-top: -6px;
  }
}

.day {
  position: relative;
  height: 420vh;
}
.day__pin {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: 100vh;
  height: 100svh;
  padding-block: 14px 18px;
}

/* Order tickets hanging on a rail: one for each stop in the day. */
.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 16px);
  padding-top: 12px;
  border-top: 3px solid var(--ink);
}
.ticket {
  position: relative;
  display: block;
  width: 100%;
  padding: 16px 12px 10px;
  border: 0;
  border-radius: 0 0 3px 3px;
  background: #f8e3d8;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  translate: 0 -6px;
  transition: translate 0.3s var(--ease-out), background-color 0.2s linear;
}
.ticket::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 1px 1px rgb(43 18 10 / 0.35);
}
.ticket:hover {
  background: #fcefe8;
}
.ticket[aria-current="true"] {
  background: var(--white);
  translate: 0 4px;
}
.ticket time {
  color: var(--ink-soft);
}
.ticket[aria-current="true"] time {
  color: var(--ink);
}
.ticket[aria-current="true"] span {
  color: var(--ink);
}
.ticket time {
  display: block;
  font: 400 clamp(1.05rem, 2vw, 1.5rem) / 1 var(--hand);
}
.ticket span {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.stage {
  position: relative;
  min-height: 0;
}
.stage .screen {
  position: absolute;
  inset: 0;
}
.stage .app {
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.3s linear, translate 0.4s var(--ease-out);
}
.stage[data-scene="0"] .app[data-scene="0"],
.stage[data-scene="1"] .app[data-scene="1"],
.stage[data-scene="2"] .app[data-scene="2"] {
  opacity: 1;
  translate: 0;
}
.stage[data-scene="3"] .screen {
  background: #efe6e1;
}

.corner {
  position: absolute;
  right: 14px;
  bottom: 34px;
  z-index: 3;
}
.stage .slip-shadow {
  position: absolute;
  right: 12px;
  bottom: 106px;
  z-index: 2;
  width: min(330px, 100% - 24px);
  opacity: 0;
  translate: 0 24px;
  rotate: 2.5deg;
  transform-origin: 85% 100%;
  transition: opacity 0.16s linear, translate 0.28s var(--ease-out), rotate 0.28s var(--ease-out);
}
.stage[data-slip] .slip-shadow {
  opacity: 1;
  translate: 0;
  rotate: 0deg;
}
.stage .slip__answer,
.stage .slip__foot > * {
  opacity: 0;
  transition: opacity 0.25s linear;
}
.stage[data-answer] .slip__answer {
  opacity: 1;
}
.stage[data-done] .slip__foot > * {
  opacity: 1;
}

.quiet {
  position: absolute;
  left: 6%;
  top: 12%;
  max-width: 30ch;
  opacity: 0;
  transition: opacity 0.4s linear;
}
.quiet p + p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
}
.stage[data-scene="3"] .quiet {
  opacity: 1;
}

.zzz {
  position: absolute;
  right: 84px;
  bottom: 132px;
  z-index: 3;
  font-size: 1.5rem;
  color: var(--ink-soft);
  rotate: -14deg;
  opacity: 0;
  transition: opacity 0.4s linear;
}
.stage[data-scene="3"] .zzz {
  opacity: 1;
}

.day__caption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .rail {
    position: relative;
    gap: 6px;
  }
  .ticket {
    position: static;
    padding: 16px 4px 8px;
    text-align: center;
  }
  .rail li {
    position: relative;
  }
  .ticket::before {
    top: 5px;
  }
  .ticket time {
    font-size: clamp(0.72rem, 3.5vw, 1.05rem);
    white-space: nowrap;
  }
  /* Only the current stop's line is shown, set across the full width under the rail. */
  .ticket span {
    display: none;
  }
  .ticket[aria-current="true"] span {
    display: block;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: calc(100vw - 2 * var(--gutter));
    font-size: 0.9rem;
    color: var(--ink);
    text-align: left;
  }
  .rail li:nth-child(2) .ticket span {
    left: calc(-100% - 6px);
  }
  .rail li:nth-child(3) .ticket span {
    left: calc(-200% - 12px);
  }
  .rail li:nth-child(4) .ticket span {
    left: calc(-300% - 18px);
  }
  .day__pin {
    gap: 62px;
  }
  .app {
    left: 4%;
    width: 92%;
    top: 4%;
  }
  .chat .box {
    order: -1;
    margin-top: 0;
  }
  /* The greeting would be half-cut by the slip's edge here, so the narrow window shows only the box. */
  .chat p {
    display: none;
  }
  .stage[data-scene="1"] .slip__asked {
    display: none;
  }
  .day__pin {
    gap: 52px;
  }
  .zzz {
    right: 96px;
  }
}

/* ---------- Layout two: before and after ---------- */

.pairs {
  padding-block: clamp(8px, 2vw, 20px) clamp(36px, 6vw, 72px);
}
.pairs__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(18px, 3vw, 28px);
}
.tab {
  min-height: 40px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
  font: 600 1.05rem/1 var(--label);
  letter-spacing: 0.05em;
  cursor: pointer;
}
.tab:hover {
  background: var(--paper-shade);
}
.tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper-light);
}

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  margin-top: 16px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--screen);
  overflow: hidden;
}
.pair__side {
  position: relative;
  padding: clamp(16px, 2.6vw, 28px);
  min-height: 300px;
}
.pair__side--slip {
  padding-bottom: 64px;
}
.pair__side--slip .slip-shadow {
  max-width: 460px;
}
.pair__side--slip .slip {
  font-size: 0.95rem;
}
.pair__steak {
  position: absolute;
  right: clamp(8px, 2vw, 22px);
  bottom: 6px;
  z-index: 2;
  width: 84px;
}
.pair__side .label {
  margin-bottom: 10px;
}
.pair__side:first-child {
  display: flex;
  flex-direction: column;
}
.mini {
  display: flex;
  flex: 1;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.mini__body {
  display: flex;
  flex: 1;
  align-items: flex-end;
  min-height: 190px;
  padding: 12px;
}
.mini .typed {
  flex: 1;
}
.typed {
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  font-size: 1.02rem;
  line-height: 1.5;
}
.pair__keys {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
kbd {
  display: inline-block;
  padding: 1px 6px 0;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: 600 0.9rem/1.5 var(--label);
  letter-spacing: 0.04em;
}
.pair__verdict {
  margin-top: 3px;
  line-height: 1.5;
}
.pair__fixes {
  margin-top: 8px;
  padding-left: 1.2em;
  list-style: disc;
}
.pair__fixes li + li {
  margin-top: 0.25em;
}
.pair .rewrite {
  line-height: 1.5;
}
.pair .slip__foot {
  justify-content: flex-start;
  padding-right: 70px;
}

@media (max-width: 760px) {
  .pair {
    grid-template-columns: 1fr;
  }
  .pair__side {
    min-height: 0;
  }
  .pair__side--slip {
    padding-top: 0;
  }
}

/* A small screen with Steaky in its corner, for "he also answers about your screen". */
.asks {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}
.asks .stage {
  height: min(560px, 78vh);
}

/* ---------- Shared sections ---------- */

.band {
  padding-block: clamp(44px, 8vw, 96px);
}
.band--line {
  border-top: 2px dashed rgb(106 70 56 / 0.55);
}
.band .heading + .prose,
.band .heading + .facts,
.band .heading + .why,
.band .heading + .homes {
  margin-top: clamp(16px, 2.4vw, 24px);
}

/* Why he exists: two plain statements, each led by its claim. */
.why {
  display: grid;
  gap: 0.9em;
  max-width: 44rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}

/* What he sees: a short list of plain facts. */
.facts {
  display: grid;
  gap: 0;
  max-width: 46rem;
  border-top: 1.5px solid var(--ink);
}
.facts > li {
  display: grid;
  grid-template-columns: minmax(7.5rem, 12rem) 1fr;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1.5px solid var(--ink);
}
.facts > li > b {
  font: 600 1.05rem/1.3 var(--label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 560px) {
  .facts > li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

/* Where he lives: two drawings of a screen edge. */
.homes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}
.home figcaption {
  margin-top: 12px;
}
.home figcaption b {
  display: block;
  font: 600 1.15rem/1.2 var(--label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.home__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  background: var(--screen);
  overflow: hidden;
}
.home__screen--win::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 13%;
  border-top: 2px solid var(--ink);
  background: var(--paper-light);
}
/* A window of somebody's work, so he is shown where he actually sits: over it, at the edge. */
.home__win {
  position: absolute;
  left: 7%;
  top: 17%;
  width: 60%;
  height: 54%;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff linear-gradient(var(--white), var(--white)) top / 100% 15% no-repeat;
}
.home__win::before {
  content: "";
  position: absolute;
  inset: 15% 0 auto;
  border-top: 2px solid var(--ink);
}
.home__win::after {
  content: "";
  position: absolute;
  inset: 30% 9% 14%;
  background: repeating-linear-gradient(#e6dad4 0 3px, #0000 3px 13px);
}
.home__screen--mac .home__win {
  top: 21%;
}

/* The Mac is drawn as a MacBook, front on: an ink bezel with the notch let into it, standing on
   its deck. The drawing fills the same 16:10 box as the Windows screen so the captions line up. */
.home__art {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
}
.macbook {
  width: 100%;
}
.macbook__lid {
  width: 88%;
  margin-inline: auto;
  padding: 1.8% 1.8% 2.2%;
  border-radius: 14px 14px 4px 4px;
  background: var(--ink);
}
.macbook__lid .home__screen {
  border: 0;
  border-radius: 7px 7px 3px 3px;
}
.macbook__base {
  position: relative;
  aspect-ratio: 100 / 3.4;
  border: 2.5px solid var(--ink);
  border-radius: 3px 3px 12px 12px;
  background: var(--paper-light);
}
/* The groove you open the lid by. */
.macbook__base::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 15%;
  height: 46%;
  translate: -50% 0;
  border-radius: 0 0 7px 7px;
  background: var(--ink);
}
.home__screen--win .steak {
  position: absolute;
  right: 4%;
  bottom: 9%;
  z-index: 1;
  width: 21%;
}
.home__screen--mac::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9%;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-light);
}
/* The island: the notch itself plus a little either side. Steaky's face is in the left ear,
   the camera stays where it is in the middle. */
.home__notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 24%;
  height: 11%;
  translate: -50% 0;
  border-radius: 0 0 9px 9px;
  background: var(--ink);
}
.home__notch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  translate: -50% -50%;
  border-radius: 50%;
  background: #0d0a09;
  box-shadow: 0 0 0 1.5px #4a3f3b;
}
.home__notch .steak {
  width: 26%;
  margin-left: 5%;
}
@media (max-width: 620px) {
  .homes {
    grid-template-columns: 1fr;
  }
}

.hush {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.hush .prose {
  margin-top: clamp(16px, 2.4vw, 24px);
}
.hush__nap {
  position: relative;
  flex: none;
  padding-top: 26px;
}
.hush__nap .steak {
  width: clamp(84px, 12vw, 132px);
}
.hush__zzz {
  position: absolute;
  top: 0;
  left: -8px;
  font-size: 1.4rem;
  color: var(--ink-soft);
  rotate: -14deg;
}

.close {
  display: grid;
  gap: 52px;
}
.order--close {
  width: 100%;
  max-width: 34rem;
}
.order .waitlist {
  max-width: none;
}
.order__steak {
  position: absolute;
  right: -10px;
  bottom: -40px;
  width: 84px;
}
@media (min-width: 860px) {
  .order--close {
    rotate: -1deg;
  }
}

.foot {
  padding-block: 28px 40px;
  border-top: 3px solid var(--ink);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.foot p + p {
  margin-top: 0.35rem;
}

/* ---------- The maker's line and the profile card ---------- */

.follow {
  margin-bottom: 0.85rem;
  font-size: 1.0625rem;
  color: var(--ink);
}
.follow__anchor {
  position: relative;
  display: inline-block;
}
/* One letter is a small thing to hit, so the link takes up more room than it shows. */
.follow__link {
  display: inline-block;
  margin: -0.3em -0.5em;
  padding: 0.3em 0.5em;
  font-weight: 700;
}

/* A white ticket handed up over the link. The outer box places it and bridges the gap down to
   the link; the sheet inside is the paper, and is what leans toward the pointer. */
.xcard {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  z-index: 30;
  width: min(20rem, 100vw - 24px);
  perspective: 1000px;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 0.13s;
}
.xcard::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 14px;
}
.xcard__sheet {
  border: 1.5px dashed rgb(106 70 56 / 0.75);
  border-radius: 0 0 3px 3px;
  background: var(--white);
  box-shadow: 0 3px 8px rgb(43 18 10 / 0.24);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  translate: 0 14px;
  rotate: 2.5deg;
  filter: blur(2px);
  transform-origin: 50% 100%;
  transition: opacity 0.13s ease-in, translate 0.13s ease-in, rotate 0.13s ease-in, filter 0.13s ease-in;
}
.follow[data-open] .xcard {
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}
.follow[data-open] .xcard__sheet {
  opacity: 1;
  translate: 0 0;
  rotate: 0deg;
  filter: none;
  transition-duration: 0.26s;
  transition-timing-function: var(--ease-out);
}
.xcard__banner {
  height: 88px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-shade);
  overflow: hidden;
}
.xcard__banner img,
.xcard__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xcard__body {
  padding: 0 14px 14px;
}
.xcard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}
.xcard__avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-top: -30px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--paper-light);
  box-shadow: 0 0 0 1.5px var(--ink);
  color: var(--ink-soft);
  font: 700 1.5rem/1 var(--label);
  letter-spacing: 0.04em;
  overflow: hidden;
}
.xcard__x {
  width: 17px;
  height: 17px;
  margin-top: 11px;
  color: var(--ink-soft);
}
.xcard__x svg,
.xcard__meta svg {
  display: block;
  width: 100%;
  height: 100%;
}
.xcard__name {
  display: block;
  font: 700 1.4rem/1.15 var(--label);
  letter-spacing: 0.03em;
}
.xcard__handle {
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.xcard__bio {
  margin-top: 8px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.xcard__bio[data-state="note"] {
  color: var(--ink-soft);
}
.xcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.xcard__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.xcard__meta svg {
  flex: none;
  width: 14px;
  height: 14px;
}
.xcard__meta a {
  color: var(--stamp);
}
.xcard__meta a:hover {
  color: var(--red);
}
.xcard__counts {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.xcard__counts:empty,
.xcard__meta:empty {
  display: none;
}
.xcard__counts b {
  margin-right: 4px;
  color: var(--ink);
}

/* ---------- Marks, the tape and the demo's pointer ---------- */

/* A word circled or underlined in grease pencil. The drawing is made by motion.js. */
[data-mark] {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
/* A circled word stands a little apart, so the loop does not run into its neighbours. */
[data-mark="circle"] {
  margin: 0 0.1em 0 0.24em;
}
.mark {
  position: absolute;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Questions on a roll of tickets, running off both sides of the page. */
.tape {
  display: grid;
  gap: 14px;
  width: 100vw;
  margin-top: clamp(28px, 5vw, 56px);
  margin-left: calc(50% - 50vw);
  padding-block: 8px 12px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, #0000, #000 9%, #000 91%, #0000);
  mask: linear-gradient(90deg, #0000, #000 9%, #000 91%, #0000);
}
.tape__run {
  display: flex;
  width: max-content;
}
.tape__run li {
  position: relative;
  flex: none;
  margin-right: 14px;
  padding: 19px 16px 10px;
  border-radius: 0 0 3px 3px;
  background: var(--white);
  box-shadow: 0 2px 5px rgb(43 18 10 / 0.22);
  font: 400 clamp(1rem, 1.5vw, 1.2rem) / 1 var(--hand);
  white-space: nowrap;
}
.tape__run li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 1px 1px rgb(43 18 10 / 0.35);
}
.tape__run li:nth-child(odd) {
  rotate: -1.2deg;
}
.tape__run li:nth-child(even) {
  rotate: 0.9deg;
  translate: 0 3px;
}

/* The demo's pointer, the keys it presses and the ring where it taps. All three follow the scroll. */
.cursor {
  position: absolute;
  left: calc(38% + (62% - 62px) * var(--cur, 0));
  top: calc(40% + (60% - 86px) * var(--cur, 0));
  z-index: 4;
  width: 26px;
  height: 26px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s linear;
}
.cursor svg {
  display: block;
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.stage[data-cursor] .cursor {
  opacity: 1;
}
.keys {
  position: absolute;
  left: 4%;
  top: 40%;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
  width: min(64%, 620px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s linear;
}
.keys kbd {
  padding: 5px 13px 3px;
  font-size: 1.35rem;
  box-shadow: 0 3px 0 var(--ink);
  transition: translate 0.08s linear, box-shadow 0.08s linear, background-color 0.08s linear;
}
.stage[data-keys] .keys {
  opacity: 1;
}
.stage[data-down="1"] .keys kbd:nth-child(-n + 1),
.stage[data-down="2"] .keys kbd:nth-child(-n + 2),
.stage[data-down="3"] .keys kbd,
kbd.is-down {
  translate: 0 3px;
  background: var(--paper-shade);
  box-shadow: 0 0 0 var(--ink);
}
.pair__keys kbd {
  transition: translate 0.08s linear, background-color 0.08s linear;
}
.pair__keys kbd.is-down {
  translate: 0 1.5px;
}
.tap {
  position: absolute;
  right: 30px;
  bottom: 54px;
  z-index: 4;
  width: 64px;
  height: 64px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.tap.is-on {
  animation: tap-ring 0.5s var(--ease-out);
}
@keyframes tap-ring {
  from {
    opacity: 0.75;
    scale: 0.3;
  }
  to {
    opacity: 0;
    scale: 1.5;
  }
}
@media (max-width: 760px) {
  .keys {
    width: 92%;
  }
}

/* The stamp and the scale shown beside the facts about them. */
.facts > li > div {
  display: grid;
  justify-items: start;
  gap: 12px;
}
.scale--fact {
  width: min(100%, 340px);
  margin-top: 0;
}
.facts .stamp {
  margin: 2px 0 2px 4px;
}

/* A word blacked out with the marker, then let back: he never reads that box. */
[data-redact] {
  position: relative;
  white-space: nowrap;
}
[data-redact]::after {
  content: "";
  position: absolute;
  inset: 10% -3px 4%;
  border-radius: 2px;
  background: var(--ink);
  scale: 0 1;
  transform-origin: 0 50%;
  rotate: -1deg;
}

/* The header links underline themselves from the left. */
.top__nav a {
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.4rem) / 0% 1.5px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.top__nav a:hover,
.top__nav a:focus-visible {
  background-size: 100% 1.5px;
}

/* ---------- Motion ----------
   Everything from here to the end of this section applies only while <html> has the "motion"
   class. The page's head adds it unless the visitor has asked for less motion; motion.js then
   adds "is-loaded" once the lettering has arrived, and "is-in" to each thing as it is reached.
   The rule throughout: an element's ordinary style is its finished state, and motion only ever
   describes how it got there. */

/* The red sear line along the top of the window: how far down the page you are. */
.searline {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 3px;
  background: var(--red);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Headlines sear in a letter at a time: red hot, then cooled to ink. */
.motion [data-sear] .w {
  display: inline-block;
  white-space: nowrap;
}
.motion [data-sear] .c {
  display: inline-block;
}
.motion [data-sear]:not(.is-in) .c {
  opacity: 0;
}
.motion [data-sear].is-in .c {
  animation: sear-in 0.62s var(--ease-out) backwards;
  animation-delay: calc(var(--i) * 24ms + var(--sear-delay, 0ms));
}
@keyframes sear-in {
  0% {
    opacity: 0;
    color: var(--red);
    transform: translateY(0.42em) rotate(-7deg) scale(0.9);
  }
  45% {
    opacity: 1;
    color: var(--red);
  }
}
.motion .order__line {
  --sear-delay: 0.6s;
}

/* The mark is drawn once the words it sits on are there. */
.motion .mark path {
  stroke-dasharray: var(--len, 0);
  stroke-dashoffset: var(--len, 0);
}
.motion .is-in .mark path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.6, 0.05, 0.3, 1) var(--mark-delay, 0.5s);
}

/* The opening. Nothing here is hidden for longer than the lettering takes to load. */
.motion:not(.is-loaded) .top > *,
.motion:not(.is-loaded) .hero .lede,
.motion:not(.is-loaded) .hero .order,
.motion:not(.is-loaded) .display .steak,
.motion:not(.is-loaded) .rail li,
.motion:not(.is-loaded) .day .stage,
.motion:not(.is-loaded) .pairs__tabs,
.motion:not(.is-loaded) .pair,
.motion:not(.is-loaded) .pairs .day__caption {
  opacity: 0;
}
.motion.is-loaded .top > * {
  animation: drop-in 0.5s var(--ease-out) backwards;
}
.motion.is-loaded .top > :nth-child(2) {
  animation-delay: 70ms;
}
.motion.is-loaded .top > :nth-child(3) {
  animation-delay: 140ms;
}
@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
}
.motion.is-loaded .hero .lede {
  animation: come-up 0.7s var(--ease-out) 0.38s backwards;
}
.motion.is-loaded .pairs__tabs {
  animation: come-up 0.6s var(--ease-out) 0.62s backwards;
}
.motion.is-loaded .pairs .day__caption {
  animation: come-up 0.6s var(--ease-out) 1.2s backwards;
}
@keyframes come-up {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(5px);
  }
}

/* He drops onto the end of the headline once it has been written, and lands with a squash. */
.motion.is-loaded .display .steak {
  transform-origin: 50% 90%;
  animation: steak-drop 0.78s cubic-bezier(0.3, 0.6, 0.4, 1) var(--steak-delay, 0.55s) backwards;
}
@keyframes steak-drop {
  0% {
    opacity: 0;
    transform: translateY(-150%) rotate(-16deg);
  }
  12% {
    opacity: 1;
  }
  52% {
    transform: translateY(0) rotate(3deg) scale(1.1, 0.86);
  }
  70% {
    transform: translateY(-10%) rotate(-1.5deg) scale(0.97, 1.05);
  }
  86% {
    transform: translateY(0) scale(1.03, 0.97);
  }
}

/* Tickets are hung on a nail through the punched hole, so they arrive swinging. */
.motion .order {
  transform-origin: 50% 12px;
  transition: transform 0.3s var(--ease-out);
}
.motion .order[data-tilt] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.motion.is-loaded .hero .order {
  animation: swing-in 1.05s ease-in-out 0.5s backwards;
}
.motion .order--close:not(.is-in) {
  opacity: 0;
}
.motion .order--close.is-in {
  animation: swing-in 1.05s ease-in-out backwards;
}
@keyframes swing-in {
  0% {
    opacity: 0;
    transform: translateY(-34px) rotate(-9deg);
  }
  18% {
    opacity: 1;
  }
  40% {
    transform: translateY(0) rotate(4.5deg);
  }
  62% {
    transform: rotate(-2.4deg);
  }
  80% {
    transform: rotate(1deg);
  }
}
.motion .order--close:not(.is-in) .order__steak {
  opacity: 0;
}
.motion .order--close.is-in .order__steak {
  transform-origin: 50% 90%;
  animation: hop-up 0.75s cubic-bezier(0.3, 0.6, 0.4, 1) 0.85s backwards;
}

.motion.is-loaded .rail li {
  transform-origin: 50% 0;
  animation: hang 0.8s ease-in-out backwards;
  animation-delay: calc(0.72s + var(--n, 0) * 85ms);
}
.rail li:nth-child(2) {
  --n: 1;
}
.rail li:nth-child(3) {
  --n: 2;
}
.rail li:nth-child(4) {
  --n: 3;
}
@keyframes hang {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotate(-5deg);
  }
  25% {
    opacity: 1;
  }
  50% {
    transform: translateY(0) rotate(2.4deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}
.motion .rail .ticket:hover {
  transform-origin: 50% 0;
  animation: wobble 0.6s ease-in-out;
}
@keyframes wobble {
  30% {
    transform: rotate(1.8deg);
  }
  65% {
    transform: rotate(-1.1deg);
  }
}

.motion.is-loaded .day .stage,
.motion.is-loaded .pair {
  animation: stage-up 0.9s var(--ease-out) 0.95s backwards;
}
.motion.is-loaded .pair {
  animation-delay: 0.75s;
}
@keyframes stage-up {
  from {
    opacity: 0;
    transform: translateY(44px) scale(0.975);
  }
}

/* Section by section. */
.motion .band--line {
  position: relative;
  border-top-color: transparent;
}
.motion .band--line::before {
  content: "";
  position: absolute;
  inset: -2px 0 auto;
  border-top: 2px dashed rgb(106 70 56 / 0.55);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease-out);
}
.motion .band--line.is-torn::before {
  clip-path: inset(0);
}

.motion .tape__run {
  animation: tape 52s linear infinite paused;
}
.motion .tape__run--back {
  animation-direction: reverse;
  animation-duration: 60s;
}
.motion .tape.is-live .tape__run {
  animation-play-state: running;
}
.motion .tape:hover .tape__run {
  animation-play-state: paused;
}
@keyframes tape {
  to {
    transform: translateX(-50%);
  }
}

/* The list of facts rules itself in, a row at a time. */
.motion .facts {
  border-top-color: transparent;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 0% 1.5px no-repeat border-box;
  transition: background-size 0.8s var(--ease-out);
}
.motion .facts > li {
  border-bottom-color: transparent;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0% 1.5px no-repeat border-box;
  transition: background-size 0.8s var(--ease-out) var(--d, 0ms);
}
.motion .facts.is-in,
.motion .facts > li.is-in {
  background-size: 100% 1.5px;
}
.motion .facts > li > * {
  transition: opacity 0.5s linear var(--d, 0ms), translate 0.6s var(--ease-out) var(--d, 0ms);
}
.motion .facts > li:not(.is-in) > * {
  opacity: 0;
  translate: 0 12px;
}
.motion .facts > li.is-in > :nth-child(2) {
  transition-delay: calc(var(--d, 0ms) + 90ms);
}
.motion [data-fact-stamp]:not(.is-shown) {
  opacity: 0;
}
.motion .facts > li.is-in [data-redact]::after {
  animation: redact 2.4s ease-in-out 0.8s;
}
@keyframes redact {
  0% {
    scale: 0 1;
    transform-origin: 0 50%;
  }
  18%,
  62% {
    scale: 1 1;
    transform-origin: 0 50%;
  }
  63% {
    scale: 1 1;
    transform-origin: 100% 50%;
  }
  82%,
  100% {
    scale: 0 1;
    transform-origin: 100% 50%;
  }
}

/* Windows: the taskbar comes up, a window opens, and he hops onto the bar. */
.motion .home__screen--win .home__win {
  transition: opacity 0.5s linear 0.1s, scale 0.7s var(--ease-out) 0.1s;
}
.motion .home:not(.is-in) .home__screen--win .home__win {
  opacity: 0;
  scale: 0.9;
}
.motion .home__screen--win::after {
  transition: translate 0.6s var(--ease-out) 0.25s;
}
.motion .home:not(.is-in) .home__screen--win::after {
  translate: 0 100%;
}
.motion .home:not(.is-in) .home__screen--win .steak {
  opacity: 0;
}
.motion .home.is-in .home__screen--win .steak {
  transform-origin: 50% 90%;
  animation: hop-up 0.75s cubic-bezier(0.3, 0.6, 0.4, 1) 0.7s backwards;
}
@keyframes hop-up {
  0% {
    opacity: 0;
    transform: translateY(120%);
  }
  20% {
    opacity: 1;
  }
  55% {
    transform: translateY(-14%) scale(0.96, 1.06);
  }
  78% {
    transform: translateY(0) scale(1.07, 0.92);
  }
}

/* The Mac: the lid lifts with the scroll, the screen lights, and he turns up in the notch.
   --lid and --lit are set by motion.js from where the laptop is in the window. */
.motion .macbook {
  perspective: 3200px;
  perspective-origin: 50% 100%;
}
.motion .macbook__lid {
  transform-origin: 50% 100%;
  transform: rotateX(calc((1 - var(--lid, 1)) * -87deg));
}
.motion .home__screen--mac::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--ink);
  opacity: calc(1 - var(--lit, 1));
  pointer-events: none;
}
.motion .macbook:not(.is-awake) .home__notch .steak {
  opacity: 0;
}
.motion .macbook.is-awake .home__notch .steak {
  transform-origin: 50% 80%;
  animation: notch-pop 0.6s cubic-bezier(0.3, 0.6, 0.4, 1) backwards;
}
@keyframes notch-pop {
  0% {
    opacity: 0;
    transform: translateY(70%) scale(0.5);
  }
  60% {
    opacity: 1;
    transform: translateY(-12%) scale(1.14);
  }
}

/* Before and after: the text is typed, the keys go down, and the slip is handed up a step at a time.
   pairs.js adds "is-seq" while the sequence runs and takes it away when the slip is finished. */
.pair__side--slip .slip-shadow {
  transform-origin: 70% 100%;
  transition: opacity 0.16s linear, translate 0.3s var(--ease-out), rotate 0.3s var(--ease-out);
}
.motion .pair.is-seq .slip-shadow {
  opacity: 0;
  translate: 0 22px;
  rotate: 2.5deg;
}
.motion .pair.is-seq.seq-slip .slip-shadow {
  opacity: 1;
  translate: 0;
  rotate: 0deg;
}
.motion .pair.is-seq [data-slip-label],
.motion .pair.is-seq .pair__verdict,
.motion .pair.is-seq .pair__fixes li,
.motion .pair.is-seq .rewrite,
.motion .pair.is-seq .stamp {
  opacity: 0;
}
.motion .pair.is-seq.seq-verdict [data-slip-label],
.motion .pair.is-seq.seq-verdict .pair__verdict,
.motion .pair.is-seq.seq-fix1 .pair__fixes li:first-child,
.motion .pair.is-seq.seq-fix2 .pair__fixes li {
  opacity: 1;
  transition: opacity 0.3s linear;
}
.motion .pair.is-seq.seq-rewrite .rewrite {
  opacity: 1;
  animation: stick 0.36s var(--ease-out);
}
@keyframes stick {
  from {
    opacity: 0;
    transform: scale(1.05) rotate(-1.2deg);
  }
}
.motion .pair.is-seq.seq-done .stamp {
  opacity: 0.9;
}

/* Steaky perks up under the pointer and hops when tapped. */
.steak svg {
  transform-origin: 50% 90%;
  transition: scale 0.18s var(--ease-out);
}
.motion span.steak:hover svg {
  scale: 1.06;
}
.motion .steak[data-hop] svg {
  animation: hop 0.58s var(--ease-out);
}
@keyframes hop {
  30% {
    transform: translateY(-16%) scale(0.96, 1.05);
  }
  62% {
    transform: translateY(0) scale(1.07, 0.93);
  }
}

/* Asleep: he breathes, and the z's drift up one after another. */
.motion .hush__zzz span,
.motion .zzz span {
  display: inline-block;
  margin-right: 0.28em;
  font-size: calc(1em + var(--n, 0) * 0.16em);
}
.motion .hush.is-live .hush__zzz span,
.motion .stage[data-scene="3"] .zzz span {
  animation: doze 2.7s ease-in-out infinite;
  animation-delay: calc(var(--n, 0) * 0.45s);
}
@keyframes doze {
  0% {
    opacity: 0;
    transform: translate(-3px, 7px) scale(0.75);
  }
  30%,
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(7px, -13px) scale(1.12);
  }
}
.motion .hush.is-live .hush__nap .steak svg,
.motion .stage[data-scene="3"] .corner svg {
  animation: breathe 3.8s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    transform: scale(1.035, 0.97);
  }
}

/* A lighter band crosses the red button as the pointer arrives. */
.motion .btn:not(.btn--quiet) {
  background-image: linear-gradient(105deg, #0000 40%, rgb(255 248 243 / 0.24) 50%, #0000 60%);
  background-repeat: no-repeat;
  background-position: 130% 0;
  background-size: 250% 100%;
}
.motion .btn:not(.btn--quiet):hover {
  background-position: -50% 0;
  transition: background-position 0.65s var(--ease-out), background-color 0.15s var(--ease-out),
    translate 0.15s var(--ease-out);
}

/* ---------- Less motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .display {
    rotate: 0deg;
  }
}
