.story-grid { display: grid; gap: 24px; }
.story-text .section:last-child { padding-bottom: 0; }
.story-after { padding-bottom: 72px; }                           /* the stack: full width, after the watch has let go */
/* the watch and "how we work" under it travel together. Phone: its own section under the story, in the flow; the watch assembles
   as the section itself scrolls through the screen (watch.js) and the steps under it are added as it goes. Wide page: it
   sticks beside the story and assembles along the whole of it. watch.js sets data-step for the step the assembly has reached. */
.wfig { margin: 56px 0 0; }
.wfig-card { display: flex; flex-direction: column; }   /* on a phone the heading stands above the watch; on a wide page it is the caption under it (order, below) */
.wfig svg { display: block; width: 100%; max-width: 340px; height: auto; aspect-ratio: 640 / 640; margin: 0 auto; }
/* the camera stands close at first (watch.js): no ground shadow until the frame is wide enough to hold it uncut */
.wfig [data-part="ground"] { transition: opacity var(--dur-3) var(--ease-out); }
.wfig[data-cam="close"] [data-part="ground"] { opacity: 0; }
/* under the drawing: how we work, one step per stage of the assembly; steps light up as the scroll reaches them */
.wfig-cap { margin: 8px 0 0; font-size: .9rem; line-height: 1.45; color: var(--muted); min-height: 17em; }   /* the room all four steps take: the page below does not jump as they are added */
.wsteps-title { margin: 0 0 8px; }   /* phone: a section heading like the others */
.wsteps { list-style: none; display: grid; }
/* steps are added as the assembly reaches them: a reached step unfolds under the ones before it and stays */
.wsteps li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; margin-bottom: 10px; }
/* hidden only once watch.js runs (data-live): without scripts all four steps stand in full */
.wfig[data-live] .wsteps li { margin-bottom: 0; max-height: 0; overflow: hidden; opacity: 0; translate: 0 8px;
  transition: max-height var(--dur-4) var(--ease-out), opacity var(--dur-3) var(--ease-out), translate var(--dur-3) var(--ease-out), margin var(--dur-4) var(--ease-out); }
.wfig[data-live] .wsteps li.is-reached { max-height: 12em; opacity: 1; translate: 0 0; margin-bottom: 10px; }
.wsteps .step-n { font-family: var(--mono); color: var(--accent); font-size: .85rem; padding-top: .1em; }
.wsteps h3 { font-size: 1rem; margin-bottom: 2px; color: var(--ink); }
.wsteps p { margin: 0; grid-column: 2; }
@media (min-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; }   /* the text wide, the watch narrow and to the right */
  .story-after { padding-bottom: 96px; }
  /* wide page: the watch and its caption stick at the top of the right column and bleed into the right margin */
  .wfig { position: sticky; top: 72px; margin: 0 calc(-1 * clamp(0px, (100vw - var(--wrap)) / 2 - 8px, 120px)) 0 0; }
  .wfig svg { order: 0; max-width: none; max-height: 46vh; width: auto; }   /* leaves room for the steps under it on a short screen */
  /* here "how we work" is the drawing's caption, not a section heading: small, under the watch */
  .wsteps-title { order: 1; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 8px 0 8px 6%; }
  .wfig-cap { order: 2; margin: 0 0 0 6%; max-width: 32em; min-height: 0; }
  /* a link to "how we work" lands with the whole figure in view: the heading is its caption, under the drawing */
  .wsteps-title { scroll-margin-top: calc(46vh + 88px); }
}
@media (min-width: 900px) and (max-height: 560px) { .wfig { position: static; } }

/* Only the shadow and crystal need page colors. The steel, dial and escapement
   share a transparent image atlas clipped by the SVG symbols in the figure. */
.watch { overflow: hidden; isolation: isolate; }
.watch .w-glass { fill: rgb(175 201 210 / .035); }
.watch .w-ground-core { stop-color: color-mix(in srgb, var(--ink) 12%, transparent); }
.watch .w-transparent { stop-color: transparent; }
.watch .w-glint-soft { stop-color: rgb(255 255 255 / .04); }
.watch .w-glint-light { stop-color: rgb(255 255 255 / .20); }
