/* Phones (< 960 px), loaded last, all overrides: one 32 px left edge; 24 / 22 / 17 / 15 serif / 12-13. Below the hero
   nothing is drawn or swept on the scroll: each block plays one moment as it arrives (transform, opacity or ink). */
.m-sky, .m-core, .m-words { position: absolute; left: 0; top: 0; pointer-events: none; } /* the phone scene's layers (only made narrow) */
.m-words { width: 100%; height: 100%; }
.m-word { position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 14px/18px var(--sans); color: var(--star); text-shadow: 0 0 4px var(--night), 0 0 10px var(--night); will-change: transform; } /* placed by mobile.js */
.m-word::before { content: ""; position: absolute; z-index: -1; inset: -8px -14px; background: radial-gradient(closest-side, rgba(4, 6, 11, 0.75), rgba(4, 6, 11, 0)); } /* the sky under a word, dimmed */
.m-core > * { position: absolute; border-radius: 50%; }
.m-core canvas { border-radius: 0; }
.m-disc { background: radial-gradient(closest-side, rgba(157, 180, 232, 0.6), rgba(157, 180, 232, 0.22) 34%, rgba(157, 180, 232, 0.07) 64%, rgba(157, 180, 232, 0)); }
.m-glow { background: radial-gradient(closest-side, rgba(242, 199, 155, 0.95), rgba(242, 199, 155, 0.5) 12%, rgba(242, 199, 155, 0.14) 34%, rgba(242, 199, 155, 0.03) 62%, rgba(242, 199, 155, 0)); }
@media (max-width: 959px) {
  :root { --gutter: 32px; --sec: 96px; --block: 48px; --h2: 22px; --lh-h2: 30px; --h3: 17px; --lh-h3: 25px; --body: 15px; --lh-body: 28px; }
  /* One screen (the small viewport, so a browser's toolbars never cover it): the bar 32 px down, then the end words,
     the disc (centre at 47.5%) and the headline (last line ending at 83%) spaced down it, only stars below. */
  .stage { height: 100vh; height: 100svh; min-height: 540px; }
  .bar { padding: calc(25px + env(safe-area-inset-top)) var(--gutter) 0; }
  .mark { font-size: 17px; }
  .ends { position: absolute; inset: calc(26.5% - 18px) 0 auto; padding: 0 var(--gutter); font-size: 36px; }
  .focus { position: absolute; inset: 37.5% 0 auto; height: 20%; aspect-ratio: auto; }
  .headline { position: absolute; left: 0; bottom: 17%; font-size: 24px; line-height: 34px; letter-spacing: 0.01em; text-align: left; }
  .headline > span > span:not(.ch) { display: block; }
  .cue { display: none; }

  /* Core 0.25 s, end words 0.6 s; the disc's stars gather in with the swirl (2.1-4.3 s); words 3.0-3.6 s; lock and
     headline 3.6 s, settling in 0.3 s from a 1.5 px blur; the push-in from 4 s is drawn by mobile.js. */
  .motion .m-sky, .motion .m-core, .motion .m-dust, .motion .m-word { opacity: 0; }
  .motion.go .m-sky { animation: sky-in 1.8s ease-in 0.35s both; }
  .motion.go .m-core { animation: sky-in 2.6s ease-in-out 0.25s both; }
  .motion.go .m-dust { animation: m-gather 2.2s cubic-bezier(0.3, 0.5, 0.4, 1) 2.1s both; }
  .motion.go .m-word { animation: sky-in 0.3s var(--enter) 3s both; } /* the words light in turn as the stars lock, whole by 3.9 s */
  .motion.go .m-word + .m-word { animation-delay: 3.3s; }
  .motion.go .m-word + .m-word + .m-word { animation-delay: 3.6s; }
  .sky.idle .m-sky, .sky.idle .m-core, .sky.idle .m-dust, .sky.idle .m-word { animation-play-state: paused; }
  .motion.go.type .end > span:nth-child(1) { animation-delay: calc(0.6s - var(--since, 0s)); }
  .motion.go.type .end > span:nth-child(2) { animation-delay: calc(0.85s - var(--since, 0s)); }
  .motion .headline .ch { filter: blur(1.5px); }

  main > section:first-child { padding-top: 56px; } /* the statement's first glyphs about 64 px under the hero */
  /* One column of whole characters: the measure rounds down to whole 15 px characters (21 at 390: 315 px; 630 at most)
     and sits centred, at least 32 px in from each side; every block, the hero and the footer share its edges. 100% is
     the page's width wherever --gutter is used (widths, paddings, margins), so a scrollbar never throws it off. */
  @supports (width: round(down, 1px, 1px)) {
    :root { --gutter: calc((100% - min(630px, round(down, 100% - 64px, 15px))) / 2); }
    .col, .wide, .contact-grid { margin-left: var(--gutter); }
  }
  section > h2 { margin-bottom: 24px; }
  .prose p + p, .case-body p + p, .lede p + p { margin-top: 20px; }
  /* The statement: bold 700 at the H2's 22 px on a 34 px line, flush left; each phrase starts a line, and a long one
     wraps between words only (style.css). */
  .lede { font-size: 22px; line-height: 34px; }
  .lede p { width: auto; }
  .lede .ph { display: block; }
  .hang { margin-right: -1em; } /* a paragraph's closing full stop (paper.js) hangs into the gutter when its line is full */
  .contact-qr figcaption, .duty { font-size: var(--body); line-height: var(--lh-body); }
  .row { padding: 18px 0 20px; }
  /* Service names carry an icon: a 20 px line drawing, 1.5 px round ink strokes, centred on the name's first line and
     10 px before it. */
  .row dt { display: flex; gap: 10px; font-size: 17px; line-height: 25px; }
  .ico { display: block; flex: none; width: 20px; height: 20px; margin-top: 2.5px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .case-lede { margin-bottom: 24px; }
  .steps li { font-size: 17px; }
  .steps li::before { font-size: 13px; }
  .person h3 { font-size: 17px; line-height: 25px; }
  .person .en { font-size: 13px; }
  .role { font-size: 14px; line-height: 21px; }
  .cred { font-size: 13px; line-height: 20px; }
  .asks { margin-block: 28px 24px; font-size: 17px; line-height: 28px; }
  .asks li + li { margin-top: 14px; }
  /* The close: heading, questions and note flush left; the code centred, about 200 px, its line centred under it. */
  .contact-qr { display: grid; justify-items: center; text-align: center; }
  .contact-qr img { width: 180px; height: 180px; }
  .foot { padding-inline: max(var(--gutter), 50% - 320px); text-align: left; }

  /* Paper: rules rest drawn and nothing sweeps; each block plays one moment as it arrives (.in from sky.js). */
  .motion .lock { transition: transform 0.9s cubic-bezier(0.33, 1, 0.68, 1) 0.2s, opacity 0.5s var(--enter) 0.2s; }
  /* The statement types out once a third of it is in view, each glyph whole as it shows (no faint states). */
  .motion .lede .ch { opacity: 0; }
  .motion .lede.in .ch { opacity: 1; transition: opacity 0s calc(var(--i) * 18ms); }
  /* Services: each icon draws itself in one stroke as its name steps in and inks (--d: rows that arrive together go
     150 ms apart). Case titles and names step in the same way (style.css inks them). */
  .motion .ico path { stroke-dasharray: 120 130; stroke-dashoffset: 121; transition: stroke-dashoffset 1.1s var(--draw) var(--d, 0s); }
  .motion .row.in .ico path { stroke-dashoffset: 0; }
  .motion .row dt { transition: color 0.6s var(--enter) var(--d, 0s), transform 0.7s var(--enter) var(--d, 0s); }
  .motion .row:not(.in) dt { color: var(--ink-2); transform: translateX(-16px); }
  .motion .case:not(.in) h3, .motion .case:not(.in) .names li { transform: translateX(-16px); }

  .motion .band-canvas { opacity: 0; transform: scale(1.05); transition: opacity 1.4s ease-out, transform 2.6s var(--enter); }
  .motion .band.m-on .band-canvas { opacity: 1; transform: none; }
  .motion .band::before { /* a meteor, upper right to lower left */
    content: ""; position: absolute; z-index: -1; top: 6%; left: 92%; width: 110px; height: 1.5px; opacity: 0; transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(242, 244, 247, 0.9), rgba(157, 180, 232, 0));
  }
  .motion .band.m-on::before { animation: m-meteor 0.9s ease-in 0.6s both; }
  .motion .steps::after { transition: transform 1.52s linear 0.25s; }
  @keyframes m-gather { from { opacity: 0; transform: rotate(-8deg) scale(1.3, 1.8); } to { opacity: 1; transform: none; } } /* drawn in, flattening, with the swirl */
  @keyframes m-meteor {
    from { opacity: 0; transform: rotate(-43deg); }
    15%, 70% { opacity: 1; }
    to { opacity: 0; transform: translate(-220px, 205px) rotate(-43deg); }
  }
}
@media (max-width: 359px) {
  .cred span { white-space: normal; } /* beside a 140 photo the degrees wrap rather than run off */
}
