/* The Maido home. One evening, everywhere: the page starts at golden hour and the
   sky goes down to night as you scroll. The mark's strip of light between two
   speech bubbles (the "lit gap") is the page's one motif: it opens the page,
   changes the town in the hero and in the viewer, and marks what is live. */
:root {
  color-scheme: dark;
  --paper: #f3ead8;
  --ink: #151739;
  --text-2: rgba(243, 234, 216, 0.72);
  --text-3: rgba(243, 234, 216, 0.46);
  --hair: rgba(255, 230, 200, 0.13);
  --peach: #ff9e8a;
  --amber: #ffb45c;
  --night: #0b0d14;
  --g: clamp(20px, 4.4vw, 72px);
  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-d: 'Fraunces', 'Noto Serif', 'Iowan Old Style', Georgia, serif;
  --f-native: 'Shippori Mincho', 'Noto Serif TC', 'Noto Serif KR', 'Hiragino Mincho ProN', 'Songti TC', serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --sp: 0;
}
* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--paper); font: 16px/1.6 var(--f-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3 { margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--peach); color: var(--ink); }
.native { font-family: var(--f-native); font-weight: 600; font-style: normal; }
/* Words of another language set inside the page (never the page's own language, which is on <html>). */
body [lang='zh-HK'], body [lang='zh-TW'] { font-family: 'Noto Serif TC', 'Songti TC', 'PingFang TC', serif; }
body [lang='zh-CN'] { font-family: 'Noto Serif SC', 'Songti SC', 'PingFang SC', serif; }
body [lang='ko'] { font-family: 'Noto Serif KR', 'Apple SD Gothic Neo', serif; }
body [lang='ja'] { font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', serif; }

/* The page in another language: a display face that has its script, its own system sans for UI,
   and looser setting for scripts that are not Latin (no tight tracking, no italics, taller lines). */
html { quotes: '“' '”'; }
html[lang='ja'], html[lang='zh-Hant'] { quotes: '「' '」'; }
html[lang='fr'] { quotes: '«\00a0' '\00a0»'; }
html[lang='de'] { quotes: '„' '“'; }
html[lang='ja'] { --f-d: 'Shippori Mincho', 'Hiragino Mincho ProN', serif; }
html[lang='zh-Hant'] { --f-d: 'Noto Serif TC', 'Songti TC', serif; }
html[lang='zh-Hans'] { --f-d: 'Noto Serif SC', 'Songti SC', serif; }
html[lang='ko'] { --f-d: 'Noto Serif KR', 'Apple SD Gothic Neo', serif; }
html[lang='th'] { --f-d: 'Noto Serif Thai', 'Thonburi', serif; }
html[lang='vi'] { --f-d: 'Noto Serif', Georgia, serif; }
html[lang='ja'], .lang-list button[lang='ja'] { --f-ui: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', 'Meiryo', 'Noto Sans JP', 'Noto Sans CJK JP', system-ui, sans-serif; }
html[lang='zh-Hant'], .lang-list button[lang='zh-Hant'] { --f-ui: 'Inter', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Noto Sans CJK TC', system-ui, sans-serif; }
html[lang='zh-Hans'], .lang-list button[lang='zh-Hans'] { --f-ui: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', system-ui, sans-serif; }
html[lang='ko'], .lang-list button[lang='ko'] { --f-ui: 'Inter', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR', system-ui, sans-serif; }
html[lang='th'], .lang-list button[lang='th'] { --f-ui: 'Inter', 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', 'Noto Sans Thai UI', system-ui, sans-serif; }
html[lang='ja'] body, html[lang^='zh'] body, html[lang='ko'] body, html[lang='th'] body { line-height: 1.75; }
html:is([lang='ja'], [lang^='zh'], [lang='ko']) :is(.h-display, .h-display em, .mani-text, .steps h3, .facts span, .now-greet, .vw-mean, .p-mean, .eyebrow, .r-lang, .p-lang, .now-lang, .now-label, .chips-label, .keys em, .say .who, .er-top, .cw-top, .stamp em, .p-tag),
html:is([lang='ja'], [lang^='zh'], [lang='ko']) .plate-pack::after { letter-spacing: 0.02em; }
html[lang='th'] :is(.h-display, .h-display em, .mani-text, .steps h3, .facts span, .vw-mean, .p-mean, .eyebrow, .r-lang, .p-lang, .now-lang, .now-label, .chips-label, .keys em, .say .who, .er-top, .cw-top, .stamp em, .p-tag),
html[lang='th'] .plate-pack::after { letter-spacing: 0; }
html:is([lang='ja'], [lang^='zh'], [lang='ko'], [lang='th']) :is(.h-display, .steps h3) { line-height: 1.24; font-weight: 400; }
html:is([lang='ja'], [lang^='zh'], [lang='ko'], [lang='th']) .mani-text { line-height: 1.5; font-weight: 400; font-size: clamp(1.5rem, 3.3vw, 3.1rem); }
html:is([lang='ja'], [lang^='zh'], [lang='ko'], [lang='th']) :is(em, .vw-mean, .p-mean) { font-style: normal; }
html[lang='ko'] :is(.h-display, .mani-text, .steps h3, .steps p, .sec-lede) { word-break: keep-all; }
html[lang='vi'] :is(.h-display, .steps h3) { line-height: 1.14; }
/* The headline is three short lines in English; other languages run longer, or wider per letter. */
html:not([lang='en']) .h-2 { font-size: clamp(2.2rem, 5.4vw, 5.2rem); }
html:not([lang='en']) .outro-h { font-size: clamp(2.6rem, 7.4vw, 7.6rem); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The display face draws its macron letters with the bar out of place, so the bar is drawn here. */
.mac { position: relative; }
.mac::after { content: ''; position: absolute; left: 14%; right: 14%; top: 0.3em; height: 0.045em; background: currentColor; border-radius: 1px; }

/* ── Sky, sun and grain ─────────────────────────────────────────────── */
.sky { position: fixed; inset: 0; z-index: -1; background: #06070c; overflow: hidden; }
.sky i { position: absolute; inset: 0; }
.sky-night { background: radial-gradient(90% 60% at 50% 118%, rgba(255, 158, 138, 0.2), transparent 70%), linear-gradient(180deg, #05060b 0%, #0b0d14 55%, #17111d 100%); }
.sky-blue { background: linear-gradient(180deg, #121833 0%, #1d1830 48%, #0b0d14 100%); opacity: clamp(0, calc(2.1 - var(--sp) * 2.4), 1); }
.sky-gold { background: radial-gradient(120% 90% at 74% 14%, #54323f 0%, #2c2035 38%, #0b0d14 84%); opacity: clamp(0, calc(1 - var(--sp) * 2.6), 1); }
.sky-stars { opacity: clamp(0, calc(var(--sp) * 5 - 3.9), 1); background-size: 720px 720px; background-image:
  radial-gradient(1px 1px at 92.1% 28.9%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 72.9% 53.3%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 75.2% 75.5%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 68.5% 63.6%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1.6px 1.6px at 24.2% 37.4%, #ffe9d6 50%, transparent 51%),
  radial-gradient(1px 1px at 69.8% 5.4%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 46.8% 92.2%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1.6px 1.6px at 12.3% 51.3%, #ffe9d6 50%, transparent 51%),
  radial-gradient(1.6px 1.6px at 68.9% 64.4%, #ffe9d6 50%, transparent 51%),
  radial-gradient(1px 1px at 91.2% 90.8%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 33.5% 83.7%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 15.3% 29.8%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 29.5% 93.7%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 72.9% 87.8%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 27.3% 56.1%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 42.1% 19.3%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1.6px 1.6px at 5.5% 36.5%, #ffe9d6 50%, transparent 51%),
  radial-gradient(1px 1px at 66.4% 92.4%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 16.6% 40.6%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 36.4% 42.4%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 53.2% 61.4%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 90.6% 45.8%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1.6px 1.6px at 63.5% 63.4%, #ffe9d6 50%, transparent 51%),
  radial-gradient(1px 1px at 50.5% 68.9%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1.6px 1.6px at 39.7% 70.8%, #ffe9d6 50%, transparent 51%),
  radial-gradient(1px 1px at 58.7% 35.1%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 39.1% 79.5%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1.6px 1.6px at 11.1% 81.9%, #ffe9d6 50%, transparent 51%),
  radial-gradient(1px 1px at 40.7% 15.4%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 99.6% 22.0%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 14.4% 45.7%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 13.8% 92.2%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1.6px 1.6px at 89.1% 88.5%, #ffe9d6 50%, transparent 51%),
  radial-gradient(1.6px 1.6px at 76.1% 27.5%, #ffe9d6 50%, transparent 51%),
  radial-gradient(1px 1px at 24.8% 7.6%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 61.7% 23.1%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 48.9% 68.8%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 88.2% 23.5%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 89.4% 11.8%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 0.3% 91.3%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 92.2% 2.1%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1.6px 1.6px at 18.8% 96.9%, #ffe9d6 50%, transparent 51%),
  radial-gradient(1px 1px at 67.9% 26.6%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 20.9% 56.4%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 76.9% 70.1%, rgba(255,255,255,.8) 50%, transparent 51%),
  radial-gradient(1px 1px at 49.8% 3.3%, rgba(255,255,255,.8) 50%, transparent 51%); }
.sky-sun { inset: auto !important; left: 74%; top: 0; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 190, 150, 0.34), rgba(255, 158, 138, 0.14) 38%, transparent 70%);
  transform: translate3d(0, calc(12vh + var(--sp) * 108vh), 0); }
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.09; mix-blend-mode: overlay;
  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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── Type ───────────────────────────────────────────────────────────── */
.h-display { font-family: var(--f-d); font-weight: 300; font-variation-settings: 'SOFT' 60; letter-spacing: -0.032em; line-height: 0.96; text-wrap: balance; }
.h-display em { font-variation-settings: 'SOFT' 100; letter-spacing: -0.02em; color: #ffd9c8; }
.h-2 { font-size: clamp(2.5rem, 6.4vw, 6rem); }
.eyebrow { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.eyebrow span + span::before { content: ''; display: inline-block; width: 3px; height: 0.9em; border-radius: 2px; background: var(--peach); margin-right: 18px; vertical-align: -1px; }
.arr { display: inline-block; font-style: normal; transition: transform 0.4s var(--ease); }
.arr::after { content: '→'; margin-left: 0.5em; }
.btn { display: inline-flex; align-items: center; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 0.98rem; padding: 15px 24px; border-radius: 999px; transition: background 0.3s, transform 0.4s var(--ease); }
.btn:hover { background: var(--peach); }
.btn:hover .arr { transform: translateX(4px); }
.btn-s { padding: 10px 18px; font-size: 0.88rem; }
.txt-link { font-weight: 500; color: var(--paper); border-bottom: 1px solid rgba(243, 234, 216, 0.4); padding-bottom: 2px; transition: border-color 0.3s; }
.txt-link:hover { border-color: var(--peach); }

/* ── The opening ────────────────────────────────────────────────────── */
.pre { display: none; }
.js .pre { display: block; position: fixed; inset: 0; z-index: 100; --h: clamp(72px, 13vh, 120px); }
.pre-half { position: absolute; top: 0; bottom: 0; width: calc(50% + 1px); background: var(--night); display: flex; align-items: center; transition: transform 1.25s var(--ease-io) 0.15s; }
.pre-l { left: 0; justify-content: flex-end; }
.pre-r { right: 0; justify-content: flex-start; }
.pre-half svg { height: var(--h); width: auto; animation: pre-in 0.7s var(--ease) both; }
.pre-gap { position: absolute; left: 50%; top: 50%; width: calc(var(--h) * 5 / 78); height: calc(var(--h) * 38 / 78); margin: calc(var(--h) * -27 / 78) 0 0 calc(var(--h) * -2.5 / 78);
  border-radius: 99px; background: var(--peach); box-shadow: 0 0 30px 4px rgba(255, 158, 138, 0.55); animation: pre-in 0.7s var(--ease) 0.1s both, pre-pulse 1.4s ease-in-out 0.8s infinite;
  transition: transform 1.1s var(--ease-io), opacity 0.9s ease 0.35s; }
@keyframes pre-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes pre-pulse { 50% { box-shadow: 0 0 54px 12px rgba(255, 158, 138, 0.8); } }
.loaded .pre { pointer-events: none; visibility: hidden; transition: visibility 0s 1.6s; }
.loaded .pre-l { transform: translateX(-101%); }
.loaded .pre-r { transform: translateX(101%); }
.loaded .pre-gap { transform: scale(26, 9); opacity: 0; animation: none; }

/* ── Nav ────────────────────────────────────────────────────────────── */
.nav { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: max(16px, env(safe-area-inset-top)) var(--g) 16px; transition: transform 0.5s var(--ease), background 0.4s; }
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 13, 20, 0.72), rgba(11, 13, 20, 0)); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.nav.scrolled::before { opacity: 1; }
.nav.hide { transform: translateY(-110%); }
.nav-logo svg { height: 30px; width: auto; }
.nav nav { display: flex; gap: 26px; margin-left: auto; margin-right: 4px; font-size: 0.9rem; font-weight: 500; }
.nav nav a { color: var(--text-2); transition: color 0.25s; }
.nav nav a:hover { color: var(--paper); }
/* The language picker */
.lang { position: relative; }
.lang-b { display: inline-flex; align-items: center; gap: 8px; font: 500 0.88rem var(--f-ui); color: var(--paper); background: rgba(11, 13, 20, 0.3); border: 1px solid rgba(243, 234, 216, 0.24); border-radius: 999px; padding: 9px 14px 9px 11px; cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color 0.25s; }
.lang-b:hover, .lang-b[aria-expanded='true'] { border-color: var(--peach); }
.lang-b svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang-list { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 8px; border-radius: 18px; border: 1px solid var(--hair); background: rgba(16, 17, 28, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); display: grid; grid-template-columns: 1fr; gap: 2px; animation: pop 0.3s var(--ease); transform-origin: 100% 0; }
.lang-list[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.lang-list button { width: 100%; text-align: left; font: 500 0.94rem var(--f-ui); color: var(--text-2); background: none; border: 0; border-radius: 11px; padding: 9px 12px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.lang-list button:hover { background: rgba(243, 234, 216, 0.08); color: var(--paper); }
.lang-list li[aria-selected='true'] button { color: var(--paper); }
.lang-list li[aria-selected='true'] button::after { content: ''; float: right; width: 4px; height: 16px; margin-top: 3px; border-radius: 99px; background: var(--peach); box-shadow: 0 0 12px rgba(255, 158, 138, 0.7); }
@media (max-width: 760px) { .nav nav { display: none; } .nav .lang { margin-left: auto; } .nav { gap: 10px; } .nav-logo svg { height: 26px; } .lang-b span { display: none; } .lang-b { padding: 9px; } }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: max(100svh, 640px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding: 120px var(--g) clamp(48px, 9vh, 96px); overflow: hidden; isolation: isolate; }
.hero-media, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { transform: scale(1.04); }
.hv { opacity: 0; }
.hv.is-front { opacity: 1; z-index: 1; }
.hv.is-next { opacity: 1; z-index: 2; clip-path: inset(0 50% 0 50%); }
.hv.is-next.open { clip-path: inset(0 0 0 0); transition: clip-path 1.5s var(--ease-io); }
.hero-slit { z-index: 3; left: 50% !important; width: 3px !important; margin-left: -1.5px; background: var(--peach); box-shadow: 0 0 40px 6px rgba(255, 158, 138, 0.7); opacity: 0; transform: scaleY(0); }
.hero-slit.go { animation: slit 1.5s var(--ease-io); }
@keyframes slit { 0% { opacity: 0; transform: scaleY(0); } 22% { opacity: 1; transform: scaleY(1); } 50% { opacity: 0.6; transform: scale(30, 1); } 100% { opacity: 0; transform: scale(60, 1); } }
.hero-shade { background:
  linear-gradient(180deg, rgba(11, 13, 20, 0.5) 0%, rgba(11, 13, 20, 0) 22%, rgba(11, 13, 20, 0) 40%, rgba(11, 13, 20, 0.78) 86%, var(--night) 100%),
  linear-gradient(90deg, rgba(11, 13, 20, 0.55) 0%, rgba(11, 13, 20, 0) 62%); }
.hero-copy { display: grid; gap: clamp(20px, 3.2vh, 34px); justify-items: start; min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 9.1vw, 9.4rem); margin-left: -0.04em; text-wrap: wrap; text-shadow: 0 2px 40px rgba(11, 13, 20, 0.35); }
.ln { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.ln > span { display: block; }
.hero-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.now { width: min(300px, 100%); display: grid; gap: 12px; justify-items: start; }
.now-greet { position: relative; background: var(--paper); color: var(--ink); font-family: var(--f-d); font-size: 1.22rem; font-weight: 500; line-height: 1.25; padding: 11px 18px 12px; border-radius: 20px 20px 20px 5px; transform-origin: 0 100%; transition: transform 0.55s var(--ease), opacity 0.3s; }
.now-greet.out { transform: scale(0.6) translateY(8px); opacity: 0; transition-duration: 0.25s; }
.now-card { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: end; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--hair); background: rgba(11, 13, 20, 0.46); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); transition: border-color 0.3s, background 0.3s; }
.now-card:hover { border-color: rgba(255, 158, 138, 0.6); background: rgba(11, 13, 20, 0.6); }
.now-card:hover .arr { transform: translateX(4px); }
.now-label { grid-column: 1 / -1; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.now-name { grid-column: 1 / -1; font-family: var(--f-d); font-weight: 400; font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.01em; transition: opacity 0.3s; }
.now-lang { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--peach); }
.now-go { font-size: 0.86rem; font-weight: 600; }
.now-card.out .now-name, .now-card.out .now-lang { opacity: 0; }
.now-count { width: 100%; display: flex; align-items: center; gap: 12px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.now-bar { flex: 1; height: 2px; background: rgba(243, 234, 216, 0.22); border-radius: 2px; overflow: hidden; }
.now-bar i { display: block; height: 100%; width: 100%; background: var(--peach); transform: scaleX(0); transform-origin: 0 50%; }
.now-bar i.run { animation: bar var(--dur, 8s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 22px; height: 34px; margin-left: -11px; border: 1px solid rgba(243, 234, 216, 0.4); border-radius: 12px; }
.scroll-cue i { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--paper); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(11px); opacity: 0; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-content: end; gap: 28px; padding-bottom: 64px; }
  .now { width: 100%; grid-template-columns: 1fr; }
  .now-greet { font-size: 1.05rem; }
  .now-name { font-size: 1.3rem; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) { .hero .eyebrow span + span { display: none; } }

/* The entrance (only when scripts run; without them everything is simply there). */
.js .ln > span { transform: translateY(112%); }
.js .rise { opacity: 0; transform: translateY(18px); }
.js .nav { opacity: 0; }
.js.loaded .ln > span { transform: none; transition: transform 1.3s var(--ease); }
.js.loaded .ln:nth-child(1) > span { transition-delay: 0.55s; }
.js.loaded .ln:nth-child(2) > span { transition-delay: 0.66s; }
.js.loaded .ln:nth-child(3) > span { transition-delay: 0.77s; }
.js.loaded .rise { opacity: 1; transform: none; transition: opacity 1s ease 1.15s, transform 1.1s var(--ease) 1.15s; }
.js.loaded .nav { opacity: 1; transition: opacity 0.9s ease 1.1s, transform 0.5s var(--ease); }

/* Scroll reveals. */
.js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.js [data-r].in { opacity: 1; transform: none; }

/* ── The name ───────────────────────────────────────────────────────── */
.manifesto { position: relative; padding: clamp(110px, 22vh, 240px) var(--g) clamp(80px, 14vh, 160px); display: grid; gap: clamp(28px, 5vh, 56px); overflow: hidden; }
.mani-kanji { position: absolute; right: calc(var(--g) * 0.4); top: 6vh; writing-mode: vertical-rl; font: 600 clamp(11rem, 31vw, 30rem) / 0.95 'Shippori Mincho', serif; color: transparent; -webkit-text-stroke: 1px rgba(243, 234, 216, 0.13); transform: translate3d(0, calc(var(--py, 0) * -90px), 0); pointer-events: none; user-select: none; }
.mani-text { position: relative; max-width: 21em; font-family: var(--f-d); font-weight: 300; font-variation-settings: 'SOFT' 60; font-size: clamp(1.75rem, 4.15vw, 4rem); line-height: 1.16; letter-spacing: -0.022em; }
.mani-text b { font-weight: 500; }
.mani-text em { color: #ffd9c8; font-variation-settings: 'SOFT' 100; }
.mani-text .native { font-size: 0.9em; }
.js .mani-text .w { opacity: var(--o, 0.14); transition: opacity 0.35s linear; }
.facts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 48px); margin-top: clamp(20px, 6vh, 70px); max-width: 980px; }
.facts li { border-top: 1px solid var(--hair); padding-top: 14px; display: grid; gap: 4px; }
.facts b { font-family: var(--f-d); font-weight: 300; font-size: clamp(3.4rem, 8vw, 7rem); line-height: 0.95; letter-spacing: -0.04em; }
.facts span { color: var(--text-2); font-size: 0.95rem; max-width: 14ch; }

/* ── Greetings ──────────────────────────────────────────────────────── */
.ticker { overflow: hidden; padding: clamp(18px, 4vh, 44px) 0; border-block: 1px solid var(--hair); }
.ticker-row { display: flex; align-items: center; width: max-content; gap: clamp(22px, 3vw, 46px); padding-right: clamp(22px, 3vw, 46px); animation: tick 70s linear infinite; font-family: var(--f-d); font-style: italic; font-weight: 300; font-variation-settings: 'SOFT' 100; font-size: clamp(2.3rem, 6vw, 5.4rem); line-height: 1.15; letter-spacing: -0.02em; white-space: nowrap; }
.ticker-row span:is([lang='ja'], [lang='ko'], [lang='zh-HK'], [lang='zh-TW']) { font-style: normal; font-weight: 500; font-size: 0.86em; letter-spacing: 0; }
.ticker-row span[lang='el'] { font-family: 'Noto Serif', serif; font-size: 0.9em; }
.ticker-row i { flex: none; width: 0.09em; height: 0.62em; border-radius: 99px; background: var(--peach); box-shadow: 0 0 18px rgba(255, 158, 138, 0.6); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── Section heads ──────────────────────────────────────────────────── */
.sec-head { display: grid; gap: 22px; padding: clamp(96px, 18vh, 200px) var(--g) clamp(36px, 7vh, 80px); }
.sec-lede { max-width: 56ch; color: var(--text-2); font-size: 1.06rem; }

/* ── How it plays ───────────────────────────────────────────────────── */
.play-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); padding: 0 var(--g); align-items: start; }
.stage-wrap { position: sticky; top: max(84px, calc(50vh - min(38vh, 400px))); }
.stage { position: relative; height: min(76vh, 800px); min-height: 420px; border-radius: 28px; overflow: hidden; background: #14121d; container-type: size; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--hair); }
.st-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity 0.9s ease, transform 1.6s var(--ease); }
.stage[data-step='1'] .st-v[data-step='1'], .stage[data-step='2'] .st-v[data-step='2'], .stage[data-step='3'] .st-v[data-step='3'], .stage[data-step='4'] .st-v[data-step='4'] { opacity: 1; transform: none; }
.st-v[data-step='2'] { object-position: 74% 50%; }
.stage-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 13, 20, 0.28), rgba(11, 13, 20, 0) 30%, rgba(11, 13, 20, 0) 55%, rgba(11, 13, 20, 0.6)); }
.ui { position: absolute; inset: 0; padding: clamp(14px, 4.4cqw, 34px); font-size: clamp(11px, 2.25cqw, 16px); opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0s 0.5s; display: flex; flex-direction: column; }
.stage[data-step='1'] .ui-1, .stage[data-step='2'] .ui-2, .stage[data-step='3'] .ui-3, .stage[data-step='4'] .ui-4 { opacity: 1; visibility: visible; transition: opacity 0.6s ease 0.25s; }
.glass { background: rgba(18, 20, 44, 0.72); border: 1px solid rgba(255, 220, 180, 0.16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.ui-1 { justify-content: space-between; align-items: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.55em 1em; border-radius: 99px; background: rgba(18, 20, 44, 0.72); border: 1px solid rgba(255, 220, 180, 0.16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-weight: 500; }
.chip .dot { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.keys { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.5em 0.8em; border-radius: 14px; background: rgba(18, 20, 44, 0.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.keys kbd { font: 600 0.78em var(--f-ui); min-width: 1.9em; text-align: center; padding: 0.3em 0.4em; border-radius: 6px; border: 1px solid rgba(243, 234, 216, 0.3); color: var(--paper); }
.keys em { font-style: normal; font-size: 0.72em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin: 0 0.9em 0 0.3em; }
.keys em:last-child { margin-right: 0.2em; }
.ui-2 { justify-content: flex-end; gap: 1em; }
.say { max-width: 88%; padding: 1.1em 1.3em 1.2em; border-radius: 1.4em; display: grid; gap: 0.35em; opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.8s var(--ease); }
.stage[data-step='2'] .say { opacity: 1; transform: none; }
.stage[data-step='2'] .say-them { transition-delay: 0.35s; }
.stage[data-step='2'] .say-you { transition-delay: 1.5s; }
.say-them { background: rgba(18, 20, 44, 0.78); border: 1px solid rgba(255, 220, 180, 0.16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-left-radius: 0.4em; }
.say .who { font-size: 0.7em; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.say .who b { font-size: 1.5em; letter-spacing: 0; margin-right: 0.3em; color: var(--paper); }
.say .line { font-size: 1.75em; line-height: 1.5; font-weight: 500; font-family: 'Shippori Mincho', serif; }
.say rt { font-size: 0.42em; color: var(--text-2); font-family: var(--f-ui); }
.say .roma { font-style: italic; color: var(--amber); font-size: 0.95em; }
.say .mean { color: var(--text-2); font-size: 0.95em; }
.say-you { align-self: flex-end; background: var(--paper); color: var(--ink); border-bottom-right-radius: 0.4em; grid-template-columns: auto 1fr; align-items: center; gap: 0.9em; }
.say-you .line { font-size: 1.35em; }
.say-you rt { color: rgba(21, 23, 57, 0.6); }
.mic { display: inline-flex; align-items: center; gap: 0.2em; height: 1.8em; padding: 0 0.2em; }
.mic i { width: 0.2em; height: 100%; border-radius: 99px; background: #c25a43; transform: scaleY(0.25); animation: mic 0.9s ease-in-out infinite; }
.mic i:nth-child(2) { animation-delay: -0.2s; } .mic i:nth-child(3) { animation-delay: -0.55s; } .mic i:nth-child(4) { animation-delay: -0.35s; } .mic i:nth-child(5) { animation-delay: -0.7s; } .mic i:nth-child(6) { animation-delay: -0.1s; } .mic i:nth-child(7) { animation-delay: -0.45s; }
@keyframes mic { 50% { transform: scaleY(1); } }
.ui-3 { align-items: flex-end; justify-content: flex-start; }
.errand { width: min(21em, 78%); padding: 1.2em 1.3em 1.3em; border-radius: 1.3em; background: rgba(18, 20, 44, 0.8); border: 1px solid rgba(255, 220, 180, 0.16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); display: grid; gap: 0.2em; }
.er-top { display: flex; justify-content: space-between; font-size: 0.7em; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.er-n { color: var(--text-2); }
.errand b { font-family: var(--f-d); font-weight: 400; font-size: 1.6em; line-height: 1.2; margin-top: 0.3em; }
.er-sub { color: var(--text-2); font-size: 0.92em; }
.errand ul { margin-top: 0.9em; padding-top: 0.9em; border-top: 1px solid rgba(255, 220, 180, 0.14); display: grid; gap: 0.7em; }
.errand li { position: relative; padding-left: 1.9em; font-size: 0.98em; }
.errand li::before { content: ''; position: absolute; left: 0; top: 0.18em; width: 1.1em; height: 1.1em; border-radius: 50%; border: 1.5px solid rgba(243, 234, 216, 0.4); }
.errand li::after { content: ''; position: absolute; left: 0.36em; top: 0.38em; width: 0.38em; height: 0.62em; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(40deg) scale(0); transition: transform 0.4s var(--ease); }
.errand li.done { color: var(--text-2); }
.errand li.done::before { transition: background 0.3s, border-color 0.3s; }
.stage[data-step='3'] .errand li.done::before { background: var(--amber); border-color: var(--amber); }
.stage[data-step='3'] .errand li.done::after { transform: rotate(40deg) scale(1); }
.stage[data-step='3'] .errand li:nth-child(1)::before, .stage[data-step='3'] .errand li:nth-child(1)::after { transition-delay: 0.5s; }
.stage[data-step='3'] .errand li:nth-child(2)::before, .stage[data-step='3'] .errand li:nth-child(2)::after { transition-delay: 0.95s; }
.stage[data-step='3'] .errand li:nth-child(3)::before, .stage[data-step='3'] .errand li:nth-child(3)::after { transition-delay: 1.4s; }
.ui-4 { justify-content: flex-end; align-items: flex-start; }
.card-word { background: var(--paper); color: var(--ink); border-radius: 1.2em; padding: 1.2em 1.5em 1.3em; display: grid; gap: 0.15em; min-width: 13em; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7); transform: rotate(-3deg) translateY(30px); opacity: 0; transition: transform 0.9s var(--ease) 0.4s, opacity 0.5s ease 0.4s; }
.stage[data-step='4'] .card-word { transform: rotate(-3deg); opacity: 1; }
.cw-top { font-size: 0.68em; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #c25a43; }
.card-word b { font-size: 3.6em; line-height: 1.25; }
.cw-read { font-style: italic; color: #c25a43; font-weight: 500; }
.cw-mean { color: rgba(21, 23, 57, 0.72); font-size: 0.95em; }
.stamp { position: absolute; right: 7%; top: 9%; width: 7.4em; height: 7.4em; border-radius: 50%; border: 0.22em solid #e2553f; color: #e2553f; display: grid; place-content: center; text-align: center; background: rgba(243, 234, 216, 0.92); transform: rotate(9deg) scale(1.8); opacity: 0; transition: transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) 1.2s, opacity 0.25s ease 1.2s; box-shadow: inset 0 0 0 0.3em rgba(243, 234, 216, 0.92), inset 0 0 0 0.38em #e2553f; }
.stage[data-step='4'] .stamp { transform: rotate(9deg); opacity: 1; }
.stamp span { font-size: 1.55em; line-height: 1.1; }
.stamp em { font-style: normal; font-size: 0.6em; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.steps li { min-height: 86vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 30em; opacity: 0.26; transition: opacity 0.6s ease; }
.steps li.on { opacity: 1; }
.st-n { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; color: var(--peach); }
.steps h3 { font-family: var(--f-d); font-weight: 300; font-variation-settings: 'SOFT' 60; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.028em; }
.steps p { color: var(--text-2); font-size: 1.08rem; line-height: 1.65; }
.steps p em { color: var(--paper); }
@media (max-width: 900px) {
  .play-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage-wrap { top: 62px; z-index: 2; }
  .stage { height: 50svh; min-height: 300px; border-radius: 22px; }
  .steps li { min-height: 58svh; justify-content: flex-start; padding-top: 34px; gap: 12px; }
  .steps li:last-child { min-height: 44svh; }
  .steps p { font-size: 1rem; }
}

/* ── The towns ──────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.chips-label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-right: 10px; }
.chip-b { font: 500 0.92rem var(--f-ui); color: var(--paper); background: transparent; border: 1px solid rgba(243, 234, 216, 0.24); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.chip-b:hover { border-color: var(--peach); }
.chip-b[aria-pressed='true'] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.towns-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); padding: 0 var(--g); align-items: start; }
.viewer-wrap { position: sticky; top: max(84px, calc(50vh - min(39vh, 410px))); }
.viewer { position: relative; height: min(78vh, 820px); min-height: 440px; border-radius: 28px; overflow: hidden; background: #14121d; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--hair); }
.vw-img, .vw-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vw-b { clip-path: inset(0 50% 0 50%); }
.vw-b.open { clip-path: inset(0 0 0 0); transition: clip-path 0.9s var(--ease-io); }
.vw-vid { opacity: 0; transition: opacity 0.7s ease; }
.vw-vid.on { opacity: 1; }
.viewer-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 13, 20, 0.25), rgba(11, 13, 20, 0) 30%, rgba(11, 13, 20, 0) 52%, rgba(11, 13, 20, 0.82)); }
.vw-greet { position: absolute; left: 22px; top: 22px; background: var(--paper); color: var(--ink); font-family: var(--f-d); font-size: 1.25rem; font-weight: 500; line-height: 1.25; padding: 11px 18px 12px; border-radius: 20px 20px 20px 5px; transform-origin: 0 100%; transition: transform 0.5s var(--ease), opacity 0.25s; }
.vw-greet.out { transform: scale(0.6) translateY(8px); opacity: 0; transition-duration: 0.2s; }
.vw-cap { position: absolute; left: 24px; right: 24px; bottom: 22px; display: grid; gap: 6px; transition: opacity 0.3s; }
.vw-cap.out { opacity: 0; }
.vw-mean { font-family: var(--f-d); font-style: italic; font-size: 1.3rem; color: #ffd9c8; }
.vw-cap p { color: var(--text-2); max-width: 40ch; }
.rows { border-bottom: 1px solid var(--hair); }
.rows > li { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.6s var(--ease), opacity 0.4s ease; }
.rows > li.off { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.row { min-height: 0; overflow: hidden; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: baseline; gap: 0 14px; border-top: 1px solid var(--hair); }
.row > * { padding-block: clamp(13px, 2.1vh, 22px); }
.row img, .row .r-desc { display: none; }
.r-n { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; color: var(--text-3); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.r-name { font-family: var(--f-d); font-weight: 300; font-variation-settings: 'SOFT' 60; font-size: clamp(1.9rem, 3.5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.028em; transition: transform 0.55s var(--ease), color 0.3s; color: var(--text-2); }
.r-name .native { font-size: 0.86em; letter-spacing: 0; margin-right: 0.12em; font-weight: 500; }
.r-lang { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); text-align: right; transition: color 0.3s; }
.r-go { display: none; }
.row.is-active .r-name { color: var(--paper); transform: translateX(14px); }
.row.is-active .r-n, .row.is-active .r-lang { color: var(--peach); }
@media (max-width: 900px) {
  .towns-grid { grid-template-columns: minmax(0, 1fr); }
  .viewer-wrap { display: none; }
  .rows { border: 0; display: grid; gap: 0; }
  .rows > li:not(.off) { margin-bottom: 34px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; border: 0; gap: 0 12px; align-items: baseline; }
  .row > * { padding-block: 0; }
  .row img { display: block; grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; margin-bottom: 14px; }
  .r-n { display: none; }
  .r-name { grid-column: 1; color: var(--paper); font-size: clamp(1.8rem, 7.4vw, 2.6rem); }
  .r-lang { grid-column: 2; color: var(--peach); }
  .row .r-desc { display: block; grid-column: 1 / -1; color: var(--text-2); margin-top: 6px; }
  .r-go { display: block; grid-column: 1 / -1; margin-top: 10px; font-weight: 600; font-size: 0.92rem; }
  .row.is-active .r-name { transform: none; }
}

/* ── On the way ─────────────────────────────────────────────────────── */
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; padding: 0 var(--g); }
.plate { position: relative; display: grid; align-content: start; gap: 3px; padding: 22px 22px 24px; border-radius: 20px; border: 1px dashed rgba(243, 234, 216, 0.2); background: rgba(11, 13, 20, 0.34); min-height: 178px; transition: border-color 0.35s, background 0.35s, opacity 0.9s ease, transform 1.1s var(--ease); }
.plate::before { content: ''; position: absolute; right: 20px; top: 20px; width: 4px; height: 26px; border-radius: 99px; background: rgba(243, 234, 216, 0.2); transition: background 0.35s, box-shadow 0.35s; }
.plate:hover { border-color: rgba(255, 158, 138, 0.7); border-style: solid; background: rgba(40, 26, 44, 0.5); }
.plate:hover::before { background: var(--peach); box-shadow: 0 0 22px 3px rgba(255, 158, 138, 0.7); }
.p-lang { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--peach); padding-right: 22px; }
.p-name { font-family: var(--f-d); font-weight: 400; font-variation-settings: 'SOFT' 60; font-size: 1.72rem; line-height: 1.15; letter-spacing: -0.02em; margin-top: 12px; text-align: left; }
:where(.p-name).native { font-family: var(--f-native); }
.p-name.native { font-weight: 600; letter-spacing: 0; }
.p-gr { font-family: 'Noto Serif', serif; font-weight: 500; letter-spacing: -0.01em; }
.p-ar { font-family: 'Noto Naskh Arabic', serif; font-weight: 500; font-size: 2rem; letter-spacing: 0; line-height: 1.3; }
.p-hi { font-family: 'Noto Serif Devanagari', serif; font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.p-th { font-family: 'Noto Serif Thai', serif; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.p-he { font-family: 'Noto Serif Hebrew', serif; font-weight: 500; letter-spacing: 0; }
.p-vi { font-family: 'Noto Serif', serif; font-weight: 400; }
.p-latin { font-size: 0.9rem; color: var(--text-2); }
.p-mean { font-family: var(--f-d); font-style: italic; color: #ffd9c8; font-size: 1.02rem; margin-top: 6px; }
.p-mean::before, .vw-mean::before { content: open-quote; } .p-mean::after, .vw-mean::after { content: close-quote; }
.p-place { color: var(--text-3); font-size: 0.88rem; line-height: 1.45; margin-top: 2px; }
.p-place em { color: var(--text-2); }
.plate-pack { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; }
.plate-pack > * { grid-column: 1 / -1; }
.plate-pack > .p-lang { grid-column: 1; padding-right: 0; }
.plate-pack::after { content: attr(data-pack); grid-column: 2; grid-row: 1; align-self: baseline; margin-right: 12px; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.plate-next { grid-column: span 2; border: 1px solid rgba(255, 158, 138, 0.55); background: linear-gradient(135deg, rgba(84, 50, 63, 0.6), rgba(11, 13, 20, 0.4)); padding: 28px 28px 30px; }
.plate-next::before { background: var(--peach); box-shadow: 0 0 22px 3px rgba(255, 158, 138, 0.7); height: 34px; }
.plate-next .p-name { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 300; margin-top: 8px; }
.plate-next .p-mean { font-size: 1.25rem; }
.p-tag { justify-self: start; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); background: var(--peach); border-radius: 99px; padding: 4px 10px; margin-bottom: 10px; }
@media (max-width: 600px) { .plate-next { grid-column: auto; } .plate { min-height: 0; } }

/* ── Outro and footer ───────────────────────────────────────────────── */
.outro { position: relative; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 30px; text-align: center; padding: 18vh var(--g) 14vh; overflow: hidden; }
.outro-mark { width: 64px; height: auto; }
.outro-mark rect { animation: glow 3.2s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 7px rgba(255, 158, 138, 0.95)); } }
.outro-ja { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); font: 600 clamp(14rem, 44vw, 44rem) / 1 'Shippori Mincho', serif; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(243, 234, 216, 0.09); pointer-events: none; user-select: none; z-index: -1; }
.outro-h { font-size: clamp(3rem, 9vw, 9rem); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding: 26px var(--g) max(30px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); color: var(--text-3); font-size: 0.85rem; }
.foot-link { color: var(--text-2); border-bottom: 1px solid rgba(243, 234, 216, 0.24); padding-bottom: 1px; transition: color 0.25s, border-color 0.25s; }
.foot-link:hover { color: var(--paper); border-color: var(--peach); }

/* ── Legal & privacy page (/terms/) ─────────────────────────────────── */
.legal-nav { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: max(16px, env(safe-area-inset-top)) var(--g) 16px; background: linear-gradient(180deg, rgba(11, 13, 20, 0.88), rgba(11, 13, 20, 0)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.legal { max-width: 68ch; margin: 0 auto; padding: clamp(48px, 9vh, 108px) var(--g) clamp(64px, 12vh, 128px); display: grid; gap: 36px; }
.legal-head { display: grid; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--hair); }
.legal-head h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.02; }
.legal-lede { color: var(--text-2); font-size: 1.06rem; }
.legal section { display: grid; gap: 12px; }
.legal h2 { font-family: var(--f-d); font-weight: 400; font-variation-settings: 'SOFT' 60; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--paper); margin-top: 4px; }
.legal p, .legal li { color: var(--text-2); font-size: 0.98rem; line-height: 1.68; }
.legal b { color: var(--paper); font-weight: 600; }
.legal ul { display: grid; gap: 10px; padding-left: 1.25em; list-style: disc; }
.legal li::marker { color: var(--peach); }
.legal code { font: 500 0.88em ui-monospace, 'SFMono-Regular', Menlo, monospace; color: var(--paper); background: rgba(243, 234, 216, 0.08); padding: 1px 6px; border-radius: 5px; }
.legal a { color: var(--paper); border-bottom: 1px solid rgba(243, 234, 216, 0.34); padding-bottom: 1px; transition: border-color 0.25s; }
.legal a:hover { border-color: var(--peach); }

/* ── Calm version ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01s !important; transition-delay: 0s !important; }
  .js .mani-text .w { opacity: 1; }
  .sky-sun { transform: translate3d(0, 12vh, 0); }
  .steps li { opacity: 1; }
}

/* The picker's own names keep the interface face, whatever script they are in. */
body .lang-list button[lang] { font-family: var(--f-ui); }

/* Longer headlines and labels in other languages. */
html:not([lang='en']) .hero h1 { font-size: clamp(2.1rem, 5.6vw, 6rem); }
html:is([lang='ja'], [lang^='zh'], [lang='ko']) .hero h1 { font-size: clamp(2.1rem, 6.4vw, 6.6rem); }
@media (max-width: 860px) {
  html:not([lang='en']):not([lang='ja']):not([lang^='zh']):not([lang='ko']) .hero h1 { font-size: clamp(1.56rem, 7.1vw, 3.4rem); }
}
.r-lang { max-width: 17em; line-height: 1.5; }
html:is([lang='ja'], [lang^='zh'], [lang='ko'], [lang='th']) :is(.eyebrow, .r-lang, .p-lang, .now-lang, .now-label, .chips-label, .st-n, .p-tag) { font-size: 0.84rem; }
html:is([lang='ja'], [lang^='zh'], [lang='ko'], [lang='th']) .plate-pack::after { font-size: 0.74rem; }
/* Japanese breaks its lines between phrases, not inside a word. */
html[lang='ja'] :is(.h-display, .steps h3, .mani-text, .steps p, .sec-lede) { word-break: auto-phrase; }
