/* 漫游地球 TerraDrift — the website, in the app's own materials:
   space and the globe as the stage, glass for controls, paper, ink and stamps for the things a walk leaves behind.
   Colours come from Atlas in Theme.swift. */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --night: #05070d;
  --night-2: #0b0f1c;
  --lantern: #ffbd68;
  --lantern-deep: #f0a04a;
  --ember: #f3784a;
  --mist: #9eadd1;
  --paper: #f7f0e1;
  --paper-shade: #eadfca;
  --ink: #221f1c;
  --ink-soft: rgba(34, 31, 28, 0.62);
  --stamp: #b33228;
  --stamp-blue: #2d4b90;
  --stamp-green: #296b4d;
  --stamp-violet: #733d8c;
  --jade: #66debf;
  --jade-ink: #127366;
  --cloth: #1c2b54;
  --cloth-deep: #0d142e;
  --gold: #e9c787;
  --text: rgba(255, 255, 255, 0.95);
  --text-soft: rgba(255, 255, 255, 0.66);
  --text-faint: rgba(255, 255, 255, 0.42);
  --hair: rgba(255, 255, 255, 0.09);

  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "New York", "Iowan Old Style", Georgia, "Songti SC", serif;
  --font-latin: "Instrument Serif", "Bodoni 72", Didot, Georgia, serif;
  --font-display: var(--font-ui);
  --display-weight: 300;
  --display-track: 0.02em;
  --display-leading: 1.16;

  --gutter: clamp(16px, 4vw, 44px);
  --radius-card: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* Each language in its own type. Latin-script pages set headings in Instrument Serif. */
:root:lang(en), :root:lang(de) {
  --font-display: "Instrument Serif", "New York", Georgia, serif;
  --display-weight: 400;
  --display-track: -0.012em;
  --display-leading: 1.02;
}
:root:lang(zh-Hans) {
  --font-ui: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
}
:root:lang(zh-Hant) {
  --font-ui: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", sans-serif;
  --font-serif: "Songti TC", "Noto Serif TC", "Noto Serif CJK TC", "PMingLiU", serif;
}
:root:lang(ja) {
  --font-ui: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}
:root:lang(ko) {
  --font-ui: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-serif: "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", "Batang", serif;
  --display-track: 0;
}
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) { line-break: strict; }
:lang(de) { hyphens: auto; -webkit-hyphens: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Film grain over everything, very faint. Still and one screen in size: a moving grain four screens big cost a frame's worth of GPU. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
}
::selection { background: rgba(255, 189, 104, 0.35); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
main, .footer { overflow-x: clip; }
.phrase { display: inline-block; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; border-radius: 8px; }
.mono { font-variant-numeric: tabular-nums; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--lantern); color: var(--night); text-decoration: none;
}
.skip:focus { top: 12px; }

.latin { font-family: var(--font-latin); font-style: italic; font-weight: 400; letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-soft);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow.lantern { color: var(--lantern); }
.eyebrow.jade { color: var(--jade); }
:lang(ko) .eyebrow, :lang(ja) .eyebrow, :lang(zh-Hans) .eyebrow, :lang(zh-Hant) .eyebrow { letter-spacing: 0.14em; }

em, .grad { font-style: normal; }
.grad, h1 em, h2 em, .tagline em, .caption em, .grad .w, h1 em .w, h2 em .w, .tagline em .w, .caption em .w {
  background: linear-gradient(100deg, #fff1d6 0%, var(--lantern) 45%, var(--ember) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.jade-text, .jade-text .w { background: linear-gradient(100deg, #e9fff8, var(--jade) 60%, #3fb9a0); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Kinetic text: each word (or CJK character) rises out of a blur. */
[data-split] .w { display: inline-block; white-space: pre; }
.js [data-split]:not(.in) .w { opacity: 0; transform: translateY(0.45em) rotate(2deg); filter: blur(10px); }
.js [data-split] .w {
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 38ms);
}

/* ---------- Glass, buttons, chips ---------- */

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 22px 60px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.glass-light {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}

/* A soft light that follows the pointer, inside a card and along its edge. */
.spot { position: relative; isolation: isolate; }
.spot::before, .spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.spot::before { z-index: -1; background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), rgba(255, 189, 104, 0.11), transparent 45%); }
.spot::after {
  padding: 1px;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgba(255, 214, 160, 0.7), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

.btn {
  --mx: 0px; --my: 0px;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 650; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.35s var(--ease-out), filter 0.2s, box-shadow 0.3s;
}
.btn:active { transform: translate(var(--mx), var(--my)) scale(0.96); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lantern {
  color: #1a0f02;
  background: radial-gradient(130% 160% at 30% 0%, #ffe9c4 0%, var(--lantern) 42%, var(--lantern-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -2px 6px rgba(150, 80, 0, 0.25), 0 12px 36px rgba(255, 170, 70, 0.32);
}
.btn-lantern::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transition: transform 0.8s var(--ease-out);
}
.btn-lantern:hover::after { transform: translateX(120%) skewX(-18deg); }
.btn-lantern:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -2px 6px rgba(150, 80, 0, 0.25), 0 16px 48px rgba(255, 170, 70, 0.5); }
.btn-lantern[aria-disabled="true"] { cursor: default; }
.btn-glass { color: var(--text); }
.btn-glass:hover { filter: brightness(1.2); }
.btn.compact { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.busy { pointer-events: none; }

.chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  padding: 10px 14px; border-radius: 16px; border: 0; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); color: var(--text);
  font-size: 15px; font-weight: 600; line-height: 1.35;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-spring);
}
.chip:active { transform: scale(0.96); }
.chip small { font-size: 12px; font-weight: 400; color: var(--text-soft); }
.chip[aria-pressed="true"] { background: var(--lantern); color: var(--night); }
.chip[aria-pressed="true"] small { color: rgba(8, 10, 18, 0.65); }

.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 1; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 189, 104, 0.075), rgba(255, 189, 104, 0.025) 55%, transparent);
  opacity: 0; transition: opacity 0.6s;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; left: 0; right: 0; top: 12px; z-index: 60;
  padding: 0 var(--gutter);
  pointer-events: none;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.nav.hide { transform: translateY(calc(-100% - 20px)); }
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
  max-width: 1180px; margin: 0 auto;
  padding: 6px 6px 6px 12px;
  border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: 0.02em; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 13px; border-radius: 999px;
  color: var(--text-soft); font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav .btn { flex: none; }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--jade), var(--lantern), var(--ember)); box-shadow: 0 0 12px rgba(255, 189, 104, 0.6); }

.lang-menu { position: relative; flex: none; }
.lang-button {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); color: var(--text-soft); font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.lang-button:hover, .lang-button[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.lang-button svg { width: 17px; height: 17px; }
.lang-button .chev { width: 11px; height: 11px; transition: transform 0.3s var(--ease-out); }
.lang-button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 180px; margin: 0; padding: 6px; list-style: none;
  border-radius: 18px;
  background: rgba(14, 18, 32, 0.92);
  transform-origin: top right;
  animation: menu-in 0.35s var(--ease-out);
}
.lang-list[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 12px; text-decoration: none; font-size: 15px; color: var(--text-soft);
}
.lang-list a:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.lang-list a[aria-current="true"] { color: var(--lantern); }
.lang-list a[aria-current="true"]::after { content: "●"; font-size: 8px; }
@media (max-width: 1060px) { .nav-links { display: none; } .lang-menu { margin-left: auto; } }
@media (max-width: 520px) {
  .lang-button .lang-name { display: none; }
  .lang-button { padding: 0 10px; }
  .nav .btn.compact { padding: 0 14px; }
}

/* ---------- The journey: one pinned stage ---------- */

.journey { position: relative; height: calc(var(--screens, 7.4) * 100vh); height: calc(var(--screens, 7.4) * 100lvh); }
.anchor { position: absolute; left: 0; width: 1px; height: 1px; top: calc(var(--anchor, 2.2) * 100lvh); }
.stage {
  --ax: 62vw; --ay: 50vh; --dr: 200px;
  position: sticky; top: 0;
  height: 100vh; height: 100lvh;
  overflow: hidden; isolation: isolate;
  background: var(--night);
}
.space { position: absolute; inset: 0; z-index: 0; }
.nebula {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 22% 30%, rgba(78, 70, 160, 0.22), transparent 70%),
    radial-gradient(35% 30% at 80% 24%, rgba(255, 150, 80, 0.09), transparent 70%),
    radial-gradient(45% 40% at 70% 90%, rgba(40, 110, 170, 0.18), transparent 70%),
    radial-gradient(30% 25% at 10% 85%, rgba(102, 222, 191, 0.07), transparent 70%);
}
.stars { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform 1.2s var(--ease-out); }

.globe-stage {
  position: absolute; inset: 0; z-index: 1;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.globe-stage.dragging { cursor: grabbing; }
.globe-stage.off { pointer-events: none; }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-pins { position: absolute; inset: 0; pointer-events: none; }
.globe-pins.off .pin { pointer-events: none; }
.no-webgl #globe { display: none; }
.no-webgl .globe-stage::before {
  content: ""; position: absolute; left: 50%; top: 58%; width: min(120vw, 1100px); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: url("../img/earth-2k.jpg") 30% 50% / 200% 100%;
  box-shadow: inset -60px -40px 120px rgba(0, 0, 0, 0.8), 0 0 80px rgba(80, 130, 255, 0.35);
  filter: brightness(0.6) saturate(0.8);
}

.pin {
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  padding: 0; border: 0; background: none;
  pointer-events: auto; cursor: pointer;
  transition: opacity 0.3s;
}
.pin.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.pin .core {
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #fff6e6;
  box-shadow: 0 0 0 2px rgba(255, 189, 104, 0.55), 0 0 12px 4px rgba(255, 189, 104, 0.6);
  transition: transform 0.35s var(--ease-spring);
}
.pin:hover .core, .pin:focus-visible .core, .pin.selected .core { transform: scale(1.7); }
.pin .label {
  position: absolute; left: 50%; bottom: 100%; transform: translate(calc(-50% + var(--lx, 0px)), 6px);
  padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text);
  background: rgba(8, 10, 18, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0; transition: opacity 0.25s, transform 0.35s var(--ease-out);
  pointer-events: none;
}
.pin:hover .label, .pin:focus-visible .label, .pin.selected .label { opacity: 1; transform: translate(calc(-50% + var(--lx, 0px)), -4px); }
.pin.selected::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid rgba(255, 220, 170, 0.9);
  animation: lock 1.8s var(--ease-out) infinite;
}
@keyframes lock { 0% { transform: scale(1.8); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(0.8); opacity: 0; } }
.pin.friend .core { background: #eafff8; box-shadow: 0 0 0 2px rgba(102, 222, 191, 0.7), 0 0 14px 5px rgba(102, 222, 191, 0.7); }
.pin.friend::before {
  content: ""; position: absolute; left: 50%; bottom: 50%;
  width: 2px; height: 38px; margin-left: -1px;
  background: linear-gradient(to top, rgba(234, 255, 248, 0.95), rgba(102, 222, 191, 0));
  box-shadow: 0 0 10px rgba(102, 222, 191, 0.9);
  border-radius: 2px;
}
.pin.friend .label { opacity: 1; bottom: calc(100% + 28px); color: #dffcf3; border-color: rgba(102, 222, 191, 0.45); }
.pin.friend.selected::after { border-color: rgba(102, 222, 191, 0.9); }
/* A light column rising from a lantern somewhere on Earth: someone just lit a street. */
.beam {
  position: absolute; left: 50%; bottom: 50%; width: 2px; height: 110px; margin-left: -1px;
  transform-origin: bottom; pointer-events: none;
  background: linear-gradient(to top, #fff8ea, rgba(255, 200, 130, 0.65) 40%, rgba(255, 189, 104, 0));
  box-shadow: 0 0 14px 2px rgba(255, 189, 104, 0.55);
  border-radius: 2px;
  animation: beam 2.8s var(--ease-out) forwards;
}
.beam + .ripple, .ripple {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 18px; margin: -9px 0 0 -23px;
  border-radius: 50%; border: 1.5px solid rgba(255, 210, 150, 0.8);
  pointer-events: none; animation: ripple 2.2s var(--ease-out) forwards;
}
@keyframes beam { 0% { transform: scaleY(0); opacity: 0; } 12% { opacity: 1; } 55% { transform: scaleY(1); opacity: 0.95; } 100% { transform: scaleY(1.15); opacity: 0; } }
@keyframes ripple { from { transform: scale(0.2); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

/* Clouds the camera falls through. */
.clouds { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; overflow: hidden; }
.clouds i {
  position: absolute; left: 50%; top: 50%; width: 70vmax; height: 44vmax; margin: -22vmax 0 0 -35vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 233, 255, 0.62), rgba(186, 200, 245, 0.3) 48%, rgba(160, 178, 235, 0) 78%);
  transform: translate(calc(var(--x) + var(--dx) * var(--c, 0)), calc(var(--y) + var(--dy) * var(--c, 0))) scale(calc(var(--s, 1) + var(--c, 0) * 1.8));
  will-change: transform;
}
.clouds i:nth-child(1) { --x: -38vw; --y: -24vh; --dx: -60vw; --dy: -40vh; }
.clouds i:nth-child(2) { --x: 36vw; --y: -18vh; --dx: 70vw; --dy: -30vh; --s: 1.2; }
.clouds i:nth-child(3) { --x: -24vw; --y: 30vh; --dx: -50vw; --dy: 60vh; --s: 1.3; }
.clouds i:nth-child(4) { --x: 30vw; --y: 28vh; --dx: 60vw; --dy: 55vh; }
.clouds i:nth-child(5) { --x: 4vw; --y: -4vh; --dx: 10vw; --dy: -80vh; --s: 0.8; }
.clouds i:nth-child(6) { --x: -6vw; --y: 10vh; --dx: -20vw; --dy: 90vh; --s: 0.9; }

/* The street map the camera lands on. */
.map { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; transform-origin: var(--ax) var(--ay); will-change: transform, opacity; }
/* The clouds part around the action point and the street comes through the hole. */
.map:not(.open) {
  -webkit-mask-image: radial-gradient(circle at var(--ax) var(--ay), #000 calc(var(--reveal, 1) * 110vmax - 18vmax), transparent calc(var(--reveal, 1) * 110vmax));
  mask-image: radial-gradient(circle at var(--ax) var(--ay), #000 calc(var(--reveal, 1) * 110vmax - 18vmax), transparent calc(var(--reveal, 1) * 110vmax));
}
.map.live { pointer-events: auto; }
.stage:not([data-phase="circle"]) .dial .pill { opacity: 0; }
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.map::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at var(--ax) var(--ay), transparent 45%, rgba(5, 7, 13, 0.75) 100%); }
/* Behind the tickets and the passport the street recedes under a dark veil. Only its opacity changes: a blur filter here
   had to be redone every frame under the glass cards, which halved the frame rate when the stage scrolled away. */
.map::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #05070d; opacity: 0; transition: opacity 0.9s var(--ease-out); }
.stage[data-phase="tickets"] .map::before { opacity: 0.58; }
.stage[data-phase="passport"] .map::before { opacity: 0.7; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-ghost { stroke: rgba(255, 220, 170, 0.25); stroke-width: 2; stroke-dasharray: 2 7; }
.route-trail { stroke: var(--lantern); stroke-width: 4; filter: drop-shadow(0 0 6px rgba(255, 189, 104, 0.9)); }
.marker { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.marker i { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; }
.here i { background: #4f8cff; border: 3px solid #fff; }
.here i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: rgba(79, 140, 255, 0.55); animation: here 2.4s var(--ease-out) infinite; }
@keyframes here { from { transform: scale(1); opacity: 1; } to { transform: scale(3.75); opacity: 0; } }
.dest { opacity: 0; transition: opacity 0.5s; }
.dest i { background: var(--lantern); border: 3px solid #fff6e6; box-shadow: 0 0 18px 4px rgba(255, 189, 104, 0.7); }
.dest-label {
  position: absolute; left: 16px; top: -14px; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; font-weight: 650; color: var(--night); background: var(--lantern);
}
.dest-label.flip { left: auto; right: 16px; }
.stage[data-phase="walk"] .dest, .stage[data-phase="passport"] .dest { opacity: 1; }
.walker { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity 0.4s; }
.walker i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 189, 104, 0.45), 0 0 18px 6px rgba(255, 189, 104, 0.55); }
.walk-left {
  position: absolute; left: 14px; top: 10px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 700; color: var(--text); background: rgba(8, 10, 18, 0.72); border: 1px solid rgba(255, 255, 255, 0.14);
  font-variant-numeric: tabular-nums;
}
.stage[data-phase="walk"] .walker { opacity: 1; }
.stage.arrived .walker { opacity: 0; }
.column { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.column i {
  position: absolute; left: -2px; bottom: 0; width: 4px; height: 70vh;
  background: linear-gradient(to top, #fff, rgba(255, 230, 190, 0.85) 30%, rgba(255, 189, 104, 0));
  box-shadow: 0 0 14px var(--lantern), 0 0 44px rgba(255, 189, 104, 0.65);
  border-radius: 4px;
  transform-origin: bottom; transform: scaleY(0); opacity: 0;
}
.column i::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 110px; height: 100%; transform: translateX(-50%); background: linear-gradient(to top, rgba(255, 189, 104, 0.32), rgba(255, 189, 104, 0)); filter: blur(16px); }
.stage.arrived[data-phase="walk"] .column i { transition: transform 1.2s var(--ease-out), opacity 0.3s; transform: scaleY(1); opacity: 1; }
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.dial { position: absolute; left: var(--ax); top: var(--ay); width: calc(var(--dr) * 2); height: calc(var(--dr) * 2); transform: translate(-50%, -50%); }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial .ring { transition: r 0.1s; }
.dial .handle { cursor: grab; touch-action: none; pointer-events: auto; }
.dial .handle:active { cursor: grabbing; }
.dial .pill {
  position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%);
  padding: 3px 13px; border-radius: 999px; background: var(--lantern); color: var(--night);
  font-size: 13px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.dial { opacity: 0; transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.stage[data-phase="circle"] .dial { opacity: 1; }
.stage[data-phase="tickets"] .dial, .stage[data-phase="walk"] .dial { opacity: 0.22; }

/* ---------- Hero copy, hints, the postcard from a light ---------- */

.hero-copy {
  position: absolute; left: 50%; top: calc(86px + 3vh); z-index: 5;
  width: min(960px, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  text-align: center;
  transition: opacity 0.6s var(--ease-out), filter 0.6s;
}
.stage.focus .hero-copy { opacity: 0 !important; pointer-events: none; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px; padding: 6px 14px 6px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--lantern); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 189, 104, 0.6); animation: pulse 2s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3.5); opacity: 0; } }
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(60px, 10.5vw, 156px);
  font-weight: 200; line-height: 1; letter-spacing: 0.08em;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 0.18em;
}
:lang(en) .hero-title, :lang(de) .hero-title, :lang(ja) .hero-title, :lang(ko) .hero-title { font-family: var(--font-latin); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-size: clamp(68px, 12vw, 176px); }
.hero-title .latin { font-size: 0.36em; letter-spacing: 0; color: var(--lantern); text-shadow: 0 0 30px rgba(255, 189, 104, 0.35); }
.tagline {
  margin: 14px 0 0;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(22px, 2.6vw, 36px); line-height: 1.25; letter-spacing: var(--display-track);
}
.lede { max-width: 640px; margin: 16px auto 26px; font-size: clamp(15px, 1.3vw, 18px); color: var(--text-soft); line-height: 1.75; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fine { margin: 16px 0 0; font-size: 13px; color: var(--text-faint); letter-spacing: 0.02em; }
#drift .label { display: inline-block; min-width: 4em; text-align: left; }
#drift svg { transition: transform 1.2s var(--ease-out); }
#drift.busy svg { transform: rotate(720deg); }

.globe-hint {
  position: absolute; left: 50%; bottom: 92px; z-index: 4; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; color: var(--text-soft); white-space: nowrap;
  background: rgba(8, 10, 18, 0.45); border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity 0.5s;
}
.hand { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--lantern); position: relative; animation: hand 2.4s var(--ease-in-out) infinite; }
@keyframes hand { 0%, 100% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 4; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-faint); text-decoration: none; white-space: nowrap;
}
.wheel { width: 20px; height: 32px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, 0.35); position: relative; }
.wheel i { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--lantern); animation: wheel 1.8s var(--ease-in-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.stage.focus .scroll-cue, .stage.focus .globe-hint { opacity: 0 !important; pointer-events: none; }

.far-card {
  position: absolute; z-index: 8;
  right: max(var(--gutter), calc((100vw - 1240px) / 2)); top: 50%;
  width: min(390px, calc(100% - 2 * var(--gutter)));
  color: var(--ink);
  transform: translateY(-46%);
  animation: card-in 0.7s var(--ease-out);
}
.far-card[hidden] { display: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(-38%) rotate(-2.5deg) scale(0.94); } }
.far-card .paper-card { padding: 14px 14px 16px; border-radius: 16px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.3) inset; }
.far-card .photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 9px; background: var(--paper-shade); }
.far-card .photo img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.far-card .photo .time { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; color: #fff; background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }
.far-card .meta { padding: 14px 4px 0; }
.far-card .kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--stamp-blue); text-transform: uppercase; }
.far-card .kicker.jade { color: var(--jade-ink); }
.far-card h3 { margin: 4px 0 0; font-family: var(--font-serif); font-size: 27px; line-height: 1.2; font-weight: 700; }
.far-card h3 .latin { margin-left: 8px; font-size: 21px; color: var(--ink-soft); }
.far-card .where { margin: 2px 0 8px; font-size: 13px; color: var(--ink-soft); }
.far-card .story { margin: 0; font-family: var(--font-serif); font-size: 15px; line-height: 1.75; }
.far-card .credit { margin: 10px 0 0; font-size: 11px; color: var(--ink-soft); }
.far-card .credit a { color: inherit; }
.far-card .row { display: flex; gap: 8px; margin-top: 14px; }
.far-card .row .btn { flex: 1; min-height: 42px; font-size: 14px; padding: 0 12px; }
.paper-btn { color: var(--ink); background: var(--paper-shade); box-shadow: inset 0 0 0 1px rgba(34, 31, 28, 0.08); }
.paper-btn:hover { background: #e3d6bd; }
.far-card .close {
  position: absolute; top: -14px; right: -14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
}
.far-card .close svg { width: 14px; height: 14px; }

/* ---------- The dive's words ---------- */

.caption {
  position: absolute; left: 50%; top: 50%; z-index: 5; width: min(980px, calc(100% - 2 * var(--gutter)));
  transform: translate(-50%, -50%); text-align: center; pointer-events: none;
  opacity: 0;
}
.caption p {
  margin: 0;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(30px, 5vw, 72px); line-height: 1.12; letter-spacing: var(--display-track);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.cap-3 {
  left: var(--ax); top: calc(var(--ay) - var(--dr) - 26px); width: auto;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 20px; border-radius: 20px;
  background: rgba(8, 10, 18, 0.55); border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
}
.cap-3 .k { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; color: var(--lantern); text-transform: uppercase; }
.cap-3 b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; white-space: nowrap; }
.cap-3 .coords { font-size: 12px; color: var(--text-soft); letter-spacing: 0.06em; }

/* ---------- The four steps ---------- */

.steps { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.step-card {
  position: absolute; left: max(var(--gutter), calc((100vw - 1240px) / 2)); top: 50%;
  width: min(410px, 34vw);
  padding: 26px 28px 24px; border-radius: 28px;
  opacity: 0; transform: translateY(calc(-50% + 30px)); filter: blur(6px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out), filter 0.6s;
}
.step-card.on { opacity: 1; transform: translateY(-50%); filter: none; pointer-events: auto; }
.step-card.past { transform: translateY(calc(-50% - 30px)); }
.step-card .num { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.step-card .num span:first-child { color: var(--lantern); }
.step-card .num i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.step-card .num b { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--t, 0)); background: var(--lantern); }
.step-card h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.12; letter-spacing: var(--display-track); }
.step-card p { margin: 0; color: var(--text-soft); font-size: 16px; line-height: 1.75; }
.step-card .hint { margin-top: 14px; font-size: 14px; color: var(--lantern); display: flex; gap: 8px; align-items: baseline; }
.step-card .hint::before { content: "→"; }

.plan {
  position: absolute; z-index: 5; left: var(--ax); top: calc(var(--ay) + var(--dr) + 34px);
  width: min(380px, calc(100% - 2 * var(--gutter)));
  padding: 12px; border-radius: 22px; display: grid; gap: 10px;
  opacity: 0; transform: translate(-50%, 20px); pointer-events: none;
  transition: opacity 0.5s, transform 0.7s var(--ease-out);
}
.stage[data-phase="circle"] .plan.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.plan .purposes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radius-row { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; font-size: 13px; color: var(--text-soft); }
.radius-row .km { font-size: 15px; color: var(--lantern); }

/* Sealed tickets */
.deck {
  position: absolute; z-index: 5; left: var(--ax); top: var(--ay);
  width: min(450px, calc(100% - 2 * var(--gutter)));
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.stage[data-phase="tickets"] .deck { pointer-events: auto; }
.deck-head { margin-bottom: 12px; opacity: 0; transform: translateY(12px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.deck-head .eyebrow { margin-bottom: 4px; font-size: 11px; }
.deck-title { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; letter-spacing: var(--display-track); line-height: 1.2; }
.deck.dealt .deck-head { opacity: 1; transform: none; }
.deck-tickets { display: grid; gap: 12px; }
.deck .ticket { opacity: 0; transform: translateY(calc(70vh)) rotate(var(--r, 0deg)) scale(0.9); transition: transform 0.9s var(--ease-out), opacity 0.4s; transition-delay: calc(var(--i) * 110ms); }
.deck.dealt .ticket { opacity: 1; transform: none; }
.stage[data-phase="walk"] .deck .ticket, .stage[data-phase="passport"] .deck .ticket { opacity: 0; transform: translateY(-30vh) rotate(calc(var(--r) * -1)) scale(0.85); transition-delay: calc(var(--i) * 60ms); }
.stage[data-phase="walk"] .deck-head, .stage[data-phase="passport"] .deck-head { opacity: 0; }

.paper {
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%);
  color: var(--ink);
}
.paper.ruled {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(to bottom, transparent 0 13px, rgba(34, 31, 28, 0.05) 13px 14px);
}

.ticket {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left;
  perspective: 1400px; cursor: pointer;
}
.ticket-inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform 0.9s var(--ease-spring); }
.ticket:hover .ticket-inner { transform: rotateX(4deg) translateY(-3px); }
.ticket.open .ticket-inner { transform: rotateY(180deg); }
.ticket.tearing .ticket-inner { animation: tear 0.32s ease-in-out; }
@keyframes tear { 0%, 100% { transform: none; } 25% { transform: rotate(-1.6deg) translateX(-3px); } 50% { transform: rotate(1.4deg) translateX(3px); } 75% { transform: rotate(-0.8deg); } }
.ticket-face { grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ticket-back { position: absolute; inset: 0; overflow: hidden; }
.ticket.open .ticket-back { position: relative; inset: auto; }
.ticket.open .ticket-front { position: absolute; inset: 0; }
.ticket-front {
  --seam: 56px;
  display: flex; min-height: 128px;
  border-radius: 12px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
  -webkit-mask:
    radial-gradient(circle 9px at var(--seam) 0, #0000 96%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 9px at var(--seam) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 9px at var(--seam) 0, #0000 96%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 9px at var(--seam) 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
}
.stub {
  position: relative; flex: none; width: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--paper); background: var(--tint);
}
.stub::after { content: ""; position: absolute; right: 0; top: 10px; bottom: 10px; width: 0; border-right: 1.5px dashed rgba(247, 240, 225, 0.85); }
.stub svg { width: 14px; height: 14px; }
.stub .n { font-family: var(--font-latin); font-size: 34px; line-height: 1; }
.stub .admit { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 7px; font-weight: 800; letter-spacing: 0.15em; }
.ticket-body { position: relative; flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; }
.ticket-body .top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ticket-body .sealed { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; color: var(--tint); white-space: nowrap; }
.ticket-body .serial { font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket-body .dir { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; min-width: 0; }
.ticket-body .dir b { font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; line-height: 1.15; }
.ticket-body .dir span { font-size: 16px; font-weight: 650; color: var(--tint); font-variant-numeric: tabular-nums; }
.ticket-body .clue { grid-column: 1; margin: 0; font-family: var(--font-serif); font-size: 14px; line-height: 1.5; color: rgba(34, 31, 28, 0.75); }
.ticket-body .barcode { grid-column: 1; height: 11px; width: 96px; margin-top: 5px; }
.ticket-body .compass { grid-column: 2; grid-row: 2 / span 3; width: 54px; height: 54px; align-self: center; }
.ticket-back { transform: rotateY(180deg); border-radius: 14px; overflow: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }
.ticket-back .shot { position: relative; height: 112px; background: var(--paper-shade); }
.ticket-back .shot img { width: 100%; height: 100%; object-fit: cover; }
.ticket-back .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 55%); }
.ticket-back .shot .no { position: absolute; left: 12px; top: 9px; z-index: 1; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
.ticket-back .revealed {
  position: absolute; right: 12px; top: 10px; z-index: 1;
  padding: 2px 8px; border: 1.6px solid var(--stamp); border-radius: 3px;
  background: rgba(247, 240, 225, 0.88); color: var(--stamp);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; transform: rotate(-8deg);
}
.ticket.open .ticket-back .revealed { animation: slam-small 0.45s var(--ease-spring) 0.55s both; }
@keyframes slam-small { from { transform: rotate(-24deg) scale(2); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
.ticket-back .body { padding: 10px 14px 12px; }
.ticket-back h5 { margin: 0; font-family: var(--font-serif); font-size: 19px; }
.ticket-back .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--paper-shade); font-size: 12px; font-weight: 600; }
.ticket-back .go { min-height: 34px; padding: 0 14px; font-size: 13px; }
.ticket-back .credit { margin: 6px 0 0; font-size: 10.5px; color: var(--ink-soft); }

/* Arriving */
.landing {
  position: absolute; z-index: 5; left: var(--ax); top: calc(var(--ay) + var(--dr) * 0.55);
  width: min(400px, calc(100% - 2 * var(--gutter)));
  border-radius: 22px; padding: 16px; color: var(--ink);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  opacity: 0; transform: translate(-50%, 40px) scale(0.96); pointer-events: none;
  transition: opacity 0.4s, transform 0.6s var(--ease-out);
}
.stage.arrived[data-phase="walk"] .landing { opacity: 1; transform: translate(-50%, 0); transition: opacity 0.6s 0.9s, transform 0.8s var(--ease-spring) 0.9s; }
.landing .polaroid { position: absolute; left: 18px; top: -42px; width: 96px; padding: 5px 5px 16px; background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); transform: rotate(-6deg); }
.landing .polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.landing .stamp-slot { position: absolute; right: 14px; top: -44px; width: 108px; height: 108px; }
.landing .stamp-slot .stamp { width: 100%; height: 100%; opacity: 0; }
.stage.arrived[data-phase="walk"] .landing .stamp-slot .stamp { animation: slam 0.5s var(--ease-spring) 1.6s both; --r: -10deg; --r0: -28deg; }
.landing .text { padding-top: 54px; text-align: center; }
.landing .k { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--stamp); text-transform: uppercase; }
.landing .h { margin: 2px 0; font-family: var(--font-serif); font-size: 22px; font-weight: 700; }
.landing .d { margin: 0; font-size: 13px; color: var(--ink-soft); }
.replay {
  position: absolute; z-index: 6; left: var(--ax); bottom: 24px; transform: translateX(-50%);
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.stage.arrived[data-phase="walk"] .replay { opacity: 1; pointer-events: auto; transition-delay: 2.2s; }
@keyframes slam {
  0% { transform: scale(2.4) rotate(var(--r0, -24deg)); opacity: 0; }
  55% { opacity: 0.95; }
  70% { transform: scale(0.94) rotate(var(--r, -8deg)); }
  100% { transform: scale(1) rotate(var(--r, -8deg)); opacity: 0.92; }
}
.stage.shake { animation: shake 0.34s ease-in-out; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-2px, 1px); } 80% { transform: translate(2px, 0); } }

/* ---------- Stamps ---------- */

.stamp {
  display: block; overflow: visible;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='g' x='0' y='0' width='150' height='150' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.4 2.65'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23g)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='g' x='0' y='0' width='150' height='150' filterUnits='userSpaceOnUse'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.4 2.65'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23g)'/%3E%3C/svg%3E");
  -webkit-mask-size: 150px 150px; mask-size: 150px 150px;
}
.stamp text { font-family: var(--font-ui); }
.stamp .center { font-family: var(--font-serif); font-weight: 800; }
.stamp .center.latin-center { font-family: var(--font-latin); font-style: italic; font-weight: 400; }

/* ---------- The passport ---------- */

.passport {
  position: absolute; z-index: 5; left: var(--ax); top: var(--ay);
  transform: translate(-50%, -50%) translateY(50px) scale(0.92);
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s, transform 0.9s var(--ease-out);
  perspective: 2200px;
}
.stage[data-phase="passport"] .passport { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.book { position: relative; width: min(330px, 80vw); aspect-ratio: 3 / 4.1; }
.visa { position: absolute; inset: 0; border-radius: 4px 12px 12px 4px; padding: 16px 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); cursor: crosshair; }
.visa .guilloche { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; pointer-events: none; }
.visa .head { position: relative; display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--ink-soft); }
.visa-grid { position: absolute; inset: 44px 10px 40px; }
.visa-grid .stamp-at { position: absolute; transform: translate(-50%, -50%); }
.visa-grid .stamp-at > * { animation: slam 0.5s var(--ease-spring) both; }
.visa-hint { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: 12px; color: var(--ink-soft); }
.cover {
  position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d;
  transform: rotateY(calc(var(--open, 0) * -168deg));
}
.cover-front, .cover-back { position: absolute; inset: 0; border-radius: 4px 14px 14px 4px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.cover-front {
  padding: 34px 24px 26px;
  color: var(--gold); text-align: center;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, var(--cloth), var(--cloth-deep));
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.25), inset 8px 0 14px rgba(0, 0, 0, 0.25), 0 30px 60px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.cover-front::before { content: ""; position: absolute; inset: 12px 12px 12px 18px; border: 1px solid rgba(233, 199, 135, 0.45); border-radius: 6px 12px 12px 6px; pointer-events: none; }
.cover-title { margin: 0; font-family: var(--font-serif); font-size: 30px; letter-spacing: 0.24em; font-weight: 700; line-height: 1.2; }
:lang(en) .cover-title, :lang(de) .cover-title { font-family: var(--font-latin); letter-spacing: 0.06em; font-weight: 400; font-size: 34px; }
.cover-front svg { width: 96px; height: 96px; }
.cover-front .en { font-size: 10px; letter-spacing: 0.3em; }
.cover-front .stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-top: 4px; }
.cover-front .stats div { display: flex; flex-direction: column; }
.cover-front .stats div + div { border-left: 1px solid rgba(233, 199, 135, 0.3); }
.cover-front .stats b { font-family: var(--font-latin); font-size: 30px; font-weight: 400; color: #fff; line-height: 1.1; }
.cover-front .stats span { font-size: 11px; color: rgba(233, 199, 135, 0.85); }
.cover-back {
  transform: rotateY(180deg);
  background:
    repeating-radial-gradient(circle at 50% 118%, rgba(45, 75, 144, 0.07) 0 1px, transparent 1px 7px),
    repeating-radial-gradient(circle at 50% -18%, rgba(179, 50, 40, 0.05) 0 1px, transparent 1px 9px),
    linear-gradient(160deg, #efe6d3, #dccfb5);
  box-shadow: inset -8px 0 18px rgba(0, 0, 0, 0.12);
}
.cover-back::before { content: ""; position: absolute; left: 50%; top: 50%; width: 40%; aspect-ratio: 1; transform: translate(-50%, -58%); border-radius: 50%; border: 1px solid rgba(45, 75, 144, 0.12); box-shadow: 0 0 0 9px rgba(45, 75, 144, 0.025), 0 0 0 10px rgba(45, 75, 144, 0.08); }
.cover-back::after { content: "TERRADRIFT · PASSPORT"; position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 9px; font-weight: 700; letter-spacing: 0.32em; color: rgba(34, 31, 28, 0.38); }
@media (min-width: 900px) {
  /* The open book: the visa page sits right of the action point, the cover opens to its left. */
  .passport { left: calc(var(--ax) + 150px); }
}

.phase-dots { position: absolute; right: 22px; top: 50%; z-index: 7; display: grid; gap: 10px; transform: translateY(-50%); }
.phase-dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); transition: height 0.5s var(--ease-out), background 0.4s; }
.phase-dots span.on { height: 22px; background: var(--lantern); }

/* Narrow screens: the action sits at the top, the words in a sheet at the bottom. */
@media (max-width: 899px) {
  .step-card {
    left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto; padding: 18px 20px 18px; border-radius: 24px;
    transform: translateY(30px);
  }
  .step-card.on { transform: none; }
  .step-card.past { transform: translateY(-14px); }
  .step-card h2 { font-size: 26px; margin-bottom: 8px; }
  .step-card p { font-size: 14.5px; line-height: 1.65; }
  .step-card .hint { margin-top: 8px; font-size: 13px; }
  .phase-dots { display: none; }
  .far-card {
    position: absolute; left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto; margin: 0 auto; max-width: 460px; transform: none;
  }
  @keyframes card-in { from { opacity: 0; transform: translateY(40px) scale(0.97); } }
  .far-card .paper-card { display: grid; grid-template-columns: 108px 1fr; gap: 0 12px; padding: 10px; }
  .far-card .photo { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .far-card .photo .time { left: 6px; bottom: 6px; font-size: 11px; padding: 2px 8px; }
  .far-card .meta { padding: 2px 0 0; }
  .far-card h3 { font-size: 21px; }
  .far-card h3 .latin { font-size: 16px; }
  .far-card .story { font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .far-card .credit { margin-top: 6px; }
  .far-card .row { grid-column: 1 / -1; margin-top: 10px; }
  .far-card .close { top: -12px; right: -4px; }
  .plan { top: auto; bottom: calc(var(--sheet, 220px) + 26px); width: min(340px, calc(100% - 24px)); padding: 8px; }
  .plan .purposes { display: none; }
  .deck { top: calc(var(--ay) - 6px); width: min(400px, calc(100% - 28px)); }
  .deck-head { display: none; }
  .deck-tickets { gap: 8px; }
  .ticket-front { min-height: 104px; }
  .ticket-body { padding: 9px 12px; }
  .ticket-body .dir b { font-size: 22px; }
  .ticket-body .clue { font-size: 12.5px; }
  .ticket-body .compass { width: 44px; height: 44px; }
  .ticket-back .shot { height: 84px; }
  .landing { top: auto; bottom: calc(var(--sheet, 220px) + 26px); width: min(360px, calc(100% - 28px)); padding: 12px; }
  .landing .text { padding-top: 40px; }
  .landing .polaroid { width: 78px; top: -36px; }
  .landing .stamp-slot { width: 88px; height: 88px; top: -36px; }
  .replay { bottom: auto; top: 76px; }
  .book { width: min(190px, 46vw); }
  .passport { left: calc(var(--ax) + min(95px, 23vw)); }
  .cover-front { padding: 24px 16px 18px; gap: 10px; }
  .cover-title { font-size: 22px; }
  .cover-front svg { width: 64px; height: 64px; }
  .cover-front .stats b { font-size: 22px; }
  .hero-copy { top: calc(76px + 2vh); }
  .globe-hint { bottom: 78px; }
  .scroll-cue { bottom: 18px; }
  .scroll-cue .wheel { display: none; }
}
@media (max-width: 899px) and (max-height: 720px) {
  .lede { display: none; }
}

/* ---------- Marquee of places ---------- */

.marquee { position: relative; overflow: hidden; padding: 34px 0; border-block: 1px solid var(--hair); background: linear-gradient(180deg, var(--night), #070a14); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 120s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-latin); font-style: italic; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  transition: color 0.3s;
}
.marquee-track span:hover { color: var(--lantern); -webkit-text-stroke-color: transparent; }
.marquee-track span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lantern); box-shadow: 0 0 14px var(--lantern); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(96px, 13vw, 180px) 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section-head { max-width: 900px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(40px, 6.2vw, 88px); line-height: var(--display-leading); letter-spacing: var(--display-track);
}
/* Full-width characters: ten to a line on a phone, so a CJK heading phrase rarely has to break. */
:lang(ja) .section-head h2, :lang(zh-Hans) .section-head h2, :lang(zh-Hant) .section-head h2 { font-size: clamp(33px, 6.2vw, 88px); }
.section-head p { max-width: 680px; margin: 22px 0 0; color: var(--text-soft); font-size: clamp(16px, 1.4vw, 19px); }

.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Today's far postcard and the 42 places ---------- */

.far::before { content: ""; position: absolute; inset: 0 0 auto; height: 60%; pointer-events: none; background: radial-gradient(50% 60% at 80% 0%, rgba(255, 189, 104, 0.08), transparent 70%); }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.postcard { position: relative; perspective: 1800px; cursor: pointer; outline: none; }
.postcard { transition: opacity 0.38s, transform 0.38s var(--ease-out); }
.postcard:focus-visible .postcard-face { outline: 2px solid var(--lantern); outline-offset: 4px; }
.postcard.swap-out { opacity: 0; transform: translateY(18px) rotate(-2.5deg) scale(0.97); }
.postcard.swap-in { transition: none; opacity: 0; transform: translateY(-22px) rotate(2deg) scale(0.97); }
.postcard-inner {
  position: relative; display: grid; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg)));
  transition: transform 1s var(--ease-spring);
}
.postcard.tilting .postcard-inner { transition: transform 0.25s linear; }
.postcard.turned { --flip: 180deg; }
.postcard-face {
  grid-area: 1 / 1; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: 10px; padding: 14px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  aspect-ratio: 3 / 2.25;
}
.postcard-front { display: flex; flex-direction: column; }
.postcard-front .photo { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 4px; background: var(--paper-shade); }
.postcard-front .photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 1.2s var(--ease-out), opacity 0.5s; }
.postcard:hover .postcard-front .photo img { transform: scale(1.07); }
.postcard-front .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.22) 48%, rgba(255, 255, 255, 0) 62%); transform: translateX(var(--glare, -40%)); transition: transform 0.25s linear; pointer-events: none; mix-blend-mode: soft-light; }
.postcard-front .caption { display: flex; align-items: baseline; gap: 10px; padding: 12px 4px 0; min-width: 0; }
.postcard-front .caption b { font-family: var(--font-serif); font-size: 24px; white-space: nowrap; }
.postcard-front .caption .latin { font-size: 21px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.postcard-front .caption .no { margin-left: auto; font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; white-space: nowrap; }
.postcard-back { transform: rotateY(180deg); display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; padding: 22px 24px; }
.postcard-back .words { display: flex; flex-direction: column; gap: 10px; border-right: 1px solid rgba(34, 31, 28, 0.15); padding-right: 20px; min-width: 0; }
.postcard-back .words .k { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--stamp-blue); text-transform: uppercase; }
.postcard-back .words h4 { margin: 0; font-family: var(--font-serif); font-size: 26px; line-height: 1.2; }
.postcard-back .words p { margin: 0; font-family: var(--font-serif); font-size: 16.5px; line-height: 1.85; }
.postcard-back .words .time { margin-top: auto; font-size: 13px; color: var(--ink-soft); font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.postcard-back .side { position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.perf {
  align-self: flex-end; width: 96px; padding: 6px; background: #fffdf8;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3px, #0000 95%, #000) -5px -5px / 10px 10px round;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 3px, #0000 95%, #000) -5px -5px / 10px 10px round;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}
.perf img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.postcard-back .postmark { position: absolute; right: 60px; top: 46px; width: 92px; height: 92px; transform: rotate(-14deg); }
.postcard-back .waves { position: absolute; right: -6px; top: 70px; width: 120px; height: 40px; opacity: 0.7; }
.address { display: grid; gap: 14px; padding-bottom: 6px; }
.address span { display: block; border-bottom: 1px solid rgba(34, 31, 28, 0.35); padding: 0 2px 4px; font-family: var(--font-serif); font-size: 15px; }
.address .k { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--ink-soft); border: 0; padding: 0; font-family: var(--font-ui); text-transform: uppercase; }
.address .latin { font-size: 17px; }

.today-k { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; color: var(--lantern); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.today-name { margin: 10px 0 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(40px, 4.6vw, 64px); line-height: 1.05; letter-spacing: var(--display-track); }
.today-name .latin { display: block; margin-top: 6px; font-size: 0.48em; color: var(--text-soft); }
.today-where { margin: 12px 0 0; color: var(--text-soft); }
.clock { display: flex; align-items: center; gap: 14px; margin: 24px 0 0; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hair); width: fit-content; }
.clock svg { width: 46px; height: 46px; flex: none; }
.clock .t { font-family: var(--font-latin); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.clock .d { display: block; font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.feature-copy .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.far-credit { margin: 18px 0 0; font-size: 12px; color: var(--text-faint); }
.far-credit a { color: inherit; }

.rails { display: grid; gap: 18px; margin-top: clamp(72px, 9vw, 120px); }
.rail { overflow: hidden; touch-action: pan-y; cursor: grab; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rail.dragging { cursor: grabbing; }
.track { display: flex; gap: 18px; width: max-content; will-change: transform; padding: 12px 0 18px; }
.place-card {
  position: relative; flex: none; width: clamp(190px, 18vw, 250px); aspect-ratio: 3 / 4;
  padding: 0; border: 0; border-radius: 22px; overflow: hidden; cursor: pointer; text-align: left;
  background: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
}
.place-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 189, 104, 0.35); }
.place-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); pointer-events: none; -webkit-user-drag: none; user-select: none; }
.place-card:hover img { transform: scale(1.08); }
.place-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.1) 52%, rgba(0, 0, 0, 0) 70%); }
.place-card .t { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; }
.place-card .t b { display: block; font-family: var(--font-serif); font-size: 21px; line-height: 1.2; font-weight: 700; }
.place-card .t .latin { display: block; font-size: 16px; color: rgba(255, 255, 255, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-card .t small { display: block; margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.place-card .clockchip { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; color: #fff; background: rgba(0, 0, 0, 0.38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }
.clockchip svg { width: 12px; height: 12px; }
.place-card.current { box-shadow: 0 0 0 2px var(--lantern), 0 24px 50px rgba(0, 0, 0, 0.5); }
.rail-hint { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--text-faint); }
@media (max-width: 899px) {
  .feature { grid-template-columns: 1fr; }
  .feature-copy { order: -1; }
}
@media (max-width: 560px) {
  .postcard-face { aspect-ratio: auto; min-height: 340px; }
  .postcard-front .photo { min-height: 250px; }
  .postcard-back { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .postcard-back .words { border-right: 0; padding-right: 0; border-bottom: 1px solid rgba(34, 31, 28, 0.15); padding-bottom: 12px; }
  .postcard-back .words p { font-size: 14px; line-height: 1.75; }
  .postcard-back .side { flex-direction: row; align-items: flex-end; gap: 12px; }
  .postcard-back .postmark { right: auto; left: 44%; top: auto; bottom: 30px; width: 76px; height: 76px; }
  .postcard-back .waves { display: none; }
  .address { flex: 1; }
  .perf { order: 2; width: 80px; }
  .clock .t { font-size: 32px; }
  .place-card { width: 168px; border-radius: 18px; }
}

/* ---------- Friends ---------- */

.friends::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 40% at 50% 38%, rgba(102, 222, 191, 0.1), transparent 70%); }
.airdrop {
  position: relative;
  display: grid; grid-template-columns: auto minmax(120px, 1fr) auto; align-items: center; gap: clamp(8px, 2vw, 28px);
  max-width: 900px; margin: 0 auto;
}
.phone { display: grid; justify-items: center; gap: 14px; }
.phone .screen {
  position: relative; width: clamp(150px, 22vw, 260px); aspect-ratio: 9 / 19.2;
  border-radius: clamp(26px, 3.6vw, 44px); overflow: hidden;
  background: #0b0f1c;
  box-shadow: 0 0 0 clamp(5px, 0.7vw, 9px) #16181f, 0 0 0 clamp(6px, 0.8vw, 10px) #2a2d36, 0 40px 80px rgba(0, 0, 0, 0.6);
}
.phone .screen::before { content: ""; position: absolute; left: 50%; top: 2.2%; width: 28%; height: 3%; transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 5; }
.phone-label { margin: 0; font-size: 13px; color: var(--text-faint); }
.compose-photo { position: absolute; inset: 0 0 45%; }
.compose-photo img { width: 100%; height: 100%; object-fit: cover; }
.compose {
  position: absolute; left: 6%; right: 6%; bottom: 4%;
  padding: 9% 8%; border-radius: clamp(14px, 2vw, 22px);
  display: grid; gap: 6%; font-size: clamp(9px, 1.1vw, 13px); line-height: 1.4;
}
.compose-title { margin: 0; font-weight: 750; font-size: 1.15em; }
.compose .row { display: flex; justify-content: space-between; color: var(--ink-soft); }
.compose .row b { color: var(--ink); }
.compose-note { margin: 0; font-family: var(--font-serif); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; border-radius: 999px; background: rgba(34, 31, 28, 0.08); text-align: center; }
.seg i { font-style: normal; padding: 2px 0; border-radius: 999px; color: var(--ink-soft); white-space: nowrap; }
.seg i.on { background: var(--jade-ink); color: #fff; }
.send { display: block; text-align: center; padding: 0.6em 0; border-radius: 999px; background: var(--jade-ink); color: #fff; font-weight: 750; transition: transform 0.2s; }
.airdrop.play .send { animation: press 0.4s ease 0.2s; }
@keyframes press { 50% { transform: scale(0.9); filter: brightness(1.2); } }

.air { position: relative; height: clamp(90px, 14vw, 170px); align-self: center; }
.arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arc path { fill: none; stroke: rgba(102, 222, 191, 0.45); stroke-width: 1.5; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.flyer { position: absolute; left: 0; bottom: 0; width: clamp(56px, 7vw, 86px); padding: 4px 4px 10px; border-radius: 4px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); opacity: 0; }
.flyer img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: 2px; }
.ring { position: absolute; left: -6%; bottom: -4%; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(102, 222, 191, 0.8); opacity: 0; }
.airdrop.play .ring { animation: ring 1.4s var(--ease-out) 0.3s; }
.airdrop.play .ring:nth-of-type(2) { animation-delay: 0.55s; }
.airdrop.play .ring:nth-of-type(3) { animation-delay: 0.8s; }
@keyframes ring { from { transform: scale(0.4); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }

.mini-globe {
  position: absolute; left: 50%; top: 16%; width: 76%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: url("../img/earth-2k.jpg") 115.65% 50% / 200% 100% repeat-x; /* Yanaka, Tokyo under the beacon; friends.js turns it */
  box-shadow: inset -18px -14px 40px rgba(0, 0, 0, 0.85), inset 6px 6px 22px rgba(120, 160, 255, 0.25), 0 0 34px rgba(80, 130, 255, 0.35);
  filter: brightness(0.7) saturate(0.85);
}
.mini-globe::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(5, 8, 22, 0.1), rgba(5, 8, 22, 0.55)); }
.beacon { position: absolute; left: 62%; top: 30%; z-index: 1; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #eafff8; box-shadow: 0 0 10px 4px rgba(102, 222, 191, 0.8); opacity: 0; }
.beacon::before { content: ""; position: absolute; left: 50%; bottom: 50%; width: 2px; height: 60px; margin-left: -1px; transform-origin: bottom; transform: scaleY(0); background: linear-gradient(to top, #eafff8, rgba(102, 222, 191, 0)); box-shadow: 0 0 10px rgba(102, 222, 191, 0.9); }
.airdrop.play .beacon { animation: fade-in 0.4s 2.2s both; }
.airdrop.play .beacon::before { animation: rise 1s var(--ease-out) 2.3s both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.notice {
  position: absolute; left: 5%; right: 5%; top: 7%; z-index: 4;
  display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 14px;
  font-size: clamp(8.5px, 1vw, 11.5px); line-height: 1.3;
  transform: translateY(-160%); opacity: 0;
}
.notice img { width: 2em; height: 2em; border-radius: 0.5em; flex: none; }
.notice b { display: block; font-weight: 700; }
.notice small { display: block; color: var(--ink-soft); }
.airdrop.play .notice { animation: drop-in 4s var(--ease-out) 1.5s both; }
@keyframes drop-in { 0% { transform: translateY(-160%); opacity: 0; } 12% { transform: none; opacity: 1; } 80% { transform: none; opacity: 1; } 100% { transform: translateY(-160%); opacity: 0; } }
.receive {
  position: absolute; left: 5%; right: 5%; bottom: 3%; z-index: 3;
  padding: 7%; border-radius: 16px; font-size: clamp(9px, 1.05vw, 12px);
  transform: translateY(115%);
}
.receive-photo { border-radius: 6px; overflow: hidden; }
.receive-photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.receive-from { margin: 7px 0; font-family: var(--font-serif); font-weight: 700; font-size: 1.15em; }
.keep { display: block; text-align: center; padding: 0.55em 0; border-radius: 999px; background: var(--jade-ink); color: #fff; font-weight: 750; }
.airdrop.play .receive { animation: sheet-up 0.8s var(--ease-out) 3.4s both; }
@keyframes sheet-up { to { transform: none; } }
.replay-send { position: absolute; left: 50%; bottom: -64px; transform: translateX(-50%); }

.friend-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 48px); margin-top: clamp(110px, 12vw, 150px); align-items: start; }
.invite { display: flex; align-items: center; gap: 24px; padding: 24px; border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.invite .stamp-wrap { position: relative; flex: none; width: 124px; height: 124px; transform: rotate(-6deg); }
.invite.in .stamp-wrap > * { animation: slam 0.55s var(--ease-spring) 0.5s both; --r: 0deg; --r0: -20deg; }
.invite-k { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--jade-ink); text-transform: uppercase; }
.invite p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.invite strong { color: var(--jade-ink); font-weight: 700; }
.precision { border-radius: var(--radius-card); padding: 22px; }
.precision h3 { margin: 0 0 14px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; letter-spacing: var(--display-track); line-height: 1.2; }
.segments { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.segments button { position: relative; z-index: 1; min-height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--text-soft); font-size: 14px; font-weight: 650; cursor: pointer; transition: color 0.3s; }
.segments button[aria-pressed="true"] { color: #04231c; }
.segments .thumb { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: var(--jade); box-shadow: 0 6px 20px rgba(102, 222, 191, 0.35); transform: translateX(calc(var(--seg, 1) * 100%)); transition: transform 0.55s var(--ease-spring); }
.precision-map { position: relative; margin: 14px 0 12px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #10161d; }
.precision-map svg { width: 100%; height: 100%; display: block; }
.precision-map .layer { opacity: 0; transition: opacity 0.5s, transform 0.7s var(--ease-spring); transform-box: fill-box; transform-origin: center; transform: scale(0.6); }
.precision-map[data-mode="exact"] .l-exact, .precision-map[data-mode="street"] .l-street, .precision-map[data-mode="city"] .l-city { opacity: 1; transform: none; }
.precision .what { margin: 0; font-size: 15px; color: var(--text); min-height: 3.4em; }
.precision .privacy-line { margin: 12px 0 0; font-size: 13px; color: var(--text-faint); }
@media (max-width: 899px) { .friend-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .airdrop { grid-template-columns: auto 1fr auto; gap: 4px; }
  .phone .screen { width: 40vw; }
  .air { height: 70px; }
  .invite { flex-direction: column; align-items: flex-start; padding: 20px; }
}

/* ---------- Privacy ---------- */

.zeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: clamp(36px, 5vw, 60px); border-block: 1px solid var(--hair); }
.zeros > div { padding: 26px 18px; display: grid; gap: 4px; }
.zeros > div + div { border-left: 1px solid var(--hair); }
.zeros b { font-family: var(--font-latin); font-weight: 400; font-size: clamp(54px, 7vw, 104px); line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.45)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zeros span { font-size: 14px; color: var(--text-soft); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { border-radius: 28px; padding: 28px; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: transform 0.6s var(--ease-out); }
.tile:hover { transform: translateY(-4px); }
.tile-wide { grid-column: span 2; }
.tile h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.tile p { margin: 0; font-size: 15px; color: var(--text-soft); line-height: 1.75; max-width: 560px; }
.tile-icon { width: 44px; height: 44px; color: var(--lantern); margin-bottom: auto; }
.tile-icon path, .tile-icon rect, .tile-icon circle { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.8s var(--ease-out) 0.3s; }
.tile.in .tile-icon path, .tile.in .tile-icon rect, .tile.in .tile-icon circle { stroke-dashoffset: 0; }
.photos-art { position: relative; height: 120px; margin-bottom: auto; }
.photos-art i { position: absolute; top: 20px; width: 64px; height: 80px; border-radius: 8px; background: linear-gradient(135deg, #3b4a7a, #1b2340); border: 3px solid #f7f0e1; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); transition: transform 1s var(--ease-spring); }
.photos-art i:nth-child(1) { left: 0; transform: rotate(-12deg); background: linear-gradient(135deg, #f3b26b, #b2523b); }
.photos-art i:nth-child(2) { left: 46px; transform: rotate(-3deg); background: linear-gradient(135deg, #7fc6d9, #2d5b8a); }
.photos-art i:nth-child(3) { left: 92px; transform: rotate(6deg); background: linear-gradient(135deg, #9fd38a, #3a6b3e); }
.photos-art i:nth-child(4) { left: 138px; transform: rotate(14deg); background: linear-gradient(135deg, #e7a6c4, #7d3a6b); }
.photos-art .phone-outline { position: absolute; left: 240px; top: 0; width: 70px; height: 124px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.35); }
.photos-art .phone-outline::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 18px; margin: -6px 0 0 -11px; border-radius: 4px; background: var(--lantern); box-shadow: 0 0 18px rgba(255, 189, 104, 0.6); }
.photos-art .phone-outline::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -17px 0 0 -9px; border-radius: 8px 8px 0 0; border: 2.5px solid var(--lantern); border-bottom: 0; }
.tile.in .photos-art i:nth-child(1) { transform: translate(244px, 22px) rotate(0) scale(0.45); }
.tile.in .photos-art i:nth-child(2) { transform: translate(198px, 22px) rotate(0) scale(0.45); transition-delay: 0.12s; }
.tile.in .photos-art i:nth-child(3) { transform: translate(152px, 22px) rotate(0) scale(0.45); transition-delay: 0.24s; }
.tile.in .photos-art i:nth-child(4) { transform: translate(106px, 22px) rotate(0) scale(0.45); transition-delay: 0.36s; }
.more { display: inline-flex; gap: 8px; margin-top: 30px; color: var(--lantern); text-decoration: none; font-weight: 650; }
.more span { transition: transform 0.3s var(--ease-out); }
.more:hover span { transform: translateX(5px); }
@media (max-width: 899px) {
  .zeros { grid-template-columns: 1fr 1fr; }
  .zeros > div:nth-child(3) { border-left: 0; }
  .zeros > div:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
}

/* Sections out of view hold their looping animations (fx.js marks them). */
.idle, .idle *, .idle *::before, .idle *::after { animation-play-state: paused !important; }

/* ---------- The end ---------- */

.outro { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--gutter) 30vh; overflow: hidden; isolation: isolate; }
.lanterns { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
/* The texture turns as its own layer (moving a background would repaint this 2,300 px disc every frame); the black
   overlay does what a brightness(0.38) filter did, and the glows carry the same darkened colours. */
.planet {
  position: absolute; left: 50%; top: 72%; z-index: -2;
  width: max(160vw, 1400px); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; overflow: hidden; background: #05070d;
  box-shadow: 0 -2px 0 rgba(61, 76, 97, 0.5), 0 -30px 90px rgba(30, 49, 97, 0.45), 0 -80px 200px rgba(97, 72, 40, 0.12);
}
.planet::before {
  content: ""; position: absolute; left: 0; top: 0; width: 400%; height: 100%;
  background: url("../img/earth-2k.jpg") 0 0 / 50% 100% repeat-x;
  transform: translateX(-3%);
  animation: planet 200s linear infinite;
}
.planet::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.62); box-shadow: inset 0 40px 120px rgba(0, 0, 0, 0.75); }
@keyframes planet { to { transform: translateX(-53%); } }
.outro-copy { position: relative; text-align: center; max-width: 980px; }
.outro-copy h2 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(42px, 7vw, 104px); line-height: var(--display-leading); letter-spacing: var(--display-track); }
.outro-copy p { margin: 24px auto 32px; max-width: 560px; color: var(--text-soft); font-size: 18px; }

/* ---------- Footer ---------- */

.footer { position: relative; border-top: 1px solid var(--hair); background: #04050a; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 56px var(--gutter) 64px; display: grid; gap: 26px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer .brand img { width: 44px; height: 44px; border-radius: 11px; }
.footer .brand { font-size: 18px; align-items: center; }
.footer .brand .latin { color: var(--text-soft); margin-left: 4px; }
.footer .brand small { display: block; font-size: 13px; font-weight: 400; color: var(--text-faint); letter-spacing: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.footer nav a { color: var(--text-soft); text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer-langs a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--hair); font-size: 13px; color: var(--text-soft); text-decoration: none; }
.footer-langs a:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.footer-langs a[aria-current="true"] { color: var(--night); background: var(--lantern); border-color: var(--lantern); }
.footer .credits { margin: 0; font-size: 12px; color: var(--text-faint); line-height: 1.8; }
.footer .credits a { color: var(--text-soft); }

/* ---------- Document pages ---------- */

.doc { max-width: 780px; margin: 0 auto; padding: 132px var(--gutter) 96px; }
.doc-wide { max-width: 1120px; }
.doc h1 { margin: 0; font-family: var(--font-display); font-size: clamp(38px, 5.6vw, 68px); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: var(--display-leading); }
.doc .updated { margin: 14px 0 44px; color: var(--text-faint); font-size: 14px; }
.doc h2 { margin: 52px 0 12px; font-size: 23px; font-weight: 600; }
.doc h3 { margin: 28px 0 8px; font-size: 17px; font-weight: 650; }
.doc p, .doc li { color: var(--text-soft); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--lantern); }
.doc a.btn-lantern { color: var(--night); }
.doc .lead { font-size: 19px; color: var(--text); margin-top: 22px; }
.doc .box { margin: 28px 0; padding: 20px 22px; border-radius: var(--radius-card); }
.doc .box p { margin: 0; color: var(--text); }
.doc details { border-bottom: 1px solid var(--hair); padding: 16px 0; }
.doc summary { cursor: pointer; font-size: 17px; color: var(--text); font-weight: 550; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; color: var(--lantern); font-size: 22px; line-height: 1; transition: transform 0.3s var(--ease-out); }
.doc details[open] summary::after { transform: rotate(45deg); }
.doc details p { margin: 10px 0 0; }
.placeholder { padding: 1px 6px; border-radius: 6px; background: rgba(255, 189, 104, 0.16); color: var(--lantern); }
.doc .credit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; padding: 0; list-style: none; }
.doc .credit-list li { margin: 0; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hair); }
.credit-list img { aspect-ratio: 3 / 2; width: 100%; height: auto; object-fit: cover; }
.credit-list div { padding: 10px 12px 12px; font-size: 13px; display: grid; gap: 2px; }
.credit-list b { color: var(--text); font-size: 15px; font-weight: 550; }
.credit-list span { color: var(--text-faint); }
.credit-list a { white-space: nowrap; }

/* ---------- The bare address, and 404 ---------- */

.chooser { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 30%, rgba(78, 70, 160, 0.25), transparent 70%), var(--night); }
.chooser-main { display: grid; justify-items: center; gap: 18px; padding: 40px var(--gutter); text-align: center; }
.chooser-main img { border-radius: 18px; box-shadow: 0 20px 60px rgba(255, 189, 104, 0.2); }
.chooser-main h1 { margin: 0; font-family: var(--font-latin); font-size: clamp(48px, 9vw, 96px); font-weight: 400; line-height: 1; }
.chooser-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.chooser-list a { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); text-decoration: none; color: var(--text-soft); }
.chooser-list a:hover { color: var(--night); background: var(--lantern); border-color: var(--lantern); }
.lost h1 { font-family: var(--font-display); font-style: normal; font-size: clamp(36px, 6vw, 64px); }
.lost p { color: var(--text-soft); margin: 0; }

/* ---------- Less motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
  body::after { animation: none; }
  .marquee-track { animation: none; }
  .js [data-split] .w, .reveal { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}
