*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-loading { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw + 8px, 19px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--gold-300); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 4px; }
.sec--cream :focus-visible { outline-color: var(--ink-900); }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -64px; z-index: 3000; background: var(--gold-300); color: var(--ink-900); padding: 12px 18px; border-radius: 999px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; transition: top .25s var(--ease); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sec { position: relative; padding-block: var(--sec-y); }

/* ───────────── Type system ───────────── */
.mono { font-family: var(--f-mono); font-weight: 400; font-size: 12px; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; }
.kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-300); display: inline-flex; gap: .4em; }
.kicker::before { content: "("; opacity: .6; }
.kicker::after { content: ")"; opacity: .6; }
.sec--cream .kicker { color: var(--ink-600); }

.title-xl, .title-l, .title-m {
  font-family: var(--f-cond);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--white);
  line-height: .92;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.title-xl { font-size: clamp(3rem, 9.6vw, 10.6rem); }
.title-l { font-size: clamp(2.6rem, 7vw, 7.6rem); }
.title-m { font-size: clamp(2rem, 4.2vw, 4.4rem); line-height: 1; }
.sec--cream .title-xl, .sec--cream .title-l { color: var(--ink-900); }

.lead { font-size: clamp(1.05rem, 1.15vw + .7rem, 1.45rem); line-height: 1.5; color: var(--cream); max-width: 46ch; text-wrap: pretty; }
.muted { color: var(--stone); }

/* Chinese: condensed uppercase display type does not exist, so reduce size and weight a touch */
html[lang^="zh"] .title-xl { font-size: clamp(2.6rem, 7.2vw, 8rem); line-height: 1.02; letter-spacing: 0; }
html[lang^="zh"] .title-l { font-size: clamp(2.2rem, 5.4vw, 5.8rem); line-height: 1.05; letter-spacing: 0; }
html[lang^="zh"] .title-m { line-height: 1.12; letter-spacing: 0; }
html[lang^="zh"] .hero__title { letter-spacing: 0; line-height: 1.25; font-weight: 500; }
html[lang^="zh"] .mono, html[lang^="zh"] .kicker { letter-spacing: .02em; }

/* ───────────── Reveal (IntersectionObserver adds .in) ───────────── */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .rv.in { opacity: 1; transform: none; }
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.sw > i { display: inline-block; font-style: normal; will-change: transform; }
.js .sw > i { transform: translateY(112%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i, 0) * 38ms + var(--d, 0) * 1ms); }
.js .in .sw > i, .js .sw.in > i { transform: none; }
.sp { display: inline; white-space: pre-wrap; }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .sw > i { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
