/* The product page between the hero and the footer: one story told down the hero's own centre
   line, in the measure, type sizes and hairlines of the Branding page. A drafted thread runs from
   each part to the next. */
.home-story {
  --home-line: #dedbd3;
  --home-note: #6a625e;
  --home-draft: color-mix(in srgb, var(--bark) 30%, var(--white));
  display: grid;
  justify-items: center;
  overflow: clip;
  padding-bottom: 45px;
  background: var(--white);
  color: var(--ink);
}
.home-story ::selection { background: var(--sand); color: var(--ink); }
.home-width { width: min(1160px, calc(100% - clamp(40px, 10vw, 176px))); }

/* The thread: a measured line with a tick at each end. Something travels down each one: the
   blank sheet at first, and Fold once the sheet has become him. */
.home-thread {
  position: relative;
  width: 1px;
  height: clamp(60px, 7.4vw, 108px);
  margin-block: clamp(34px, 4.4vw, 60px);
  background: var(--home-draft);
}
.home-thread:first-child { margin-top: clamp(10px, 1.6vw, 24px); }
.home-thread::before, .home-thread::after {
  position: absolute;
  left: -4px;
  width: 9px;
  height: 1px;
  background: var(--home-draft);
  content: "";
}
.home-thread::before { top: 0; }
.home-thread::after { bottom: 0; }
.home-thread i {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(18px, 1.9vw, 24px);
  aspect-ratio: 1;
  background: center / contain no-repeat;
  opacity: 0;
  translate: -50% -50%;
}
.thread-blank { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 64 64'%3E%3Cpath d='M53 13C41 14.2 31.1 14.5 24.9 18C18.7 21.5 18.4 26.6 18.2 36.4C18 45.1 16 49.2 13.5 56.7C11.4 62.6 11.1 67.3 16.7 65.7C25.9 62.9 32.2 64.6 42.2 67C53.9 69.6 60.2 68.6 61.8 61.2L68 28.3L67.8 16.4Q67.7 13.5 64.8 13.4Z' fill='%23fff' stroke='%239b9494' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.thread-fold { background-image: url("assets/fold.webp"); }

/* Each part opens the same way: a label, a line, and what we mean by it. */
.home-beat { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.home-overline { margin-bottom: 14px; color: var(--home-note); font-size: 14px; line-height: 1.45; }
.home-beat > h2 {
  max-width: 19ch;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.home-beat > h2 + p {
  max-width: 47ch;
  margin-top: clamp(16px, 1.8vw, 22px);
  color: var(--bark);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* A first draft is a blank sheet, and everyone was handed the same one. Three rows of them, all
   alike, all nodding at the same moment. One place in the front row is empty: that sheet has
   left, and the thread below follows it. */
.same-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(10px, 1.3vw, 16px);
  width: 100vw;
  /* Room above and below the rows, inside the fade, so a sheet that pops is never cut. */
  margin: calc(clamp(40px, 5.2vw, 70px) - 18px) calc(50% - 50vw) 0;
  padding-block: 18px;
  mask-image: linear-gradient(90deg, transparent 4%, #000 30%, #000 70%, transparent 96%);
}
.same-field > span { display: flex; min-width: 0; justify-content: center; gap: clamp(12px, 1.7vw, 24px); }
.same-field { touch-action: pan-y; }
.same-field > span:nth-child(1) i { opacity: .3; }
.same-field > span:nth-child(2) i { opacity: .6; }
/* Point at one and it stops being a copy: it turns its corner, opens its eyes, and is Fold. It
   stays that way, and it no longer nods along with the rest. */
.same-field > span i.is-yours { background-image: url("assets/fold.webp"); opacity: 1; }
.same-note { margin-top: 0; color: var(--home-note); font-size: 14px; line-height: 1.45; }
.same-field i {
  flex: none;
  width: clamp(28px, 3vw, 42px);
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 8 64 64'%3E%3Cpath d='M53 13C41 14.2 31.1 14.5 24.9 18C18.7 21.5 18.4 26.6 18.2 36.4C18 45.1 16 49.2 13.5 56.7C11.4 62.6 11.1 67.3 16.7 65.7C25.9 62.9 32.2 64.6 42.2 67C53.9 69.6 60.2 68.6 61.8 61.2L68 28.3L67.8 16.4Q67.7 13.5 64.8 13.4Z' fill='%23fff' stroke='%239b9494' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.same-field .same-gone { background: none; }

/* Three verbs. */
.home-verbs, .home-mix, .trifold, .crew-plate, .home-shapes, .house-rules, .home-demo, .home-path {
  width: 100%;
  margin: clamp(40px, 5.2vw, 70px) 0 0;
  text-align: left;
}
.home-verbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.6vw, 48px); }
.home-verbs h3 {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--home-line);
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.08;
  letter-spacing: -.018em;
}
/* The sheet becomes someone, one verb at a time: pointed at, then a turned corner and two eyes,
   then Fold. */
.verb-sheet { display: block; width: clamp(92px, 10.5vw, 148px); height: auto; margin-left: -9px; overflow: visible; }
.sheet-line { fill: var(--white); stroke: color-mix(in srgb, var(--bark) 55%, var(--white)); stroke-width: 1.1; stroke-linejoin: round; }
.sheet-crease { fill: none; stroke: var(--bark); stroke-width: .9; stroke-dasharray: 2.1 2.1; }
.sheet-cursor { fill: var(--ink); stroke: var(--white); stroke-width: .9; stroke-linejoin: round; }
.sheet-paper { fill: var(--ivory); stroke: var(--bark); stroke-width: 1.1; stroke-linejoin: round; }
.sheet-flap, .sheet-ink-flap { stroke-linejoin: round; transform-box: fill-box; transform-origin: 0 0; }
.sheet-flap { fill: var(--white); stroke: var(--bark); stroke-width: 1; }
.sheet-eyes { fill: var(--ink); transform-box: fill-box; transform-origin: center; }
.sheet-ink { fill: var(--ink); stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.sheet-ink-flap { fill: var(--ivory); stroke: var(--ink); stroke-width: .8; }
.sheet-ink-eyes { fill: var(--ivory); }
.home-verbs p, .home-crew p { margin-top: 8px; color: var(--home-note); font-size: 15px; line-height: 1.55; text-wrap: pretty; }

/* The window: one sheet of paper folded in three, with what lives in each part written on it. */
.trifold {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 17.2fr 27.1fr 55.7fr;
}
.trifold-paper { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trifold-paper path { fill: var(--white); stroke: color-mix(in srgb, var(--bark) 50%, var(--white)); stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trifold-paper .trifold-shade { fill: color-mix(in srgb, var(--ivory) 70%, var(--white)); stroke: none; }
.trifold-paper .trifold-crease { fill: none; }
.trifold > div { padding: clamp(34px, 4.2vw, 56px) clamp(18px, 2.3vw, 32px) clamp(36px, 4.4vw, 60px); }
.trifold h3 { font-size: clamp(19px, 1.9vw, 25px); line-height: 1.12; letter-spacing: -.014em; }
.trifold p, .trifold li { color: var(--home-note); font-size: 15px; line-height: 1.55; }
.trifold p { max-width: 40ch; margin-top: 10px; text-wrap: pretty; }
.trifold ul { margin: 12px 0 0; padding: 0; list-style: none; }
.trifold li { padding-block: 7px; border-top: 1px solid var(--home-line); color: var(--bark); }
.trifold li b { display: block; color: var(--ink); font-weight: 400; }
.trifold li { color: var(--home-note); font-size: 14px; }
.trifold li b { font-size: 15px; }
.trifold-tools { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(16px, 2.2vw, 30px); margin-top: 20px !important; }

/* One change, from note to live: five slips of paper on a line. The last one is inked, like the
   button that lets you in. */
.home-path { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2.4vw, 34px); padding: 0; list-style: none; }
.home-path::before { position: absolute; top: 22px; right: 0; left: 0; height: 1px; background: var(--home-draft); content: ""; }
/* Fold goes with the change, slip to slip, and ends up sitting on the one that says Live. */
.home-path::after {
  position: absolute;
  top: -21px;
  left: calc(80% + 30px);
  width: 26px;
  aspect-ratio: 1;
  background: url("assets/fold.webp") center / contain no-repeat;
  rotate: 8deg;
  content: "";
}
.slip {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  padding: 0 20px 0 17px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  white-space: nowrap;
}
.slip-paper { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; overflow: visible; }
.slip-body { fill: var(--white); stroke: var(--bark); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.slip-corner { fill: var(--ivory); stroke: var(--bark); stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.slip-live .slip { color: var(--white); }
.slip-live .slip-body { fill: var(--ink); stroke: var(--ink); }
.slip-live .slip-corner { fill: var(--white); stroke: var(--ink); }
.home-path p { max-width: 26ch; margin-top: 16px; color: var(--home-note); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.home-people { grid-template-columns: repeat(4, 1fr); }
.home-people h3 { margin-top: 0; }

/* The crew, at work around one sheet. A leader runs from each of them out to what they do. */
.crew-plate {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.24fr) minmax(0, .88fr);
  align-items: stretch;
}
.crew-notes { display: grid; grid-template-rows: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.crew-notes li { align-self: center; padding-block: 8px; }
.crew-notes-left { text-align: right; }
.crew-notes h3 { font-size: 16px; line-height: 1.45; letter-spacing: 0; }
.crew-notes em { margin-left: 6px; color: var(--home-note); font-size: 12px; font-style: normal; }
.crew-notes-left em { display: inline-block; }
.crew-notes p { margin-top: 4px; color: var(--home-note); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.crew-scene { position: relative; align-self: center; width: 100%; aspect-ratio: 1; }
.crew-drawing { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.crew-sheet { fill: var(--white); stroke: color-mix(in srgb, var(--bark) 55%, var(--white)); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.crew-leader, .crew-ground { stroke: var(--home-draft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.crew-dots { fill: var(--bark); }
/* What each of them does to the sheet when poked. Poke all eight and the blank draft has become
   a page: a headline, its lines, a line struck out, a button, a phone version, a note from
   someone else, an earlier take kept behind it, and a mark that says it shipped. */
.crew-work { stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.crew-work :is(path, rect, circle) { vector-effect: non-scaling-stroke; }
.crew-work-heavy { stroke-width: 3.2; }
.crew-work-strike { stroke: var(--bark); stroke-width: 1.6; }
.crew-work-fill { fill: var(--ink); stroke: none; }
.crew-work-tick { stroke: var(--white); stroke-width: 1.4; }
.crew-work-soft { stroke: var(--home-draft); fill: var(--white); stroke-width: 1.2; }
[data-did~="cat"] [data-work="cat"],
[data-did~="fold"] [data-work="fold"],
[data-did~="cup"] [data-work="cup"],
[data-did~="news"] [data-work="news"],
[data-did~="umbrella"] [data-work="umbrella"],
[data-did~="crown"] [data-work="crown"],
[data-did~="tower"] [data-work="tower"],
[data-did~="cab"] [data-work="cab"] { opacity: 1; }
.crew-note { margin-top: clamp(14px, 2vw, 26px); }
.crew-face { padding: 0; border: 0; border-radius: 0; background: none; }
button.crew-face:enabled { cursor: pointer; }
.crew-face { position: absolute; top: calc(var(--y) * 1%); left: calc(var(--x) * 1%); width: calc(var(--s) * 1%); translate: -50% -50%; }

/* One sheet, four shapes: Fold drawn as wide as a site and as narrow as a phone. */
.home-shapes { --unit: clamp(70px, 9.6vw, 132px); display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; gap: clamp(20px, 3vw, 44px); }
/* Whatever its shape, each one stands on the same line. */
.home-shapes figure { display: grid; grid-template-rows: calc(var(--unit) * 1.14) auto; min-width: 0; }
.shape {
  position: relative;
  align-self: end;
  width: calc(var(--unit) * var(--w));
  height: calc(var(--unit) * var(--h));
}
.shape svg { display: block; width: 100%; height: 100%; overflow: visible; }
.shape-body { fill: var(--ink); }
.shape-flap { fill: var(--ivory); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.shape-eyes { position: absolute; top: 46%; left: 50%; display: flex; gap: calc(var(--unit) * .135); translate: -50% -50%; }
.shape-eyes b { width: calc(var(--unit) * .05); height: calc(var(--unit) * .105); border-radius: 99px; background: var(--ivory); rotate: 25deg; }
.home-shapes figcaption { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--home-line); }
.home-shapes figcaption span { font-size: 16px; }
.home-shapes figcaption p { margin-top: 6px; color: var(--home-note); font-size: 15px; line-height: 1.55; text-wrap: pretty; }

/* The rules the studio has learned from you, kept on a sheet, with the cup that keeps them. */
.house-rules { display: grid; justify-items: center; }
.rules-sheet {
  position: relative;
  width: min(100%, 30rem);
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.2vw, 40px) clamp(22px, 2.8vw, 32px);
  border: 1px solid color-mix(in srgb, var(--bark) 50%, var(--white));
  border-radius: 4px 0 5px 4px;
  background: var(--white);
  rotate: -1.1deg;
}
.rules-sheet .take-corner { stroke: color-mix(in srgb, var(--bark) 50%, var(--white)); }
/* The corner is turned down, so the sheet's own edge stops short of it. */
.rules-sheet::before {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 29px;
  height: 32px;
  background: var(--white);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  content: "";
}
.rules-title, .rules-kept { color: var(--home-note); font-size: 14px; line-height: 1.45; }
.rules-sheet ul { margin: 12px 0 0; padding: 0; list-style: none; }
.rules-sheet li {
  padding-block: clamp(10px, 1.2vw, 14px);
  border-top: 1px solid var(--home-line);
  color: var(--bark);
  font-size: clamp(19px, 2.15vw, 27px);
  line-height: 1.15;
  letter-spacing: -.014em;
}
.rules-sheet li:last-child { border-bottom: 1px solid var(--home-line); color: var(--ink); }
.rules-sheet li:nth-child(2) { --n: 1; }
.rules-sheet li:nth-child(3) { --n: 2; }
.rules-sheet li:nth-child(4) { --n: 3; }
.rules-sheet li:nth-child(5) { --n: 4.6; }
.rules-kept { margin-top: 16px; }
.rules-cup { position: absolute; right: clamp(-34px, -2.6vw, -18px); bottom: clamp(-30px, -2.2vw, -16px); width: clamp(56px, 6.2vw, 82px); rotate: 6deg; }

/* Three takes of one page, each in pencil with the one thing it got right in ink. They add up to
   a fourth sheet that has all three. */
.home-mix {
  --take: clamp(58px, 12.4vw, 164px);
  --sign: clamp(11px, 1.9vw, 24px);
  display: grid;
  grid-template-columns: repeat(3, var(--take) var(--sign)) calc(var(--take) * 1.36);
  align-items: center;
  justify-content: center;
  gap: 14px clamp(8px, 2.4vw, 34px);
}
.mix-sheet { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mix-paper, .mix-flap { fill: var(--white); stroke: var(--home-draft); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.mix-flap { fill: var(--ivory); }
.mix-paper-kept { stroke: var(--bark); }
.mix-pencil { stroke: color-mix(in srgb, var(--bark) 26%, var(--white)); stroke-width: 1.6; }
.mix-ink { stroke: var(--ink); stroke-width: 1.8; }
.mix-head { stroke-width: 6; }
.mix-slip { fill: var(--ink); }
.mix-sign { width: 100%; height: auto; fill: none; stroke: var(--bark); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.home-mix > span { align-self: start; color: var(--home-note); font-size: 14px; line-height: 1.4; text-align: center; text-wrap: balance; }
.home-mix .mix-yours { color: var(--ink); }
.take-corner {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 32px;
  height: auto;
  overflow: visible;
  fill: var(--ivory);
  stroke: var(--home-line);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

/* A place held for a demo. Until the real image or video is put inside the frame, it shows a
   first draft of that screen, pencilled on a sheet of paper. A band of light crosses it, and
   where the light is, the pencil is inked. */
/* A held place is quieter than the things around it, so it does not take the whole measure. */
.demo { width: min(100%, 58rem); margin-inline: auto; }
.demo-stage { display: flex; align-items: flex-end; gap: 4%; }
.demo-frame {
  position: relative;
  flex: 1;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid color-mix(in srgb, var(--bark) 50%, var(--white));
  border-radius: 4px 0 5px 4px;
  background: var(--white);
  clip-path: polygon(0 0, calc(100% - 27.2px) 0, 100% 30.4px, 100% 100%, 0 100%);
}
.demo-frame-phone { flex: 0 0 21.6%; aspect-ratio: 9 / 19.3; }
.demo-frame .take-corner { z-index: 2; stroke: color-mix(in srgb, var(--bark) 50%, var(--white)); }
.draft {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: color-mix(in srgb, var(--bark) 32%, var(--white));
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.draft :is(path, rect, circle) { vector-effect: non-scaling-stroke; }
.draft .draft-heavy { stroke-width: 3.4; }
/* What the demo is about is drawn a little harder than the rest. */
.draft .draft-key { stroke: color-mix(in srgb, var(--bark) 62%, var(--white)); }
.draft .draft-key > rect { fill: var(--white); }
.draft .draft-cursor { fill: var(--bark); stroke: var(--white); }
.draft-ink { display: none; stroke: var(--ink); stroke-width: 1.5; }
.draft-ink .draft-key { stroke: var(--ink); }
.demo-frame:has(img, video) .draft { display: none; }
/* The real thing fills the frame, and the draft goes. */
.demo-frame :is(img, video) { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.demo:has(.demo-frame :is(img, video)) figcaption span:last-child { display: none; }
.demo figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem 1rem;
  margin-top: 14px;
  color: var(--home-note);
  font-size: 14px;
  line-height: 1.45;
}
.demo figcaption span:first-child { color: var(--ink); }

/* The way in. Fold has come all the way down, and sits on the tallest letter. */
.perch { position: relative; }
.perch-fold { position: absolute; bottom: .93em; left: 50%; width: .36em; rotate: 9deg; translate: -40% 0; }
.home-close > h2 {
  max-width: none;
  margin-top: clamp(34px, 4.4vw, 58px);
  font-size: clamp(54px, 9vw, 124px);
  line-height: 1;
  word-spacing: normal;
}
.home-close > h2 + p { max-width: 44ch; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; text-wrap: balance; }
.home-close .button { margin-top: 26px; }
.close-note {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  width: 100%;
  margin-top: clamp(48px, 6vw, 70px);
  text-align: left;
}
.close-note p, .close-note a { color: var(--home-note); font-size: 14px; }
.close-note p { max-width: 58ch; }
.close-note a { flex-shrink: 0; }
.close-note a { text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Each part arrives the way the hero's lines do: it settles into place as it comes into view,
   and the thread is drawn down to it. */
@media (prefers-reduced-motion: no-preference) {
  .home-story [data-wait] { opacity: 0; translate: 0 10px; }
  .home-story .home-thread[data-wait] { opacity: 1; translate: none; clip-path: inset(0 -14px 100% -14px); }
  .home-story [data-settle] {
    transition: opacity .7s calc(var(--i, 0) * 80ms), translate .8s var(--ease) calc(var(--i, 0) * 80ms);
  }
  .home-story .home-thread[data-settle] { clip-path: inset(0 -14px 0 -14px); transition: clip-path .9s var(--ease); }
  /* The sheet lets go at the top of the thread and drifts down it. */
  .home-thread:not([data-wait]) i { animation: thread-fall 1.9s cubic-bezier(.45, 0, .3, 1) .25s both; }
  @keyframes thread-fall {
    0% { top: 0; opacity: 0; rotate: -16deg; }
    12% { opacity: 1; }
    38% { rotate: 11deg; }
    68% { rotate: -8deg; }
    86% { opacity: 1; }
    100% { top: 100%; opacity: 0; rotate: 4deg; }
  }
  /* The band of light, and the ink that shows inside it. */
  .draft-ink {
    display: block;
    mask: linear-gradient(100deg, transparent 36%, #000 45% 55%, transparent 64%) 0 0 / 260% 100% no-repeat;
    animation: draft-ink 7.5s cubic-bezier(.45, 0, .35, 1) infinite;
  }
  .demo-frame::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 36%, color-mix(in srgb, var(--sand) 46%, transparent) 50%, transparent 64%) 0 0 / 260% 100% no-repeat;
    animation: draft-ink 7.5s cubic-bezier(.45, 0, .35, 1) infinite;
    pointer-events: none;
    content: "";
  }
  .demo-frame:has(img, video)::after { content: none; }
  @keyframes draft-ink {
    from { mask-position: 135% 0; background-position: 135% 0; }
    to { mask-position: -35% 0; background-position: -35% 0; }
  }
  /* A sheet that has just been pointed at. */
  .same-field i.is-yours { animation: yours-pop .55s var(--ease) both; }
  @keyframes yours-pop {
    0% { scale: .55; rotate: -20deg; }
    55% { scale: 1.22; rotate: 9deg; }
    100% { scale: 1; rotate: 0deg; }
  }
  /* A teammate's work appears a beat after it has reacted to the poke. */
  .crew-work { transition: opacity .4s .3s; }
  /* Fold blinks, wherever he is drawn. */
  .shape-eyes b { animation: fold-blink 5.6s calc(var(--w, 0) * -1.3s) infinite; }
  .home-verbs > div:not([data-wait]) :is(.sheet-eyes, .sheet-ink-eyes) { animation: fold-blink 6.2s 3.4s infinite; }
  @keyframes fold-blink {
    0%, 91%, 97%, 100% { scale: 1 1; }
    94% { scale: 1 .08; }
  }
  /* The window unrolls from its first fold to its last. */
  .home-story .trifold-paper[data-wait] { opacity: 1; translate: none; clip-path: inset(-4% 100% -4% 0); }
  .home-story .trifold-paper[data-settle] { clip-path: inset(-4% -1% -4% 0); transition: clip-path 1.25s cubic-bezier(.5, 0, .2, 1); }
  .home-story .trifold > div[data-settle] { transition-delay: calc(var(--i, 0) * 260ms + 350ms); }
  /* The house rules are written down one at a time. The last one takes a breath first. */
  .rules-sheet li { clip-path: inset(-2px 0 -2px 0); transition: clip-path .75s cubic-bezier(.5, 0, .2, 1) calc(var(--n, 0) * 300ms + 550ms); }
  [data-wait].rules-sheet li { clip-path: inset(-2px 100% -2px 0); }
  /* Each take's good part is inked in turn, and then the three of them land on the last sheet. */
  .mix-ink { transition: stroke .55s var(--then, 0s); }
  .mix-slip { transition: fill .55s var(--then, 0s); }
  .mix-sheet:nth-child(1) { --then: .5s; }
  .mix-sheet:nth-child(3) { --then: .95s; }
  .mix-sheet:nth-child(5) { --then: 1.4s; }
  .mix-kept .mix-head { --then: 2s; }
  .mix-kept .mix-ink:not(.mix-head) { --then: 2.35s; }
  .mix-kept .mix-slip { --then: 2.7s; }
  [data-wait] .mix-ink { stroke: color-mix(in srgb, var(--bark) 26%, var(--white)); }
  [data-wait] .mix-slip { fill: color-mix(in srgb, var(--bark) 26%, var(--white)); }
  /* Fold hops the path once it has been laid out. */
  .home-path:has(li[data-wait])::after { left: 2px; animation: none; }
  .home-path::after { animation: path-hop 3.6s cubic-bezier(.45, 0, .3, 1) .7s both; }
  @keyframes path-hop {
    0% { left: 2px; translate: 0 0; }
    12% { translate: 0 -16px; }
    25% { left: calc(20% + 8px); translate: 0 0; }
    37% { translate: 0 -16px; }
    50% { left: calc(40% + 15px); translate: 0 0; }
    62% { translate: 0 -16px; }
    75% { left: calc(60% + 22px); translate: 0 0; }
    87% { translate: 0 -18px; }
    100% { left: calc(80% + 30px); translate: 0 0; }
  }
  /* Every sheet in the field makes the same small move at the same moment. */
  .same-field i { animation: same-nod 5.4s ease-in-out infinite; }
  @keyframes same-nod {
    0%, 78%, 100% { rotate: 0deg; translate: 0 0; }
    84% { rotate: -7deg; translate: 0 -2px; }
    91% { rotate: 5deg; }
  }
  /* The three drawings happen one after another, left to right. */
  .home-verbs > div { --then: calc(var(--i, 0) * 620ms + 420ms); }
  .sheet-cursor { transition: translate .7s var(--ease) var(--then), opacity .35s var(--then); }
  .sheet-crease { transition: opacity .4s calc(var(--then) + .45s); }
  .sheet-flap { transition: transform .65s var(--ease) var(--then); }
  .sheet-eyes { transition: scale .28s calc(var(--then) + .55s); }
  .sheet-ink { transition: fill .7s var(--then), stroke .7s var(--then); }
  .sheet-ink-eyes { transition: fill .7s var(--then); }
  [data-wait] .sheet-cursor { opacity: 0; translate: 10px 9px; }
  [data-wait] .sheet-crease { opacity: 0; }
  [data-wait] .sheet-flap { transform: scaleY(-1); }
  [data-wait] .sheet-eyes { scale: 1 0; }
  [data-wait] .sheet-ink { fill: var(--ivory); stroke: var(--bark); }
  [data-wait] .sheet-ink-eyes { fill: var(--ink); }
}

@media (max-width: 900px) {
  .crew-plate { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(18px, 4vw, 34px); }
  .crew-scene { grid-area: 1 / 1 / 2 / -1; width: min(100%, 26rem); margin-inline: auto; }
  .crew-leader, .crew-dots { display: none; }
  .crew-notes { grid-template-rows: none; row-gap: 18px; margin-top: 30px; }
  .crew-notes li { align-self: start; padding: 14px 0 0; border-top: 1px solid var(--home-line); }
  .crew-notes-left { text-align: left; }
}
@media (max-width: 760px) {
  .home-beat > h2 + p { font-size: 16px; }
  .home-verbs { grid-template-columns: 1fr; gap: 26px; }
  .home-people { grid-template-columns: repeat(2, 1fr); }
  .home-path { grid-template-columns: 1fr; gap: 22px; padding-left: 4px; }
  .home-path::before { top: 0; right: auto; bottom: 0; left: 26px; width: 1px; height: auto; }
  .home-path::after { content: none; }
  .home-path p { max-width: none; margin: 10px 0 0 46px; }
  .draft .draft-heavy { stroke-width: 2; }
  .trifold { grid-template-columns: 1fr; }
  .trifold-paper { display: none; }
  .trifold > div { padding: 22px 20px 24px; border: 1px solid color-mix(in srgb, var(--bark) 50%, var(--white)); }
  .trifold > div + div { border-top: 0; }
  .trifold > div:nth-child(2) { background: color-mix(in srgb, var(--ivory) 70%, var(--white)); }
  .home-shapes { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .home-shapes { --unit: clamp(70px, 21vw, 104px); }
  /* A small frame gets a small corner. */
  .demo-frame-phone { clip-path: polygon(0 0, calc(100% - 15.3px) 0, 100% 17.1px, 100% 100%, 0 100%); }
  .demo-frame-phone .take-corner { width: 18px; }
  .home-mix > span { font-size: 12px; }
}
@media (max-width: 480px) {
  .close-note { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
}
