@font-face {
  font-family: "Glow Sans";
  src: url("fonts/glow-sans-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face { /* the intro statement only: a subset of just its glyphs (tools/subset-fonts.sh) */
  font-family: "Glow Sans";
  src: url("fonts/glow-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Han Serif";
  src: url("fonts/source-han-serif-sc-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* Fixed palette: the page does not follow the system appearance (DESIGN.md, HIG deviation). */
:root {
  --night: #04060b;
  --band: #070a12;
  --star: #f2f4f7;
  --star-2: #a3adbb;
  --hydrangea: #9db4e8;
  --paper: #f4f5f2;
  --ink: #12161c;
  --ink-2: #4a5462;
  --accent: #1a4a8a;
  --wash: #d9e2ee;
  --rule-soft: rgba(18, 22, 28, 0.14);

  --sans: "Glow Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --serif: "Han Serif", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;

  --micro: 150ms;
  --standard: 220ms;
  --page: 300ms;
  --enter: cubic-bezier(0.22, 1, 0.36, 1);

  --gutter: 16px;
  --sec: 72px;
  --h2: 26px;
  --h3: 19px;
  --lede: 19px;
  --body: 16px;
  /* Line heights on whole pixels (DESIGN.md ratios rounded), so every rule and hairline lands on a pixel. */
  --lh-body: 30px;
  --lh-lede: 32px;
  --lh-h2: 34px;
  --lh-h3: 27px;
  --block: 40px; /* block to block; heading to content is 32 */
  color-scheme: light;
}
@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 960px) {
  :root { --gutter: 40px; --sec: 120px; --h2: 32px; --h3: 22px; --lede: 22px; --body: 17px;
    --lh-body: 31px; --lh-lede: 37px; --lh-h2: 42px; --lh-h3: 31px; --block: 56px; }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.motion:not(.booth) { scroll-behavior: smooth; }
.booth { scrollbar-width: none; }
.booth::-webkit-scrollbar { display: none; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--body)/var(--lh-body) var(--serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, canvas { display: block; }
ol, ul { list-style: none; }
a { color: inherit; }
::selection { background: var(--wash); color: var(--ink); }

h1, h2, h3, .h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-feature-settings: "halt";
  line-height: 1.3;
}
/* The last three or four characters of a paragraph stay together, so no last line is left with one or two;
   body text is justified, so the line before never ends ragged. */
.nb { white-space: nowrap; }
main p, main dd { text-align: justify; text-justify: inter-character; }
/* Justified text sets solid and runs to its column line on both sides; every column holds whole characters (phones:
   mobile.css; desktop: 34em), so a full line needs no stretching. */
h1, h2, h3 { text-wrap: balance; }
li { text-wrap: pretty; }
h2 { font-size: var(--h2); line-height: var(--lh-h2); }
h3, .h3 { font-size: var(--h3); line-height: var(--lh-h3); }

/* Press and focus (HIG Buttons: always include a press state). Every control here is a link. */
a { transition: opacity var(--micro) var(--enter); -webkit-tap-highlight-color: transparent; }
a:active { opacity: 0.55; transition-duration: 0s; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sky :focus-visible { outline-color: var(--hydrangea); }

.on-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .on-touch { display: inline; }
  .on-pointer { display: none; }
}

.col, .wide { margin-inline: auto; }
.col { width: min(640px, 100% - 2 * var(--gutter)); }
.wide { width: min(880px, 100% - 2 * var(--gutter)); }
/* Centred columns start on a whole pixel even when the viewport width is odd (a 17px scrollbar, say),
   so vertical hairlines stay crisp at 1x; engines without round() keep plain auto margins. */
@supports (margin-left: round(down, 1.5px, 1px)) {
  .col { margin-left: round(down, (100% - min(640px, 100% - 2 * var(--gutter))) / 2, 1px); margin-right: 0; }
  .wide { margin-left: round(down, (100% - min(880px, 100% - 2 * var(--gutter))) / 2, 1px); margin-right: 0; }
}

/* ---------- Hero ---------- */
.sky { position: relative; background: var(--night); color: var(--star); }
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  /* Dark central lens over a slightly lifted rim. */
  background: radial-gradient(62% 70% at 50% 50%, var(--night) 45%, var(--band) 100%);
}
.sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Layers the hero scene adds behind its canvas: the still sky, the core glow, the dark lens. */
.sky-bg, .sky-glow, .sky-lens { position: absolute; left: 0; top: 0; pointer-events: none; }
.sky-bg { width: 100%; }
.motion .sky-bg, .motion .sky-glow i { will-change: transform, opacity; }
.sky-bg canvas { position: absolute; left: 0; top: 0; }
.sky-glow { width: 0; height: 0; }
.sky-glow i { position: absolute; border-radius: 50%; opacity: 0; }
.glow-disc { background: radial-gradient(closest-side, rgba(157, 180, 232, 0.55), rgba(157, 180, 232, 0.16) 32%, rgba(157, 180, 232, 0.04) 62%, rgba(157, 180, 232, 0)); }
.glow-core { 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)); }
.sky-lens { border-radius: 50%; opacity: 0; /* darkens only, easing out to nothing: no grey rim */
  background: radial-gradient(closest-side, rgba(4, 6, 11, 0.9), rgba(4, 6, 11, 0.82) 40%, rgba(4, 6, 11, 0.6) 62%, rgba(4, 6, 11, 0.32) 80%, rgba(4, 6, 11, 0.1) 92%, rgba(4, 6, 11, 0)); }
.bar {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 8px var(--night), 0 0 18px var(--night);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px var(--gutter);
}
.mark {
  display: flex;
  flex-direction: column;
  font: 500 19px/1.3 var(--sans);
  letter-spacing: 0.02em;
}
.mark-sub { font-size: 12px; letter-spacing: 0; color: var(--star-2); }
.bar-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  margin-right: -4px;
  font: 500 14px/1 var(--sans);
  text-decoration: underline 1px var(--star-2);
  text-underline-offset: 6px;
}
.bar-link { transition: opacity var(--micro) var(--enter), text-decoration-color var(--micro) var(--enter); }
.bar-link:hover:not(:active) { text-decoration-color: var(--star); text-decoration-thickness: 2px; opacity: 0.85; } /* pressed: 0.55 */
.ends {
  position: relative;
  z-index: 2; /* above the headline's backdrop when both show (reduced motion) */
  display: flex;
  justify-content: space-between;
  padding: 48px var(--gutter) 0; /* phones: well clear of the brand in the bar, so the name does not read twice */
  font: 500 clamp(40px, 4.44vw, 84px)/1 var(--sans);
  letter-spacing: -0.02em;
  pointer-events: none;
}
.end { position: relative; display: block; white-space: nowrap; }
.end::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -55% -35%;
  background: radial-gradient(closest-side, rgba(4, 6, 11, 0.85), rgba(4, 6, 11, 0));
}
.end > span { display: inline-block; }
.focus { width: 100%; aspect-ratio: 1; flex: none; }
.headline {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter);
  font-size: 28px;
  line-height: 36px;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 0 3px rgba(4, 6, 11, 0.9), 0 0 10px var(--night), 0 0 28px var(--night);
}
.headline { padding-top: 8px; }
.headline::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -45% -6%;
  background: radial-gradient(closest-side, rgba(4, 6, 11, 0.9), rgba(4, 6, 11, 0.72) 55%, rgba(4, 6, 11, 0));
  transition: opacity 0.5s var(--enter);
}
.headline > span { display: block; }
.headline > span > span { display: inline-block; }
.cue {
  position: relative;
  z-index: 1;
  margin: auto auto 0;
  padding: 24px 0 20px;
  font: 500 13px/18px var(--sans);
  color: var(--star-2);
  text-align: center;
  text-shadow: 0 0 8px var(--night), 0 0 16px var(--night);
}
.cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  margin: 10px auto 0;
  background: linear-gradient(var(--star-2), transparent);
  transform-origin: top;
}

@media (min-width: 640px) {
  .mark { flex-direction: row; align-items: baseline; gap: 14px; font-size: 21px; }
  .mark-sub { font-size: 13px; }
}

@media (min-width: 960px) {
  .stage { display: block; height: 100vh; height: 100svh; min-height: 0; }
  .bar { position: absolute; inset: 0 0 auto; padding: 12px 32px; }
  .ends { position: absolute; inset: 0; padding: 0; }
  .end { position: absolute; top: 50%; transform: translateY(-50%); }
  .end-l { left: 32px; }
  .end-r { right: 32px; }
  .focus { position: absolute; inset: 0; width: auto; aspect-ratio: auto; }
  .headline {
    position: absolute;
    inset: 50% 0 auto;
    transform: translateY(-50%);
    padding: 0 32px;
    font-size: clamp(40px, 3.9vw, 56px);
    line-height: 1.3;
  }
  .headline > span:last-child { white-space: nowrap; }
  .headline::before { inset: -45% 12%; }
  .cue { position: absolute; inset: auto 0 0; margin: 0; padding-bottom: 28px; }
  .motion .sky { height: 200vh; }
  .motion .stage { position: sticky; top: 0; }
}

/* Webviews without aspect-ratio (older in-app browsers): fixed sizes for the two 4:5 and square boxes. */
@supports not (aspect-ratio: 1) {
  .photo { height: 275px; }
  @media (max-width: 959px) {
    .focus { height: 100vw; }
  }
  @media (max-width: 639px), (min-width: 960px) {
    .photo { height: 175px; }
  }
}

/* ---------- Table of contents ---------- */
.toc { display: none; }
@media (min-width: 1200px) {
  .toc {
    display: block;
    position: fixed;
    z-index: 10;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity var(--standard) var(--enter), visibility 0s;
  }
  .toc.off:not(:focus-within) {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--micro) ease-in;
  }
  .toc a {
    position: relative;
    display: flex;
    align-items: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
  }
  .toc a::before {
    content: "";
    width: 16px;
    height: 1px;
    background: var(--ink-2);
    transition: width var(--standard) var(--enter), background-color var(--standard) var(--enter);
  }
  .toc a[aria-current]::before { width: 28px; background: var(--ink); }
  .toc span {
    position: absolute;
    left: 38px;
    font: 500 13px/1.4 var(--sans);
    color: var(--ink-2);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--micro) ease-in, transform var(--micro) ease-in;
  }
  .toc a:hover span, .toc a:focus-visible span { opacity: 1; transform: none; transition-timing-function: var(--enter); }
  .toc a:hover::before { background: var(--ink); }
  /* Over the dark hero or band the list only shows when focused; switch it to the star palette. */
  .toc.off a::before { background: var(--star-2); }
  .toc.off a[aria-current]::before, .toc.off a:hover::before { background: var(--star); }
  .toc.off span { color: var(--star-2); }
  .toc.off :focus-visible { outline-color: var(--hydrangea); }
  /* Focused over a dark area: a solid night panel behind the list and its labels, and the left end
     word steps out, so labels and focus rings never sit on stars or glyphs. */
  .toc.off:focus-within {
    margin-left: -10px;
    padding: 10px 56px 10px 10px;
    border-radius: 10px;
    background: rgba(4, 6, 11, 0.96);
  }
  .toc-focus .end-l { visibility: hidden; }
}
@media (min-width: 1200px) and (pointer: coarse) {
  .toc a { height: 44px; width: 44px; }
}

/* ---------- Paper sections ---------- */
main { overflow-x: clip; }
main > section { padding-block: calc(var(--sec) / 2); }
main > section:first-child { padding-top: var(--sec); }
main > section:last-child { padding-bottom: var(--sec); }
section > h2 { margin-bottom: 32px; }
.prose { margin-top: var(--block); }
.prose p + p, .card-body p + p { margin-top: 1em; }

/* Intro. The statement breaks only
   between words: keep-all holds each run of characters, <wbr> marks where a long phrase may wrap. */
.intro { display: flex; flex-direction: column; gap: var(--block); }
.lede { font: 700 22px/36px var(--sans); font-feature-settings: "halt"; word-break: keep-all; }
.lede p { text-align: start; }
.lede p + p { margin-top: 16px; }

.qr { position: relative; flex: none; padding: 10px; background: #fff; }
.lock {
  --c: var(--accent);
  --l: 16px;
  --t: 2px;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
}

/* Services table, built as a description list; the header row is visual only. */
.table { --c1: 100%; }
.thead { display: none; }
.row { position: relative; isolation: isolate; padding: 16px 0 18px; border-bottom: 1px solid var(--ink); }
.row dt { font: 500 19px/27px var(--sans); }
.row dd { margin-top: 6px; }
.table dl { border-top: 1px solid var(--ink); }
.ico { display: none; } /* the service icons are for phones (mobile.css) */
@media (min-width: 640px) {
  .table { --c1: 34%; }
}
@media (min-width: 960px) {
  .table { --c1: 300px; } /* whole pixels: the second column, its pills and rules, land on 600 */
}
@media (min-width: 640px) {
  .thead, .row { display: grid; grid-template-columns: var(--c1) 1fr; align-items: baseline; }
  .thead { padding-bottom: 12px; font: 500 14px/20px var(--sans); color: var(--ink-2); }
  .thead span, .row dt, .row dd { padding-inline: 20px; }
  .row { padding: 16px 0 18px; }
  .row dt { font-size: 20px; line-height: 28px; }
  .row dd { margin-top: 0; }
}

/* Delivery band: the night sky returns and five steps light up along a track. */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block: calc(var(--sec) / 2);
  padding-block: var(--sec);
  background: var(--band);
  color: var(--star);
}
main > section.band { padding-block: var(--sec); }
@media (min-width: 960px) {
  main > section.band { display: grid; align-content: center; min-height: 641px; } /* the band carries real weight; 641 centres its content on whole pixels */
}
.band-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.principle { color: var(--star-2); }
.steps { --q: 1; position: relative; counter-reset: step; margin-block: 0 var(--block); } /* the H2's 32 already includes the numbers */
.steps::before, .steps::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 34.5px;
  bottom: 37.5px;
  width: 1px;
  background: var(--star-2);
}
.steps::after { background: var(--hydrangea); transform-origin: top; transform: scaleY(var(--q)); }
.steps li {
  position: relative;
  z-index: 1;
  counter-increment: step;
  height: 72px;
  padding: 22px 0 0 32px;
  font: 500 18px/25px var(--sans);
  color: var(--star);
  transition: color var(--page) var(--enter);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 32px;
  font: 500 14px/20px var(--sans);
  color: var(--hydrangea);
  transition: color var(--page) var(--enter);
}
.steps li::after {
  content: "";
  position: absolute;
  left: -0.5px;
  top: 29.5px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--hydrangea);
  border-radius: 50%;
  background: var(--hydrangea);
  box-shadow: 0 0 0 4px rgba(157, 180, 232, 0.16), 0 0 16px rgba(157, 180, 232, 0.55);
  transition: background-color var(--page) var(--enter), box-shadow var(--page) var(--enter);
}
@media (min-width: 960px) {
  .steps { display: grid; grid-template-columns: repeat(5, 1fr); }
  .steps::before, .steps::after { top: 30px; bottom: auto; left: 10%; right: 10%; width: auto; height: 1px; }
  .steps::after { transform-origin: left; transform: scaleX(var(--q)); }
  .steps li { height: auto; padding: 56px 8px 0; text-align: center; }
  .steps li::before { left: 0; right: 0; }
  .steps li::after { top: 25.5px; left: calc(50% - 5px); }
}

/* Cases: a lede, then each case under its own ink rule (the list closes with one), set apart by the rules and the
   space: its title in the item tier, then its text or its three names. */
.case-lede { margin-bottom: 32px; }
.case-list { border-bottom: 1px solid var(--ink); }
.case { position: relative; padding: 18px 0 24px; border-top: 1px solid var(--ink); }
.case-body { margin-top: 10px; }
.case-body p + p { margin-top: 1em; }
.names li { font: 500 var(--body)/var(--lh-body) var(--sans); }

/* Team */
.people { display: grid; gap: 48px; }
.photo {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 220px);
  aspect-ratio: 4 / 5;
  margin-bottom: 24px;
  border-radius: 2px;
  background: var(--wash);
  font: 500 13px/1.4 var(--sans);
  color: var(--ink-2);
}
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
}
.person h3 { font-size: 22px; }
.person .en { margin-left: 2px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 639px) {
  .person h3 { font-size: 19px; line-height: 1.4; }
  .person .en { font-size: 14px; }
}
.role { margin-top: 4px; font: 500 15px/22px var(--sans); color: var(--ink); }
.cred { margin-top: 2px; font: 500 14px/1.5 var(--sans); color: var(--ink-2); }
.cred span { white-space: nowrap; }
.who p { text-align: left; } /* labels, not running text */
@media (max-width: 639px) {
  .cred > span { display: block; } /* beside the photo the two degrees take a line each, without the bar */
  .cred .sep { display: none; }
}
.duty { margin-top: 12px; font-size: 16px; line-height: 30px; }
@media (min-width: 640px) {
  .people { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 639px), (min-width: 960px) {
  .person { display: grid; grid-template-columns: 140px 1fr; column-gap: 24px; align-content: start; }
  .person .photo { grid-column: 1; grid-row: 1; width: 100%; margin-bottom: 0; }
  .person .who { grid-column: 2; grid-row: 1; align-self: end; }
  .person .duty { grid-column: 1 / -1; margin-top: 20px; }
}

/* Closing contact */
.contact-grid { width: min(640px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.contact h2 > span { display: block; }
.asks { margin-block: 32px 24px; font-size: 20px; line-height: 34px; }
.asks li + li { margin-top: 18px; }
.contact-qr { margin-top: var(--block); }
.contact-qr .qr { width: max-content; }
.contact-qr img { width: 200px; height: 200px; }
.contact-qr figcaption { width: 0; min-width: 100%; margin-top: 16px; font-size: 16px; line-height: 30px; } /* wraps within the code's width */
@media (min-width: 960px) {
  .contact-qr figcaption { font-size: 17px; line-height: 31px; } /* the body's size, not 1px off it */
}
@media (min-width: 960px) {
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 42px; /* an 880 piece: text column 616, the code (222 with its frame) on the right */
    align-items: start; /* top-aligned, so the code's 1px frame never lands on a half pixel */
    width: min(880px, 100% - 2 * var(--gutter));
  }
  .contact-copy { display: contents; } /* its heading, questions and note become grid items */
  .contact-grid { grid-template-rows: auto auto 1fr; } /* the code's extra height goes below the note, not between */
  .contact h2 { grid-column: 1 / -1; }
  .asks, .contact-copy p { grid-column: 1; }
  .contact-qr { grid-column: 2; grid-row: 2 / span 2; margin-top: 40px; } /* frame top on the first question's glyph top */
}
@supports (margin-left: round(down, 1.5px, 1px)) {
  .contact-grid { margin-left: round(down, (100% - min(640px, 100% - 2 * var(--gutter))) / 2, 1px); margin-right: 0; }
  @media (min-width: 960px) {
    .contact-grid { margin-left: round(down, (100% - min(880px, 100% - 2 * var(--gutter))) / 2, 1px); }
  }
}

.foot { padding-block: 48px; background: var(--ink); color: var(--paper); text-align: center; font: 500 13px/18px var(--sans); }

/* ---------- Motion. Base rules above are the end state; .motion adds the start states. ---------- */
@media (min-width: 960px) {
  html:not(.motion) .ends { visibility: hidden; } /* the still end frame matches the moving one: headline only */
}
@media (min-width: 960px) {
  .motion .end-l { transform: translate(calc(var(--fade, 0) * -8px), -50%); opacity: calc(1 - var(--fade, 0)); }
  .motion .end-r { transform: translate(calc(var(--fade, 0) * 8px), -50%); opacity: calc(1 - var(--fade, 0)); }
  .motion .cue { opacity: calc(1 - var(--cue-out, 0)); }
}
/* Opening: black at 0 s, the bar there from the first paint; the far sky shows from 0.3 s and the nearer from 0.5 s as
   the core ignites (0.25 s). */
.motion .sky-bg canvas { opacity: 0; }
.motion.go .sky-bg canvas { animation: sky-in 0.5s var(--enter) 0.25s both; }
.motion.go .sky-bg canvas + canvas { animation: sky-in 0.5s var(--enter) 0.45s both; }
/* The cue waits for the opening to finish (filter, so the scroll-linked opacity stays free). */
.motion .cue { filter: opacity(0); }
.motion.go .cue { animation: cue-in 0.6s var(--enter) 3s both; }
@keyframes cue-in { from { filter: opacity(0); } to { filter: opacity(1); } }
@keyframes sky-in { from { opacity: 0; } to { opacity: 1; } }
/* Headline: hidden until the script has split it (shown anyway after 3 s if the script never runs), then it
   settles character by character on its own clock within 0.45 s, never half formed. */
.motion .headline:not(.split) { opacity: 0; animation: show 0s 3s forwards; }
@keyframes show { to { opacity: 1; } }
.motion .headline .ch {
  display: inline-block;
  opacity: 0;
  filter: blur(4px);
  transform: scale(1.06);
  transition: opacity 0.3s var(--enter), filter 0.3s var(--enter), transform 0.3s var(--enter);
  transition-delay: calc(var(--i) * 6ms);
}
.motion .title-on .headline .ch { opacity: 1; filter: none; transform: none; }
.motion .stage:not(.title-on) .headline::before { opacity: 0; }
.motion .end > span { opacity: 0; }
/* The end words have their own beat: as the swirl gathers in (2.6 s) they come into focus a glyph at a time, both ends
   together (知 and 引, then 序 and 力, 250 ms apart) (--since: how late the face arrived). */
.motion.go.type .end > span { animation: glyph 0.6s var(--enter) both; }
.motion.go.type .end > span:nth-child(1) { animation-delay: calc(2.6s - var(--since, 0s)); }
.motion.go.type .end > span:nth-child(2) { animation-delay: calc(2.85s - var(--since, 0s)); }
.motion.go .cue::after { animation: fall 2.4s ease-in-out 3.4s infinite; }
.sky.idle .cue::after { animation-play-state: paused; }
.stage { content-visibility: auto; } /* off screen it is skipped entirely (no layers to raster), yet stays focusable */
@keyframes glyph {
  from { opacity: 0; filter: blur(4px); transform: scale(1.04); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes fall {
  0% { transform: scaleY(0); opacity: 1; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* QR cards: corner marks close in and lock onto the code. */
.motion .lock { transition: transform 700ms var(--enter) 150ms, opacity 400ms var(--enter) 150ms; }
.motion .contact-grid:not(.locked) .lock { opacity: 0; transform: scale(1.3); }

/* Booth tour: the section on show is centred and its neighbours step back under a veil of their own ground
   (paper on paper, night on the band), so the band stays a dark band rather than a flat grey. */
.booth main > section { position: relative; }
.booth main > section::after {
  content: ""; position: absolute; inset: 0; z-index: 5; opacity: 0; pointer-events: none;
  background: rgba(244, 245, 242, 0.84);
}
.motion.booth main > section::after { transition: opacity 0.8s var(--enter); } /* reduced motion: switches at once */
.booth main > section.band::after { background: rgba(4, 6, 11, 0.55); }
.booth.tour main > section:not(.here)::after { opacity: 1; }

/* Delivery steps: unlit until the track reaches them. */
.motion .steps { --q: 0; }
.motion .steps li:not(.lit), .motion .steps li:not(.lit)::before { color: var(--star-2); }
.motion .steps li.lit { animation: step-on 0.7s var(--enter); }
@keyframes step-on { 40% { transform: scale(1.04); } }
.steps li { transform-origin: 4.5px 34.5px; } @media (min-width: 960px) { .steps li { transform-origin: 50% 30.5px; } } /* the pulse turns round the node */
.motion .steps li:not(.lit)::after { background: var(--band); box-shadow: 0 0 0 0 rgba(157, 180, 232, 0); }

/* Each block below plays one moment as it arrives (.in from sky.js), never tied to the scroll after that.
   Cases: the title inks, then the text comes up a paragraph at a time or the names ink in turn (--t: desktop waits
   for the rule over the case to draw, desk.css). */
.case { --t: 0s; }
.motion .case h3, .motion .case-body > * { transition: color 0.5s var(--enter), opacity 0.6s var(--enter), transform 0.6s var(--enter); transition-delay: var(--t); }
.motion .case-body > :first-child { transition-delay: calc(var(--t) + 0.15s); }
.motion .case-body > :nth-child(2) { transition-delay: calc(var(--t) + 0.3s); }
.motion .case-body > :nth-child(3) { transition-delay: calc(var(--t) + 0.45s); }
.motion .case:not(.in) h3, .motion .case:not(.in) .names li { color: var(--ink-2); }
.motion .case:not(.in) .case-body p { opacity: 0; }
/* Team: a sheet of paper lifts off each photo slot from the bottom up (its frame stays) as the slot settles from
   96%; side by side the second follows 0.25 s later. Names, roles and degrees are there throughout. */
.motion .photo { transition: transform 1s var(--enter); }
.motion .photo::before { content: ""; position: absolute; inset: 0; background: var(--paper); transform-origin: top; transition: transform 1s var(--draw); }
.motion .person:not(.in) .photo { transform: scale(0.96); }
.motion .person.in .photo::before { transform: scaleY(0); }
@media (min-width: 640px) {
  .motion .person + .person .photo, .motion .person + .person .photo::before { transition-delay: 0.25s; }
}
/* Contact: the heading comes up as the block arrives, the three questions are asked one at a time, and then the code
   locks: the page's last beat (sky.js). */
.motion .contact h2, .motion .asks li { transition: opacity 0.6s var(--enter), transform 0.6s var(--enter); }
.motion .contact-grid:not(.in) h2 { opacity: 0; transform: translateY(12px); }
.motion .asks li:not(.on) { opacity: 0; transform: translateX(-10px); }
