/* Bonnie Plants proposal deck.
   Standalone. Nothing here links to another Parallel Path page or
   stylesheet. The look is the pitch deck's: the same type classes, color
   tokens and grounds. The structure is a reading deck: chapters, an
   index beside the slides, and slides whose content reflows.

   Sizes inside a slide are written in cqw, a hundredth of the slide's
   width, so a slide scales as one piece. N cqw is N / 100 * 1920 pixels
   of the pitch deck's 1920 canvas: 1.354cqw is its 26. */

/* ---------- FONTS ----------
   IBM Plex, bundled so the deck runs offline. Latin set only.
   Open Font License in assets/fonts/OFL.txt. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-serif-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 300; font-style: italic; font-display: swap;
  src: url("../fonts/ibm-plex-serif-latin-300-italic.woff2") format("woff2"); }

/* ---------- TOKENS ---------- */
:root {
  color-scheme: dark;

  /* Parallel Path brand colors, as in the pitch deck. */
  --night:  #151515;
  --linen:  #F6EDE6;
  --slate:  #233D4D;  /* Cadet */
  --teal:   #3C6E71;  /* Current. Not used on this deck. */
  --lime:   #C6EB4C;  /* Spring. Dark grounds only, on whole elements. */
  --coral:  #E1885E;
  --sand:   #D0A684;
  --oat:    #E6DACB;  /* Placeholder blocks and tiles */

  --serif: "IBM Plex Serif", Georgia, serif;
  --sans:  "IBM Plex Sans", system-ui, sans-serif;

  --gap: 12px;      /* around the deck and between stacked slides */
  --foot-h: 44px;   /* the footer, while the deck is live */
}

/* ---------- PAGE ----------
   Night around the slides, as around the pitch deck. */
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: var(--gap);
  background: var(--night);
  color: var(--linen);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
img { display: block; max-width: 100%; }

/* ---------- DECK ----------
   <main class="deck" data-deck data-title="Client|Project">
     <div class="deck-stage">
       <nav class="deck-index"> built by deck.js </nav>
       <div class="deck-frame">
         <section class="chapter" data-name="..."> one or more .slide </section>
       </div>
     </div>
     <div class="deck-track"> built by deck.js </div>
   </main>
   <footer class="deck-foot label"> the frame text </footer>

   Without the script, on a small screen, and on paper, the slides run
   one after another. With the script on a wide screen the deck goes
   live (see LIVE). */
.deck { --step: 78svh; position: relative; max-width: 1640px; margin: 0 auto; }
.deck-index, .deck-track { display: none; }
.deck-frame { container-type: inline-size; display: flex; flex-direction: column; gap: var(--gap); }
.chapter { display: flex; flex-direction: column; gap: var(--gap); scroll-margin-top: var(--gap); }

/* ---------- SLIDE ----------
   A flex column. Content starts under the chapter label and reflows
   with the slide. --floor is 1 while the slides run as a plain stack,
   where each size holds a minimum in pixels and a slide grows to fit
   its content. Live and on paper it is 0, so the slide is a fixed 16:9
   and every size scales with it. */
.slide {
  --bg: var(--linen);
  --ink: var(--slate);
  --mark: var(--slate);
  --floor: 1;
  --sw: 100cqw;                                /* the slide's own width */
  --rule: max(0.104cqw, 1px);                  /* the pitch deck's 2 */
  --soft: color-mix(in srgb, var(--ink) 30%, transparent);
  position: relative;
  container-type: inline-size;
  overflow: clip;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 9;
  /* The pitch deck's content area: 100 down, 48 in, 80 up. */
  padding:
    max(calc(var(--sw) * 0.052), calc(56px * var(--floor)))
    max(calc(var(--sw) * 0.025), calc(20px * var(--floor)))
    max(calc(var(--sw) * 0.042), calc(28px * var(--floor)));
  background: var(--bg);
  color: var(--ink);
}
.slide * { margin: 0; }

/* Grounds. One per slide. Light grounds take Slate ink. Dark grounds
   take Linen ink, and Lime is theirs alone. */
.ground-linen   { --bg: var(--linen); --ink: var(--slate); --mark: var(--slate); }
.ground-lime    { --bg: var(--lime);  --ink: var(--slate); --mark: var(--slate); }
.ground-coral   { --bg: var(--coral); --ink: var(--slate); --mark: var(--slate); }
.ground-night   { --bg: var(--night); --ink: var(--linen); --mark: var(--lime); }
.ground-slate   { --bg: var(--slate); --ink: var(--linen); --mark: var(--lime); }
/* Kept so every ground class from the pitch deck exists here. Teal is
   not used on this deck. */
.ground-teal    { --bg: var(--teal);  --ink: var(--linen); --mark: var(--lime); }

/* A Night slide on the Night page shows its edge. */
@media screen {
  .ground-night { outline: 1px solid color-mix(in srgb, var(--linen) 16%, transparent); outline-offset: -1px; }
}

/* ---------- FRAME ----------
   Written by deck.js on every slide. Never write it by hand. */

/* The chapter label, top left: "02  Phases". */
.slide-head {
  position: absolute;
  top: max(1.56cqw, calc(20px * var(--floor)));
  left: max(2.5cqw, calc(20px * var(--floor)));
  white-space: pre;
}
/* The print line at the foot. The footer's labels and the page number,
   on the pitch deck's five columns. Shown only on paper. */
.slide-foot {
  display: none;
  position: absolute;
  left: 2.5cqw;
  right: 2.5cqw;
  bottom: 1.56cqw;
  grid-template-columns: repeat(5, 1fr);
}
.slide-foot .slide-page { grid-column: 5; justify-self: end; }
/* The arrows that move one slide. Shown only while live. */
.slide-nav { display: none; }

/* The footer. The frame text, in the label style. Stacked, it closes
   the page. Live, it pins to the foot of the window (see LIVE). */
.deck-foot {
  max-width: 1640px;
  margin: 0 auto;
  padding: 20px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 32px;
}

/* ---------- TYPE ----------
   The pitch deck's classes and faces. Each size is the pitch deck's,
   over 1920, with a minimum for the stacked run. */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .quote {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.03em;
  /* Browsers drop the fi and fl ligatures once type is letter-spaced. */
  font-feature-settings: "liga" 1;
}
.display-1 { font-size: max(11.25cqw, calc(56px * var(--floor))); }
.display-2 { font-size: max(8.75cqw,  calc(48px * var(--floor))); }
.display-3 { font-size: max(7.08cqw,  calc(42px * var(--floor))); }
.display-4 { font-size: max(5.42cqw,  calc(36px * var(--floor))); }
.display-5 { font-size: max(3.54cqw,  calc(28px * var(--floor))); }
.display-6 { font-size: max(2.19cqw,  calc(22px * var(--floor))); }
.quote     { font-size: max(5.42cqw,  calc(32px * var(--floor))); font-style: italic; }

.lead          { font: 500 max(2.08cqw,  calc(20px * var(--floor))) / 1.2  var(--sans); letter-spacing: -0.01em; font-feature-settings: "liga" 1; }
.subhead       { font: 500 max(1.56cqw,  calc(18px * var(--floor))) / 1.34 var(--sans); letter-spacing: -0.01em; font-feature-settings: "liga" 1; }
.small-heading { font: 500 max(1.04cqw,  calc(14px * var(--floor))) / 1.34 var(--sans); }
.body-large    { font: 400 max(1.875cqw, calc(19px * var(--floor))) / 1.24 var(--sans); }
.body          { font: 400 max(1.354cqw, calc(16px * var(--floor))) / 1.34 var(--sans); }
.body-small    { font: 400 max(1.25cqw,  calc(15px * var(--floor))) / 1.34 var(--sans); }
.label {
  font: 600 max(0.625cqw, 10px) / 1.34 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Outside a slide the label has no slide to scale with. */
.deck-foot, .deck-index { font-size: 11px; }

/* Secondary text. The ink at 60 percent. For another strength, set
   --tone: <p class="muted" style="--tone: 80">. */
.muted { color: color-mix(in srgb, var(--ink) calc(var(--tone, 60) * 1%), transparent); }

/* Color on a whole element. Lime on dark grounds only. */
.in-lime  { color: var(--lime); }
.in-linen { color: var(--linen); }
.in-night { color: var(--night); }
.in-slate { color: var(--slate); }

/* ---------- LAYOUT ----------
   A slide is its headline, then one block. Text runs in two columns at
   most. Cards and panels stack, never side by side. */

/* Space under a headline, and between the paragraphs that follow. */
.slide > :is(h1, h2) + *,
.cols > * > :is(h1, h2) + * { margin-top: max(1.67cqw, calc(16px * var(--floor))); }
.slide p + p,
.slide p + .tile,
.slide .tile + p { margin-top: max(1.04cqw, calc(12px * var(--floor))); }
.slide p { max-width: 38em; }

/* Two columns. Headline and lead on the left, the block on the right,
   as on the pitch deck's "Rows, a title and a line". */
.cols {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4.17cqw;
}
.cols > * { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

/* Pushes a block to the foot of the slide or of its column. The padding
   holds a gap above it when the slide grows to fit. */
.push { margin-top: auto !important; padding-top: max(2.9cqw, calc(28px * var(--floor))); }

/* ---------- BLOCKS ---------- */

/* Ruled rows. A thin rule the full width of the column, a serif title,
   and a line or a list beneath. */
.rows { display: flex; flex-direction: column; }
.row {
  border-top: var(--rule) solid var(--ink);
  padding: max(1.25cqw, calc(14px * var(--floor))) 0 max(1.56cqw, calc(18px * var(--floor)));
}
.row > * + *,
.row.pair > div > * + * { margin-top: max(0.63cqw, calc(8px * var(--floor))); }

/* A row with a date or a short label on the left. */
.row.pair {
  display: grid;
  grid-template-columns: 30% 1fr;
  column-gap: 2.08cqw;
  align-items: baseline;
}
.row.pair > * + * { margin-top: 0; }

/* A list inside a row or a column. One item per line, a soft rule
   between. */
.lines { list-style: none; padding: 0; }
.lines li { padding: max(0.52cqw, calc(7px * var(--floor))) 0; }
.lines li:first-child { padding-top: 0; }
.lines li:last-child { padding-bottom: 0; }
.lines li + li { border-top: var(--rule) solid var(--soft); }

/* A table. Label headings, ruled rows, figures on the right. */
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 0 0 max(0.83cqw, calc(10px * var(--floor))); text-align: left; }
.table td {
  border-top: var(--rule) solid var(--ink);
  padding: max(1.25cqw, calc(14px * var(--floor))) 0 max(1.56cqw, calc(18px * var(--floor)));
  vertical-align: top;
}
.table td > * + * { margin-top: max(0.63cqw, calc(8px * var(--floor))); }
.table .num { text-align: right; white-space: nowrap; padding-left: 2.08cqw; }
.table + p { margin-top: max(1.25cqw, calc(14px * var(--floor))); }

/* A flat sand panel behind a title and a line. Full width of its
   column. .is-tint is for dark grounds. */
.tile {
  padding: max(1.67cqw, calc(18px * var(--floor)));
  background: var(--oat);
  color: var(--slate);
}
.tile > * + * { margin-top: max(0.63cqw, calc(8px * var(--floor))); }
.tile.is-tint { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }

/* Where an image, a chart or a photo goes once it exists. The label
   inside says what belongs there. .is-tint is for dark grounds. */
.placeholder {
  padding: max(1.25cqw, calc(12px * var(--floor)));
  background: var(--oat);
  color: var(--slate);
}
.placeholder.is-tint { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }
/* A photo. It fills its box and crops to fit. */
.photo { width: 100%; object-fit: cover; }

/* People. One column per person: a photo block, a name, a role. The
   blocks give up height before the slide overflows, so three to six
   people fit one row. */
.people {
  flex: 0 1 auto;
  min-height: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  column-gap: 1.25cqw;
}
.person { display: flex; flex-direction: column; min-height: 0; }
.person > .placeholder,
.person > .photo { flex: 0 1 auto; min-height: 0; aspect-ratio: 3 / 4; }
.person > .subhead { margin-top: max(1.15cqw, calc(12px * var(--floor))); }
.person > .label { margin-top: max(0.42cqw, calc(4px * var(--floor))); }

/* Team as plant tags, rebuilt from the pitch deck's team slide: one
   pastel tag per person, staggered like a planted bed, no hierarchy.
   The pastels sit outside the brand palette on purpose, to read as
   nursery tags (pitch deck, Nov 17). Percent padding and margins follow
   the tag's width, so the photo and text keep their place at any size. */
.people.is-tags { grid-template-rows: auto; align-items: start; column-gap: 1.25cqw; }
.people.is-tags .person { position: relative; aspect-ratio: 240 / 600; padding: 24.2% 6.7% 0; }
.people.is-tags .tag { position: absolute; inset: 0; width: 100%; height: 100%; }
.people.is-tags .person > :not(.tag) { position: relative; }
.people.is-tags .person > .photo { flex: none; aspect-ratio: 208 / 204; }
.people.is-tags .person > .subhead { margin-top: 8.5%; }
.people.is-tags .person:nth-child(2) { margin-top: 2.29cqw; }
.people.is-tags .person:nth-child(3) { margin-top: 0.73cqw; }
.people.is-tags .person:nth-child(4) { margin-top: 3.02cqw; }
.people.is-tags .person:nth-child(5) { margin-top: 1.04cqw; }
.people.is-tags .person:nth-child(6) { margin-top: 2.6cqw; }
.people.is-tags .person:nth-child(7) { margin-top: 0.31cqw; }

/* ---------- COVER AND CLOSE ---------- */

/* The cover. The title sits at the foot, one line per part: client,
   project, page. An <img class="slide-media"> ahead of the title fills
   the slide behind it. */
.slide-cover { justify-content: flex-end; }
.slide-cover h1 { position: relative; }
.slide-cover h1 > span { display: block; }
.slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.5;
}

/* The closing slide. The Parallel Path wordmark runs the full width of
   the foot and off its edges, as on the pitch deck's opening slide. */
.slide-close { padding-bottom: 19cqw; }
/* Links on to the hub and the other two pieces, under the thank-you. */
.close-links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 1.5cqw 3cqw; margin-top: 3cqw; }
.close-links a {
  min-width: 14cqw;
  padding-top: 0.8em;
  border-top: 2px solid var(--lime);
  font-size: max(11px, 0.9cqw);
  color: var(--lime);
  text-decoration: none;
}
.close-links a:hover, .close-links a:focus-visible { color: var(--linen); border-top-color: var(--linen); }
/* Stacked, the footer carries the hub link. */
.deck-home-foot { color: var(--lime); text-decoration: none; }
.wordmark {
  position: absolute;
  left: -2.03cqw;
  bottom: -2.5cqw;
  width: 104.06cqw;
  max-width: none;
}

/* ---------- LIVE ----------
   A wide screen with the script running. The stage sticks under the top
   of the window and shows one slide at a time. The footer pins to the
   foot of the window, so it frames every slide. */
@media screen {
  html:has(.deck.is-live) { scroll-snap-type: y proximity; }
  body:has(.deck.is-live) { padding-bottom: calc(var(--foot-h) + var(--gap)); }
  body:has(.deck.is-live) .deck-foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    max-width: none;
    height: var(--foot-h);
    margin: 0;
    padding: 0 max(var(--gap), calc((100% - 1640px) / 2));
    display: grid;
    grid-template-columns: repeat(5, minmax(max-content, 1fr));
    align-items: center;
    gap: 0 24px;
    background: var(--night);
  }
  body:has(.deck.is-live) .deck-page { grid-column: 5; justify-self: end; font-variant-numeric: tabular-nums; }

  .deck.is-live {
    --stage-top: var(--gap);
    --stage-h: calc(100svh - var(--foot-h) - 2 * var(--gap));
  }
  .deck.is-live .deck-stage {
    position: sticky;
    top: var(--stage-top);
    height: var(--stage-h);
    display: grid;
    grid-template-columns: 196px 1fr;
    gap: var(--gap);
    align-items: center;
  }
  .deck.is-live .deck-track { display: block; margin-top: calc(-1 * var(--stage-h)); pointer-events: none; }
  .deck-stop { height: var(--step); scroll-snap-align: start; scroll-margin-top: var(--stage-top); }
  .deck-stop:last-child { height: var(--stage-h); }

  /* The index. The deck title, then the chapters in the label style of
     the pitch deck's section strip: quiet until current, then Lime with
     a dot. A pip per slide under the current chapter. */
  .deck.is-live .deck-index {
    display: flex;
    flex-direction: column;
    height: var(--slide-h, 100%);
    overflow: auto;
    padding: 2px 12px 2px 2px;
    position: relative;
    z-index: 5;
  }
  .deck-title {
    display: block;
    padding-bottom: 28px;
    font: 300 24px / 1.02 var(--serif);
    letter-spacing: -0.03em;
    font-feature-settings: "liga" 1;
    color: var(--linen);
    text-decoration: none;
  }
  .deck-title span { display: block; }
  .deck-title span + span { color: color-mix(in srgb, var(--linen) 60%, transparent); }
  .deck-link {
    display: grid;
    grid-template-columns: 26px 1fr;
    padding: 7px 0 7px 14px;
    position: relative;
    font: 600 11px / 1.34 var(--sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, var(--linen) 45%, transparent);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .deck-link:hover { color: var(--linen); }
  .deck-link.on { color: var(--lime); }
  .deck-link.on::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
  }
  .deck-pips { grid-column: 2; display: none; gap: 4px; margin-top: 7px; }
  .deck-link.on .deck-pips { display: flex; }
  .deck-pips i { width: 14px; height: 2px; background: color-mix(in srgb, var(--linen) 25%, transparent); }
  .deck-pips i.on { background: var(--lime); }
  .deck-ctrl { margin-top: auto; padding-top: 14px; display: flex; gap: 6px; }
  /* Back to the hub, under the chapters. */
  .deck-home {
    display: block;
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid color-mix(in srgb, var(--linen) 25%, transparent);
    font: 600 11px / 1.34 var(--sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lime);
    text-decoration: none;
  }
  .deck-home:hover { text-decoration: underline; text-underline-offset: 0.25em; }
  /* Live, the index carries the hub link, so the footer drops its copy. */
  body:has(.deck.is-live) .deck-home-foot { display: none; }

  /* Arrow buttons. Square, a thin rule around. */
  .deck-btn {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    width: 32px;
    height: 32px;
    border: 1px solid color-mix(in srgb, var(--linen) 30%, transparent);
    border-radius: 0;
    background: transparent;
    color: var(--linen);
    font: 500 15px / 1 var(--sans);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    transition: border-color 0.15s ease, opacity 0.15s ease;
  }
  .deck-btn:hover { border-color: var(--linen); }
  .deck-btn:disabled { opacity: 0.35; cursor: default; border-color: color-mix(in srgb, var(--linen) 30%, transparent); }
  .deck-btn:focus-visible, .deck-index a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

  /* The arrows inside a slide, top right, in the slide's own ink.
     Forward is the main move, so it is solid. */
  .deck.is-live .slide-nav {
    display: flex;
    gap: 6px;
    position: absolute;
    top: max(0.94cqw, 9px);
    right: 2.5cqw;
    z-index: 2;
    opacity: 0.6;
    transition: opacity 0.15s ease;
  }
  .deck.is-live .slide-nav:hover, .deck.is-live .slide-nav:focus-within { opacity: 1; }
  .slide-nav .deck-btn {
    width: max(2.2cqw, 28px);
    height: max(2.2cqw, 28px);
    font-size: max(1.04cqw, 13px);
    border-color: color-mix(in srgb, var(--ink) 35%, transparent);
    color: var(--ink);
  }
  .slide-nav .deck-btn:hover { border-color: var(--ink); }
  .slide-nav .deck-btn:not(.back) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
  .slide-nav .deck-btn[hidden] { display: none; }
  .slide-nav .deck-btn:focus-visible { outline-color: var(--ink); }

  /* The frame. Chapters stack in one place and the current one shows.
     Room is left to the right of the slide for the slides behind it. */
  .deck.is-live .deck-frame { display: block; position: relative; align-self: stretch; container-type: size; }
  .deck.is-live .chapter {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center start;
    opacity: 0;
    visibility: hidden;
    transform: translateY(48px);
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.6s;
  }
  .deck.is-live .chapter.is-past { transform: translateY(-48px); }
  .deck.is-live .chapter.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .deck.is-live .slide {
    --floor: 0;
    --sw: min(100cqw - 30px, 100cqh * 16 / 9);
    grid-area: 1 / 1;
    width: var(--sw);
    transform-origin: 100% 50%;
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
  }
  /* The slides still to come in the chapter sit behind the current one
     and show their edge only, each a step dimmer. */
  .deck.is-live .slide[data-depth="0"] { z-index: 3; }
  .deck.is-live .slide[data-depth="1"] { z-index: 2; opacity: 0.5; transform: translateX(15px) scale(0.955); }
  .deck.is-live .slide[data-depth="2"] { z-index: 1; opacity: 0.25; transform: translateX(30px) scale(0.91); }
  .deck.is-live .slide[data-depth="far"] { opacity: 0; transform: translateX(40px) scale(0.88); }
  .deck.is-live .slide[data-depth="past"] { z-index: 4; opacity: 0; transform: translateX(-28px) scale(0.98); pointer-events: none; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease; }
  .deck.is-live .slide:not([data-depth="0"]) > * { opacity: 0; transition: opacity 0.2s ease; }
  .deck.is-live .slide > * { transition: opacity 0.35s ease 0.1s; }
  .deck.is-live .slide > .slide-nav { transition: opacity 0.15s ease; }
}
@media screen and (prefers-reduced-motion: reduce) {
  .deck.is-live .chapter, .deck.is-live .slide, .deck.is-live .slide > * { transition: none; }
  .deck.is-live .chapter { transform: none; }
}

/* ---------- PHONE ----------
   The slides run as cards and drop the 16:9 frame, which would set the
   type too small to read. Two columns become one. Screen only, so a
   print from a narrow window still gets full slides. */
@media screen and (max-width: 820px) {
  :root { --gap: 8px; }
  .slide { aspect-ratio: auto; }
  .slide-cover { min-height: 100vw; }
  .cols { grid-template-columns: 1fr; row-gap: 28px; }
  .row.pair { grid-template-columns: 1fr; row-gap: 6px; }
  .people { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 20px 12px; }
  .deck-foot { padding: 16px 4px 8px; }
}

/* ---------- PRINT ----------
   Print to PDF gives one slide per page, at 16 by 9 inches, every slide
   fully shown. */
@page { size: 16in 9in; margin: 0; }
@media print {
  html, body { background: none; }
  body { padding: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .deck { max-width: none; margin: 0; }
  .deck-index, .deck-track, .deck-foot, .slide-nav { display: none !important; }
  .deck-stage, .deck-frame, .chapter { display: block; }
  /* A container cannot break across pages, so the frame stops being one. */
  .deck-frame { container-type: normal; }
  .slide {
    --floor: 0;
    --sw: 16in;
    width: 16in;
    height: 9in;
    aspect-ratio: auto;
    margin: 0;
    overflow: hidden;
    break-after: page;
  }
  .chapter:last-child .slide:last-child { break-after: auto; }
  .slide-foot { display: grid; }
  /* The wordmark fills the foot of the closing slide, so the line stays off it. */
  .slide-close .slide-foot { display: none; }
  .close-links { display: none; }
}
