/* Screen 6, your data. */
.data { background: var(--cream); }
/* The board is the stage's 1440 box: the stops share its x. Under the way on to the Your
   data page, 120 of cream, and the questions' own 96 over their headline: the screen
   breathes out into the questions with no shape between them. */
.data-board { position: relative; width: calc(1440 * var(--u)); margin: 0 auto; padding: calc(28 * var(--u)) 0 calc(120 * var(--u)); }
/* The headline stands top right, over OpenAI's place, across the centre from the computer,
   under the crest of the cream's rim. */
.data-head { position: relative; z-index: 1; margin-left: calc(720 * var(--u)); padding-right: var(--m); }
.data-mid { margin-top: 18px; font-size: var(--fs-how); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
/* The stage stands under the headline, its ground about 600 under the rim's top, and the
   computer's dome rises beside the words over it on the left. */
.data-stage-wrap { position: relative; }
.data-stage-wrap.is-phone { display: none; }
.data-stage .ring-draw { vector-effect: non-scaling-stroke; }
.data-dot { transform-box: fill-box; transform-origin: center; }
/* The word the dot carries, over it: at the end of its way a label as the site draws one
   (lilac, plum words); before OpenAI's door, js/data.js shows it as the name (.is-name,
   white in an ink ring). --chip-x: where it stands, in the stage's units; its foot 8 over
   the dot's top. */
.data-chip {
  position: absolute; left: calc(var(--chip-x, 1080) * var(--u)); bottom: calc(30 * var(--u)); translate: -50% 0;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 15px; line-height: 1.5; font-weight: 700; background: var(--lilac); color: var(--plum);
  opacity: var(--chip-o, 1);
}
.data-chip.is-name { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* The three stops, each in a column under its own place, at uneven x (src/sections/yourData.mjs:
   COLS gives each its width, --w, and the room before it, --ml). The first starts inside the
   computer's dome, off the hero's left line. */
.dstops { list-style: none; display: flex; align-items: flex-start; }
.dstop { flex: none; width: calc(var(--w) * var(--u)); margin-left: calc(var(--ml) * var(--u)); }
/* The stops share two rows (subgrid), so their lines start level even where a head wraps. */
.dstops { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; justify-content: start; margin-top: calc(28 * var(--u)); }
.dstop { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.dstop-mark { display: none; }
.dstop-h { font-size: var(--fs-beat); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.dstop-line { margin-top: 10px; font-size: var(--fs-body); line-height: 1.5; color: var(--body); text-wrap: pretty; }
/* The way on to the Your data page, the screen's quiet last line, on the first stop's x. */
.data-more { margin: calc(40 * var(--u)) 0 0 calc(var(--x0) * var(--u)); }

@media (max-width: 1023.98px) {
  .data-board { width: auto; padding: 28px var(--m) 44px; }
  .data-head { margin-left: 0; padding-right: 0; }
  .data-mid { margin-top: 12px; font-size: 20px; }
  /* The phone's stage runs edge to edge; the chip stands over its dot in the same units. */
  .data-stage-wrap { display: none; }
  .data-stage-wrap.is-phone { display: block; margin: 22px calc(-1 * var(--m)) 0; }
  .data-stage-phone { display: block; width: 100%; height: auto; overflow: visible; }
  .data-chip { left: calc(var(--chip-x, 318) / 390 * 100%); bottom: calc(12.5 / 118 * 100% + 8px); padding: 2px 8px; font-size: 12px; }
  /* One column: each stop led by its place's mark. */
  .dstops { display: block; margin-top: 12px; }
  .dstop { position: relative; display: block; width: auto; margin: 0; padding: 14px 0 10px 42px; }
  .dstop-mark { display: block; position: absolute; left: 0; top: 18px; width: 30px; height: 19px; }
  .dstop-h { font-size: 22px; }
  .dstop-line { margin-top: 6px; }
  .data-more { margin: 6px 0 0 42px; }
}

/* ---------------------------------------------------------------- motion: the way, on repeat
   The HTML is the finished frame. With motion, js/data.js takes the stage over (.is-live:
   the places wait) and plays the way (.is-playing) as the stage's ground comes up the
   window: each place draws itself on the canvas's clock as the dot sets off toward it (a
   dome rises from its ground, the ring draws up from both feet, then what it holds comes
   in). The dot and the word it carries are moved by js/data.js, on the same clock (the
   word's opacity as --chip-o); on desktop the travelling dot carries the word, and the
   stage's own dot steps aside until the travelling dot has gone on out of sight
   (.is-passed: under the page, faded): only then does it stand under the word at OpenAI
   again, as drawn, so one orange dot shows at a time. While the stage is in view the way
   plays again (js/loop.js, the canvas's 4.2 s): the finished frame holds, the three places,
   the word and the stage's own dot fade (.is-clearing; the ground and the stops' words
   stay), and the places draw themselves again from their waiting frame. On desktop,
   scrolled back above where the dot is cued, the stage clears to that waiting frame too,
   and the next way starts as the dot comes onto the first stop. */
.thread-on .data:not(.is-passed) .data-stage .data-dot { visibility: hidden; }
.thread-on .data.is-passed .data-stage .data-dot { animation: data-dot-back 0.3s ease-out; }
@keyframes data-dot-back { from { opacity: 0; scale: 0.6; } }
.motion .data.is-live .pl .dome { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); }
.motion .data.is-playing .p1 .dome { transform: none; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0s; }
.motion .data.is-playing .p2 .dome { transform: none; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.65s; }
.motion .data.is-live .you { opacity: 0; transform: translateY(10px); }
.motion .data.is-playing .you { opacity: 1; transform: none; transition: opacity 0.3s linear 0.12s, transform 0.3s linear 0.12s; }
.motion .data.is-live .p1 .dw { opacity: 0; }
.motion .data.is-playing .p1 .dw { opacity: 1; transition: opacity 0.2s linear calc(0.3s + var(--i) * 0.1s); }
.motion .data.is-live .card { opacity: 0; transform: translateY(10px); }
.motion .data.is-playing .card { opacity: 1; transform: none; transition: opacity 0.25s linear 0.95s, transform 0.25s linear 0.95s; }
.motion .data.is-live .ring-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.motion .data.is-playing .ring-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 0.7s cubic-bezier(0.65, 0, 0.35, 1) 1.3s; }
.motion .data.is-live .key { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.motion .data.is-playing .key { transform: none; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s; }
.motion .data.is-live .p3 .dw { opacity: 0; }
.motion .data.is-playing .p3 .dw { opacity: 1; transition: opacity 0.3s linear 1.85s; }
/* Until the clock starts, the dot and its word wait unseen (js/data.js moves them from there). */
.motion .data.is-live:not(.is-playing) .data-dot { scale: 0; }
.motion .data.is-live:not(.is-playing) .data-chip { opacity: 0; }
.data.is-clearing .pl, .data.is-clearing .data-chip, .data.is-clearing .data-dot { opacity: 0; transition: opacity 0.3s ease; }
