/* Home page: the wordmark, one line, then a deck of plates, one per app.
   Each plate is a full screen in the app's own color and is laid out differently from the others. As you scroll,
   each plate slides up over the one before it (position: sticky, so it needs no script and no scroll timeline).
   The page ends on the last plate and the footer.
   Extra motion is tied to scrolling (animation-timeline), sits inside @supports and prefers-reduced-motion:
   no-preference, and is decoration only. Without it every plate shows its finished state. Text and numbers never
   wait for an animation or change with it. Nothing here plays on its own. */

.thriving { --serif: ui-serif, "New York", Georgia, "Times New Roman", serif; }
.thriving main { overflow-x: clip; }
.thriving .tbi { display: grid; align-content: center; min-height: calc(100svh - 108px); padding: 40px 0 48px; isolation: isolate; z-index: 1; }
@media (min-width: 801px) and (max-height: 760px) { .thriving .tbi-stage { width: min(86vw, 500px); } }
.thriving .tbi .lede { max-width: 21em; color: #d1d1d6; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.4; text-wrap: balance; }
/* The apps under the line, in the order it names them, like a row on a home screen. Each jumps to its plate. */
.hero-apps { display: grid; grid-template-columns: repeat(5, minmax(0, 92px)); justify-content: center; gap: 0 clamp(4px, 2vw, 22px); margin: clamp(24px, 3.2vw, 34px) 0 0; }
.hero-apps a { display: grid; justify-items: center; align-content: start; gap: 9px; padding: 3px 0; color: #e5e5ea; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; text-decoration: none; text-wrap: balance; }
.hero-apps a:hover { text-decoration: none; }
.hero-apps a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.hero-apps img { display: block; width: 52px; height: 52px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (max-width: 440px) {
  .hero-apps {
    grid-template-columns: minmax(80px, 1.3fr) minmax(61px, 1fr) minmax(61px, 1fr) minmax(46px, 0.8fr) minmax(52px, 0.9fr);
    gap: 0 2px;
    margin-inline: -8px;
  }
  .hero-apps img { width: 44px; height: 44px; }
}
@media (max-width: 340px) { .hero-apps { margin-inline: -17px; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .hero-apps a:hover img { transform: translateY(-3px); } }
.plate { scroll-margin-top: 0; }
.thriving .site-foot { margin-top: 0; }

/* ---- The deck ---- */
.deck { position: relative; background: #000; }
.plate { position: relative; isolation: isolate; display: grid; overflow: clip; min-height: max(100svh, var(--plate-min)); background: var(--p-bg); color: var(--p-ink);
  --plate-min: 700px; --p-bg: #000; --p-ink: #f5f5f7; --p-soft: #c7c7cc; --p-line: rgba(255, 255, 255, 0.2); }
.plate { border-radius: 28px 28px 0 0; }
.plate + .plate { margin-top: -28px; }
.plate-br { --p-bg: #121214; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
.plate-om { --p-bg: #f2f2f4; --p-ink: #1d1d1f; --p-soft: #48484d; --p-line: rgba(0, 0, 0, 0.14); }
.plate-ml { --p-bg: #12301f; --p-ink: #f3eada; --p-soft: #e1d8c6; --p-line: rgba(243, 234, 218, 0.24); }
.plate-gg { --p-bg: #8f3f24; --p-ink: #fbf7ef; --p-soft: #f6e9dc; --p-line: rgba(251, 247, 239, 0.3); }
.plate-pottery { --p-bg: #33221f; --p-ink: #faf8f5; --p-soft: #e3d6de; --p-line: rgba(250, 248, 245, 0.24); }
.plate-in { align-self: center; display: grid; align-items: center; gap: 28px clamp(40px, 6vw, 88px); padding-block: 96px 76px; }

/* Words: the app's icon, its name in the serif, one sentence, where it stands. The name's link covers the plate. */
.vt-birdrunner { view-transition-name: app-birdrunner; }
.vt-owlmeal { view-transition-name: app-owlmeal; }
.vt-measurelot { view-transition-name: app-measurelot; }
.vt-gridbygrid { view-transition-name: app-gridbygrid; }
.plate-icon { display: block; width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--p-line); }
.plate h3 { margin: 22px 0 0; font-family: var(--serif); font-size: clamp(52px, 6vw, 104px); font-weight: 700; line-height: 0.98; letter-spacing: -0.026em; text-wrap: balance; }
.plate h3::after { content: "\00a0›"; font-family: var(--display, system-ui); font-size: 0.5em; font-weight: 500; opacity: 0.7; vertical-align: 0.14em; }
.plate-link { color: inherit; text-decoration: none; }
.plate-link:hover { text-decoration: none; }
.plate-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.plate-link:focus-visible::after { outline: 3px solid var(--p-ink); outline-offset: -8px; border-radius: 22px; }
.plate-line { margin: 22px 0 0; max-width: 21em; color: var(--p-soft); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.42; letter-spacing: -0.012em; text-wrap: pretty; }
.plate-status { margin: 18px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
/* The foot of a plate that isn't out yet: where it stands, and one thing to do about it. */
.plate-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin: 0; padding-top: 14px; border-top: 1px solid var(--p-line); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.plate-tell { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid currentColor; border-radius: 999px; color: inherit; font-size: 16px; text-decoration: none; }
body.thriving .plate-foot .plate-tell, body.thriving .plate-foot .plate-tell:hover { text-decoration: none; }
.plate-tell:hover { background: var(--p-ink); color: var(--p-bg); border-color: var(--p-ink); }
.plate-tell:focus-visible, .plate-link:focus-visible, .store-badge:focus-visible { outline-color: var(--p-ink); }
.plate:has(.plate-link:hover) h3::after { opacity: 1; }
.plate-actions { margin: 20px 0 0; }
/* Apple's own badge, unaltered, with clear space around it. */
.store-badge { position: relative; z-index: 2; display: inline-block; padding: 6px 0; border-radius: 10px; }
.store-badge img { display: block; width: 156px; height: 52px; }
.plate-note, .plate-credit { margin: 16px 0 0; max-width: 24em; color: var(--p-soft); font-size: 16px; line-height: 1.45; }

/* A real screen in a plain phone outline: whole and upright. Its height follows the window, so a plate fits a screen. */
.plate-show { position: relative; justify-self: center; }
.phone { position: relative; height: min(66svh, 640px); aspect-ratio: 660 / 1435; margin-inline: auto; border-radius: 13.5% / 6.2%; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 0 0 7px #08080a, 0 0 0 8px rgba(255, 255, 255, 0.2), 0 44px 70px -28px rgba(0, 0, 0, 0.75); }
.phone .scr { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* 1. BirdRunner: words left, the Today screen right, and under both the app's own session bar: the white part done,
   the bird at its end, a flag at the finish. */
.plate-br .plate-in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding-top: 84px; }
.lane { grid-column: 1 / -1; position: relative; height: 8px; margin-top: 44px; border-radius: 99px; background: #3a3a3c; container-type: inline-size; pointer-events: none; }
.lane-done { position: absolute; inset: 0; border-radius: inherit; background: #f5f5f7; clip-path: inset(0 64px 0 0 round 99px); }
.lane-bird { position: absolute; left: 0; bottom: 3px; width: 56px; height: 56px; translate: calc(100cqw - 104px) 0; }
.lane-flag { position: absolute; right: 0; bottom: 16px; width: 24px; height: 24px; overflow: visible; }
.lane-flag path { fill: none; stroke: #f5f5f7; stroke-width: 2; stroke-linecap: round; }
.lane-flag .f { fill: #f5f5f7; stroke: none; }
.lane-flag .c { fill: #000; stroke: none; }
.plate-br .phone { height: min(66svh, 660px); }

/* 2. OwlMeal: a light plate, like the app. The name sits in the middle, between two screens, like an open diary. */
.plate-om .plate-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); }
.plate-om .plate-words { text-align: center; }
.plate-om .plate-icon, .plate-om .plate-line { margin-inline: auto; }
.plate-om h3 { font-size: clamp(50px, 5.4vw, 88px); }
.plate-om .phone { height: min(62svh, 600px); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 0 7px #161618, 0 0 0 8px rgba(0, 0, 0, 0.45), 0 40px 60px -30px rgba(0, 0, 0, 0.4); }

/* 3. Measure Lot: no map imagery here, so the sample field is drawn: its outline on a mown field, and under it a
   sheet laid out like the app's own, with the three lines its guide card says and the size it found. */
.plate-ml { --plate-min: 880px; }
.plate-ml .plate-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ex-ml { width: min(100%, 470px); }
.field { padding: 26px 26px 60px; border-radius: 24px; background-color: #1b4a30;
  background-image: repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.045) 0 30px, rgba(255, 255, 255, 0) 30px 60px); box-shadow: inset 0 0 0 1px rgba(243, 234, 218, 0.14); }
.plot { display: block; width: 100%; height: auto; max-height: 26svh; overflow: visible; }
.plot-fill { fill: #edb23e; fill-opacity: 0.4; }
.plot-line { fill: none; stroke: #fffaf0; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.plot-mid { fill: #fffaf0; stroke: #12301f; stroke-width: 1.5; }
.plot-pt circle { fill: #fffaf0; stroke: #12301f; stroke-width: 2; }
.plot-pt text { fill: #12301f; font: 700 14px/1 var(--display, system-ui); text-anchor: middle; }
.plot-mid { transform-box: fill-box; transform-origin: center; }
.sheet { position: relative; margin: -40px 14px 0; padding: 18px 20px 20px; border-radius: 20px; background: #f6efe1; color: #12301f; box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.7); }
.sheet-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.sheet-steps li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; padding: 3px 0; }
.sheet-steps li::before { content: counter(step); display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background-color: #edb23e; color: #12301f; font-size: 13px; font-weight: 700; line-height: 1; }
.acre { margin: 12px 0 0; font-size: clamp(60px, 7vw, 88px); font-weight: 700; line-height: 0.95; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acre-u { margin-left: 0.08em; font-size: 0.3em; font-weight: 600; letter-spacing: -0.02em; color: #4b5a51; }
.acre-more { margin: 8px 0 0; font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -0.012em; font-variant-numeric: tabular-nums; }
.sheet-done { display: block; margin-top: 14px; padding: 12px 0; border-radius: 12px; background: #edb23e; color: #133626; font-size: 16px; font-weight: 700; text-align: center; }

/* 4. Grid by Grid: the plate is ruled like the paper, with the app's ruler letters along the top, and the picture
   takes most of it: the wide iPad screen on laptops, the phone screen on phones. The words sit on plain terracotta,
   like a label on the sheet, so no line runs behind text. */
.plate-gg .plate-in { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr); padding-top: 104px; }
.plate-gg h3 { font-size: clamp(50px, 5.4vw, 88px); }
.rule-grid { --cell: clamp(60px, 7.6vw, 104px); position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background-image: linear-gradient(to right, rgba(251, 247, 239, 0.16) 1px, transparent 1px), linear-gradient(to bottom, rgba(251, 247, 239, 0.16) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); background-position: -1px 31px; }
.rule-letters { display: grid; grid-auto-flow: column; grid-auto-columns: var(--cell); margin: 0; height: 32px; align-items: center; overflow: hidden;
  font: 600 13px/1 var(--serif); color: rgba(251, 247, 239, 0.80); text-align: center; background: var(--p-bg); border-bottom: 1px solid rgba(251, 247, 239, 0.3); }
.plate-gg .plate-words { background: var(--p-bg); box-shadow: 0 0 0 20px var(--p-bg); }
.board { display: block; width: auto; max-width: 100%; height: auto; max-height: 60svh; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 30px 44px -18px rgba(0, 0, 0, 0.5); }
.plate-gg .plate-credit { max-width: none; padding: 2px 0; background: var(--p-bg); box-shadow: 0 0 0 8px var(--p-bg); }
.plate-gg .plate-foot { background: var(--p-bg); box-shadow: 0 0 0 14px var(--p-bg); }

/* Pottery Record: a coat of celadon leaves a bare clay foot beneath the copy. */
.pottery-stage { position: relative; display: grid; isolation: isolate; }
.plate-pottery .plate-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); padding-bottom: max(144px, 16svh); }
.pottery-scene { position: absolute; inset: 0; overflow: clip; z-index: -1; pointer-events: none; }
.pottery-glaze { display: block; position: absolute; inset: auto 0 0; width: 100%; height: 200%; }
.pottery-pool { fill: none; stroke: #263a30; stroke-width: 4px; }
.pottery-rim { fill: none; stroke: #516451; stroke-width: 1px; }
.pottery-card { display: grid; width: 100%; margin: 0; gap: clamp(12px, 2.1vw, 24px); padding: 5% 5% 4.5%; border-radius: 14px;
  background: rgba(0, 0, 0, 0.28); box-shadow: 0 0 0 1px var(--p-line); }
.pottery-card figcaption { font-size: clamp(15px, 1.5vw, 23px); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
/* Frame the whole iPad screen with the page's own card. */
.pottery-screen { aspect-ratio: 4 / 3; overflow: hidden; margin-inline: 6.5%; border-radius: 2.25% / 3%; }
.pottery-screen img { display: block; width: 100%; height: auto; }

/* ---- Phones and narrow windows. A plate still fits one screen, and the four still differ: BirdRunner has its
   screen standing beside the words and the session bar under them; OwlMeal is centered over one screen; Measure
   Lot keeps its drawn field and the size (the three steps and the Done bar need more room than a phone has); Grid
   by Grid gives the width to the picture. This is the plain layout: plates follow one another and may be taller
   than the window. Where the deck stacks (below), BirdRunner is re-set as a scene and the others stick. ---- */
@media (max-width: 800px) {
  .plate { --plate-min: 660px; }
  .plate-om { --plate-min: 612px; }
  .plate-ml { --plate-min: 678px; }
  .plate-in, .plate-br .plate-in, .plate-om .plate-in, .plate-ml .plate-in, .plate-gg .plate-in, .plate-pottery .plate-in { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0; padding-block: 76px 40px; }
  .plate-words { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; }
  .plate-words > :not(.plate-icon, h3) { grid-column: 1 / -1; }
  .plate-icon, .plate-om .plate-icon { width: 52px; height: 52px; margin: 0; }
  .plate h3, .plate-om h3, .plate-gg h3 { margin: 0; font-size: clamp(36px, 10.6vw, 52px); line-height: 1; }
  .plate-line { margin: 16px 0 0; font-size: 19px; line-height: 1.38; }
  .thriving .nav nav { font-size: 15px; }
  .plate-foot { margin-top: 18px; }

  .plate-status { margin-top: 12px; }
  .plate-actions { margin-top: 14px; }
  .plate-br .plate-in { padding-block: 76px 40px; }
  .plate-br .plate-show { margin-top: 26px; }
  .plate-br .phone { height: min(62svh, 470px); }
  .lane { margin-top: 56px; }

  .plate-om .plate-words { order: -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 14px; text-align: center; }
  .plate-om .plate-line { flex: 0 0 100%; margin-inline: auto; }
  .plate-om .plate-show-b { display: none; }
  .plate-om .plate-show-a { margin: 22px auto 0; }
  .plate-om .phone { height: clamp(200px, 100svh - 406px, 360px); }

  .plate-ml .plate-words { order: -1; }
  .plate-ml .plate-show { margin-top: 20px; justify-self: start; }
  .ex-ml { width: min(100%, 400px); }
  .field { padding: 14px 20px 48px; border-radius: 20px; }
  .plot { max-height: 100px; }
  .sheet { padding: 14px 16px 16px; }
  .sheet-steps, .sheet-done { display: none; }
  .acre { margin-top: 0; font-size: 56px; }
  .plate-note { margin-top: 10px; font-size: 15px; }

  .plate-gg { --plate-min: calc(432px + (100vw - 44px) * 0.75); }
  .plate-gg .plate-in { padding-block: 80px 28px; }
  .plate-gg .plate-show { margin-top: 18px; justify-self: stretch; }
  .board { width: 100%; max-height: none; border-radius: 10px; }
  .plate-gg .plate-credit { margin-top: 12px; font-size: 15px; }
  .plate-gg .plate-foot { margin-top: 14px; }
  .plate-pottery { --plate-min: calc(360px + (100vw - 44px) * 0.75); }
  .plate-pottery .plate-in { padding-bottom: max(128px, 16svh); }
  .plate-pottery .plate-show { margin-top: 18px; justify-self: stretch; }
  .pottery-card { border-radius: 10px; }
  .plate-pottery .plate-foot { margin-top: 18px; }
}

@media (max-width: 392px) { .plate-ml { --plate-min: 728px; } .plate-om { --plate-min: 640px; } }

/* ---- Large screens ---- */
@media (min-width: 1500px) {
  .plate-in { width: min(1280px, 100% - 44px); }
}

/* With a mouse, the plate is the link: its screen lifts a little under the pointer. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .deck:not(:has(:focus-visible)) .plate-show { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .deck:not(:has(:focus-visible)) .plate:has(.plate-link:hover) .plate-show { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .plate { min-height: 0; }
}

/* ---- Motion tied to scrolling. Decoration only; every part is already in place without it. ---- */
@property --feather-fall { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --feather-sway { syntax: "<number>"; inherits: true; initial-value: 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The resting feather comes loose and drifts down toward the first plate as the page scrolls. */
    .tbi-stage { animation: feather-fall linear both; animation-timeline: scroll(root block); animation-range: 0px 190px; }
    .tbi-word .tbi-rest, .tbi-air .tbi-fall { translate: calc(var(--feather-sway) * 1px) calc(var(--feather-fall) * 1px); }

    /* Each plate has a timeline for its own arrival. */
    .deck { timeline-scope: --om, --ml, --gg, --pottery; }
    .plate-br { view-timeline: --br block; }
    .plate-om { view-timeline: --om block; }
    .plate-ml { view-timeline: --ml block; }
    .plate-gg { view-timeline: --gg block; }
    .plate-pottery { view-timeline: --pottery block; }

    /* THE DECK STACKS: each plate sticks and the next one slides up over it, while the one underneath settles back.
       Only where scroll timelines exist (so every scene below comes with it) and the window is big enough,
       measured in em so a larger text size turns it off. Everywhere else the plates simply follow one another, each
       complete. A plate is at least as tall as the window; when it is taller, it sticks once its foot is in view
       (top is negative), so nothing on it is ever out of reach: --plate-min must be at least the plate's real
       height at phone widths. While keyboard focus is in the deck nothing sticks, so a focused link is never under
       another plate. */
    @media (min-width: 22.5em) and (max-width: 800px) and (min-height: 34em), (min-width: 801px) and (min-height: 40em) {
      .plate { position: sticky; top: min(0px, 100svh - var(--plate-min)); }
      .plate-br > .plate-in { animation: settle linear both; animation-timeline: --om; animation-range: entry 0% entry 100%; }
      .plate-om > .plate-in { animation: settle linear both; animation-timeline: --ml; animation-range: entry 0% entry 100%; }
      .plate-ml > .plate-in { animation: settle linear both; animation-timeline: --gg; animation-range: entry 0% entry 100%; }
      .plate-gg > .plate-in { animation: settle linear both; animation-timeline: --pottery; animation-range: entry 0% entry 100%; }
    }

    /* BirdRunner: the bird runs to the flag as its plate arrives. */
    .lane-bird { animation: run-across linear both, hop linear both; animation-timeline: --br, --br; animation-range: entry 0% entry 100%, entry 0% entry 100%; }
    .lane-done { animation: lane-done linear both; animation-timeline: --br; animation-range: entry 0% entry 100%; }

    /* Measure Lot: the outline runs corner 1, 2, 3 and closes as its plate arrives, and the sheet's step numbers
       get their yellow mark in turn (the words stay at full strength, and the numbers never change). */
    .plot-line, .plot-fill, .plot-mid, .sheet-steps li::before { animation: linear both; animation-timeline: --ml; animation-range: entry 35% entry 100%; }
    .plot-line { animation-name: trace; }
    .plot-fill { animation-name: fill-in; }
    .plot-mid { animation-name: pop-mid; }
    .sheet-steps li:nth-child(2)::before { animation-name: step-2; }
    .sheet-steps li:nth-child(3)::before { animation-name: step-3; }

    /* BirdRunner holds for about one more screen of scrolling, and in that time the app is in use: the phone moves
       on from Today to a run in progress and then to Progress, and the bird runs the session bar from the start to
       the flag. Only where the deck stacks (the same window sizes as above); elsewhere the bird runs as the plate
       arrives and the phone shows Today. The two extra screens are decoration and load only here. They change in one step (steps(1, end)), so no
       scroll position can rest with two screens showing. */
    @media (min-width: 22.5em) and (max-width: 800px) and (min-height: 34em), (min-width: 801px) and (min-height: 40em) {
      .plate-br { --hold: 110svh; min-height: calc(max(100svh, var(--plate-min)) + var(--hold)); top: calc(min(0px, 100svh - var(--plate-min)) - var(--hold)); }
      .plate-br > .plate-in { position: sticky; top: 0; align-self: start; align-content: center; min-height: max(100svh, var(--plate-min)); }
      .deck:has(:focus-visible) .plate-br { min-height: max(100svh, var(--plate-min)); }
      .plate-br .phone::before, .plate-br .phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: center / cover no-repeat; opacity: 0;
        animation: show steps(1, end) both; animation-timeline: --br; }
      .plate-br .phone::before { background-image: url("/assets/shot-guided-run-dark-1027.jpg"); animation-range: contain 31.8% contain 32%; }
      .plate-br .phone::after { background-image: url("/assets/shot-progress-dark-1026.jpg"); animation-range: contain 65.8% contain 66%; }
      .lane-bird { animation-range: contain 2% contain 96%, contain 2% contain 96%; }
      .lane-done { animation-range: contain 2% contain 96%; }
    }
    /* On phones the scene gets a stage of its own. The words lead; then the screen, as tall as the window allows,
       stays put with the session bar under it while the app is in use; then the next plate slides over. */
    @media (min-width: 22.5em) and (max-width: 800px) and (min-height: 34em) {
      .plate-br { --hold: 92svh; --lead: 348px; min-height: calc(var(--lead) + 100svh + var(--hold)); top: calc(-1 * (var(--lead) + var(--hold))); }
      .plate-br > .plate-in { position: static; display: block; align-self: stretch; align-content: normal; min-height: 0; padding-block: 76px 0; }
      .plate-br .plate-words { align-content: start; min-height: 272px; }
      .plate-br .plate-show { position: sticky; top: 72px; margin: 0; }
      .plate-br .phone { height: calc(100svh - 72px - 116px); }
      .lane { position: sticky; top: calc(100svh - 60px); margin-top: 52px; }
      .plate-br .phone::before { animation-range: contain 54.8% contain 55%; }
      .plate-br .phone::after { animation-range: contain 77.8% contain 78%; }
      .lane-bird { animation-range: contain 40% contain 97%, contain 40% contain 97%; }
      .lane-done { animation-range: contain 40% contain 97%; }
      .deck:has(:focus-visible) .plate-br { min-height: 0; }
    }

    /* Grid by Grid: the paper rules itself as its plate arrives. */
    .rule-grid { animation: rule linear both; animation-timeline: --gg; animation-range: entry 10% entry 95%; }

    /* The glaze travels with the plate. Its two runs start stretching just after the front moves. */
    .pottery-glaze { animation: glaze-pour linear both; }
    .pottery-runs { animation: glaze-runs linear both; }
    .pottery-glaze, .pottery-runs { animation-timeline: --pottery; animation-range: entry 24% entry 100%; }
    @keyframes glaze-pour {
      from { transform: translateY(var(--glaze-from, -44%)); }
      to { transform: translateY(0); }
    }
    @keyframes glaze-runs {
      0%, 10% { transform: scaleY(0.04); }
      to { transform: scaleY(1); }
    }

    @media (min-width: 22.5em) and (max-width: 800px) and (min-height: 34em), (min-width: 801px) and (min-height: 40em) {
      .plate-pottery { --hold: 26svh; min-height: calc(max(100svh, var(--plate-min)) + var(--hold)); top: calc(min(0px, 100svh - var(--plate-min)) - var(--hold)); grid-template-rows: auto var(--hold); }
      .pottery-stage { position: sticky; top: min(0px, 100svh - var(--plate-min)); align-self: start; min-height: max(100svh, var(--plate-min)); }
      .deck:has(:focus-visible) .plate-pottery { min-height: max(100svh, var(--plate-min)); grid-template-rows: auto; }
      .deck:has(:focus-visible) .pottery-stage { position: relative; top: auto; align-self: stretch; min-height: 0; }
    }
    @media (min-width: 22.5em) and (max-width: 800px) and (min-height: 34em) {
      /* 43% of the double-height SVG is the resting line. The front enters near 65svh. */
      .plate-pottery { --glaze-from: calc(-43% - 35svh); }
      .pottery-glaze, .pottery-runs { animation-range: entry 0% contain 94%; }
    }
    @media (min-width: 801px) and (min-height: 40em) {
      .plate-pottery { --hold: 40svh; }
      .pottery-glaze, .pottery-runs { animation-range: contain 80px contain 88%; }
    }

    /* The other three plates hold for about half a screen each, and each has a moment of its own in that time:
       OwlMeal's screens turn to other pages of the diary, Measure Lot's outline is traced corner to corner, and Grid
       by Grid's paper rules itself. Same window sizes as the stacking; elsewhere these happen as the plate arrives
       (Measure Lot, Grid by Grid) or not at all (OwlMeal shows Today and Diary). */
    @media (min-width: 22.5em) and (max-width: 800px) and (min-height: 34em), (min-width: 801px) and (min-height: 40em) {
      .plate-om, .plate-ml, .plate-gg { --hold: 56svh; min-height: calc(max(100svh, var(--plate-min)) + var(--hold)); top: calc(min(0px, 100svh - var(--plate-min)) - var(--hold)); }
      .plate-om > .plate-in, .plate-ml > .plate-in, .plate-gg > .plate-in { position: sticky; top: min(0px, 100svh - var(--plate-min)); align-self: start; align-content: center; min-height: max(100svh, var(--plate-min)); }
      .deck:has(:focus-visible) :is(.plate-om, .plate-ml, .plate-gg) { min-height: max(100svh, var(--plate-min)); }
      .plate-gg { --hold: 40svh; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
      .plate-gg .rule-grid { position: sticky; inset: auto; top: min(0px, 100svh - var(--plate-min)); grid-area: 1 / 1; align-self: start; min-width: 0; height: max(100svh, var(--plate-min)); overflow: hidden; }
      .plate-gg > .plate-in { grid-area: 1 / 1; }

      .plate-om .phone::before, .plate-om .phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: center / cover no-repeat; opacity: 0;
        animation: show steps(1, end) both; animation-timeline: --om; }
      .plate-om .plate-show-a .phone::after { background-image: url("/assets/owlmeal-foods-1111.jpg"); animation-range: contain 44.8% contain 45%; }
      .plate-om .plate-show-b .phone::after { background-image: url("/assets/owlmeal-progress-1111.jpg"); animation-range: contain 69.8% contain 70%; }

      .plot-line, .plot-fill, .plot-mid, .sheet-steps li::before { animation-range: entry 40% contain 88%; }
      .rule-grid { animation-range: contain 0% contain 72%; }
    }
    @media (min-width: 22.5em) and (max-width: 800px) and (min-height: 34em) {
      .plate-om .plate-show-a .phone::before { background-image: url("/assets/owlmeal-diary-1111.jpg"); animation-range: contain 39.8% contain 40%; }
      .plate-om .plate-show-a .phone::after { animation-range: contain 74.8% contain 75%; }
    }

    /* Leave every scene at rest while a deck link has keyboard focus. */
    .deck:has(:focus-visible) :is(.plate, .plate-in, .plate-br .plate-show, .lane, .pottery-stage) {
      position: relative;
      top: auto;
    }
    .deck:has(:focus-visible) .rule-grid {
      position: absolute;
      inset: 0;
      grid-area: auto;
      height: auto;
    }
    .deck:has(:focus-visible) :is(.plate-in, .lane-bird, .lane-done, .plot-line, .plot-fill, .plot-mid, .rule-grid, .pottery-glaze, .pottery-runs),
    .deck:has(:focus-visible) .phone::before,
    .deck:has(:focus-visible) .phone::after,
    .deck:has(:focus-visible) .sheet-steps li::before { animation: none; }
  }
}
@keyframes feather-fall {
  0% { --feather-fall: 0; --feather-sway: 0; }
  35% { --feather-sway: 26; }
  60% { --feather-sway: 20; }
  100% { --feather-fall: 30; --feather-sway: 58; }
}
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { to { scale: 0.95; } }
@keyframes run-across { from { translate: 0 0; } to { translate: calc(100cqw - 104px) 0; } }
@keyframes lane-done { from { clip-path: inset(0 calc(100% - 36px) 0 0 round 99px); } to { clip-path: inset(0 64px 0 0 round 99px); } }
@keyframes hop {
  0%, 8%, 16%, 24%, 32%, 40%, 48%, 56%, 64%, 72%, 80%, 88%, 96%, 100% { transform: translateY(0) rotate(0deg); }
  4%, 12%, 20%, 28%, 36%, 44%, 52%, 60%, 68%, 76%, 84%, 92% { transform: translateY(-9px) rotate(-4deg); }
}
@keyframes trace { 0%, 5% { stroke-dashoffset: 1; } 75%, 100% { stroke-dashoffset: 0; } }
@keyframes fill-in { 0%, 75% { fill-opacity: 0; } 90%, 100% { fill-opacity: 0.4; } }
@keyframes pop-mid { 0%, 76% { scale: 0; } 86%, 100% { scale: 1; } }
@keyframes step-2 { 0%, 4% { background-color: rgba(237, 178, 62, 0); } 10%, 100% { background-color: #edb23e; } }
@keyframes step-3 { 0%, 74% { background-color: rgba(237, 178, 62, 0); } 82%, 100% { background-color: #edb23e; } }
@keyframes rule { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
