/* =========================================================
   Yuchron 予宙
   tokens · base · chrome · sections · responsive
   Motion uses transform / opacity only.
   ========================================================= */

:root {
  --bg: #04050a;
  --bg-rgb: 4, 5, 10;
  --ink: #edeff5;
  --ink-rgb: 237, 239, 245;
  --ink-2: rgba(var(--ink-rgb), .66);
  --ink-3: rgba(var(--ink-rgb), .42);
  --ink-4: rgba(var(--ink-rgb), .24);
  --line: rgba(var(--ink-rgb), .14);
  --line-2: rgba(var(--ink-rgb), .075);
  --ice: #a9c6ff;
  --gold: #d9c4a1;
  --gold-rgb: 217, 196, 161;
  --gold-hi: #f2e2c4;

  --sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif CN", "SimSun", serif;
  --serif-en: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", "Cascadia Code", Consolas, "Roboto Mono", monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(20px, 4.6vw, 76px);
  --top-h: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--ink-rgb), .2) transparent;
  scrollbar-gutter: stable;
}
html.is-loading, html.menu-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: inherit; font-size: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em, cite, i { font-style: normal; }
u { text-decoration: none; }
svg { display: block; }
::selection { background: rgba(var(--gold-rgb), .32); color: #fff; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 5px; border-radius: 2px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--ink-rgb), .16); border-radius: 8px; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.defs { position: absolute; }

/* line breaks are written into the copy: .br-m breaks on phones only, .only-d is dropped on phones */
.br-m { display: none; }

/* content that exists in one language only — the English page carries no Chinese */
html:lang(en) [data-only="zh"], html:lang(zh) [data-only="en"] { display: none !important; }

.wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 var(--pad); }

/* the one character that names the company */
.yu {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--gold-hi);
  text-shadow: 0 0 28px rgba(var(--gold-rgb), .5);
}
:lang(en) .yu { font-family: var(--serif-en); font-style: italic; }

/* ---------- reveal ---------- */
.js [data-r] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 1.2s var(--ease), transform 1.5s var(--ease);
  transition-delay: var(--d, calc(var(--i, 0) * 95ms));
}
.js .is-in [data-r], .js .is-in[data-r] { opacity: 1; transform: none; }

.rl { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.rl > span { display: block; }
.js .rl > span {
  transform: translate3d(0, 116%, 0);
  transition: transform 1.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js .is-in .rl > span { transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- backdrop ---------- */
#cosmos, .sky {
  position: fixed; left: 0; top: 0;
  width: 100%; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none;
}
#cosmos { display: block; opacity: 0; transition: opacity 1.4s ease; }
.gl-on #cosmos { opacity: 1; }
.no-gl #cosmos { display: none; }
.sky {
  display: none;
  background:
    radial-gradient(1100px 720px at 72% 26%, rgba(62, 84, 170, .2), transparent 62%),
    radial-gradient(900px 620px at 18% 82%, rgba(118, 86, 168, .12), transparent 62%),
    var(--bg);
  background-size: cover;
}
.no-gl .sky { display: block; }

.veil { position: fixed; left: 0; right: 0; z-index: 4; pointer-events: none; }
.veil--top {
  top: 0; height: 150px;
  background: linear-gradient(to bottom, rgba(var(--bg-rgb), .92), rgba(var(--bg-rgb), .62) 38%, rgba(var(--bg-rgb), .2) 72%, rgba(var(--bg-rgb), 0));
}
.veil--bottom {
  bottom: 0; height: 136px;
  background: linear-gradient(to top, rgba(var(--bg-rgb), .96), rgba(var(--bg-rgb), .86) 34%, rgba(var(--bg-rgb), .4) 68%, rgba(var(--bg-rgb), 0));
}

/* ---------- loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: opacity 1.2s ease .12s, visibility 0s linear 1.4s;
}
.is-ready .loader { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__core { position: relative; width: 96px; height: 96px; transition: transform 1.5s var(--ease), opacity .9s ease; }
.is-ready .loader__core { transform: scale(1.55); opacity: 0; }
.loader__ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.loader__track { stroke: var(--line); stroke-width: 1; }
.loader__arc { stroke: var(--gold-hi); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; padding-left: .2em;
  font-variant-numeric: tabular-nums;
}
.loader__cap {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .42em; color: var(--ink-3);
  transition: opacity .7s ease;
}
.is-ready .loader__cap { opacity: 0; }
.loader__cn { order: -1; font-family: var(--serif); font-size: 13px; letter-spacing: .5em; }

/* ---------- header ---------- */
.top {
  position: fixed; z-index: 20; left: 0; right: 0; top: 0;
  height: var(--top-h); padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.js .top, .js .hud { opacity: 0; transition: opacity 1.5s ease 2.4s; }
.is-ready .top, .is-ready .hud { opacity: 1; }

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand__mark {
  position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .85);
}
.brand__mark i { position: absolute; inset: 0; animation: spin 60s linear infinite; }
.brand__mark i::after {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 5px; height: 5px; margin: -2px 0 0 -2.5px; border-radius: 50%;
  background: var(--gold-hi); box-shadow: 0 0 8px 1px rgba(var(--gold-rgb), .85);
}
/* Chinese leads with 予宙, then the logotype; English shows the logotype alone */
.brand__wm { order: 2; width: 72px; height: 11.2px; fill: none; stroke: var(--ink-2); stroke-width: 8.5; }
.brand__cn {
  order: 1; font-family: var(--serif); font-size: 16px; line-height: 1; letter-spacing: .34em;
  color: var(--ink); padding-right: 8px; border-right: 1px solid var(--line);
}
html:lang(en) .brand__wm { width: 84px; height: 13px; stroke: currentColor; }

.nav { display: flex; gap: clamp(22px, 2.8vw, 44px); }
.nav a {
  position: relative; padding: 8px 0;
  font-size: 13px; letter-spacing: .16em; color: var(--ink-2);
  transition: color .4s ease;
}
:lang(en) .nav a { letter-spacing: .06em; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .7s var(--ease);
}
.nav a:hover, .nav a.is-current { color: var(--ink); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-current::after { background: var(--gold); }

.tools { display: flex; align-items: center; gap: 22px; }
.lang { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-4); }
.lang button { padding: 6px 2px; color: var(--ink-3); transition: color .3s ease; }
html:lang(zh) .lang button[data-lang="zh"] { font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; }
.lang button:hover, .lang button[aria-pressed="true"] { color: var(--ink); }
.clock {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

.burger { display: none; position: relative; width: 34px; height: 34px; margin-right: -6px; }
.burger i {
  position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: var(--ink);
  transition: transform .6s var(--ease);
}
.burger i:first-child { transform: translateY(-4px); }
.burger i:last-child { transform: translateY(4px); }
.menu-open .burger i:first-child { transform: rotate(45deg); }
.menu-open .burger i:last-child { transform: rotate(-45deg); }

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 18;
  background: rgba(var(--bg-rgb), .965);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line-2);
  font-size: 30px; font-weight: 200; letter-spacing: .2em;
  opacity: 0; transform: translate3d(0, 18px, 0);
  transition: opacity .8s var(--ease), transform 1s var(--ease);
}
:lang(en) .menu a { letter-spacing: 0; }
.menu-open .menu a { opacity: 1; transform: none; }
.menu-open .menu a:nth-child(2) { transition-delay: .06s; }
.menu-open .menu a:nth-child(3) { transition-delay: .12s; }
.menu-open .menu a:nth-child(4) { transition-delay: .18s; }
.menu small { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-3); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; z-index: 15; left: var(--pad); right: var(--pad); bottom: 28px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3); pointer-events: none;
}
.hud__sec { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.hud__sec b { font-weight: 400; color: var(--gold); }
.hud__sec i { width: 22px; height: 1px; background: var(--line); }
.hud__sec span { color: var(--ink-2); }
.hud__cue {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .36em; padding-left: .36em;
  opacity: 0; transition: opacity .8s ease;
}
.at-top .hud__cue { opacity: 1; }
.hud__cue i { position: relative; display: block; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.hud__cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 42%;
  background: var(--gold-hi); animation: cue 2.6s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateY(-110%); } 100% { transform: translateY(260%); } }
.hud__pct { justify-self: end; font-variant-numeric: tabular-nums; }
.hud__pct u { margin-left: .4em; color: var(--ink-4); }
.hud__rail {
  position: fixed; right: calc(var(--pad) * .45); top: 50%;
  width: 1px; height: 132px; margin-top: -66px; background: var(--line);
}
.hud__rail i { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); }

/* ---------- shared type ---------- */
main { position: relative; z-index: 2; }

.label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-3);
}
.label::before { content: ""; width: 30px; height: 1px; background: var(--gold); }
.label b { font-weight: 400; color: var(--gold); }
.label .cn { font-family: var(--serif); font-size: 16px; letter-spacing: .14em; color: var(--ink); text-transform: none; }
html:lang(en) .label .cn { display: none; }

.quote {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 20px;
  margin-top: clamp(26px, 4.6vh, 48px);
}
.quote p { font-family: var(--serif); font-size: clamp(19px, 1.62vw, 26px); letter-spacing: .34em; color: var(--ink); }
.quote p { text-wrap: pretty; }
.quote cite { font-size: 12px; letter-spacing: .22em; color: var(--ink-3); }
:lang(en) .quote p { font-family: var(--serif-en); font-style: italic; font-size: clamp(17px, 1.42vw, 22px); letter-spacing: 0; }
:lang(en) .quote cite { letter-spacing: .08em; }

.title {
  margin-top: clamp(18px, 3vh, 30px);
  font-weight: 300; font-size: clamp(27px, 3.15vw, 54px); line-height: 1.3; letter-spacing: .06em;
}
:lang(en) .title { font-weight: 200; line-height: 1.1; letter-spacing: -.022em; }

.lead {
  margin-top: clamp(20px, 3.2vh, 34px);
  max-width: 31em;
  font-size: clamp(15px, 1.1vw, 17.5px); line-height: 2; font-weight: 300; letter-spacing: .05em;
  color: var(--ink-2); text-wrap: pretty;
}
:lang(en) .lead { max-width: 34em; line-height: 1.72; letter-spacing: .004em; }

.mega { font-weight: 200; font-size: clamp(38px, 7vw, 124px); line-height: 1.2; letter-spacing: .16em; margin-right: -.16em; }
.mega .yu { font-size: 1.06em; }
:lang(en) .mega { font-size: clamp(38px, 6.6vw, 116px); line-height: 1.05; letter-spacing: -.032em; margin-right: 0; }

.data { margin-top: clamp(28px, 4.6vh, 50px); border-top: 1px solid var(--line); }
.data__head {
  padding: 15px 0 7px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3);
}
:lang(zh) .data__head { letter-spacing: .34em; }
.data__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 11px 0; border-bottom: 1px solid var(--line-2);
}
.data__k { font-size: 13px; letter-spacing: .08em; color: var(--ink-2); }
:lang(en) .data__k { letter-spacing: .01em; }
.data__v {
  font-family: var(--mono); font-size: clamp(15px, 1.22vw, 19px); letter-spacing: .02em;
  font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink);
}
.data__v u { margin-left: .6em; font-size: .64em; letter-spacing: .16em; color: var(--ink-3); }
.data__note { padding-top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--ink-3); }
/* a heading with a quiet qualifier on the right */
.data__head--split { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.data__head--split span { white-space: nowrap; }
.data__head--split span + span { color: var(--ink-4); text-align: right; }
/* the two tables beside the pinned scenes sit on tighter rows */
.data--tight { margin-top: clamp(22px, 3.6vh, 38px); }
.data--tight .data__row { padding: 8px 0; }
/* 01 · distances: the units get a column of their own, so the figures line up */
.data--cols { --unit: 3.5em; }
html:lang(en) .data--cols { --unit: 14.6em; }
.data--cols .data__v u { display: inline-block; min-width: var(--unit); text-align: left; }
:lang(en) .data__note { letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 00 hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero { --hero-top: 17vh; }                     /* 予宙 is taller than the logotype, so it starts a little lower */
html:lang(en) .hero { --hero-top: 14vh; }
.hero__in { display: flex; flex-direction: column; align-items: center; padding: var(--hero-top) var(--pad) 0; }
.hero__brand { display: flex; flex-direction: column; align-items: center; }

/* Chinese (the default below): 予宙 large, the YUCHRON logotype small beneath it.
   English: the logotype large, its pronunciation small beneath it. */
.hero__cn { --d: .45s; font-family: var(--serif); font-size: clamp(76px, min(10.2vw, 16.4vh), 148px); line-height: 1; }
.hero__cn span { display: block; letter-spacing: .3em; margin-right: -.3em; }
.hero__cn .yu { text-shadow: 0 0 .42em rgba(var(--gold-rgb), .4); }

.wm-box {
  --wm-w: clamp(150px, 13.4vw, 194px); --wm-d: 1s; --wm-gap: clamp(16px, 2.2vw, 30px);
  position: relative; display: block; width: var(--wm-w); margin-top: clamp(28px, 4.6vh, 48px);
}
.wm-box::before, .wm-box::after {
  content: ""; position: absolute; top: 50%; right: calc(100% + var(--wm-gap));
  width: clamp(34px, 6.5vw, 104px); height: 1px;
  background: linear-gradient(90deg, rgba(var(--ink-rgb), 0), rgba(var(--ink-rgb), .4));
}
.wm-box::after { right: auto; left: calc(100% + var(--wm-gap)); transform: scaleX(-1); }
.js .wm-box::before, .js .wm-box::after { opacity: 0; transition: opacity 1.6s ease 1.5s; }
.is-ready .wm-box::before, .is-ready .wm-box::after { opacity: 1; }
.wm { width: 100%; height: auto; overflow: visible; fill: none; stroke: var(--ink); stroke-width: var(--sw, 1.5); stroke-miterlimit: 8; }
.js .wm--draw > path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.1s var(--ease-io);
  transition-delay: calc(var(--i) * 85ms + var(--wm-d));
}
.is-ready .wm--draw > path { stroke-dashoffset: 0; }
.wm-orbit { position: absolute; left: 78.133%; top: 50%; width: 0; height: 0; animation: spin 60s linear infinite; }
.js .wm-orbit { opacity: 0; transition: opacity 1.4s ease calc(var(--wm-d) + 2.05s); }
.is-ready .wm-orbit { opacity: 1; }
.wm-orbit i {
  position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-hi); box-shadow: 0 0 8px 1px rgba(var(--gold-rgb), .8);
  transform: translateY(calc(var(--wm-w) / -15));
}

.hero__say {
  --d: 1.25s;
  display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.2vw, 30px);
  margin-top: clamp(22px, 3.4vh, 36px);
  font-size: clamp(13px, 1.04vw, 15.5px); line-height: 1; letter-spacing: .16em; color: var(--ink-2);
}
.hero__say span { margin-right: -.16em; }
.hero__say::before, .hero__say::after {
  content: ""; width: clamp(34px, 6.5vw, 104px); height: 1px;
  background: linear-gradient(90deg, rgba(var(--ink-rgb), 0), rgba(var(--ink-rgb), .4));
}
.hero__say::after { transform: scaleX(-1); }
html:lang(en) .wm-box { --wm-w: min(58vw, 760px); --wm-d: .15s; margin-top: 0; }
html:lang(en) .wm-box::before, html:lang(en) .wm-box::after { content: none; }
html:lang(en) .wm-orbit i {
  left: -3.5px; top: -3.5px; width: 7px; height: 7px;
  box-shadow: 0 0 14px 2px rgba(var(--gold-rgb), .8);
}

/* two parallel lines under the name: 宇宙 — what it is; 予宙 — what it does */
.hero__defs {
  --dl: 1em; --dw: 2.4em; --dr: 1.1em;            /* the rule between a name and its definition */
  display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline;
  row-gap: clamp(8px, 1.5vh, 16px);
  margin: clamp(34px, 5.8vh, 62px) 0 0;
  font-weight: 300; font-size: clamp(15.5px, 1.5vw, 22px); line-height: 1.5; letter-spacing: .24em;
  text-align: left;
}
.hero__defs dt { justify-self: end; font-family: var(--serif); font-size: 1.14em; letter-spacing: .3em; margin-right: -.3em; }
.hero__defs dd {
  margin: 0 -.24em 0 0; color: rgba(var(--ink-rgb), .84);
  /* a long definition wraps under its own first letter, not under the rule */
  padding-left: calc(var(--dl) + var(--dw) + var(--dr)); text-indent: calc(0px - var(--dl) - var(--dw) - var(--dr));
}
.hero__defs dd::before {
  content: ""; display: inline-block; vertical-align: middle; position: relative; top: -.12em;
  width: var(--dw); height: 1px; margin: 0 var(--dr) 0 var(--dl); background: var(--ink-4);
}
.hero__defs dt:nth-of-type(1), .hero__defs dd:nth-of-type(1) { --d: 1.7s; }
.hero__defs dt:nth-of-type(2), .hero__defs dd:nth-of-type(2) { --d: 1.95s; }
html:lang(en) .hero__defs { --dl: .8em; --dw: 1.9em; --dr: .85em; font-size: clamp(15.5px, 1.46vw, 21.5px); letter-spacing: .012em; }
html:lang(en) .hero__defs dt { font-family: var(--serif-en); font-size: 1.1em; letter-spacing: .01em; margin-right: 0; }
html:lang(en) .hero__defs dd { margin-right: 0; }
html:lang(en) .hero__defs dd::before { top: -.02em; }

/* ---------- pinned stages ---------- */
.pin { position: relative; height: calc(var(--len) * 100vh); }
.pin__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage-grid {
  position: relative; height: 100%;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px);
  align-items: center;
}
.copy { grid-column: 1 / span 5; max-width: 560px; padding-top: 3vh; }
.copy--r { grid-column: 8 / span 5; }

/* ---------- 03 scale ---------- */
.scale__head { position: absolute; left: 0; right: 0; top: calc(var(--top-h) + 6.5vh); }
.scale__head .title { margin-top: clamp(20px, 3.4vh, 34px); }
.scale__head .lead { margin-top: clamp(14px, 2.2vh, 24px); }

.ruler { position: absolute; left: 0; right: 0; top: 66%; height: 1px; }
.ruler__reticle {
  position: absolute; left: 50%; top: -118px; width: 1px; height: 236px; margin-left: -.5px;
  background: linear-gradient(to bottom, rgba(var(--gold-rgb), 0), rgba(var(--gold-rgb), .95) 34%, rgba(var(--gold-rgb), .95) 66%, rgba(var(--gold-rgb), 0));
}
.js .ruler__reticle { transform: scaleY(0); transition: transform 1.6s var(--ease) .3s; }
.js .ruler.is-in .ruler__reticle { transform: none; }
.ruler__track {
  --gap: clamp(250px, 29vw, 440px);
  position: absolute; left: 50%; top: 0; height: 1px;
  display: flex; will-change: transform;
}
.js .ruler__track { opacity: 0; transition: opacity 1.4s ease .2s; }
.js .ruler.is-in .ruler__track { opacity: 1; }
.ruler__track::before {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: calc(var(--gap) * 7);
  background: rgba(var(--ink-rgb), .42);
}
.ruler__track::after {
  content: ""; position: absolute; left: calc(var(--gap) * 7); top: 0; height: 1px; width: calc(var(--gap) * 3 + 70vw);
  background: repeating-linear-gradient(90deg, rgba(var(--ink-rgb), .42) 0 6px, transparent 6px 14px);
  -webkit-mask: linear-gradient(90deg, #000 60%, transparent);
  mask: linear-gradient(90deg, #000 60%, transparent);
}
.ms { position: relative; flex: none; width: var(--gap); height: 1px; opacity: .3; transition: opacity .8s ease; }
.ms.is-near { opacity: 1; }
.ms::before { content: ""; position: absolute; left: 0; top: -10px; width: 1px; height: 21px; background: var(--ink); }
.ms::after {
  content: ""; position: absolute; left: 0; top: -5px; width: 100%; height: 5px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(var(--gap) / 10 - 1px), rgba(var(--ink-rgb), .55) calc(var(--gap) / 10 - 1px) calc(var(--gap) / 10));
}
.ms__v {
  position: absolute; left: 20px; bottom: 28px; white-space: nowrap;
  font-weight: 200; font-size: clamp(34px, 4.5vw, 76px); line-height: 1; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  transform-origin: left bottom; transform: scale(.8); transition: transform 1s var(--ease);
}
.ms.is-near .ms__v { transform: none; }
.ms__v small { margin-left: .5em; font-size: .32em; font-weight: 300; letter-spacing: .16em; color: var(--ink-2); }
:lang(en) .ms__v small { letter-spacing: .04em; }
.ms__v sup { position: relative; top: -.8em; margin-left: .05em; font-size: .46em; vertical-align: baseline; }
.ms__c { position: absolute; left: 20px; top: 26px; white-space: nowrap; font-size: 14px; letter-spacing: .16em; }
:lang(en) .ms__c { letter-spacing: .02em; }
.ms__s { position: absolute; left: 20px; top: 58px; white-space: nowrap; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3); }
.ms__s sup { position: relative; top: -.5em; font-size: .82em; vertical-align: baseline; }
.ms--now::before { top: -15px; height: 31px; background: var(--gold-hi); box-shadow: 0 0 12px rgba(var(--gold-rgb), .9); }
.ms__tag {
  position: absolute; left: 20px; bottom: calc(28px + clamp(34px, 4.5vw, 76px) + 18px); white-space: nowrap;
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.ms__tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 8px rgba(var(--gold-rgb), .9); }
.ms--future::after { opacity: .5; }
.ms--inf::after { display: none; }
.ms--inf::before { background: var(--gold-hi); }
.ms--inf .ms__v { bottom: 6px; font-weight: 100; font-size: clamp(96px, 12vw, 200px); color: var(--gold-hi); text-shadow: 0 0 40px rgba(var(--gold-rgb), .45); }
.ms--inf .ms__c { color: var(--gold-hi); }
.scale__note {
  position: absolute; right: var(--pad); bottom: 74px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-4);
}

/* ---------- 04 give ---------- */
.give__label { position: absolute; left: 0; right: 0; top: calc(var(--top-h) + 6.5vh); }
.js .give__label { opacity: 0; transition: opacity .9s ease; }
.js .give[data-beat="1"] .give__label, .js .give[data-beat="2"] .give__label { opacity: 1; }

.beat {
  position: absolute; inset: 0; padding: 0 var(--pad) 13vh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
}
.js .beat {
  opacity: 0; visibility: hidden; transform: translate3d(0, 24px, 0);
  transition: opacity .8s ease, transform 1.3s var(--ease), visibility 0s linear .8s;
}
.js .give[data-beat="1"] .beat--inf, .js .give[data-beat="2"] .beat--name {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 1.1s ease .2s, transform 1.5s var(--ease) .2s, visibility 0s linear 0s;
}
.beat .lead { margin-top: clamp(18px, 3vh, 32px); max-width: 34em; }

.naming { position: absolute; inset: 0; pointer-events: none; }
.naming__glyphs { display: none; }
.py {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-family: var(--mono); font-size: clamp(12px, 1.02vw, 15px); letter-spacing: .34em; padding-left: .34em;
  color: var(--ink-2);
  transform: translate3d(-200vw, 0, 0); will-change: transform;
}
.py::before { content: ""; position: absolute; left: 50%; top: -16px; width: 1px; height: 9px; background: var(--ink-4); }
/* English: the labels are glosses — you, time — and appear once YOU TIME has become YUCHRON */
html:lang(en) .py {
  font-family: var(--serif-en); font-style: italic; font-size: clamp(15px, 1.3vw, 19px);
  letter-spacing: .03em; padding-left: 0; color: var(--ink);
}
html:lang(en) .py--l { color: var(--gold-hi); }
html:lang(en).js .py { opacity: 0; transition: opacity 1s ease; }
html:lang(en).js .give.is-given .py { opacity: 1; transition-delay: .7s; }

.naming__cap { position: relative; width: 100%; height: 2.4em; font-size: clamp(15px, 1.32vw, 21px); letter-spacing: .16em; }
:lang(en) .naming__cap { letter-spacing: .02em; }
.cap { position: absolute; left: 0; right: 0; top: 0; transition: opacity .9s ease, transform 1.2s var(--ease); }
.cap b { font-family: var(--serif); font-weight: 400; font-size: 1.24em; letter-spacing: .3em; }
.cap i { margin: 0 .9em 0 .6em; letter-spacing: 0; color: var(--ink-4); }
.cap > .yu { font-size: 1.1em; }
html:lang(en) .cap b { font: inherit; letter-spacing: inherit; }
.js .cap--b { opacity: 0; transform: translate3d(0, 16px, 0); }
.js .give.is-given .cap--a { opacity: 0; transform: translate3d(0, -16px, 0); }
.js .give.is-given .cap--b { opacity: 1; transform: none; transition-delay: .25s; }
.naming__foot { margin-top: clamp(10px, 1.8vh, 20px); max-width: 44em; font-size: 13px; letter-spacing: .12em; color: var(--ink-3); text-wrap: pretty; }
:lang(en) .naming__foot { letter-spacing: .02em; }
.js .naming__foot { opacity: 0; transition: opacity 1.1s ease; }
.js .give.is-given .naming__foot { opacity: 1; transition-delay: .6s; }

/* static fallback for the naming moment (no WebGL, or no way to sample letter shapes) */
.no-gl .naming__glyphs, .no-glyph .naming__glyphs {
  display: flex; justify-content: center; gap: .22em;
  position: absolute; left: 0; right: 0; top: 46%; transform: translateY(-50%);
  font-family: var(--serif); font-weight: 700; font-size: clamp(110px, 22vw, 300px); line-height: 1;
}
.g { display: inline-block; position: relative; }
.g b { display: block; font-weight: inherit; transition: opacity 1.2s ease, transform 1.5s var(--ease); }
.g--swap b:first-child { color: var(--ice); }
.g--swap b:last-child { position: absolute; left: 0; top: 0; opacity: 0; transform: translate3d(0, .1em, 0); color: var(--gold-hi); }
.give.is-given .g--swap b:first-child { opacity: 0; transform: translate3d(0, -.1em, 0); }
.give.is-given .g--swap b:last-child { opacity: 1; transform: none; }
html:lang(en) .naming__glyphs { gap: .36em; font-family: var(--sans); font-weight: 200; font-size: clamp(44px, 12vw, 164px); letter-spacing: .1em; }
/* (English fallback) each new word sits centred over the one it replaces */
html:lang(en) .g--swap b:last-child { left: 50%; white-space: nowrap; transform: translate3d(-50%, .1em, 0); }
html:lang(en) .give.is-given .g--swap b:last-child { transform: translate3d(-50%, 0, 0); }
.g--plain b { color: var(--ink) !important; }

/* ---------- 05 about ---------- */
.about {
  position: relative; min-height: 100vh; min-height: 100svh; padding: 18vh 0 15vh;
  display: flex; align-items: center;
}
.about__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 28px);
  align-items: center;
}
.about__copy { grid-column: 1 / span 6; }
.about__copy .title { margin-top: clamp(28px, 4.4vh, 46px); }

/* The name, taken apart. Gold follows the first half all the way down.
   Chinese:  予 → YU → 给予 · to give     宙 → CHRON → 时间 · time
   English:  the logotype on top, each part read out beneath it — YU, you · CHRON, time */
.namegraph {
  grid-column: 8 / span 5;
  padding: clamp(38px, 4vw, 62px) clamp(26px, 2.8vw, 44px) clamp(34px, 3.6vw, 56px);
  background: linear-gradient(180deg, rgba(11, 14, 24, .9), rgba(6, 8, 14, .86));
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .1); border-radius: 3px;
}
.ng { display: flex; flex-direction: column; width: min(100%, 352px); margin: 0 auto; }
/* every row uses the logotype's own proportions: YU · gap · CHRON */
.ng__row { display: grid; grid-template-columns: minmax(0, 180fr) minmax(0, 30fr) minmax(0, 524fr); justify-items: center; }
.ng__row > :nth-child(2) { grid-column: 3; }
.ng__han { align-items: end; }
.ng__c { display: flex; flex-direction: column; align-items: center; gap: 15px; white-space: nowrap; }
.ng__c b { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 6.3vw, 94px); line-height: 1; }
.ng__c .yu { text-shadow: 0 0 .36em rgba(var(--gold-rgb), .45); }
.ng__c small { font-family: var(--mono); font-size: 11.5px; line-height: 1; letter-spacing: .34em; padding-left: .34em; color: var(--ink-3); }
.ng__brk { margin-top: 12px; padding-top: 18px; }
.ng__brk i {
  position: relative; justify-self: stretch; height: 8px;
  border: 1px solid rgba(var(--ink-rgb), .3); border-bottom: 0;
}
.ng__brk i::before {
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 18px; margin-left: -.5px;
  background: rgba(var(--ink-rgb), .3);
}
.ng__brk i:first-child { border-color: rgba(var(--gold-rgb), .62); }
.ng__brk i:first-child::before { background: rgba(var(--gold-rgb), .62); }
.ng__wm { width: 100%; height: auto; margin-top: 13px; overflow: visible; fill: none; stroke: var(--ink); stroke-miterlimit: 8; }
.ng__wm path { stroke-width: 1.25px; vector-effect: non-scaling-stroke; }
.ng__wm .ng__yu { stroke: var(--gold-hi); }
.ng__gloss { margin-top: 24px; }
.ng__gloss span {
  display: flex; flex-direction: column; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 14px; line-height: 1.2; letter-spacing: .3em; text-indent: .3em; color: var(--ink-2);
}
.ng__gloss i { font-family: var(--serif-en); font-style: italic; font-size: 14px; letter-spacing: .02em; text-indent: 0; color: var(--ink-3); }
.ng__gloss span:first-child { color: var(--gold); }
.ng__gloss span:first-child i { color: rgba(var(--gold-rgb), .62); }

html:lang(en) .ng { width: 100%; }
html:lang(en) .ng__wm { order: 1; margin-top: 0; }
html:lang(en) .ng__brk { order: 2; margin-top: 14px; padding: 0 0 18px; }
html:lang(en) .ng__brk i { transform: scaleY(-1); }
html:lang(en) .ng__gloss { order: 3; margin-top: 14px; }
html:lang(en) .ng__gloss span {
  gap: 13px;
  font-family: var(--serif-en); font-style: italic; font-size: clamp(21px, 2vw, 29px); line-height: 1;
  letter-spacing: 0; text-indent: 0; color: var(--ink);
}
html:lang(en) .ng__gloss span:first-child { color: var(--gold-hi); }
html:lang(en) .ng__gloss i {
  font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
}
html:lang(en) .ng__gloss span:first-child i { color: rgba(var(--gold-rgb), .62); }

/* ---------- 06 contact ---------- */
.contact {
  position: relative; min-height: 100vh; min-height: 100svh; padding-top: 24vh;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mega--s { margin-top: clamp(28px, 4.4vh, 46px); margin-right: 0; font-size: clamp(34px, 5.4vw, 92px); line-height: 1.3; letter-spacing: .1em; }
:lang(en) .mega--s { font-size: clamp(34px, 5.4vw, 92px); line-height: 1.08; }
.mail {
  position: relative; display: inline-flex; align-items: baseline; gap: 14px;
  margin-top: clamp(36px, 6.4vh, 68px); padding-bottom: 12px;
  font-weight: 200; font-size: clamp(20px, 2.2vw, 34px); letter-spacing: .04em;
}
.mail::before, .mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; }
.mail::before { background: var(--line); }
.mail::after { background: var(--gold-hi); transform: scaleX(0); transform-origin: right; transition: transform .9s var(--ease); }
.mail:hover::after { transform: scaleX(1); transform-origin: left; }
.mail i { color: var(--gold); transition: transform .7s var(--ease); }
.mail:hover i { transform: translate3d(4px, -4px, 0); }

.foot {
  position: relative; margin-top: 10vh; padding-top: 26px; padding-bottom: 118px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3);
}
.foot::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 0; height: 1px; background: var(--line-2); }
.foot [lang="zh"] { font-family: var(--serif); font-size: 13px; letter-spacing: .3em; text-transform: none; }
.foot a { transition: color .4s ease; }
.foot a:hover { color: var(--ink); }

/* ---------- language swap ---------- */
main, .menu nav { transition: opacity .3s ease; }
.is-swapping main, .is-swapping .menu nav, .is-swapping .nav { opacity: 0; }
.nav { transition: opacity .3s ease; }

/* ---------- debug ---------- */
.debug {
  position: fixed; z-index: 200; left: 50%; top: 10px; transform: translateX(-50%);
  padding: 6px 12px; background: rgba(0, 0, 0, .7); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #9fe6b0; white-space: pre; pointer-events: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .clock { display: none; }
  .copy { grid-column: 1 / span 6; }
  .copy--r { grid-column: 7 / span 6; }
  .about__copy { grid-column: 1 / span 6; }
  .namegraph { grid-column: 7 / span 6; }
}

@media (max-width: 860px) {
  :root { --top-h: 64px; }
  .nav { display: none; }
  .burger { display: block; }
  .br-m { display: inline; }
  .only-d { display: none; }
  /* (English) keep the attribution on the quotation's last line, and the table heading on one line */
  html:lang(en) .quote { display: block; }
  html:lang(en) .quote p { display: inline; }
  html:lang(en) .quote cite { margin-left: 12px; white-space: nowrap; }
  html:lang(en) .data__head--split { letter-spacing: .12em; }
  html:lang(en) .data__note { letter-spacing: .04em; }
  html:lang(en) .data--cols { --unit: 0px; }
  html:lang(en) .data--cols .data__v u { letter-spacing: .08em; }
  .data--tight .data__row { padding: 6px 0; }
  .brand { gap: 11px; }
  .brand__cn { font-size: 15px; letter-spacing: .22em; padding-right: 7px; }
  .brand__wm { width: 58px; height: 9px; }
  html:lang(en) .brand__wm { width: 74px; height: 11.5px; }
  .tools { gap: 14px; }

  .hud { bottom: 20px; }
  .hud__sec, .hud__pct, .hud__rail { display: none; }
  .hud { grid-template-columns: 1fr; justify-items: center; }
  .veil--bottom { height: 80px; }

  .hero__in { padding-top: 13vh; }
  .hero__cn { font-size: clamp(84px, 25vw, 120px); }
  .wm-box { --wm-w: 150px; }
  html:lang(en) .wm-box { --wm-w: 78vw; }
  .hero__defs { --dl: .7em; --dw: 1.7em; --dr: .8em; font-size: 15px; letter-spacing: .16em; }
  .hero__defs dt { letter-spacing: .24em; margin-right: -.24em; }
  .hero__defs dd { margin-right: -.16em; }
  html:lang(en) .hero__defs { --dl: .6em; --dw: 1.2em; --dr: .6em; font-size: 13.5px; letter-spacing: 0; }

  .stage-grid { align-items: end; }
  .copy, .copy--r { grid-column: 1 / -1; max-width: none; padding: 0 0 max(8.5vh, 62px); }
  .pin__stage::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 74%; pointer-events: none;
    background: linear-gradient(to top, rgba(var(--bg-rgb), .92) 34%, rgba(var(--bg-rgb), .55) 66%, rgba(var(--bg-rgb), 0));
  }
  .give .pin__stage::before, .scale .pin__stage::before { height: 46%; }
  .quote { margin-top: 20px; }
  .title { font-size: clamp(26px, 7.4vw, 40px); margin-top: 14px; }
  .lead { margin-top: 14px; font-size: 14px; line-height: 1.85; }
  .copy .lead, .scale__head .lead { display: none; }
  .data { margin-top: 20px; }
  .data__row { padding: 8px 0; }
  .data__head { padding: 12px 0 4px; }
  .data__k { font-size: 12px; }

  .scale__head { top: calc(var(--top-h) + 3vh); }
  .ruler { top: 68%; }
  .ruler__track { --gap: 66vw; }
  .ms__v { font-size: clamp(34px, 10vw, 52px); }
  .ms__tag { bottom: calc(28px + clamp(34px, 10vw, 52px) + 14px); }
  .ms--inf .ms__v { font-size: clamp(96px, 30vw, 150px); }
  .scale__note { display: none; }

  .give__label { top: calc(var(--top-h) + 3vh); }
  .beat { padding-bottom: max(9vh, 66px); }
  .mega { font-size: clamp(32px, 9.6vw, 62px); letter-spacing: .08em; margin-right: -.08em; }
  :lang(en) .mega { font-size: clamp(34px, 10.4vw, 64px); }
  .naming__cap { height: 3.6em; font-size: 14px; letter-spacing: .08em; }
  .cap i { margin: 0 .5em 0 .3em; }
  .naming__foot { font-size: 12px; letter-spacing: .06em; }

  .about { display: block; min-height: 0; padding: 20vh 0 10vh; }
  .about__grid { display: block; }
  .namegraph { margin-top: 44px; padding: 40px 22px 36px; }
  .ng__c b { font-size: clamp(60px, 18vw, 84px); }

  .contact { padding-top: 20vh; }
  /* the galaxy ends up behind the footer on a phone: quieten it there */
  .contact::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 300px; z-index: -1; pointer-events: none;
    background: linear-gradient(to top, rgba(var(--bg-rgb), .9) 32%, rgba(var(--bg-rgb), 0));
  }
  .mega--s { font-size: clamp(30px, 8.6vw, 50px); letter-spacing: .06em; }
  .foot { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 104px; margin-top: 10vh; }
}

/* ---------- short viewports (small laptops) ---------- */
@media (min-width: 861px) and (max-height: 780px) {
  .quote { margin-top: 20px; }
  .title { margin-top: 12px; font-size: clamp(25px, 2.75vw, 44px); }
  .lead { margin-top: 14px; line-height: 1.85; }
  .data { margin-top: 20px; }
  .data__row { padding: 8px 0; }
  .data__head { padding: 12px 0 4px; }
  .scale__head, .give__label { top: calc(var(--top-h) + 3vh); }
  .hero__in { padding-top: 15vh; }
  .hero__defs { margin-top: 30px; }
}
@media (min-width: 861px) and (max-height: 640px) {
  .copy .lead { display: none; }
  html:lang(en) .wm-box { --wm-w: min(46vw, 600px); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-r], .js .rl > span, .js .beat, .cap, .ms__v { transform: none !important; }
  .js [data-r] { transition-duration: .6s; }
  .hud__cue i::after { animation: none; }
}
.reduced .js [data-r], .reduced.js [data-r], .reduced.js .rl > span, .reduced.js .beat { transform: none !important; }
