:root {
  color-scheme: light;
  --paper: #EEE7D6;
  --paper-2: #E5DCC5;
  --paper-3: #F6F1E4;
  --ink: #1D2316;
  --ink-2: #4A5240;
  --ink-3: #7A7F6C;
  --moss: #536F32;
  --moss-deep: #2F431B;
  --moss-light: #A9BE8C;
  --coral: #E9634D;
  --line: rgba(29, 35, 22, 0.14);
  --chip: rgba(29, 35, 22, .07);
  --ground: var(--paper);
  --ring: var(--moss);
  --night: #11161D;
  --display: "Barlow Condensed", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Instrument Serif", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* paper with a still grain */
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .14 0 0 0 0 .09 .24 0 0 0 -.09'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  counter-reset: chapter 1;   /* the journey is chapter 01; each section head counts on */
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

html[lang="zh-Hans"] body { letter-spacing: .01em; }

.eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--moss);
}
/* Section heads read like a map sheet's margin: chapter number, title, a rule running out. */
.section-head .eyebrow { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.section-head .eyebrow::before { counter-increment: chapter; content: counter(chapter, decimal-leading-zero); color: var(--coral); }
.section-head .eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ph { display: inline-block; white-space: nowrap; }
.headline {
  font: 800 clamp(38px, 5.6vw, 82px)/.92 var(--display);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
  text-wrap: balance;
}
html[lang="zh-Hans"] .headline { font-style: normal; font-weight: 800; letter-spacing: 0; line-height: 1.08; text-transform: none; font-size: clamp(31px, 4.6vw, 62px); }
.sub { color: var(--ink-2); max-width: 46ch; font-size: 18px; }
html[lang="zh-Hans"] .sub { max-width: 30em; line-height: 1.75; }

/* ── Loader ───────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: grid; place-items: center;
  transition: opacity .7s var(--ease-out), visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
/* Handover: a hole grows from the pin (--ox, --oy) to --hole, soft at its edge, with one coral ring on it. */
.loader.is-opening {
  transition: none; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at var(--ox) var(--oy), transparent calc(var(--hole, 0px) - 70px), #000 var(--hole, 0px));
  mask-image: radial-gradient(circle at var(--ox) var(--oy), transparent calc(var(--hole, 0px) - 70px), #000 var(--hole, 0px));
}
.loader-centre, .loader-fact { transition: opacity .35s; }
.loader.is-opening .loader-centre, .loader.is-opening .loader-fact { opacity: 0; }
.loader-ring { position: fixed; z-index: 101; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--coral); pointer-events: none; }
.loader-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-centre { position: relative; text-align: center; }
.loader-count {
  font: 800 clamp(64px, 12vw, 120px)/1 var(--display);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.loader-label {
  margin-top: 6px;
  font: 800 15px/1 var(--display);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-2);
}
.loader-label em { font: italic 22px/1 var(--serif); letter-spacing: 0; text-transform: none; margin: 0 .2em; }
.loader-fact {
  position: absolute; bottom: max(40px, env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%); text-align: center; width: min(320px, 86vw);
  color: var(--ink-2); font-size: 14px;
}
.loader-fact-title { font: 800 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink); }

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background .4s, box-shadow .4s, transform .5s var(--ease-out);
}
.nav::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(14, 12, 34, .5), rgba(14, 12, 34, 0)); opacity: 0; transition: opacity .4s; }
.nav.on-dark::before { opacity: 1; }
.nav.is-solid { background: rgba(238, 231, 214, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-name { font: 800 22px/1 var(--display); font-style: italic; letter-spacing: .01em; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { position: relative; padding: 9px 0; text-decoration: none; font: 600 16px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
html[lang="zh-Hans"] .nav-links a { letter-spacing: .14em; font-size: 15px; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang { position: relative; display: flex; padding: 3px; border-radius: 999px; background: var(--chip); }
.lang button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  font: 600 13px/1 var(--sans); color: var(--ink-2); padding: 8px 12px; border-radius: 999px; min-width: 44px;
  transition: color .25s;
}
.lang button[aria-pressed="true"] { color: var(--paper-3); }
.lang-fill { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: 999px; background: var(--ink); transition: transform .45s var(--spring), width .45s var(--spring); }

.sound {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px 0 10px;
  border: 0; border-radius: 999px; background: rgba(29, 35, 22, .07); color: var(--ink-2); cursor: pointer;
  font: 600 13px/1 var(--sans); transition: background .25s, color .25s;
}
.sound svg { width: 20px; height: 20px; flex: none; }
.sound .sound-on, .sound[aria-pressed="true"] .sound-off { display: none; }
.sound[aria-pressed="true"] .sound-on { display: inline; }
.sound[aria-pressed="true"] { background: rgba(83, 111, 50, .2); color: var(--moss-deep); }

.brand img, .brand-name, .lang, .lang button { transition: color .4s, background .4s, filter .4s; }
.nav.on-dark .brand-name, .nav.on-dark .nav-links a { color: rgba(255, 255, 255, .92); }
.nav.on-dark .nav-links a:hover { color: #fff; }
.nav.on-dark .brand img { filter: brightness(0) invert(1); }
.nav.on-dark .lang, .nav.on-dark .sound { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.on-dark .lang button { color: rgba(255, 255, 255, .86); }
.nav.on-dark .lang button[aria-pressed="true"] { color: var(--ink); }
.nav.on-dark .lang-fill { background: var(--paper-3); }
.nav.on-dark .sound[aria-pressed="true"] { background: rgba(169, 190, 140, .42); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--moss); color: #fff; text-decoration: none;
  font: 800 17px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 6px 0 var(--moss-deep);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .2s;
}
.pill:hover { background: #5E7C3A; transform: translateY(-1px); box-shadow: 0 7px 0 var(--moss-deep); }
.pill-small:hover { box-shadow: 0 5px 0 var(--moss-deep); }
.pill:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--moss-deep); }
.pill-small { min-height: 40px; padding: 0 18px; font-size: 15px; box-shadow: 0 4px 0 var(--moss-deep); }
.pill-small:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--moss-deep); }

.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px 0 16px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none;
  transition: transform .2s var(--ease-out), background .2s;
}
.store:hover { transform: translateY(-2px); }
.store:active { transform: translateY(1px) scale(.98); }
.store svg { width: 24px; height: 24px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; opacity: .8; }
.store b { font: 600 19px/1.1 var(--sans); letter-spacing: -.01em; }
.store-light { background: var(--paper-3); color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  cursor: crosshair;
  touch-action: pan-y;
}
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner {
  position: relative; width: 100%; max-width: 1380px; margin: 0 auto;
  padding: 120px var(--gutter) 90px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  pointer-events: none;
}
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-copy > * + * { margin-top: 18px; }
.wordmark {
  font: 800 clamp(84px, 15.5vw, 236px)/.8 var(--display);
  font-style: italic; text-transform: uppercase; letter-spacing: -.02em;
  color: var(--ink); margin-top: 14px !important;
  display: flex; flex-wrap: wrap;
}
.wordmark span:last-child { color: var(--moss); }
.script { font: italic clamp(28px, 3.3vw, 46px)/1.05 var(--serif); color: var(--ink); }
html[lang="zh-Hans"] .script { font-style: normal; font-weight: 600; letter-spacing: .06em; font-size: clamp(23px, 2.6vw, 34px); line-height: 1.3; }
html[lang="zh-Hans"] .lede { line-height: 1.75; max-width: 28em; }
.lede { max-width: 44ch; color: var(--ink-2); font-size: clamp(16px, 1.35vw, 19px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px !important; }

.hero-prints { position: relative; height: min(70vh, 620px); perspective: 1200px; }
.print {
  position: absolute; margin: 0; width: min(330px, 26vw); aspect-ratio: 796 / 1060;
  background: #fff; padding: 10px 10px 34px; border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(29, 35, 22, .45), 0 2px 6px rgba(29, 35, 22, .15);
  transition: transform .9s var(--ease-out);
  will-change: transform;
}
.print img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.print-front { right: 6%; top: 8%; transform: rotate(4deg); }
.print-back { left: 2%; top: 22%; transform: rotate(-7deg); }

.hero-hint {
  position: absolute; left: 50%; bottom: 50px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  border: 0; background: none; cursor: pointer; padding: 10px 16px; border-radius: 999px;
  font: 600 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
}
.hero-caption { display: none; }

/* Arrival: the words rise one after another once the loader has opened. Only with script, so nothing hides without it. */
.js .hero-copy > *, .js .hero-prints, .js .hero-hint { opacity: 0; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .hero-copy > *, .js .hero-prints { transform: translate3d(0, 26px, 0); }
.js .hero.is-in .hero-copy > *, .js .hero.is-in .hero-prints { opacity: 1; transform: none; }
.js .hero.is-in .hero-hint { opacity: 1; transition-delay: .7s; }
/* The wordmark rises out of its own baseline, one word after the other. */
.js .hero-copy > .wordmark { opacity: 1; transform: none; clip-path: inset(-25% -6% -7% -6%); }
.js .wordmark span { opacity: 0; transform: translate3d(0, 112%, 0); transition: opacity .5s, transform 1.25s var(--ease-out); transition-delay: .1s; }
.js .wordmark span:last-child { transition-delay: .2s; }
.js .hero.is-in .wordmark span { opacity: 1; transform: none; }
.hero-copy > :nth-child(2) { transition-delay: .08s; }
.hero-copy > :nth-child(3) { transition-delay: .42s; }
.hero-copy > :nth-child(4) { transition-delay: .5s; }
.hero-copy > :nth-child(5) { transition-delay: .58s; }
.hero-prints { transition-delay: .2s; }
/* Leaving: --away runs 0 → 1 as the hero scrolls out. */
.hero-inner { transform: translate3d(0, calc(var(--away, 0) * -70px), 0); opacity: calc(1 - var(--away, 0) * 1.7); }

/* Shader hero: the photograph fills the screen and the words sit on it, low and left. */
.hero-stage { position: absolute; inset: 0; overflow: hidden; display: none; background: linear-gradient(#27286A, #5B4690 52%, #C9605F 76%, #1A1422 92%); }
.hero-gl {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease-out);
  transform: translate3d(0, calc(var(--away, 0) * 9%), 0) scale(calc(1 + var(--away, 0) * .05));
}
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(14, 12, 34, .5), rgba(14, 12, 34, 0) 22%),
    linear-gradient(to top, rgba(14, 10, 24, .62), rgba(14, 10, 24, .2) 26%, rgba(14, 10, 24, 0) 48%),
    radial-gradient(95% 105% at 0% 100%, rgba(14, 10, 24, .78), rgba(14, 10, 24, .42) 45%, rgba(14, 10, 24, 0) 72%);
}
.hero.is-gl { background: #15101F; color: #fff; align-items: flex-end; cursor: pointer; }
.hero.is-gl .hero-stage { display: block; }
.hero.is-live .hero-gl { opacity: 1; }
.hero.is-gl .hero-field, .hero.is-gl .hero-prints { display: none; }
.hero.is-gl .hero-inner { grid-template-columns: 1fr; padding-top: 110px; padding-bottom: 104px; }
.hero.is-gl .hero-copy { text-shadow: 0 2px 30px rgba(10, 8, 20, .4); }
.hero.is-gl .eyebrow { color: var(--moss-light); }
.hero.is-gl .wordmark { color: var(--paper-3); font-size: clamp(72px, 12.5vw, 190px); }
.hero.is-gl .wordmark span:last-child { color: var(--moss-light); }
.hero.is-gl .script { color: #fff; }
.hero.is-gl .lede { color: rgba(255, 255, 255, .84); }
.hero.is-gl .cta-row { text-shadow: none; }
.hero.is-gl .store { background: var(--paper-3); color: var(--ink); }
.hero.is-gl .hero-hint {
  color: #fff; background: rgba(20, 16, 36, .34); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero.is-gl .hero-caption {
  display: block; position: absolute; right: var(--gutter); bottom: 62px; pointer-events: none;
  font: 500 11px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .82);
  opacity: 0; transition: opacity .5s;
}
.hero.is-gl.is-mapped .hero-caption { opacity: 1; transition: opacity 1.2s .9s; }
.hero-caption { text-align: right; line-height: 1.7 !important; }
.hero-caption small { font-size: 9.5px; letter-spacing: .12em; text-transform: none; opacity: .75; }
/* MapLibre draws the hero's map here, out of sight; the shader shows it (sharpMap in site.js). */
.sharp-map { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.ring { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--coral); position: relative; }
.ring::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--coral); }

/* ── Journey ──────────────────────────────────────────── */
.journey {
  position: relative; height: 460vh; z-index: 2; margin-top: -28px;
  border-radius: 28px 28px 0 0; background: var(--paper); box-shadow: 0 -20px 50px -22px rgba(14, 10, 24, .5);
}
.journey-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--paper); border-radius: 28px 28px 0 0; }
.journey-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey-bar {
  position: absolute; top: max(78px, calc(env(safe-area-inset-top) + 66px)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(246, 241, 228, .9); box-shadow: 0 8px 30px -12px rgba(29, 35, 22, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.journey-title { font: 800 18px/1 var(--display); font-style: italic; text-transform: uppercase; letter-spacing: .04em; }
.journey-title::before { content: "01"; margin-right: 10px; font: 500 12px/1 var(--mono); font-style: normal; letter-spacing: .2em; color: var(--coral); vertical-align: 1px; }
html[lang="zh-Hans"] .journey-title { font-style: normal; letter-spacing: .1em; }
.journey-dots { display: flex; gap: 6px; }
.journey-dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.journey-dots i b { position: absolute; inset: 0; background: var(--moss); transform-origin: left; transform: scaleX(0); }
.journey-count { font: 800 20px/1 var(--display); background: var(--ink); color: var(--paper-3); border-radius: 999px; padding: 8px 12px; font-variant-numeric: tabular-nums; }
.journey-count b { color: var(--moss-light); }

.stop-card {
  position: absolute; left: var(--gutter); bottom: max(28px, env(safe-area-inset-bottom));
  width: min(560px, calc(100% - 2 * var(--gutter)));
  display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center;
  padding: 14px 24px 14px 14px; border-radius: 22px;
  background: var(--paper-3); box-shadow: 0 24px 50px -24px rgba(29, 35, 22, .5);
}
/* A new stop: the card stays; its picture and its lines leave and come back one after another. */
.stop-image img, .stop-text > * { transition: opacity .4s var(--ease-out), transform .6s var(--ease-out); }
.stop-text > :nth-child(2) { transition-delay: .05s; }
.stop-text > :nth-child(3) { transition-delay: .1s; }
.stop-text > :nth-child(4) { transition-delay: .15s; }
.stop-card.is-swapping .stop-image img { opacity: 0; transform: scale(1.04); transition-duration: .22s; transition-delay: 0s; }
.stop-card.is-swapping .stop-text > * { opacity: 0; transform: translateY(10px); transition-duration: .22s; transition-delay: 0s; }
.stop-image { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.stop-image img { width: 100%; height: 100%; object-fit: cover; }
.stop-place { font: 500 11px/1.3 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--moss); }
.stop-title { font: 800 40px/.95 var(--display); font-style: italic; text-transform: uppercase; margin: 8px 0 10px; }
html[lang="zh-Hans"] .stop-title { font-style: normal; font-size: 34px; }
.stop-body { color: var(--ink-2); font-size: 15.5px; }
.stop-coord { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font: 500 10.5px/1 var(--mono); letter-spacing: .14em; color: var(--ink-3); white-space: pre; }
.stop-coord::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--coral); vertical-align: 1px; }
.journey-hint { position: absolute; right: var(--gutter); bottom: 34px; font: 600 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

.pin-label { font: 800 italic 17px var(--display); fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; stroke-linejoin: round; letter-spacing: .02em; }
.pin-dot { fill: var(--coral); stroke: #fff; stroke-width: 2.4; }
.pin-wave { fill: none; stroke: var(--coral); }
.grat line { stroke: rgba(29, 35, 22, .1); stroke-width: .8; vector-effect: non-scaling-stroke; }
.grat text { font: 500 9px var(--mono); fill: var(--ink-3); letter-spacing: .1em; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 140px) var(--gutter); max-width: 1380px; margin: 0 auto; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(32px, 4.5vw, 56px); }

/* Looks. Night turns the whole band to night, not only the pictures. */
.looks { position: relative; isolation: isolate; color: var(--ink); transition: color .7s; }
.looks::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  border-radius: 28px; background: var(--night); opacity: 0; transition: opacity .9s var(--ease-out);
}
.looks.is-night::before { opacity: 1; }
.looks.is-night { --ink: #EEE9DB; --ink-2: #B3B9B4; --ink-3: #868D8B; --line: rgba(255, 255, 255, .16); --chip: rgba(255, 255, 255, .09); --ground: var(--night); --ring: var(--moss-light); }
.looks .eyebrow, .looks .sub, .look-caption > * { transition: color .7s; }
.looks.is-night .eyebrow { color: var(--moss-light); }
.looks-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 26px; }
.tabs { position: relative; display: flex; padding: 4px; border-radius: 999px; background: var(--chip); overflow-x: auto; scrollbar-width: none; max-width: 100%; transition: background .7s; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: 800 17px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  padding: 12px 20px; border-radius: 999px; transition: color .25s;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--paper-3); }
.tabs-fill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--moss); transition: transform .5s var(--spring), width .5s var(--spring); }
.daynight {
  display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--chip); color: var(--ink);
  font: 800 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; transition: background .7s, color .7s;
}
.daynight span[aria-hidden] { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; transition: background .3s, color .3s, transform .5s var(--spring); }
.daynight:active span[aria-hidden] { transform: scale(.9); }
.dn-sun { background: var(--paper-3); color: #C88A1D; }
.daynight[aria-pressed="true"] .dn-sun { background: transparent; color: var(--ink-3); }
.daynight[aria-pressed="true"] .dn-moon { background: #E7E1C8; color: #1E2A3C; }
.daynight[aria-pressed="false"] .dn-moon { color: var(--ink-3); }

.looks-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 3.2vw, 48px); align-items: stretch; }
.look-stage {
  position: relative; aspect-ratio: 1200 / 916; border-radius: 22px; overflow: hidden;
  background: var(--paper-2); box-shadow: 0 30px 60px -30px rgba(29, 35, 22, .55);
}
.look-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.look-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.look-gl.is-on { opacity: 1; }
#look-big-next { clip-path: circle(0 at var(--rx, 50%) var(--ry, 50%)); }
#look-big-next.is-revealing { transition: clip-path .85s var(--ease-out); clip-path: circle(150% at var(--rx, 50%) var(--ry, 50%)); }
.look-side { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-width: 0; }
.look-caption { display: grid; gap: 12px; justify-items: start; }
.look-index { font: 500 12px/1 var(--mono); letter-spacing: .22em; color: var(--ink-3); }
.look-caption b { font: 800 italic clamp(44px, 5vw, 76px)/.9 var(--display); text-transform: uppercase; color: var(--ink); }
html[lang="zh-Hans"] .look-caption b { font-style: normal; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.1; }
.look-caption > :last-child { font-size: 17px; color: var(--ink-2); max-width: 30ch; }
.look-caption.is-fresh > * { animation: cap-in .6s var(--ease-out) both; }
.look-caption.is-fresh > :nth-child(2) { animation-delay: .06s; }
.look-caption.is-fresh > :nth-child(3) { animation-delay: .12s; }
@keyframes cap-in { from { opacity: 0; transform: translateY(12px); } }
.look-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.look-tile {
  position: relative; border: 0; padding: 0; cursor: pointer; border-radius: 14px; overflow: hidden;
  aspect-ratio: 1200 / 916; background: var(--paper-2);
  transition: transform .3s var(--spring), box-shadow .25s;
  animation: tile-in .5s var(--ease-out) both;
}
@keyframes tile-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.look-tile:hover { transform: translateY(-3px); }
.look-tile:active { transform: scale(.97); }
.look-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.look-tile:hover img { transform: scale(1.05); }
.look-tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  color: #fff; font: 800 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-align: left;
}
html[lang="zh-Hans"] .look-tile span { font: 600 13px/1 var(--sans); letter-spacing: .08em; }
.look-tile[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ground), 0 0 0 5px var(--ring); }

/* Steps: a ruled list, the numbers in the margin */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1.5px solid var(--ink); }
.step-list li { display: grid; grid-template-columns: clamp(60px, 8vw, 124px) 1fr; column-gap: 12px; align-items: start; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); }
.step-n { grid-row: 1 / span 2; font: 800 italic clamp(42px, 5vw, 70px)/.86 var(--display); color: var(--moss); transition: transform .6s var(--ease-out), color .3s; }
.step-list li:hover .step-n { transform: translateX(6px); color: var(--coral); }
.step-list h3 { font: 800 clamp(24px, 2.5vw, 34px)/1.05 var(--display); text-transform: uppercase; margin: 2px 0 8px; }
html[lang="zh-Hans"] .step-list h3 { font-size: clamp(21px, 2.1vw, 28px); line-height: 1.25; }
.step-list p { color: var(--ink-2); font-size: 16.5px; max-width: 52ch; }

/* The App Preview film beside the steps */
.how-grid { display: grid; grid-template-columns: minmax(230px, min(320px, calc((100svh - 160px) * 886 / 1920))) 1fr; gap: clamp(32px, 7vw, 110px); align-items: center; }
.film { margin: 0; display: grid; justify-items: center; gap: 16px; }
.film-phone {
  position: relative; width: 100%; aspect-ratio: 886 / 1920; padding: 9px;
  border-radius: 46px; background: #121510;
  box-shadow: 0 0 0 1.5px #2C3324, 0 40px 70px -30px rgba(29, 35, 22, .65), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.film-phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #000; display: block; }
.film-controls { display: flex; gap: 10px; }
.film-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px;
  background: var(--chip); color: var(--ink);
  font: 800 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, transform .2s var(--ease-out);
}
html[lang="zh-Hans"] .film-btn { letter-spacing: .02em; font-family: var(--sans); font-weight: 600; font-size: 14px; }
.film-btn:hover { background: rgba(29, 35, 22, .12); }
.film-btn:active { transform: scale(.96); }
.film-btn svg { width: 20px; height: 20px; fill: currentColor; }
.film-btn .i-pause, #film-play[aria-pressed="true"] .i-play { display: none; }
#film-play[aria-pressed="true"] .i-pause { display: inline; }
.film-btn .i-wave, #film-sound[aria-pressed="false"] .i-wave { display: none; }
#film-sound[aria-pressed="true"] .i-wave { display: inline; }
#film-sound[aria-pressed="true"] .i-mute { display: none; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .film { width: min(300px, 78vw); margin: 0 auto; }
}

/* Inside: the strip runs to the screen's edges when it scrolls; on a wide screen the four step down in pairs */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: clamp(14px, 1.6vw, 24px); align-items: start;
  margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 36px; scroll-padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shots img { width: 100%; height: auto; border-radius: 22px; scroll-snap-align: start; box-shadow: 0 24px 40px -26px rgba(29, 35, 22, .55); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.shots img:hover { transform: translateY(-8px); box-shadow: 0 34px 46px -28px rgba(29, 35, 22, .6); }
@media (min-width: 1060px) { .shots img:nth-child(even) { margin-top: 44px; } }

/* Promises */
.promises { padding-top: 0; }
.promise-list h3::before { content: ""; display: block; width: 8px; height: 8px; margin-bottom: 16px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(233, 99, 77, .16); }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.promise-list li { padding: 26px 22px 0 0; }
.promise-list li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.promise-list h3 { font: 800 24px/1.05 var(--display); text-transform: uppercase; margin-bottom: 10px; }
html[lang="zh-Hans"] .promise-list h3 { font-size: 21px; line-height: 1.3; }
.promise-list p { color: var(--ink-2); font-size: 15.5px; }

/* Download */
.download { position: relative; overflow: hidden; background: var(--moss-deep); color: var(--paper-3); border-radius: 28px 28px 0 0; }
.download-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.download-inner { position: relative; padding: clamp(100px, 14vw, 180px) var(--gutter); max-width: 1000px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 28px; pointer-events: none; }
.download-inner a { pointer-events: auto; }
.download-glyph { width: 120px; filter: brightness(0) invert(.92) sepia(.3); }
.download-note { font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--moss-light); }

/* Footer: on the download block's own ground, so the page ends on one surface */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; padding: 26px var(--gutter) max(30px, env(safe-area-inset-bottom)); background: var(--moss-deep); border-top: 1px solid rgba(246, 241, 228, .14); font-size: 14px; color: rgba(246, 241, 228, .74); }
.footer-brand { display: flex; align-items: center; gap: 8px; font: 800 italic 18px var(--display); color: var(--paper-3); }
.footer-brand img { filter: brightness(0) invert(.92) sepia(.3); }
html[lang="zh-Hans"] .footer-brand, html[lang="zh-Hans"] .brand-name { font-style: normal; letter-spacing: .06em; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--paper-3); text-decoration: underline; text-underline-offset: 4px; }
.footer-credit { margin-left: auto; font-size: 12.5px; color: rgba(246, 241, 228, .55); }
.footer :focus-visible, .download :focus-visible, .hero.is-gl :focus-visible { outline-color: var(--paper-3); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ── Small screens ────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 100px; padding-bottom: 110px; gap: 10px; }
  .hero-prints { height: 340px; order: -1; margin: 0 auto; width: 100%; max-width: 420px; }
  .print { width: 46%; }
  .print-front { right: 10%; top: 4%; }
  .print-back { left: 8%; top: 14%; }
  .looks-body { grid-template-columns: 1fr; }
  .look-side { gap: 18px; }
  .look-caption { gap: 8px; }
  /* the looks become a strip to swipe, like the app's own */
  .look-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(132px, 38%, 190px);
    margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  }
  .look-grid::-webkit-scrollbar { display: none; }
  .look-tile { scroll-snap-align: start; }
  .looks::before { border-radius: 22px; }
  .promise-list { grid-template-columns: 1fr 1fr; }
  .promise-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .promise-list li { padding-bottom: 26px; }
  .footer-credit { margin-left: 0; }
}
@media (max-width: 900px) {
  .sound { padding: 0 9px; }
  .sound-label { display: none; }
}
@media (max-width: 600px) {
  .nav { gap: 10px; }
  .nav-end { gap: 8px; }
  .hero-hint { bottom: 44px; }
  .hero.is-gl .hero-inner { padding-bottom: 112px; }
  .hero-shade {
    background:
      linear-gradient(to bottom, rgba(14, 12, 34, .5), rgba(14, 12, 34, 0) 18%),
      linear-gradient(to top, rgba(14, 10, 24, .86), rgba(14, 10, 24, .56) 38%, rgba(14, 10, 24, 0) 60%);
  }
  .hero.is-gl .hero-copy > * + * { margin-top: 14px; }
  .hero.is-gl .wordmark { font-size: clamp(60px, 20vw, 104px); }
  .hero.is-gl .lede { font-size: 15.5px; line-height: 1.5; }
  .hero.is-gl .cta-row { flex-wrap: nowrap; gap: 10px; margin-top: 22px !important; }
  .hero.is-gl .cta-row .pill { flex: 1 1 auto; min-height: 50px; padding: 0 14px; font-size: 15px; letter-spacing: .08em; white-space: nowrap; }
  .hero.is-gl .cta-row .store { flex: 0 0 auto; min-height: 50px; padding: 0 16px 0 12px; }
  .hero.is-gl .hero-caption { display: none; }
  .brand-name { display: none; }
  .wordmark { font-size: clamp(64px, 22vw, 110px); }
  .cta-row .pill, .cta-row .store { flex: 1 1 100%; }
  .stop-card { grid-template-columns: 96px 1fr; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 18px; }
  .stop-title { font-size: 30px; margin: 6px 0 6px; }
  .stop-body { font-size: 14px; line-height: 1.45; }
  .journey-bar { gap: 10px; padding-left: 14px; }
  .journey-title { font-size: 15px; }
  .journey-dots i { width: 14px; }
  .journey-hint { display: none; }
  .stop-coord { margin-top: 8px; padding-top: 8px; font-size: 9.5px; }
  .section-head { gap: 16px; }
  .tabs button { padding: 11px 14px; font-size: 16px; }   /* all four families fit a phone's width */
  .promise-list { grid-template-columns: 1fr; }
  .promise-list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .shots { grid-auto-columns: 72%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-inner { transform: none; opacity: 1; }
  .hero-gl { transform: none; }
}
