/* Everplace website styles: a night sky, the Earth with its city lights, editorial serif
   headlines and a row of equal cards, one per feature, that the visitor moves with two small
   arrows. Dark only. The glass is used sparingly: the header, the arrows, the small floating
   sheets inside the cards and a faint frost on the cards themselves. Fonts are self hosted
   (Fraunces for headlines, the app's title face, and Archivo for the wordmark and small
   capitals, both injected by build.py), body text is the system face. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/assets/fonts/archivo-latin-ext.49408639f4.woff2") format("woff2"); unicode-range: U+0100-0101,U+0104-010F,U+0112-0127,U+012A-0167,U+016A-017F,U+0218-021B,U+1E9E,U+20A0-20AA,U+20AD-20C0,U+2113; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/assets/fonts/archivo-latin.32fe2c69db.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/assets/fonts/archivo-vietnamese.9e0d5210f4.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/fraunces-italic-latin-ext.07384db1d8.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/fraunces-italic-latin.408a147d6d.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/fraunces-italic-vietnamese.e357e76cf1.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/fraunces-latin-ext.82316c83c0.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/fraunces-latin.b8250f5f3f.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/fraunces-vietnamese.cbb93d8ef8.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

/* ---------- 1. Tokens ---------- */
:root {
  --night-0: #04070D;
  --night-1: #060A14;
  --night-2: #09101E;
  --night-3: #0D1629;
  --ink: #F3EEE6;
  --ink-2: rgba(243, 238, 230, 0.72);
  --ink-3: rgba(243, 238, 230, 0.52);
  --ink-4: rgba(243, 238, 230, 0.36);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.12);
  --ember: #FF7A45;
  --ember-deep: #E85D2C;
  --ember-soft: #FFB08A;
  --cream: #EECDA0;
  --gold: #E8C88F;
  --friend: #5FD39C;
  --group: #A78BFA;
  --echo: #8DB8F0;
  --paper: #7AC7FF;
  --atmo: #5AA9FF;
  --focus: #FFB48F;
  --serif: "Fraunces", ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --serif-weight: 360;
  --serif-scale: 1;
  --serif-track: -0.022em;
  --serif-lh: 1.02;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --caps: "Archivo", var(--sans);
  --caps-track: 0.2em;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --header-h: 84px;
  --pad-x: 16px;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --pad-x: 24px; } }
@media (min-width: 1100px) { :root { --pad-x: 40px; } }
/* Fraunces has no Greek or Cyrillic: the system serif there */
:root:lang(el), :root:lang(ru), :root:lang(uk) {
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", "Noto Serif", serif;
  --serif-weight: 400;
  --serif-scale: 0.9;
  --serif-track: -0.018em;
  --serif-lh: 1.08;
}
/* like the app: CJK, Thai and Hindi headlines in the system sans */
:root:lang(ja), :root:lang(ko), :root:lang(zh), :root:lang(th), :root:lang(hi) {
  --serif: var(--sans);
  --serif-weight: 600;
  --serif-scale: 0.8;
  --serif-track: 0;
  --serif-lh: 1.24;
  --caps-track: 0.08em;
}
:root:lang(th), :root:lang(hi) { --caps-track: 0.02em; }

/* ---------- 2. Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; background: var(--night-0); }
html { scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top)); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-wrap: break-word;
  background: linear-gradient(180deg, var(--night-1) 0, var(--night-2) 1100px, var(--night-1) 70%, var(--night-0) 100%);
}
/* fine film grain, very faint */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: rgba(255, 122, 69, 0.35); color: #fff; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 300;
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--night-1);
  font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--pad-x); }

/* ---------- 3. Type ---------- */
.serif {
  font-family: var(--serif);
  font-weight: var(--serif-weight);
  font-optical-sizing: auto;
  letter-spacing: var(--serif-track);
  line-height: var(--serif-lh);
  text-wrap: balance;
}
/* the accent half of a headline: the same upright letters in cream (italics live only in the Earth's hint) */
.serif em { font-style: normal; color: var(--cream); }
:root:lang(ja) .serif em, :root:lang(ko) .serif em, :root:lang(zh) .serif em, :root:lang(th) .serif em, :root:lang(hi) .serif em { font-style: normal; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
:lang(ko) { word-break: keep-all; }
.eyebrow, .card__eyebrow {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--caps); font-size: 0.6875rem; line-height: 1.2; font-weight: 600; font-stretch: 112%; font-variation-settings: "wdth" 112;
  letter-spacing: var(--caps-track); text-transform: uppercase; color: var(--ink-3);
}
.req { font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- 4. Glass, buttons, store ---------- */
/* the restrained glass: a translucent night body, a hairline and a faint light along the top edge */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(10, 16, 30, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 600 0.9375rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn--ember, .store--live {
  color: #fff;
  background: linear-gradient(180deg, #FF9566 0%, var(--ember) 55%, var(--ember-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px rgba(255, 110, 60, 0.26);
}
.btn--glass {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}
.btn--glass:hover { background-color: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 28px rgba(0, 0, 0, 0.2); }
.btn--ember:hover, .store--live:hover { filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 32px rgba(255, 110, 60, 0.36); }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 0.9688rem/1.2 var(--sans); text-decoration: none;
}
.store--live { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s; }
.store--live:active { transform: scale(0.97); }
.store--soon { color: var(--ink); cursor: default; user-select: none; -webkit-user-select: none; }
.store__dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 40% 35%, #FFFDF8, #FFE6C9 55%, #E8BD92);
  box-shadow: 0 0 8px 1px rgba(255, 222, 184, 0.45);
  animation: breathe 2.8s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.72; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.12); } }

/* ---------- 5. Header and language menu ---------- */
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
/* no box: the bar sits right on the sky, in the page's own width. Once the page moves, a dusk
   gathers behind it, blurred and fading out downwards, so the header never ends in an edge */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; pointer-events: none;
  padding-top: env(safe-area-inset-top);
}
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -40px; z-index: -1;
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.88) 0%, rgba(5, 9, 18, 0.62) 48%, rgba(6, 10, 20, 0) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
  -webkit-mask: linear-gradient(180deg, #000 38%, transparent); mask: linear-gradient(180deg, #000 38%, transparent);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1200px; height: 72px; margin: 0 auto; padding: 0 var(--pad-x);
}
.site-header__actions { display: flex; align-items: center; gap: 4px; min-width: 0; }
.wordmark { display: inline-flex; text-decoration: none; padding: 6px 0; border-radius: 6px; flex: none; }
/* the launch wordmark: wide capitals in brushed metal */
.wordmark__text {
  font: 560 0.975rem/1 "Archivo", var(--sans);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  background: linear-gradient(180deg, #E3E8F1 0%, #A7B1C3 55%, #7F899D 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.header-cta { min-height: 38px; padding: 0 17px; font-size: 0.8438rem; font-weight: 550; }
.lang { position: relative; }
.lang__btn {
  list-style: none; display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer; user-select: none;
  font-size: 0.875rem; font-weight: 550; color: var(--ink-2);
  background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: color 0.2s, background-color 0.2s;
}
.lang__btn:hover, .lang[open] .lang__btn { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn::marker { content: ""; }
.lang__btn .icon { width: 17px; height: 17px; }
.lang__chev { transition: transform 0.25s var(--ease); }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__current { max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang__panel {
  position: absolute; right: 0; top: calc(100% + 14px); z-index: 60;
  width: 400px; max-width: calc(100vw - 32px); padding: 10px;
  border-radius: 22px; background: rgba(12, 18, 33, 0.95); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 24px 64px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  animation: panelIn 0.24s var(--ease);
  max-height: calc(100vh - var(--header-h) - 32px); max-height: calc(100dvh - var(--header-h) - 32px);
  overflow-y: auto; overscroll-behavior: contain;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
.lang__title { padding: 6px 10px 8px; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.lang__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.lang__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 42px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-size: 0.9375rem; color: var(--ink);
}
.lang__list a:hover { background: rgba(255, 255, 255, 0.06); }
/* the current language: a small piece of silver glass */
.lang__list a[aria-current] { color: var(--ink); background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.lang__check { width: 16px; height: 16px; visibility: hidden; color: #D5DBE6; }
.lang__list a[aria-current] .lang__check { visibility: visible; }
@media (max-width: 639px) {
  .site-header__bar { height: 64px; }
  .lang__current { display: none; }
  .lang__panel { position: fixed; top: calc(env(safe-area-inset-top) + 64px); left: 12px; right: 12px; width: auto; max-width: none;
    max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); }
}
@media (max-width: 419px) {
  .site-header__bar { gap: 6px; }
  .site-header .wordmark__text { letter-spacing: 0.3em; margin-right: -0.3em; }
  .lang__btn { padding: 0 9px; }
  .lang__chev { display: none; }
  .header-cta { padding: 0 13px; font-size: 0.8125rem; }
}
@media (max-width: 339px) { .header-cta { display: none; } }

/* ---------- 6. The night sky ---------- */
/* star layers (their pictures come from build.py, see sky_css) and a low glow where the Earth sits */
.sky { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 72% at 50% 40%, #0E1B35 0%, #0A1326 38%, #070C18 70%, var(--night-1) 100%); }
.sky__stars { position: absolute; inset: 0; background-repeat: repeat; background-position: center top; opacity: 0.85; }
.sky__stars--far { opacity: 0.5; animation: twinkle 7s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 0.32; } to { opacity: 0.62; } }
.sky__glow { position: absolute; left: 50%; top: 42%; width: 120vmax; height: 120vmax; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 130, 230, 0.13), rgba(70, 130, 230, 0.05) 45%, transparent 72%); }

/* ---------- 7. Hero ---------- */
.hero {
  --g: min(52vh, 560px, 82vw);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 6px) 0 clamp(28px, 5vh, 52px);
}
.globe { position: relative; justify-self: center; align-self: center; width: var(--g); height: var(--g); }
/* the picture and the canvases are 1.2 times the globe: the halo lives around it (tools/make_globe.py HALO) */
.globe__body {
  position: absolute; left: 50%; top: 50%; width: calc(var(--g) * 1.2); height: calc(var(--g) * 1.2); transform: translate(-50%, -50%);
  cursor: crosshair; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.globe__still, .globe__gl, .globe__lights { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the soft fade into the words below. It used to be one mask over the whole body, but a mask over live
   canvases is the browser's most fragile way to composite, so each layer now carries the fade itself:
   the picture and the placeholder here, the two canvases in their own drawing (site.js) */
.globe__still {
  -webkit-mask: linear-gradient(180deg, #000 50%, rgba(0, 0, 0, 0.55) 70%, transparent 90%);
  mask: linear-gradient(180deg, #000 50%, rgba(0, 0, 0, 0.55) 70%, transparent 90%);
}
/* with JavaScript the picture waits until it has fully arrived (boot.js adds is-loaded), so a slow
   connection never shows it half drawn: the breathing placeholder holds the place until then */
.js .globe__still { opacity: 0; transition: opacity 0.6s ease; }
.js .globe__still.is-loaded { opacity: 1; }
/* the canvases are not on the page at all until their first real frame is drawn (no empty layer the
   browser could paint while the picture or the texture is still on its way), then they fade in */
.globe__gl, .globe__lights { display: none; }
.globe__gl.is-on, .globe__lights.is-on { display: block; animation: globeIn 0.6s ease both; }
@keyframes globeIn { from { opacity: 0; } to { opacity: 1; } }
/* until the picture arrives a dark planet with a faint rim holds the place */
.globe__body::before {
  content: ""; position: absolute; inset: 8.33%; border-radius: 50%; pointer-events: none; transition: opacity 0.6s ease;
  background: radial-gradient(circle at 64% 36%, #1C3560 0%, #102244 46%, #081120 100%);
  box-shadow: 0 0 0 1px rgba(120, 175, 255, 0.36), 0 0 48px 6px rgba(70, 140, 255, 0.26);
  -webkit-mask: linear-gradient(180deg, #000 50%, rgba(0, 0, 0, 0.55) 74%, transparent 98%);
  mask: linear-gradient(180deg, #000 50%, rgba(0, 0, 0, 0.55) 74%, transparent 98%);
}
/* while the Earth gets ready it breathes softly, then comes alive. site.js adds is-live when the first
   real frame is drawn, or is-static when there is no live Earth to wait for */
@keyframes globeBreath { 0%, 100% { opacity: 0.5; scale: 0.985; } 50% { opacity: 1; scale: 1; } }
.js .globe:not(.is-live):not(.is-static) .globe__body { animation: globeBreath 2.4s ease-in-out infinite; }
.globe.is-live .globe__body, .globe.is-static .globe__body { transition: opacity 0.7s ease, scale 0.7s ease; }
.globe.is-live .globe__body::before { opacity: 0; }
.globe.is-live .globe__still { opacity: 0; transition: opacity 0.6s ease 0.1s; }
.globe.is-dragging .globe__body { cursor: grabbing; }
/* the page is about to go away (a refresh, a link): the frame the browser keeps on screen until the next
   page paints shows the still picture, never a live canvas */
.globe.is-leaving .globe__gl, .globe.is-leaving .globe__lights { display: none; }
.globe.is-leaving .globe__body::before { opacity: 1; transition: none; }
.globe.is-leaving .globe__still.is-loaded { opacity: 1; transition: none; }
.globe.is-leaving .globe__body { animation: none; opacity: 1; scale: 1; transition: none; }
/* without JavaScript the Earth is a picture: no hint, no crosshair */
.no-js .hint { display: none; }
.no-js .globe__body { cursor: default; }

/* the hint under the Earth: the page's only italic line, in cream, after a breathing point of light,
   no box. It leaves once the visitor has touched the Earth or the hint */
.hint {
  position: absolute; left: 50%; bottom: 15.5%; z-index: 3; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 12px; margin: 0; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: italic 400 0.7109rem/1 var(--serif); font-optical-sizing: auto; letter-spacing: 0.01em;
  color: rgba(238, 205, 160, 0.84);
  text-shadow: 0 1px 18px rgba(4, 7, 13, 0.95), 0 0 3px rgba(4, 7, 13, 0.8);
  transition: color 0.25s, opacity 0.5s var(--ease), visibility 0s linear 0s;
}
.hint:hover { color: var(--cream); }
.hint__dot { position: relative; width: 4px; height: 4px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 40% 35%, #FFFDF8, #FFE6C9 60%, #EBC29A); box-shadow: 0 0 6px 1px rgba(255, 222, 184, 0.45);
  animation: breathe 2.6s ease-in-out infinite; }
.hint__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 232, 210, 0.42); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
/* once the Earth or the hint itself has been touched, the hint fades away. It stays in the tab order
   and comes back while it has keyboard focus, so a trace can still be left without a pointer */
.globe.is-touched .hint:not(:focus-visible) { opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }

/* the note that follows a fresh trace for a few seconds: a hairline up to the words and where on Earth */
.mark { position: absolute; left: 0; top: 0; z-index: 4; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity 0.45s var(--ease); }
.mark.is-on { opacity: var(--vis, 1); }
.mark__line { position: absolute; left: 0; top: 0; width: 44px; height: 1px; transform-origin: 0 50%; transform: rotate(-42deg) scaleX(0);
  background: linear-gradient(90deg, rgba(255, 214, 190, 0) 12%, rgba(255, 232, 216, 0.8)); transition: transform 0.55s var(--ease); }
.mark__line::after { content: ""; position: absolute; right: -2px; top: -1px; width: 3px; height: 3px; border-radius: 50%; background: #FFE6D6; }
.mark.is-on .mark__line { transform: rotate(-42deg) scaleX(1); }
.mark__text { position: absolute; left: 38px; bottom: 33px; display: grid; justify-items: start; gap: 7px; white-space: nowrap;
  opacity: 0; transform: translateY(4px); transition: opacity 0.45s var(--ease) 0.16s, transform 0.45s var(--ease) 0.16s;
  text-shadow: 0 1px 14px rgba(4, 7, 13, 0.95), 0 0 3px rgba(4, 7, 13, 0.85); }
.mark.is-on .mark__text { opacity: 1; transform: none; }
/* a soft dusk behind the words, so the city lights never cross them: no box, no edge */
.mark__text::before { content: ""; position: absolute; inset: -20px -30px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(4, 7, 13, 0.8), rgba(4, 7, 13, 0.5) 58%, rgba(4, 7, 13, 0)); }
.mark--left .mark__line { transform: rotate(-138deg) scaleX(0); }
.mark--left.is-on .mark__line { transform: rotate(-138deg) scaleX(1); }
.mark--left .mark__text { left: auto; right: 38px; justify-items: end; }
.mark__title { font: 400 1rem/1 var(--serif); font-optical-sizing: auto; color: var(--cream); }
.mark__title { font-size: 1.0625rem; }
.mark__coords { display: flex; gap: 12px; font: 500 0.6563rem/1.2 var(--caps); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: rgba(243, 238, 230, 0.7); }
:root:lang(ja) .hint, :root:lang(ko) .hint, :root:lang(zh) .hint, :root:lang(th) .hint, :root:lang(hi) .hint { font-style: normal; font-weight: 500; font-size: 0.6875rem; }
:root:lang(ja) .mark__title, :root:lang(ko) .mark__title, :root:lang(zh) .mark__title, :root:lang(th) .mark__title, :root:lang(hi) .mark__title { font-style: normal; font-weight: 500; font-size: 0.9375rem; }

/* the words: centred under the Earth, the call to action under them */
.hero__copy { position: relative; z-index: 2; margin-top: calc(var(--g) * -0.13); display: grid; justify-items: center; text-align: center; }
/* the brand name as the headline, in the cream gold of the page's accents, Fraunces in every language */
.hero__title {
  font-family: "Fraunces", ui-serif, Georgia, serif; font-weight: 460; font-optical-sizing: auto;
  font-size: clamp(4.18rem, 1.76rem + 6.16vw, 7.92rem); line-height: 1; letter-spacing: -0.028em; padding-bottom: 0.08em;
  color: var(--cream); background: linear-gradient(180deg, #F6DDB3 12%, #E5BF88 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__lead { margin-top: clamp(14px, 2.2vh, 22px); max-width: 38rem; color: var(--ink-2); font-size: 1.0313rem; line-height: 1.6; text-wrap: balance; }
.hero__cta { margin-top: clamp(20px, 3vh, 30px); display: grid; justify-items: center; gap: 11px; }
@media (max-width: 760px) {
  .hero { --g: min(86vw, 440px, 46vh); }
  .hero__title { font-size: clamp(3.63rem, 2.42rem + 5.72vw, 5.06rem); }
  .hero__copy { margin-top: 0; }
  .hint { bottom: 12%; font-size: 0.6875rem; }
  .hero__lead { font-size: 0.9688rem; }
}

/* ---------- 8. Features: a row of equal cards with two small arrows ---------- */
.features { position: relative; isolation: isolate; padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px); }
/* soft colours behind the cards, so their frost has something to hold */
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); }
.aurora__a { left: -6%; top: 26%; width: 44vw; height: 40vw; max-width: 620px; max-height: 560px; background: rgba(255, 122, 69, 0.08); }
.aurora__b { right: -8%; top: 34%; width: 48vw; height: 42vw; max-width: 680px; max-height: 600px; background: rgba(90, 169, 255, 0.09); }

.features__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px 40px; margin-bottom: clamp(22px, 3vw, 34px); }
.features__intro { max-width: 760px; }
.features__title { font-size: calc(var(--serif-scale) * clamp(2.3rem, 1.2rem + 2.8vw, 3.9rem)); }
.features__lead { margin-top: 14px; max-width: 48ch; color: var(--ink-2); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
@media (max-width: 699px) {
  .features__head { flex-direction: column; align-items: stretch; gap: 18px; }
}
/* on narrow screens the cream half of a headline takes its own line */
@media (max-width: 760px) {
  .features__title em, .closing__title em { display: block; }
}


/* the row: scrolls sideways, every card snaps to the page's left edge, the row runs to the screen's right edge */
.rail {
  --cw: 380px;
  --gap: 18px;
  --edge: max(var(--pad-x), calc((100vw - 1120px) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--cw); gap: var(--gap);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 8px var(--edge) 30px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-scrubbing { scroll-snap-type: none; }
@media (min-width: 1240px) {
  .rail { -webkit-mask: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
    mask: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
}
.rail:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 30px; }
@media (max-width: 699px) { .rail { --cw: min(84vw, 340px); --gap: 12px; } }

/* the card: a faint frost over the night, a hairline, a light top edge, a soft light that follows the pointer */
.card {
  --pad: 26px;
  --dot: var(--ember);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: calc(var(--cw) * 1.22);
  padding: var(--pad); border-radius: 30px;
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%), rgba(8, 13, 25, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 60px -32px rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(22px) saturate(1.25); backdrop-filter: blur(22px) saturate(1.25);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.9s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0) 60%);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 38px 70px -34px rgba(0, 0, 0, 0.85); }
  .card:hover::after { opacity: 1; }
}
@media (max-width: 699px) { .card { --pad: 22px; border-radius: 26px; } }
.card__text { position: relative; z-index: 2; }
/* the label in the feature's own colour, a little bolder, softly lit */
.card__eyebrow { font-weight: 720; color: var(--dot); text-shadow: 0 0 14px color-mix(in srgb, var(--dot) 42%, transparent); }
.card__title { margin-top: 12px; font-size: calc(var(--serif-scale) * clamp(1.6rem, 1.25rem + 0.7vw, 1.95rem)); line-height: calc(var(--serif-lh) + 0.04); color: var(--ink); }
.card__line { margin-top: 10px; font-size: 0.9375rem; line-height: 1.52; color: var(--ink-2); text-wrap: pretty; }

/* reveal: the cards settle in once, the first time they come into view (site.js) */
.js-ready .rail .card { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), box-shadow 0.5s var(--ease); }
.js-ready .rail.is-in .card { opacity: 1; transform: none; }
.js-ready .rail.is-in .card:nth-child(2) { transition-delay: 0.08s; }
.js-ready .rail.is-in .card:nth-child(3) { transition-delay: 0.16s; }
.js-ready .rail.is-in .card:nth-child(n+4) { transition-delay: 0.24s; }
@media (hover: hover) { .js-ready .rail.is-in .card:hover { transform: translateY(-4px); transition-delay: 0s; } }
/* the card a step was pressed for lights up for a moment in its own colour */
.card.is-picked { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dot) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.09),
  0 30px 60px -32px rgba(0, 0, 0, 0.75), 0 0 48px -16px color-mix(in srgb, var(--dot) 50%, transparent); }

/* the stepped slider under the row: one step per card, in the spirit of the time travel card's year slider,
   and nothing else. A short centred line with a point for each card; the knob glides with the row, and the
   line behind it and the knob's light take the colour of the card it stands on. No names: the cards carry them */
@property --step { syntax: "<color>"; inherits: true; initial-value: #FF7A45; }
.steps { --n: 8; --step: var(--ember); position: relative; display: flex; justify-content: center; margin-top: clamp(0px, 0.8vw, 8px); transition: --step 0.5s var(--ease); }
.no-js .steps { display: none; }
.js-ready .steps { opacity: 0; transition: opacity 0.9s var(--ease) 0.35s, --step 0.5s var(--ease); }
.js-ready .rail.is-in ~ .steps { opacity: 1; }
.steps__track { position: relative; width: min(100% - 24px, 340px); height: 32px; cursor: pointer; touch-action: pan-y; border-radius: 16px;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.steps__track:focus-visible { outline-offset: 4px; }
.steps__line, .steps__fill { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; pointer-events: none; }
.steps__line { right: 0; background: rgba(255, 255, 255, 0.12); }
.steps__fill { width: calc(var(--f, 0) / (var(--n) - 1) * 100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), color-mix(in srgb, var(--step) 85%, #fff));
  box-shadow: 0 0 10px color-mix(in srgb, var(--step) 35%, transparent); transition: width 0.55s var(--ease); }
.steps__ticks { position: absolute; inset: 0 -3px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.steps__ticks i { width: 6px; height: 6px; border-radius: 50%; background: #1C2335; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: background-color 0.4s, box-shadow 0.4s; }
.steps__ticks i.is-past { background: color-mix(in srgb, var(--step) 72%, #fff); box-shadow: 0 0 6px color-mix(in srgb, var(--step) 45%, transparent); }
.steps__knob { position: absolute; top: 50%; left: calc(var(--f, 0) / (var(--n) - 1) * 100%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFFDF8, #FFEDE0 58%, #EBCDB8);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--step) 20%, transparent), 0 0 18px 2px color-mix(in srgb, var(--step) 50%, transparent), 0 4px 10px rgba(0, 0, 0, 0.45);
  transition: left 0.55s var(--ease), transform 0.25s var(--ease); pointer-events: none; }
.steps.is-tracking .steps__knob, .steps.is-tracking .steps__fill { transition: none; }
.steps.is-scrubbing .steps__knob, .steps__track:active .steps__knob { transform: scale(1.18); }
@media (hover: hover) { .steps__track:hover .steps__knob { transform: scale(1.1); } }

/* the app's trace: a bright core with a white rim and a soft ember glow that breathes */
.pin {
  position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle, #FFF3E8 0 20%, var(--ember) 34%, rgba(255, 122, 69, 0.38) 56%, rgba(255, 122, 69, 0) 72%);
  box-shadow: 0 0 16px 4px rgba(255, 122, 69, 0.4);
  animation: pinBreathe 3.4s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -0.45s);
}
.pin--friend {
  background: radial-gradient(circle, #ECFFF4 0 20%, var(--friend) 34%, rgba(95, 211, 156, 0.38) 56%, rgba(95, 211, 156, 0) 72%);
  box-shadow: 0 0 14px 3px rgba(95, 211, 156, 0.38);
}
@keyframes pinBreathe { 0%, 100% { transform: scale(0.92); } 50% { transform: scale(1.08); } }
.js-ready .card .pin { opacity: 0; transition: opacity 0.6s var(--ease); transition-delay: calc(0.3s + var(--n, 0) * 0.15s); }
.js-ready .card.is-in .pin { opacity: 1; }

/* 8a. Leave a trace: the Eiffel Tower lit gold over the Champ de Mars, the new trace sheet at its foot */
.card--trace { justify-content: space-between; }
.card--trace .card__title, .card--trace .card__line { text-shadow: 0 1px 14px rgba(6, 10, 20, 0.9), 0 0 2px rgba(6, 10, 20, 0.7); }
.tmap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.tmap__plate { position: absolute; left: 50%; top: 60%; width: max(100%, 520px); aspect-ratio: 1080 / 1512; transform: translate(-50%, -50%); }
.scene__img { width: 100%; height: 100%; object-fit: cover; }
.tmap__plate .scene__img { filter: saturate(0.92) brightness(0.92); }
.scene__fallback { position: absolute; inset: 0; background: linear-gradient(180deg, #121B31, #0B1222); }
.tmap .pins, .fmap .pins { position: absolute; inset: 0; }
/* the map pictures are drawn from OpenStreetMap data: their credit sits quietly in the card's corner */
.osm { position: absolute; right: 14px; bottom: 7px; z-index: 3; font: 500 0.5625rem/1 var(--sans); letter-spacing: 0.02em;
  color: rgba(243, 238, 230, 0.4); text-decoration: none; transition: color 0.2s; }
.osm:hover { color: var(--ink-2); }
.tmap__shade { position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 10, 20, 0.95) 0%, rgba(6, 10, 20, 0.84) 30%, rgba(6, 10, 20, 0.16) 52%, rgba(6, 10, 20, 0) 62%),
    linear-gradient(0deg, rgba(6, 10, 20, 0.62) 0%, rgba(6, 10, 20, 0) 36%); }
/* phones: the card is shorter, so the picture sits lower to keep the whole tower in the top right corner */
@media (max-width: 699px) {
  .tmap__plate { top: 64%; }
}
.sheet {
  position: relative; z-index: 2; align-self: stretch;
  padding: 14px 16px 13px; border-radius: 20px;
  background: rgba(10, 15, 29, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 44px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
.sheet__eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--caps); font-size: 0.625rem; font-weight: 650; font-stretch: 112%; font-variation-settings: "wdth" 112; letter-spacing: var(--caps-track); text-transform: uppercase; color: var(--ember-soft); }
.sheet__pin { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px 2px rgba(255, 122, 69, 0.55); }
.sheet__place { margin-top: 6px; font-size: calc(var(--serif-scale) * 1.45rem); color: var(--ink); }
.sheet__note { margin-top: 3px; font-family: var(--serif); font-size: calc(var(--serif-scale) * 1rem); color: var(--ink-2); }
:root:lang(ja) .sheet__note, :root:lang(ko) .sheet__note, :root:lang(zh) .sheet__note, :root:lang(th) .sheet__note, :root:lang(hi) .sheet__note { font-style: normal; font-size: 0.875rem; }
.sheet__meta { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.75rem; color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: #F6D2A8; background: rgba(214, 150, 84, 0.16); box-shadow: inset 0 0 0 1px rgba(232, 180, 120, 0.28); }
.tag .icon { width: 13px; height: 13px; }

/* 8b. Echoes: this day in past years, a quiet ledger, the nearest year on top */
.card--echoes { --dot: var(--echo); }
.echo { margin-top: auto; padding-top: 16px; display: grid; }
.echo__row { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line); transition: transform 0.35s var(--ease); }
@media (hover: hover) { .echo__row:hover { transform: translateX(3px); } }
.echo__when { font-family: var(--caps); font-size: 0.625rem; font-weight: 650; font-stretch: 112%; font-variation-settings: "wdth" 112; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(141, 184, 240, 0.82); }
.echo__place { font-size: calc(var(--serif-scale) * 1.25rem); color: var(--ink); line-height: 1.12; }

/* 8c. Time travel: Europe at night, the traces lighting year by year as the visitor drags */
.card--years { --dot: var(--ember-soft); padding-bottom: 0; }
.years { position: relative; margin: auto calc(var(--pad) * -1) 0; padding-top: 12px; }
.years__art { position: relative; aspect-ratio: 1600 / 720; }
/* the Earth brings no sky of its own (see-through above the planet, tools/make_horizon.py --card), so the
   card's own night runs straight into its atmosphere; only the very top of the glow fades */
.years__img { width: 100%; height: 100%; object-fit: cover;
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 9%); mask: linear-gradient(180deg, transparent 0%, #000 9%); }
.years__dots { position: absolute; inset: 0; }
.yd { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: radial-gradient(circle, #FFF2E6 0 22%, var(--ember) 40%, rgba(255, 122, 69, 0) 72%);
  box-shadow: 0 0 10px 3px rgba(255, 122, 69, 0.45);
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease); }
.yd.is-off { opacity: 0; transform: scale(0.3); }
.years__bar {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  padding: 9px 18px 7px; border-radius: 22px;
  background: rgba(9, 14, 27, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 26px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.years__range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 24px; margin: 0; background: transparent; cursor: grab; touch-action: pan-y; }
.years__range:active { cursor: grabbing; }
.years__range::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ember-soft) var(--fill, 100%), rgba(255, 255, 255, 0.16) var(--fill, 100%)); }
.years__range::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.years__range::-moz-range-progress { height: 2px; border-radius: 2px; background: var(--ember-soft); }
.years__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 40% 35%, #FFF6EE, #FFD2B8 70%); box-shadow: 0 0 0 5px rgba(255, 122, 69, 0.22), 0 2px 8px rgba(0, 0, 0, 0.45); }
.years__range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; border: 0;
  background: radial-gradient(circle at 40% 35%, #FFF6EE, #FFD2B8 70%); box-shadow: 0 0 0 5px rgba(255, 122, 69, 0.22), 0 2px 8px rgba(0, 0, 0, 0.45); }
.years__ticks { position: relative; display: block; height: 13px; margin: 0 10px; }
.years__tick { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--caps); font-size: 0.625rem; line-height: 1; letter-spacing: 0.06em; color: var(--ink-4); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.years__tick:nth-child(1) { left: 0%; }
.years__tick:nth-child(2) { left: 25%; }
.years__tick:nth-child(3) { left: 50%; }
.years__tick:nth-child(4) { left: 75%; }
.years__tick:nth-child(5) { left: 100%; }
.years__tick.is-on { color: var(--ink); }
/* "Swipe", the onboarding's little hint: two chevrons pointing back, nudging until the first drag */
.years__swipe {
  position: absolute; right: 12px; bottom: calc(100% + 10px);
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 9px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; color: var(--ink); white-space: nowrap; pointer-events: none;
  background: rgba(9, 14, 27, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.years__swipe .icon { width: 10px; height: 10px; }
.years__swipe .icon + .icon { margin-left: -7px; opacity: 0.55; }
.years.is-hinting .years__swipe { opacity: 1; animation: nudge 2.6s var(--ease) 0.4s 2; }
@keyframes nudge { 0%, 40%, 100% { transform: none; } 15% { transform: translateX(-8px); } 25% { transform: translateX(-2px); } 32% { transform: translateX(-6px); } }

/* 8d. Achievements: a row of gold coins, each struck with its own scene, and more to come */
.card--badges { --dot: var(--gold); }
/* no label above this title: the title is the feature's name, it stays level with the others */
.medals { position: relative; z-index: 1; margin: auto 0; padding-top: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.coin { --i: 0; position: relative; flex: 0 1 64px; min-width: 0; aspect-ratio: 1; border-radius: 50%;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 16px rgba(232, 200, 143, 0.12)); }
.coin:nth-child(2) { --i: 1; }
.coin:nth-child(3) { --i: 2; }
.coin:nth-child(4) { --i: 3; }
.coin__svg { display: block; width: 100%; height: 100%; }
.coin::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.75) 48%, transparent 58%) no-repeat;
  background-size: 300% 100%; background-position: 120% 0; animation: shine 7s ease-in-out infinite; animation-delay: calc(1.4s + var(--i) * 0.3s); }
@keyframes shine { 0% { background-position: 120% 0; } 30%, 100% { background-position: -40% 0; } }
.medals__more { flex: none; display: flex; gap: 5px; padding-left: 6px; }
.medals__more i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(232, 200, 143, 0.35); }
.medals__more i:nth-child(2) { opacity: 0.6; }
.medals__more i:nth-child(3) { opacity: 0.3; }
.js-ready .card--badges .coin { opacity: 0; transform: translateY(12px) scale(0.88); transition: transform 0.8s var(--ease), opacity 0.6s ease; transition-delay: calc(0.25s + var(--i) * 0.12s); }
.js-ready .card--badges.is-in .coin { opacity: 1; transform: none; }
.js-ready .card--badges .medals__more { opacity: 0; transition: opacity 0.8s ease 0.95s; }
.js-ready .card--badges.is-in .medals__more { opacity: 1; }
@media (hover: hover) { .card--badges .coin:hover, .js-ready .card--badges.is-in .coin:hover { transform: translateY(-4px) rotate(-6deg); transition: transform 0.45s var(--ease); } }

/* 8e. Notebooks: a cloth bound notebook that opens on a page of four gold wired memories */
.card--notebook { --dot: var(--paper); }
.card--notebook .card__text { margin-bottom: 20px; }
.book {
  --bw: min(158px, calc((var(--cw) - var(--pad) * 2) / 2 - 4px)); --bh: calc(var(--bw) * 0.78);
  position: relative; margin: auto; width: calc(var(--bw) * 2); height: var(--bh); perspective: 1100px; cursor: pointer;
  transform: translateX(calc(var(--bw) * -0.5)); transition: transform 1.3s var(--ease);
}
.card--notebook.is-open .book { transform: none; }
.book::after { content: ""; position: absolute; left: calc(50% - 10px); top: 0; width: 20px; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.6s ease 0.7s;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(60, 40, 20, 0.22) 50%, rgba(0, 0, 0, 0)); }
.card--notebook.is-open .book::after { opacity: 1; }
.book__page {
  position: absolute; left: 50%; top: 0; width: var(--bw); height: var(--bh);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 7px; padding: 9px 9px 8px 11px;
  border-radius: 2px 9px 9px 2px;
  background: linear-gradient(90deg, rgba(90, 64, 30, 0.14), rgba(0, 0, 0, 0) 14%), #F1E9D9;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(120, 96, 60, 0.16);
}
.keep { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 3px; min-width: 0; }
.keep__art { border-radius: 4px; box-shadow: inset 0 0 0 1.5px #C9A25E, inset 0 0 0 2.5px rgba(255, 244, 214, 0.5); }
.keep--1 .keep__art { background: radial-gradient(circle at 72% 32%, #FCE6B8 0 9%, transparent 10%), linear-gradient(180deg, #2E4673 0%, #4E6FA6 55%, #D58B5F 100%); }
.keep--2 .keep__art { background: radial-gradient(ellipse 30% 22% at 50% 62%, #FFF5E6 0 60%, transparent 62%), linear-gradient(180deg, #8C5A3C 0%, #D29A62 100%); }
.keep--3 .keep__art { background: radial-gradient(ellipse 80% 40% at 30% 100%, #4F3F70 0 60%, transparent 61%), radial-gradient(circle at 70% 40%, #FFD8A0 0 11%, transparent 12%), linear-gradient(180deg, #F0A56D 0%, #B9668A 100%); }
.keep--4 .keep__art { background: radial-gradient(circle at 25% 30%, #F8E4B0 0 3%, transparent 4%), radial-gradient(circle at 65% 22%, #F8E4B0 0 3%, transparent 4%), radial-gradient(circle at 80% 55%, #F8E4B0 0 2.5%, transparent 3.5%), linear-gradient(180deg, #121D3B 0%, #22335E 100%); }
/* the place under each memory, small handwriting serif that always fits (a long name shrinks to two lines) */
.keep__cap { font-family: var(--serif); font-size: 0.6875rem; line-height: 1.05; color: #5E503A; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
:root:lang(ja) .keep__cap, :root:lang(ko) .keep__cap, :root:lang(zh) .keep__cap, :root:lang(th) .keep__cap, :root:lang(hi) .keep__cap { font-style: normal; font-size: 0.625rem; }
@media (max-width: 359px) {
  .keep__cap { font-size: 0.5625rem; }
  .book__page { gap: 5px; padding: 7px 7px 6px 9px; }
  .book { --bh: calc(var(--bw) * 0.92); }
  .book__title, .book__name { font-size: calc(var(--serif-scale) * 0.86rem); }
  .book__inside { padding: 8px 10px; gap: 5px; }
  .card__title { font-size: calc(var(--serif-scale) * 1.42rem); }
}
.book__cover { position: absolute; left: 50%; top: 0; width: var(--bw); height: var(--bh); transform-origin: 0 50%; transform-style: preserve-3d; transition: transform 1.3s var(--ease); }
.card--notebook.is-open .book__cover { transform: rotateY(-180deg); }
.book__front, .book__inside { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.book__front {
  display: grid; place-items: center; padding: 12px 16px 12px 22px; text-align: center; border-radius: 2px 9px 9px 2px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0, rgba(0, 0, 0, 0) 9px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0) 15px),
    radial-gradient(120% 90% at 30% 20%, #2C6C77 0%, #1C4A55 55%, #133740 100%);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.book__front::after { content: ""; position: absolute; inset: 7px 8px 7px 15px; border-radius: 2px 6px 6px 2px; box-shadow: inset 0 0 0 1px rgba(232, 200, 143, 0.45); pointer-events: none; }
.book__title { font-size: calc(var(--serif-scale) * 1.15rem); line-height: 1.08; color: #F1D9A6; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); text-wrap: balance; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
/* the inside of the cover, once open: the notebook's name on its first page */
.book__inside {
  transform: rotateY(180deg); border-radius: 9px 2px 2px 9px;
  display: grid; place-content: center; justify-items: center; gap: 7px; padding: 12px 16px; text-align: center;
  background: linear-gradient(270deg, rgba(90, 64, 30, 0.16), rgba(0, 0, 0, 0) 14%), #EFE6D4;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(120, 96, 60, 0.16);
}
.book__name { font-size: calc(var(--serif-scale) * 1.06rem); line-height: 1.1; color: #3E3426; text-wrap: balance; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; max-width: 100%; }
.book__rule { width: 24px; height: 1px; background: #C9A25E; }
.book__city { font-family: var(--caps); font-size: 0.5625rem; font-weight: 650; letter-spacing: 0.18em; text-transform: uppercase; color: #8A7552; }

/* 8f. Groups: a plan in Lisbon, the dates voted on, Going or Not going */
.card--groups { --dot: var(--group); }
.plan { margin-top: auto; padding: 15px 16px 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan__group { font-family: var(--caps); font-size: 0.625rem; font-weight: 650; font-stretch: 112%; font-variation-settings: "wdth" 112; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); min-width: 0; overflow-wrap: anywhere; }
.plan__status { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 0.6875rem; font-weight: 600; color: #D9CCFF; background: rgba(167, 139, 250, 0.14); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.3); }
.plan__status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--group); box-shadow: 0 0 6px var(--group); animation: breathe 2.4s ease-in-out infinite; }
.plan__place { margin-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 9px; }
.plan__pin { align-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--group); box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.22), 0 0 10px rgba(167, 139, 250, 0.6); }
.plan__place .serif { font-size: calc(var(--serif-scale) * 1.45rem); line-height: 1.1; color: var(--ink); }
.plan__detail { font-size: 0.8125rem; color: var(--ink-3); }
/* the three days: a small column each, the faces of who can come, the favourite lit */
.days { margin-top: 13px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.day { display: grid; justify-items: center; gap: 8px; padding: 9px 6px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); text-align: center; transition: background-color 0.4s, box-shadow 0.4s; }
.day { cursor: pointer; transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
@media (hover: hover) { .day:not(.day--top):hover { background: rgba(255, 255, 255, 0.06); } }
.day__name { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); line-height: 1.15; max-width: 100%; overflow-wrap: anywhere; }
.day--top { background: rgba(167, 139, 250, 0.12); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.42); }
.day--top .day__name { color: #E6DEFF; }
.faces { display: flex; justify-content: center; padding-left: 6px; min-height: 18px; }
.face { width: 18px; height: 18px; margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px #10172A; transition: transform 0.45s var(--ease), opacity 0.35s; }
.face--leo { background: radial-gradient(circle at 35% 30%, #FFD9C2, #F08A5A 60%, #C85F35); }
.face--ada { background: radial-gradient(circle at 35% 30%, #D8FFE9, #5FD39C 60%, #2F9A69); }
.face--kai { background: radial-gradient(circle at 35% 30%, #DCEBFF, #6FA8F0 60%, #3F6FBE); }
.face--you { background: radial-gradient(circle at 35% 30%, #FFF0E4, var(--ember) 60%, var(--ember-deep)); box-shadow: 0 0 0 2px #10172A, 0 0 10px rgba(255, 122, 69, 0.5); }
.plan.is-out .face--you { transform: scale(0); opacity: 0; width: 0; margin-left: 0; }
.face--lg { width: 32px; height: 32px; margin: 0; box-shadow: 0 0 0 2px rgba(95, 211, 156, 0.35); }
.rsvp { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rsvp__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; text-align: center; line-height: 1.15; transition: color 0.3s, background-color 0.3s, box-shadow 0.3s; }
.rsvp__btn .icon { width: 14px; height: 14px; display: none; }
.rsvp__btn.is-on { color: #E6DEFF; background: rgba(167, 139, 250, 0.18); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.46); }
.rsvp__btn.is-on .icon { display: block; }
.rsvp__btn:not(.is-on):hover { color: var(--ink-2); }

/* 8g. Friends: their traces on the Lisbon render, a few struck through where sharing is off */
.card--friends { --dot: var(--friend); }
.fmap { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 0; overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 34%); mask: linear-gradient(180deg, transparent 0%, #000 34%); }
.fmap__plate { position: absolute; left: -32%; top: -62%; width: 140%; aspect-ratio: 1080 / 1512; }
.fmap__plate .scene__img { filter: saturate(0.9) brightness(0.9); }
.fmap__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 10, 20, 0.5), rgba(6, 10, 20, 0) 40%); }
/* a friend's trace you do not see: the location sign struck through, in a small dark glass circle */
.pin--off { width: 20px; height: 20px; margin: -10px 0 0 -10px; display: grid; place-items: center; animation: none;
  background: rgba(9, 14, 27, 0.76); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 6px 16px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pin--off .icon { width: 11px; height: 11px; color: rgba(200, 210, 224, 0.82); }

/* 8h. Privacy: the last card, a blue location dot right after its title, four plain facts */
.card--privacy { --dot: var(--atmo); }
.card--privacy .card__title { max-width: 12em; }
.bluedot { position: relative; display: inline-block; width: 0.3em; height: 0.3em; margin-left: 0.3em; vertical-align: 0.14em; border-radius: 50%;
  background: #2F8CFF; box-shadow: 0 0 0 0.07em #fff, 0 0.06em 0.3em rgba(0, 0, 0, 0.45); }
.bluedot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(47, 140, 255, 0.4); animation: locate 2.8s ease-out infinite; }
@keyframes locate { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(4); opacity: 0; } }
.pfacts { position: relative; z-index: 1; margin-top: auto; padding-top: 14px; display: grid; }
.pfacts li { position: relative; padding: 11px 0 11px 32px; border-top: 1px solid var(--line); font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.pfacts li::before { content: ""; position: absolute; left: 0; top: 11.5px; width: 20px; height: 20px; border-radius: 50%; background: rgba(90, 169, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(90, 169, 255, 0.35); }
.pfacts li::after { content: ""; position: absolute; left: 6.5px; top: 17.5px; width: 8px; height: 4.5px; border-left: 1.6px solid #9CC8FF; border-bottom: 1.6px solid #9CC8FF; transform: rotate(-45deg); }

/* ---------- 10. Closing ---------- */
.closing { position: relative; isolation: isolate; overflow: hidden; padding: clamp(22px, 3.2vw, 45px) 0 clamp(170px, 19vw, 250px); text-align: center; }
/* the hero's Earth rising well under the last line, its bright edge never behind the words */
.closing__earth { position: absolute; z-index: -1; left: 50%; bottom: 0; width: min(1180px, 150vw); aspect-ratio: 1; transform: translate(-50%, 74%); pointer-events: none; }
.closing__earth img { width: 100%; height: 100%; }
.closing__inner { display: flex; flex-direction: column; align-items: center; }
.closing__title { font-size: calc(var(--serif-scale) * clamp(1.92rem, 1.04rem + 2.56vw, 3.68rem)); max-width: 14em; }

/* ---------- 10b. Footer ---------- */
/* everything on one centre line: the name, the legal pages and a few quiet lines of credits */
.site-footer { position: relative; padding: 22px 0 calc(19px + env(safe-area-inset-bottom)); background: var(--night-0); text-align: center; }
/* a thin warm light along the top edge, the colour of a trace */
.site-footer::before { content: ""; position: absolute; left: 50%; top: 0; width: min(640px, 86vw); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255, 176, 138, 0), rgba(255, 176, 138, 0.42), rgba(255, 176, 138, 0)); }
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, 0.05); z-index: -1; }
.site-footer__inner { display: grid; justify-items: center; }
.site-footer__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; font-size: 0.875rem; }
.site-footer__nav a { color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.site-footer__nav a:hover { color: var(--ink); }
/* the address on its own line under the three legal pages */
.site-footer__mail { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.site-footer__mail:hover { color: var(--ink); }
.site-footer__mail .icon { width: 16px; height: 16px; opacity: 0.75; }
.site-footer__copy { position: relative; width: 100%; margin-top: 16px; padding-top: 13px; font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-4); }
.site-footer__copy::before { content: ""; position: absolute; top: 0; left: 50%; width: min(440px, 64%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); }
@media (max-width: 559px) { .site-footer__nav { gap: 10px 18px; } }

/* ---------- 11. Legal pages ---------- */
.legal { position: relative; isolation: isolate; padding: calc(var(--header-h) + env(safe-area-inset-top) + 32px) 0 88px; }
.legal::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 0; width: min(170vw, 2200px); height: 560px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 150, 240, 0.12), rgba(90, 150, 240, 0.04) 45%, rgba(90, 150, 240, 0));
}
.legal__layout { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "toc" "body" "aside"; max-width: 1160px; }
.legal__head { grid-area: head; }
.legal__toc { grid-area: toc; }
.legal__body { grid-area: body; min-width: 0; }
.legal__aside { grid-area: aside; }
@media (min-width: 1024px) {
  /* the contents follow the reader down the whole text, the other documents and the credits wait at its end */
  .legal__layout { grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "head head" "toc body" "aside body"; column-gap: 40px; row-gap: 22px; align-items: start; }
  .legal__aside { align-self: end; }
  /* the column fills the text's height and the list sticks inside it, so it stops above the other documents */
  .legal__toc { align-self: stretch; }
  .legal__toc .toc__details { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
}
.legal--no-toc .legal__toc { display: none; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; border-radius: 8px; }
.legal__back:hover { color: var(--ink); }
.legal__back .icon { width: 18px; height: 18px; }
.legal__title { margin-top: 18px; font-family: var(--serif); font-weight: var(--serif-weight); letter-spacing: var(--serif-track); line-height: 1.02; text-wrap: balance;
  font-size: calc(var(--serif-scale) * clamp(2.6rem, 1.8rem + 3vw, 4.4rem)); -webkit-hyphens: auto; hyphens: auto; }
.legal__updated { margin-top: 12px; color: var(--ink-2); font-size: 0.9375rem; }
.legal__fallback { margin-top: 16px; max-width: 46rem; padding: 12px 16px; border-radius: 14px; font-size: 0.9375rem; background: rgba(127, 178, 234, 0.08); box-shadow: inset 0 0 0 1px rgba(127, 178, 234, 0.24); }
.toc__details { border-radius: 22px; }
.toc__summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 18px; cursor: pointer; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); border-radius: 22px; }
.toc__summary::-webkit-details-marker { display: none; }
.toc__summary::marker { content: ""; }
.toc__summary .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.toc__details[open] .toc__summary .icon { transform: rotate(180deg); }
.toc__list { margin: 0; padding: 0 10px 12px; list-style: none; }
.toc__list a { display: block; padding: 8px 10px; border-radius: 10px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: 0.9063rem; line-height: 1.4; transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.toc__list a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.toc__list a[aria-current="true"] { color: var(--ink); border-left-color: var(--ember); background: rgba(255, 122, 69, 0.08); }
@media (min-width: 1024px) {
  .toc__summary { padding: 18px 18px 10px; cursor: default; }
  .toc__summary .icon { display: none; }
}
.legal__aside { font-size: 0.9063rem; color: var(--ink-2); padding: 4px 6px; }
.legal__aside ul { margin: 8px 0 22px; display: grid; gap: 6px; }

.legal__aside a { color: var(--ink); text-decoration: none; }
.legal__aside a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal__aside-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.legal__aside p:not(.legal__aside-title) { margin: 8px 0 0; word-break: break-all; }
/* the map and imagery credits and the trademark notice, quietly under the contact address */
.legal__aside p.legal__credits { margin-top: 26px; display: grid; gap: 6px; font-size: 0.75rem; line-height: 1.55; color: var(--ink-4); word-break: normal; overflow-wrap: break-word; }
.legal__body { padding: clamp(22px, 4vw, 52px); border-radius: 30px; }
.prose { font-size: 1.0625rem; line-height: 1.74; color: rgba(243, 238, 230, 0.86); }
.prose > * { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { position: relative; margin: 2.2em 0 0.7em; font: 650 1.45rem/1.25 var(--sans); color: var(--ink); letter-spacing: -0.005em; scroll-margin-top: 24px; }
.prose h3 { margin: 1.8em 0 0.5em; font: 650 1.1875rem/1.35 var(--sans); color: var(--ink); scroll-margin-top: 24px; }
.prose h4 { margin: 1.6em 0 0.4em; font: 650 1.0625rem/1.4 var(--sans); color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin: 0.4em 0; padding-left: 0.2em; }
.prose li > ul, .prose li > ol { margin: 0.4em 0 0.6em; }
.prose li::marker { color: var(--ember-soft); }
.prose ol > li::marker { font-weight: 650; font-variant-numeric: tabular-nums; }
.prose a { color: #FFB089; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; word-break: break-word; }
.prose a:hover { color: #FFD0B8; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 0.12em 0.4em; border-radius: 6px; background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.prose hr { border: 0; height: 1px; margin: 2.6em 0; background: rgba(255, 255, 255, 0.1); }
.prose .note { margin: 1.5em 0; padding: 16px 18px; border-radius: 16px; background: rgba(255, 122, 69, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 122, 69, 0.22); }
.prose .note p:last-child { margin-bottom: 0; }
.prose .note--missing { background: rgba(127, 178, 234, 0.08); box-shadow: inset 0 0 0 1px rgba(127, 178, 234, 0.24); }
.prose .anchor { position: absolute; left: -1.1em; top: 0; padding-right: 0.3em; color: var(--ink-3); text-decoration: none; opacity: 0; transition: opacity 0.2s; }
.prose h2:hover .anchor, .prose .anchor:focus-visible { opacity: 1; }
@media (max-width: 1023px) { .prose .anchor { display: none; } }
.table-wrap { margin: 1.5em 0; overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); max-width: none !important; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.55; }
.prose th { text-align: left; vertical-align: bottom; padding: 12px 14px; font-weight: 650; color: var(--ink); background: rgba(255, 255, 255, 0.045); }
.prose td { vertical-align: top; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.prose .a-center { text-align: center; }
.prose .a-right { text-align: right; }
@media (max-width: 640px) {
  .table-wrap { overflow: visible; box-shadow: none; border-radius: 0; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prose tr { margin-bottom: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
  .prose td { padding: 6px 0; border: 0; text-align: left !important; }
  .prose td + td { border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .prose td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
}

/* ---------- 12. Redirect and 404 ---------- */
.nf, .redirect {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: 48px 16px; text-align: center;
}
.redirect::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: 170vw; height: 520px; transform: translate(-50%, -48%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 150, 240, 0.16), rgba(90, 150, 240, 0.05) 45%, transparent);
}
.nf__inner, .redirect__inner { position: relative; max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nf__globe { width: 190px; height: 190px; margin: 10px 0 6px; }
.nf__code { font-family: var(--caps); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.3em; margin-right: -0.3em; color: var(--ember-soft); }
.nf__title, .redirect__title { font-family: var(--serif); font-weight: var(--serif-weight); letter-spacing: var(--serif-track); line-height: 1.02; text-wrap: balance;
  font-size: calc(var(--serif-scale) * clamp(2.6rem, 1.9rem + 2.6vw, 3.8rem)); }
.nf__text, .redirect__text { color: var(--ink-2); max-width: 32rem; }
.nf .btn { margin-top: 8px; }
.pills { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pills a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 0.875rem; color: var(--ink); text-decoration: none;
}
.pills a:hover { color: #fff; }

/* ---------- 13. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js-ready .rail .card, .js-ready .card .pin, .js-ready .card--badges .coin, .js-ready .card--badges .medals__more { opacity: 1; transform: none; }
  .bluedot::after, .coin::after, .years__swipe { display: none; }
  .steps__knob, .steps__fill { transition: none; }
  .js .globe .globe__body { animation: none; }
}

/* ---------- 14. Print (legal pages) ---------- */
@media print {
  body { background: #fff; color: #000; }
  body::after, .site-header, .site-footer, .legal__toc, .legal__aside, .skip, .legal__back { display: none !important; }
  .legal { padding: 0; }
  .legal__body { padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .legal__title, .prose, .prose h2, .prose h3, .prose strong, .prose td, .prose th { color: #000 !important; }
  .prose { font-size: 11pt; }
  .prose a { color: #000; }
  .prose th { background: #eee; }
  .prose td { border-color: #ccc; }
}

/* positions on the pictures, from content-kit/assets-status.json and build.py (scene_css) */
.fmap .pin:nth-child(1) { left: 85.46%; top: 34.28%; --n: 0; }
.fmap .pin:nth-child(2) { left: 84.33%; top: 38.89%; --n: 1; }
.fmap .pin:nth-child(3) { left: 81.89%; top: 36.76%; --n: 2; }
.fmap .pin:nth-child(4) { left: 87.43%; top: 40.47%; --n: 3; }
.fmap .pin:nth-child(5) { left: 81.61%; top: 44.18%; --n: 4; }
.fmap .pin:nth-child(6) { left: 77.77%; top: 40.42%; --n: 5; }
.fmap .pin:nth-child(7) { left: 74.30%; top: 37.69%; --n: 6; }
.fmap .pin:nth-child(8) { left: 72.80%; top: 44.86%; --n: 7; }
.fmap .pin:nth-child(9) { left: 45.31%; top: 47.93%; --n: 8; }
.fmap .pin:nth-child(10) { left: 27.86%; top: 54.33%; --n: 9; }
.fmap .pin:nth-child(11) { left: 16.70%; top: 56.20%; --n: 10; }
.years__dots .yd:nth-child(1) { left: 33.38%; top: 45.24%; --n: 0; }
.years__dots .yd:nth-child(2) { left: 35.03%; top: 54.03%; --n: 1; }
.years__dots .yd:nth-child(3) { left: 39.90%; top: 42.80%; --n: 2; }
.years__dots .yd:nth-child(4) { left: 50.50%; top: 42.44%; --n: 3; }
.years__dots .yd:nth-child(5) { left: 51.98%; top: 50.14%; --n: 4; }
.years__dots .yd:nth-child(6) { left: 27.94%; top: 39.69%; --n: 5; }
.years__dots .yd:nth-child(7) { left: 49.52%; top: 33.80%; --n: 6; }
.years__dots .yd:nth-child(8) { left: 54.94%; top: 56.67%; --n: 7; }
.years__dots .yd:nth-child(9) { left: 47.91%; top: 56.96%; --n: 8; }
.years__dots .yd:nth-child(10) { left: 54.77%; top: 25.58%; --n: 9; }
.years__dots .yd:nth-child(11) { left: 32.97%; top: 33.09%; --n: 10; }
.years__dots .yd:nth-child(12) { left: 59.46%; top: 50.10%; --n: 11; }
.years__dots .yd:nth-child(13) { left: 47.93%; top: 24.42%; --n: 12; }
.years__dots .yd:nth-child(14) { left: 59.03%; top: 59.22%; --n: 13; }
.years__dots .yd:nth-child(15) { left: 60.05%; top: 43.22%; --n: 14; }
.years__dots .yd:nth-child(16) { left: 60.66%; top: 24.00%; --n: 15; }
.years__dots .yd:nth-child(17) { left: 43.28%; top: 59.77%; --n: 16; }
.years__dots .yd:nth-child(18) { left: 72.54%; top: 48.29%; --n: 17; }
.sky__stars { background-image: url("/assets/stars-near.b5043e73a3.svg"); background-size: 1400px 1000px; }
.sky__stars--far { background-image: url("/assets/stars-far.95427bf63c.svg"); background-size: 900px 700px; }
