/* M3Faith. The look is the app's: three flat grounds edge to edge (ink, mustard, oxblood),
   Scripture in the serif and everything else in the heavy sans, one button to a section, and
   no cards, gradients or shadows. No fonts or scripts are loaded from anywhere else. */

:root {
  --ink: #111214;
  --ink-text: #f4f4f1;
  --ink-quiet: #9a9fa3;
  --ink-rule: #2a2c30;
  --mustard: #e0a526;
  --mustard-text: #15130c;
  --mustard-quiet: #473709;
  --oxblood: #6c1d2b;
  --oxblood-text: #fbf3f1;
  --oxblood-quiet: #dfb1b7;
  --sans: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --measure: 34rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink-text);
  font: 500 1.0625rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2, h3, p, ol, ul, blockquote, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

/* A ground: one colour from edge to edge, one column inside it. */
.ground { padding: clamp(3.5rem, 9vw, 7rem) 0; background: var(--ink); color: var(--ink-text); }
.ground.mustard { background: var(--mustard); color: var(--mustard-text); }
.ground.oxblood { background: var(--oxblood); color: var(--oxblood-text); }
.ground.light { background: #ffffff; color: var(--ink); }
.column {
  width: 100%;
  max-width: 70rem;
  margin: 0 auto;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
}
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.stack > * { max-width: var(--measure); }

/* Type. */
.label {
  font: 700 0.78rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.mustard .label { color: var(--mustard-quiet); }
.oxblood .label { color: var(--oxblood-quiet); }
.light .label { color: #5d6166; }
h1, .huge { font: 800 clamp(2.9rem, 9vw, 5.4rem)/1.02 var(--sans); letter-spacing: -0.025em; text-wrap: balance; }
h2, .big { font: 800 clamp(2rem, 5.2vw, 3.2rem)/1.08 var(--sans); letter-spacing: -0.02em; text-wrap: balance; }
h3, .step { font: 700 1.35rem/1.25 var(--sans); letter-spacing: -0.01em; }
.line { font: 500 1.125rem/1.5 var(--sans); }
.quiet { color: var(--ink-quiet); }
.mustard .quiet { color: var(--mustard-quiet); }
.oxblood .quiet { color: var(--oxblood-quiet); }
.put-on { color: var(--mustard); }
.put-off { text-decoration: line-through; text-decoration-thickness: 0.08em; color: var(--ink-quiet); }

/* Scripture is always the serif, and always word for word. */
.scripture { font: 400 clamp(1.45rem, 3.4vw, 2.1rem)/1.38 var(--serif); letter-spacing: 0; }
.scripture.small { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
.reference { margin-top: 0.9rem; }

/* The one button, the opposite ground. A second way on is an underlined link. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 10px;
  background: var(--mustard);
  color: var(--mustard-text);
  font: 700 1.19rem/1.2 var(--sans);
  text-decoration: none;
}
.mustard .button { background: var(--ink); color: var(--ink-text); }
.oxblood .button { background: var(--oxblood-text); color: var(--oxblood); }
.button:focus-visible, a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.6rem; margin-top: 0.75rem; }
.link { font: 700 1.05rem/1.3 var(--sans); }

/* The bar at the top: the mark and the name, and one way on. */
.bar { padding: 1.1rem 0; }
.bar .column { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.name { display: inline-flex; align-items: center; gap: 0.7rem; font: 800 1.2rem/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; }
.name svg { width: 2.6rem; height: auto; overflow: visible; }
/* The mark is his, traced from the app's own picture of it (m3talk, Mark.imageset) into three
   bars and the seed, in the mark's own points, and divided where the app's splash divides it.
   Build 41's site drew three thin bars of its own here (Bernard, 25 Nov 2026: "app splash logo
   and website logo looks different?"). When the page opens the seed rolls in and knocks the
   first bar, and each tips into the next until the mark stands as it is drawn (24 Nov 2026:
   "can we animate mustard seed knocking. in the logo."). It knocks again under a pointer.
   Still, and whole, for anyone who has asked for less motion. */
.mark-seed { fill: var(--mustard); }
.mark-bar { fill: currentColor; transform-box: fill-box; transform-origin: 0% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .mark-seed { animation: knock-seed 1.5s cubic-bezier(0.3, 0.7, 0.3, 1) 0.35s both; }
  .mark-bar { animation: knock-bar 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
  .mark-bar.b1 { animation-delay: 0.83s; }
  .mark-bar.b2 { animation-delay: 0.97s; }
  .mark-bar.b3 { animation-delay: 1.11s; }
  .name:hover .mark-seed, .name:focus-visible .mark-seed { animation-name: knock-seed-again; animation-delay: 0s; }
  .name:hover .mark-bar, .name:focus-visible .mark-bar { animation-name: knock-bar-again; }
  .name:hover .mark-bar.b1, .name:focus-visible .mark-bar.b1 { animation-delay: 0.48s; }
  .name:hover .mark-bar.b2, .name:focus-visible .mark-bar.b2 { animation-delay: 0.62s; }
  .name:hover .mark-bar.b3, .name:focus-visible .mark-bar.b3 { animation-delay: 0.76s; }
}
/* Lengths here are in the mark's own points: it is 220 across. */
@keyframes knock-seed { 0% { transform: translateX(-70px); opacity: 0; } 10% { opacity: 1; } 32% { transform: translateX(9px); } 44% { transform: translateX(-4px); } 58%, 100% { transform: translateX(0); } }
@keyframes knock-seed-again { 0% { transform: translateX(-70px); opacity: 0; } 10% { opacity: 1; } 32% { transform: translateX(9px); } 44% { transform: translateX(-4px); } 58%, 100% { transform: translateX(0); } }
/* Before it is knocked a bar stands straighter than it is drawn. */
@keyframes knock-bar { from { transform: skewX(16deg); } to { transform: skewX(0deg); } }
@keyframes knock-bar-again { from { transform: skewX(16deg); } to { transform: skewX(0deg); } }
.bar nav { display: flex; gap: 1.4rem; font: 700 0.98rem/1 var(--sans); }
.bar nav a { text-decoration: none; white-space: nowrap; }
@media (max-width: 30rem) { .bar nav { gap: 0.95rem; font-size: 0.88rem; } .name { font-size: 1.08rem; gap: 0.5rem; } .name svg { width: 2.3rem; } }
.bar nav a:hover { text-decoration: underline; }

/* The opening: the words beside the app. */
.opening { padding-top: clamp(2rem, 6vw, 4.5rem); }
.beside { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 56rem) { .beside { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.phone { width: min(100%, 19.5rem); margin: 0 auto; border-radius: 2.4rem; border: 1px solid var(--ink-rule); overflow: hidden; background: var(--ink); }
.mustard .phone { border-color: rgba(21, 19, 12, 0.25); }
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem 1.5rem; margin-top: 2.5rem; }
.phones figure { display: flex; flex-direction: column; gap: 0.9rem; }
.phones .phone { width: 100%; max-width: 17rem; margin: 0; border-radius: 2rem; }
.phones figcaption { max-width: 17rem; }

/* The three steps, numbered as the days are: a large figure and a short line. */
.steps { display: grid; gap: 2.5rem 2rem; margin-top: 2.75rem; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { display: flex; flex-direction: column; gap: 0.7rem; border-top: 1px solid var(--ink-rule); padding-top: 1.2rem; }
.steps .figure { font: 800 3.4rem/1 var(--sans); color: var(--mustard); letter-spacing: -0.03em; }
@media (min-width: 36rem) and (max-width: 55.99rem) { .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 56rem) { .steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Two parts on one ground, one under the other. */
.parts { display: flex; flex-direction: column; gap: clamp(3rem, 8vw, 5rem); }

/* Rows: a rule above, a name on the left, a figure on the right. */
.rows { margin-top: 1.5rem; max-width: var(--measure); }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 0.85rem 0; border-top: 1px solid var(--ink-rule); font: 700 1.1rem/1.3 var(--sans); }
.rows li span:last-child { font-weight: 500; color: var(--ink-quiet); text-align: right; }
.plain { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.5rem; max-width: var(--measure); }
.plain li { padding-top: 0.9rem; border-top: 1px solid var(--ink-rule); }
.mustard .plain li { border-color: rgba(21, 19, 12, 0.22); }

/* The dominoes: a seed, and twenty-one bars each 1.5 times the one before, to scale. */
.dominoes { margin-top: 2.5rem; width: 100%; max-width: 46rem; }
.dominoes .bar-shape { fill: #3a3d42; }
.dominoes .last { fill: var(--mustard); }
.dominoes .seed { fill: var(--mustard); }

/* Two ways it can go, side by side. */
.two { display: grid; gap: 2.5rem 3rem; margin-top: 2.5rem; }
@media (min-width: 48rem) { .two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.two > div { display: flex; flex-direction: column; gap: 0.8rem; border-top: 1px solid var(--ink-rule); padding-top: 1.2rem; }

/* The foot of every page. */
.foot { padding: 2.5rem 0 3rem; border-top: 1px solid var(--ink-rule); }
.foot .column { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; font: 500 0.95rem/1.5 var(--sans); color: var(--ink-quiet); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.foot a { color: var(--ink-text); }

/* The two plain pages: privacy and support. */
.page { padding: clamp(2rem, 6vw, 4rem) 0 clamp(3.5rem, 8vw, 6rem); }
.page .stack > * { max-width: 40rem; }
.page h1 { font-size: clamp(2.6rem, 7vw, 4rem); }
.page h2 { font-size: clamp(1.45rem, 3.2vw, 1.8rem); margin-top: 1.75rem; letter-spacing: -0.01em; }
.page p, .page li { font: 500 1.0625rem/1.6 var(--sans); }
.page ul { display: flex; flex-direction: column; gap: 0.6rem; padding-left: 1.2rem; list-style: disc; }
.page ul li::marker { color: var(--mustard); }
.page dl { margin: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.page dt { font: 700 1.2rem/1.3 var(--sans); }
.page dd { margin: 0.4rem 0 0; color: var(--ink-text); }
.page .address { font: 700 1.35rem/1.3 var(--sans); color: var(--mustard); user-select: all; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------------------------------
   The story. Six parts of the page are scenes: the mountain and the seed, the dominoes, the
   three steps, the two keys, and the call. Without the script, or for someone who has asked
   for less motion, the page is whole and still: every part is a plain section with all of it
   on the page. With it (`html.motion`, set by story.js) a scene is several screens tall, its
   stage stays in view while it is scrolled through, and `--p` on the scene runs from 0 to 1.
   Everything that moves is worked out from that one number, here; only the dominoes are
   drawn by the script.
   --------------------------------------------------------------------------------------- */

.only-motion { display: none; }
.motion .only-motion { display: block; }
.motion .only-still { display: none; }

/* Still: each scene is a ground like any other. */
.scene { position: relative; overflow: hidden; background: var(--ink); color: var(--ink-text); }
.scene .stage { padding: clamp(3.5rem, 9vw, 7rem) 0; position: relative; }
.scene .stage.mustard { background: var(--mustard); color: var(--mustard-text); }
.scene .stage.mustard .label { color: var(--mustard-quiet); }
.scene .stage.mustard .button { background: var(--ink); color: var(--ink-text); }
.beats { display: flex; flex-direction: column; gap: 2.75rem; }
.range path { fill: #1d2024; }
.scene[data-scene="mountain"] .stage { padding-bottom: 0; display: flex; flex-direction: column; }
.scene[data-scene="mountain"] .range.mid { width: 100%; height: clamp(11rem, 30vw, 22rem); margin-top: 1.5rem; order: 2; }
.scene[data-scene="mountain"] .beats { order: 1; }
.range.far, .range.near, .flood, .world, .ticker, .night, .rail { display: none; }
.beat.verse { display: none; }
.beat.name + .beat.name .label { display: none; }
.beat.name + .beat.name { margin-top: -1.75rem; }
.said { display: flex; flex-direction: column; gap: 0.6rem; }
.anchor { position: absolute; top: 0; }
.scene[data-scene="dominoes"] .tell { display: flex; flex-direction: column; gap: 1.25rem; }
.scene[data-scene="dominoes"] .tell > *, .still > .line { max-width: var(--measure); }
.still { margin-top: 1.25rem; }
.dominoes .mountain { fill: #1d2024; }
.dominoes .summit { stroke: #5d6166; stroke-width: 1.5; }
.yonder { position: absolute; right: -7rem; bottom: 0; width: clamp(14rem, 34vw, 26rem); }
.yonder path { fill: rgba(21, 19, 12, 0.16); }
.call { position: relative; z-index: 1; }
.after { margin-top: 1.75rem; }
.page p.label { font: 700 0.78rem/1.3 var(--sans); }

/* ---- Moving ---- */
.motion .scene { height: 340vh; overflow: visible; }
.motion .scene.first { height: 820vh; }
.motion .scene.long { height: 600vh; }
.motion .scene.short { height: 230vh; }
.motion .scene[data-scene="plan"] { height: 430vh; }
.motion .scene[data-scene="keys"] { height: 460vh; }
.motion .scene[data-scene="verse"] { height: 540vh; }
.motion .stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; display: block; }
.motion .beats { position: absolute; inset: 0; display: block; z-index: 2; }

/* Anything with a time: it is there from `--a` to `--b` of its scene, and fades at each end. */
.motion [data-a] {
  --f: 0.02;
  opacity: clamp(0, min(calc((var(--p, 0) - var(--a, 0)) / var(--f)), calc((var(--b, 1) - var(--p, 0)) / var(--f))), 1);
}
.motion .beat {
  --f: 0.04;
  position: absolute;
  top: clamp(1.75rem, 8vh, 5.5rem);
  left: max(1.5rem, env(safe-area-inset-left, 0px));
  right: max(1.5rem, env(safe-area-inset-right, 0px));
  margin: 0;
  transform: translateY(calc(clamp(0, calc((var(--a, 0) + var(--f) - var(--p, 0)) / var(--f)), 1) * 1.4rem));
  pointer-events: none;
  will-change: opacity, transform;
}
.motion .beat .label { display: block; }
.motion .beat.on { pointer-events: auto; }
@media (min-width: 70rem) { .motion .beat { left: calc((100vw - 70rem) / 2 + 1.5rem); right: calc((100vw - 70rem) / 2 + 1.5rem); } }

/* The mountain: three ranges, the far one first and the near one last, each rising into the
   page and then growing at its own pace, so that it comes nearer as it is read about. */
.motion [data-scene="mountain"] .range {
  display: block; position: absolute; bottom: 0; margin: 0; order: 0;
  transform-origin: 50% 100%; will-change: transform;
  --grow: clamp(0, calc(var(--p, 0) / 0.6), 1);
}
.motion .range.far { left: -8%; width: 116%; height: 66%;
  transform: translateY(calc((1 - clamp(0, calc(var(--p, 0) / 0.05), 1)) * 70%)) scale(calc(1 + var(--grow) * 0.22)); }
.motion .range.far path { fill: #16181b; }
.motion [data-scene="mountain"] .range.mid { left: 0; width: 100%; height: 54%;
  transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - 0.008) / 0.07), 1)) * 82%)) scale(calc(1 + var(--grow) * 0.6)); }
.motion .range.near { left: -22%; width: 144%; height: 30%;
  transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - 0.02) / 0.09), 1)) * 104%)) scale(calc(1 + var(--grow) * 1.05)); }
.motion .range.near path { fill: #25282d; }

/* Its names are said on the mountain itself, large. */
.motion .beat.name { top: auto; bottom: clamp(7rem, 30vh, 16rem); }
.motion .beat.name .huge { font-size: clamp(2.6rem, 11vw, 6rem); }

/* The plan written at night: each line is written, and then struck out. Then a bigger one. */
.motion .night { display: block; position: relative; height: 9.2rem; margin-top: 0.4rem; }
.motion .plan { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 0.3rem; font: 700 1.3rem/1.35 var(--sans); }
.motion .plan li { opacity: clamp(0, calc((var(--p, 0) - var(--w, 0)) / 0.006), 1); }
.motion .plan li span { position: relative; display: inline-block; color: var(--ink-text); }
.motion .plan li span::after {
  content: ""; position: absolute; left: -0.15em; top: 54%; height: 0.1em; background: var(--mustard);
  width: calc(clamp(0, calc((var(--p, 0) - var(--s, 1)) / 0.008), 1) * (100% + 0.3em));
}
.motion .plan.bigger { font-size: 1.45rem; }
.motion .said { display: block; position: relative; min-height: 3.6em; }
.motion .said p { position: absolute; left: 0; right: 0; top: 0; max-width: var(--measure); }

/* The seed: a speck at the mountain's foot, which grows until it is the ground. It is the
   mustard ground itself, cut to a circle, so its edge stays sharp at any size. */
.motion .anchor { top: 66%; }
.motion .flood {
  display: block; position: absolute; inset: 0; z-index: 1; background: var(--mustard);
  --q: clamp(0, calc((var(--p, 0) - 0.645) / 0.1), 1);
  clip-path: circle(calc(0.35rem + var(--q) * var(--q) * 150vmax) at calc(max(1.5rem, env(safe-area-inset-left, 0px)) + 0.35rem) calc(100% - 1.75rem));
  opacity: clamp(0, calc((var(--p, 0) - 0.37) / 0.03), 1);
}
/* The verse comes a phrase at a time, and stays. */
.motion .beat.verse { display: flex; color: var(--mustard-text); }
.motion .beat.verse .label { color: var(--mustard-quiet); }
.motion .beat.verse .scripture span { opacity: calc(0.22 + clamp(0, calc((var(--p, 0) - var(--v, 0)) / 0.014), 1) * 0.78); }
.motion .beat.verse .late { opacity: clamp(0, calc((var(--p, 0) - 0.94) / 0.03), 1); }

/* The dominoes: story.js draws them and moves the view. */
.motion [data-scene="dominoes"] .tell, .motion [data-scene="plan"] .tell, .motion [data-scene="verse"] .tell { position: absolute; z-index: 2; left: 0; right: 0; top: clamp(1.75rem, 7vh, 4.5rem); }
.motion [data-scene="dominoes"] .still { display: none; }
.motion .world { display: block; position: absolute; inset: 0; }
.motion .world i { position: absolute; left: 0; top: 0; display: block; background: #3a3d42; transform-origin: 100% 100%; will-change: transform; }
.motion .world i.up { background: var(--ink-text); }
.motion .world i.last { background: var(--mustard); }
.motion .world b { position: absolute; left: 0; top: 0; display: block; border-radius: 50%; background: var(--mustard); }
.motion .world svg { position: absolute; left: 0; top: 0; }
.motion .world .everest path { fill: #1d2024; }
.motion .world .person { fill: #6b7076; }
.motion .world .floor { position: absolute; left: 0; right: 0; height: 1px; background: var(--ink-rule); }
.motion .world .tag { position: absolute; left: 0; top: 0; font: 700 0.78rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-quiet); white-space: nowrap; }
.motion .ticker { display: flex; flex-direction: column; gap: 0.35rem; position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(1.25rem, 4.5vh, 3rem); }
.motion .ticker .count { display: flex; align-items: baseline; gap: 0.7rem; }
.motion .ticker .n { font: 800 clamp(2.4rem, 7vw, 3.6rem)/1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.motion .ticker .tall { font: 800 clamp(1.5rem, 4.4vw, 2.2rem)/1.1 var(--sans); color: var(--mustard); font-variant-numeric: tabular-nums; }
.motion .ticker .said-now { min-height: 1.6em; color: var(--ink-quiet); }

/* The three steps: the words change at the top, and the app changes beneath them. */
.motion [data-scene="plan"] .beat { top: clamp(3.6rem, 12vh, 8rem); }
.motion [data-scene="plan"] .beat .figure { font: 800 3.2rem/1 var(--sans); color: var(--mustard); letter-spacing: -0.03em; }
.motion [data-scene="plan"] .beat h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
.motion .shots { position: absolute; z-index: 1; left: 50%; bottom: -9%; height: 50%; aspect-ratio: 600 / 1304; transform: translateX(-50%); }
.motion .shot { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 1.8rem; border: 1px solid var(--ink-rule); --f: 0.03; }
@media (min-width: 56rem) {
  .motion [data-scene="plan"] .beat { right: 52%; }
  .motion .shots { left: 74%; bottom: auto; top: 50%; height: 82%; transform: translate(-50%, -50%); }
}

/* A verse, each time it comes back: read, then with the verses around it, then a line to
   write on, then by heart. The words are hidden as the app hides them (`Heart.hides`): a
   third, then every other one, then all but one in four, then all but the first. `--r1` to
   `--r4` are how far each of those has come; a word says at which it is hidden (`h1`…`h4`). */
.motion [data-scene="verse"] .beat { top: clamp(3.6rem, 12vh, 8rem); color: var(--mustard-text); left: max(1.5rem, env(safe-area-inset-left, 0px)); right: max(1.5rem, env(safe-area-inset-right, 0px)); }
.motion [data-scene="verse"] .beat h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
.motion .passage { position: absolute; z-index: 1; left: 0; right: 0; top: clamp(14rem, 37vh, 21rem); display: flex; flex-direction: column; gap: 0.9rem; }
.motion .passage > * { max-width: 46rem; }
.motion .under { display: grid; }
.motion .under > * { grid-area: 1 / 1; align-self: start; }
.motion .passage .heart { font-size: clamp(1.9rem, 5.4vw, 3.2rem); line-height: 1.3; }
.motion .passage .near { color: var(--mustard-quiet); font-size: clamp(1.2rem, 3.4vw, 1.7rem); }
.motion .field { font: 600 1.2rem/1.3 var(--sans); color: var(--mustard-quiet); padding: 0.9rem 0 0.75rem; border-bottom: 2px solid var(--mustard-text); }
.motion .heart {
  --r1: clamp(0, calc((var(--p, 0) - 0.68) / 0.02), 1);
  --r2: clamp(0, calc((var(--p, 0) - 0.76) / 0.02), 1);
  --r3: clamp(0, calc((var(--p, 0) - 0.84) / 0.02), 1);
  --r4: clamp(0, calc((var(--p, 0) - 0.92) / 0.02), 1);
}
.motion .heart .w {
  --k: calc((var(--r1) - var(--r2)) * var(--h1, 0) + (var(--r2) - var(--r3)) * var(--h2, 0) + (var(--r3) - var(--r4)) * var(--h3, 0) + var(--r4) * var(--h4, 0));
  background: linear-gradient(var(--mustard-quiet), var(--mustard-quiet)) no-repeat 0 86% / calc(var(--k) * 100%) 0.06em;
}
.motion .heart .w span { opacity: calc(1 - var(--k)); }
.w.h1 { --h1: 1; } .w.h2 { --h2: 1; } .w.h3 { --h3: 1; } .w.h4 { --h4: 1; }

/* The two keys: one thing after another is put off, and what is put on stands in its place. */
.motion [data-scene="keys"] .struck { text-decoration: none; background: linear-gradient(var(--mustard), var(--mustard)) no-repeat 0 56% / calc(clamp(0, calc((var(--p, 0) - 0.03) / 0.05), 1) * 100%) 0.08em; }
.motion .pairs { position: relative; height: 8rem; margin-top: 1.5rem; }
.motion .pair { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; gap: 0.2rem; font: 800 clamp(1.9rem, 6.4vw, 3rem)/1.1 var(--sans); letter-spacing: -0.02em;
  --t: clamp(0, calc((var(--p, 0) - var(--a, 0)) / (var(--b, 1) - var(--a, 0))), 1); }
.motion .pair .off { color: var(--ink-quiet); }
.motion .pair .off span { position: relative; display: inline-block; }
.motion .pair .off span::after { content: ""; position: absolute; left: -0.1em; top: 54%; height: 0.09em; background: var(--ink-quiet); width: calc(clamp(0, calc((var(--t) - 0.18) / 0.22), 1) * (100% + 0.2em)); }
.motion .pair .on { color: var(--mustard); opacity: clamp(0, calc((var(--t) - 0.42) / 0.14), 1); transform: translateY(calc((1 - clamp(0, calc((var(--t) - 0.42) / 0.14), 1)) * 0.5rem)); }

/* The call: the mountain stands in the way, and is moved to yonder place. The button comes
   up out of the seed. */
.motion [data-scene="call"] .yonder {
  right: auto; left: 50%; bottom: 0; width: min(230vw, 76rem); transform-origin: 50% 100%; will-change: transform;
  transform: translateX(calc(-50% + var(--p, 0) * 96vw)) scale(calc(1.25 - var(--p, 0) * 0.85));
}
.motion [data-scene="call"] .yonder path { fill: var(--ink); }
.motion [data-scene="call"] .call {
  position: absolute; z-index: 2; top: clamp(1.75rem, 9vh, 6rem); left: 0; right: 0;
  opacity: clamp(0, calc((var(--p, 0) - 0.3) / 0.25), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - 0.3) / 0.25), 1)) * 1.4rem));
}
.motion [data-scene="call"] .button { transform-origin: 0 50%; transform: scale(clamp(0.04, calc((var(--p, 0) - 0.5) / 0.22), 1)); }

/* Twenty-one days across the top: one more is lit for each part of the page that is passed. */
.motion .rail { display: flex; gap: 3px; position: fixed; z-index: 10; top: 0; left: 0; right: 0; padding: 0 max(0px, env(safe-area-inset-right, 0px)) 0 max(0px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.motion .rail span { flex: 1; height: 3px; background: rgba(154, 159, 163, 0.28); }
.motion .rail span.done { background: var(--ink-text); }

/* The plainer parts come up as they are reached. */
.motion [data-reveal] { opacity: 0; transform: translateY(1.6rem); transition: opacity 0.7s ease, transform 0.7s ease; }
.motion [data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------------------------
   Our story (story.html). The words are Bernard's, every one. What moves is drawn under them
   in the same few shapes as the rest of the page: the mountain, the seed, and three bars,
   which here are a family of three.
   --------------------------------------------------------------------------------------- */
.say { font: 600 clamp(1.2rem, 3.5vw, 1.65rem)/1.38 var(--sans); max-width: 36rem; }
.say.big, .ours .huge { text-wrap: balance; }
.say.big { font: 800 clamp(1.75rem, 6.2vw, 3rem)/1.1 var(--sans); letter-spacing: -0.02em; }
.ours strong { font-weight: 800; }
.ours .say strong { color: var(--mustard); }
.ours .beat { gap: 1rem; }

/* Still: plain reading, one part under another, with the mountain once at the head. */
.family, .chart, .doors, .decade, .ring, .chain { display: none; }
.ours .range { display: none; }
.ours .scene .stage { padding: clamp(2.25rem, 6vw, 4rem) 0; }
.ours [data-scene="ours"] .stage { display: flex; flex-direction: column; padding-bottom: 0; }
.ours [data-scene="ours"] .beats { order: 1; }
.ours [data-scene="ours"] .range.mid { display: block; order: 2; width: 100%; height: clamp(9rem, 24vw, 18rem); margin-top: 2rem; }
.ours .beat.name + .beat.name { margin-top: -2rem; }
.ours .beats { gap: 2.25rem; }
.ours .able .button { background: var(--mustard); color: var(--mustard-text); }

/* Moving. */
.motion .ours .scene { height: 400vh; }
.motion .ours .scene.tall { height: 620vh; }
.motion .ours [data-scene="loss"] { height: 780vh; }
.motion .ours [data-scene="standing"] { height: 480vh; }
.motion .ours .stage { padding: 0; display: block; --wf: clamp(10rem, min(46vw, 40vh), 16rem); }
.motion .ours .beats { gap: 0; }
.motion .ours .beat.name + .beat.name { margin-top: 0; }
.motion .ours i:nth-of-type(1) { --k: 0; } .motion .ours i:nth-of-type(2) { --k: 1; } .motion .ours i:nth-of-type(3) { --k: 2; }
.motion .ours i:nth-of-type(4) { --k: 3; } .motion .ours i:nth-of-type(5) { --k: 4; } .motion .ours i:nth-of-type(6) { --k: 5; }
.motion .ours i:nth-of-type(7) { --k: 6; } .motion .ours i:nth-of-type(8) { --k: 7; } .motion .ours i:nth-of-type(9) { --k: 8; }
.motion .ours i:nth-of-type(10) { --k: 9; } .motion .ours i:nth-of-type(11) { --k: 10; } .motion .ours i:nth-of-type(12) { --k: 11; }

/* The mountains of the story: the same three ranges, each scene standing them as it needs. */
.motion .ours .range { display: block; position: absolute; bottom: 0; margin: 0; transform-origin: 50% 100%; will-change: transform; }
.motion .ours .range.far { left: -8%; width: 116%; height: 60%; }
.motion .ours .range.mid { left: 0; width: 100%; height: 48%; }
.motion .ours .range.near { left: -22%; width: 144%; height: 26%; }
.motion [data-scene="ours"] .range.far { transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - 0.02) / 0.12), 1)) * 100%)); }
.motion [data-scene="ours"] .range.mid { transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - 0.08) / 0.14), 1)) * 100%)); }
.motion [data-scene="ours"] .range.near { transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - 0.16) / 0.14), 1)) * 100%)); }
.motion [data-scene="loss"] .range.mid { height: 62%; transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - 0.64) / 0.26), 1)) * 100%)); }
.motion [data-scene="purpose"] .range { transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - 0.47) / 0.12), 1)) * 100%)); }
.motion [data-scene="why"] .range.mid { height: 56%; }
.motion [data-scene="why"] .range.mid path { fill: #17191c; }
.motion [data-scene="yours"] .range, .motion [data-scene="standing"] .range { transform: scale(calc(1.15 + var(--p, 0) * 0.35)); }

/* Three bars and the seed: his mark, which here is a family of three. The shapes are the mark's
   own, as in the bar at the top, in its points (220 across, 137 high, standing on the bottom
   edge). A bar comes up out of the ground along its own lean, as it does in the app's splash:
   --rise is how much of it is up, --deep how far down it starts and --lean how far left it goes
   for each point down (Bar, in m3talk/Features/Splash.swift). --dx moves it sideways. */
.motion .family { display: block; position: absolute; z-index: 1; left: 50%; bottom: 12%; width: var(--wf); margin-left: calc(var(--wf) / -2); }
.motion .family svg { display: block; width: 100%; height: auto; overflow: visible; clip-path: inset(-100vmax -100vmax 0 -100vmax); }
.motion .family path { fill: var(--ink-text); transform: translate(calc(var(--dx, 0) * 1px - (1 - var(--rise, 1)) * var(--lean) * var(--deep) * 1px), calc((1 - var(--rise, 1)) * var(--deep) * 1px)); }
.motion .family .f1 { --k: 0; --deep: 62; --lean: 0.66; }
.motion .family .f2 { --k: 1; --deep: 98; --lean: 0.47; }
.motion .family .f3 { --k: 2; --deep: 140; --lean: 0.22; }
.motion .family circle { fill: var(--mustard); }
/* Ours: they stand up one after another, with their dreams. */
.motion [data-scene="ours"] .family circle { opacity: clamp(0, calc((var(--p, 0) - 0.34) / 0.04), 1); }
.motion [data-scene="ours"] .family path { --rise: clamp(0, calc((var(--p, 0) - (0.38 + var(--k) * 0.05)) / 0.09), 1); }
/* The years: the two are away at the mountain, and the little one grows without them. Then
   they come back to him. */
.motion [data-scene="years"] .family { bottom: 24%; --apart: calc(1 - clamp(0, calc((var(--p, 0) - 0.88) / 0.08), 1)); }
.motion [data-scene="years"] .family circle { opacity: 0; }
.motion [data-scene="years"] .family .f1 { fill: var(--mustard); --dx: calc(var(--apart) * 150); --rise: calc(0.3 + clamp(0, calc((var(--p, 0) - 0.15) / 0.47), 1) * 0.7); }
.motion [data-scene="years"] .family .pair { --dx: calc(var(--apart) * -70); opacity: calc(1 - var(--apart) * 0.55); }
/* Standing: the mountain, and in front of it the three of them and the seed. */
.motion [data-scene="standing"] .family path { --rise: clamp(0, calc((var(--p, 0) - (0.2 + var(--k) * 0.03)) / 0.07), 1); }
.motion [data-scene="standing"] .family circle { opacity: clamp(0, calc((var(--p, 0) - 0.16) / 0.04), 1); }
.motion [data-scene="standing"] .flood {
  --q: clamp(0, calc((var(--p, 0) - 0.52) / 0.16), 1);
  clip-path: circle(calc(var(--wf) * 0.0564 + var(--q) * var(--q) * 150vmax) at calc(50% - var(--wf) * 0.4427) calc(88% - var(--wf) * 0.0568));
  opacity: clamp(0, calc((var(--p, 0) - 0.5) / 0.02), 1);
}
.motion .beat.able { color: var(--mustard-text); }
.motion .ours .able .button { background: var(--ink); color: var(--ink-text); }
.motion .ours .able .huge { font-size: clamp(3.2rem, 13vw, 7rem); }

/* What was built, what was lost: bars going up from a line, and then seven going down from it. */
.motion .chart { display: block; position: absolute; z-index: 1; left: 0; right: 0; margin-inline: auto; width: min(calc(100% - 2 * max(1.5rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))), 40rem); bottom: 5%; height: 52%;
  opacity: calc(1 - clamp(0, calc((var(--p, 0) - 0.415) / 0.025), 1)); }
.motion .chart::before { content: ""; position: absolute; left: 0; right: 0; top: 44%; height: 1px; background: var(--ink-rule); }
.motion .chart > div { position: absolute; display: flex; gap: 2.5%; }
.motion .chart i { flex: 1; display: block; will-change: transform; }
.motion .chart .up { left: 0; right: 42%; bottom: 56%; height: 44%; align-items: flex-end; opacity: calc(1 - clamp(0, calc((var(--p, 0) - 0.13) / 0.06), 1) * 0.8); }
.motion .chart .up i { background: var(--ink-text); height: calc(30% + var(--k) * 11%); transform-origin: 50% 100%; transform: scaleY(clamp(0, calc((var(--p, 0) - var(--k) * 0.011) / 0.03), 1)); }
.motion .chart .again { left: 64%; right: 8%; bottom: 56%; height: 44%; align-items: flex-end; }
.motion .chart .again i { background: var(--mustard); height: calc(24% + var(--k) * 9%); transform-origin: 50% 100%;
  transform: scaleY(calc(clamp(0, calc((var(--p, 0) - (0.25 + var(--k) * 0.012)) / 0.03), 1) * (1 - clamp(0, calc((var(--p, 0) - 0.315) / 0.03), 1)))); }
.motion .chart .down { left: 0; right: 0; top: 44%; height: 56%; align-items: flex-start; }
.motion .chart .down i { background: #8f2738; height: calc(38% + var(--k) * 10%); transform-origin: 50% 0; transform: scaleY(clamp(0, calc((var(--p, 0) - (0.33 + var(--k) * 0.008)) / 0.03), 1)); }

/* Doors that were open, closing one after another. */
.motion .doors { display: flex; gap: 4%; position: absolute; z-index: 1; left: 50%; bottom: 9%; width: min(84vw, 30rem); height: 30%; transform: translateX(-50%);
  opacity: clamp(0, min(calc((var(--p, 0) - 0.44) / 0.02), calc((0.64 - var(--p, 0)) / 0.02)), 1); }
.motion .doors i { flex: 1; position: relative; border: 1px solid #3a3d42; }
.motion .doors i::after { content: ""; position: absolute; inset: 0; background: var(--ink-text); transform-origin: 0 50%; transform: scaleX(calc(1 - clamp(0, calc((var(--p, 0) - (0.47 + var(--k) * 0.028)) / 0.03), 1))); }

/* Nearly a decade: ten years, each marked as it passes, and then gone. */
.motion .decade { display: flex; gap: 2.2%; position: absolute; z-index: 1; left: 50%; bottom: 12%; width: min(84vw, 30rem); height: 1.1rem; transform: translateX(-50%); }
.motion .decade i { flex: 1; position: relative; background: rgba(154, 159, 163, 0.16); }
.motion .decade i::after { content: ""; position: absolute; inset: 0; background: var(--ink-text);
  opacity: calc(clamp(0, calc((var(--p, 0) - (0.15 + var(--k) * 0.045)) / 0.02), 1) * (1 - clamp(0, calc((var(--p, 0) - (0.66 + var(--k) * 0.017)) / 0.02), 1))); }

/* uBelong: a ring with a place kept in it, and the one outside brought in. */
.motion .ring { --ring: clamp(8.5rem, 42vw, 14rem); display: block; position: absolute; z-index: 1; left: 50%; bottom: 13%; width: var(--ring); height: var(--ring); margin-left: calc(var(--ring) / -2);
  opacity: clamp(0, min(calc((var(--p, 0) - 0.12) / 0.03), calc((0.48 - var(--p, 0)) / 0.03)), 1); }
.motion .ring i, .motion .ring b { position: absolute; left: 50%; top: 50%; width: 9%; height: 9%; margin: -4.5% 0 0 -4.5%; border-radius: 50%; background: var(--ink-text);
  transform: rotate(calc(var(--k, 11) * 30deg)) translateY(calc(var(--ring) * -0.44)); }
.motion .ring i:nth-of-type(12) { display: none; }
.motion .ring b { background: var(--mustard); width: 11%; height: 11%; margin: -5.5% 0 0 -5.5%;
  transform: rotate(330deg) translateY(calc(var(--ring) * (-0.44 - (1 - clamp(0, calc((var(--p, 0) - 0.16) / 0.14), 1)) * 0.75))); }

/* A mustard seed, a small beginning, one action at a time: and the next one still standing. */
.motion .chain { display: block; position: absolute; z-index: 1; left: max(1.5rem, env(safe-area-inset-left, 0px)); right: max(1.5rem, env(safe-area-inset-right, 0px)); bottom: 11%; height: 32%; }
.motion .chain b { position: absolute; left: 0; bottom: 0; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--mustard); opacity: clamp(0, calc((var(--p, 0) - 0.39) / 0.03), 1); }
.motion .chain i { position: absolute; bottom: 0; aspect-ratio: 0.16; background: #3a3d42; transform-origin: 100% 100%;
  opacity: clamp(0, calc((var(--p, 0) - (0.455 + var(--k) * 0.004)) / 0.02), 1);
  transform: rotate(calc(clamp(0, calc((var(--p, 0) - (0.53 + var(--k) * 0.016)) / 0.012), 1) * 24deg)); }
.motion .chain i:nth-of-type(1) { left: 7%; height: 12%; } .motion .chain i:nth-of-type(2) { left: 11%; height: 15.4%; }
.motion .chain i:nth-of-type(3) { left: 16%; height: 19.7%; } .motion .chain i:nth-of-type(4) { left: 22.4%; height: 25.2%; }
.motion .chain i:nth-of-type(5) { left: 30.4%; height: 32.2%; } .motion .chain i:nth-of-type(6) { left: 40.4%; height: 41.2%; }
.motion .chain i:nth-of-type(7) { left: 52.8%; height: 52.8%; } .motion .chain i:nth-of-type(8) { left: 68%; height: 67.5%; }
.motion .chain i:nth-of-type(9) { left: 86%; height: 86.4%; background: var(--mustard); transform: none; }
.motion .chain u { display: none; }

/* The band on the first page that leads here. */
.behind .link { font-size: 1.15rem; }
