@import url("tokens.css");
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ja-sans); font-size: var(--fs-body); line-height: 1.75; overflow-x: hidden; }
:root[data-lang="en"] body { font-family: var(--font-en-sans); }
img, video, canvas, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* typography */
.serif { font-family: var(--font-ja-serif); font-weight: 500; }
:root[data-lang="en"] .serif { font-family: var(--font-en-serif); font-weight: 500; }
.caps { font-family: var(--font-en-sans); font-size: var(--fs-small); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-dim); }
.h-hero { font-size: var(--fs-hero); line-height: 1.08; letter-spacing: -0.01em; margin: 0; font-weight: 500; }
:root[data-lang="ja"] .h-hero { line-height: 1.25; letter-spacing: 0.02em; }
.lead { font-size: var(--fs-lead); line-height: 1.7; max-width: var(--measure); color: var(--text-dim); }

/* skip link */
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--paper); color: var(--ink); padding: .5rem 1rem; border-radius: 6px; z-index: 1000; }
.skip:focus { top: 1rem; }

/* top bar */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: baseline; gap: .75rem; flex: none; }
.brand__mark { font-family: var(--font-ja-serif); font-size: 1.35rem; letter-spacing: .12em; white-space: nowrap; }
.brand__sub { font-family: var(--font-en-serif); font-size: .95rem; letter-spacing: .22em; color: var(--text-dim); white-space: nowrap; }
.topbar__right { display: flex; gap: .5rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(11,15,23,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: var(--fs-small); letter-spacing: .06em; transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.pill:hover { background: rgba(246,243,236,.12); border-color: rgba(246,243,236,.4); }
.pill--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--beni); box-shadow: 0 0 0 0 rgba(232,106,90,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,106,90,.7); } 70% { box-shadow: 0 0 0 8px rgba(232,106,90,0); } 100% { box-shadow: 0 0 0 0 rgba(232,106,90,0); } }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.hero__canvas:active { cursor: grabbing; }
.hero__photo { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.1s var(--ease-out); overflow: hidden; }
.hero__photo-blur { position: absolute; inset: -40px; background-size: cover; background-position: 50% 50%; filter: blur(28px) saturate(1.1); transform: scale(1.1); }
.hero__photo-pic { display: contents; }
.hero__photo-img { position: absolute; max-width: none; will-change: transform; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 90%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 90%, transparent); mask-composite: intersect; }
.hero__photo.is-on { opacity: 1; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,23,.35) 0%, rgba(11,15,23,0) 35%, rgba(11,15,23,0) 70%, rgba(11,15,23,.55) 100%); }
.hero__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11,15,23,.62) 0%, rgba(11,15,23,.28) 28%, rgba(11,15,23,0) 55%, rgba(11,15,23,.72) 100%), linear-gradient(90deg, rgba(11,15,23,.45) 0%, rgba(11,15,23,0) 55%); }
.hero__copy { position: absolute; left: var(--gutter); right: var(--gutter); top: clamp(5.5rem, 13vh, 9rem); max-width: 52rem; pointer-events: none; }
.hero__copy > * { pointer-events: auto; }
.hero__eyebrow { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.hero__title { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero__lead { margin-top: 1.2rem; color: rgba(255,255,255,.86); text-shadow: 0 1px 14px rgba(0,0,0,.6); max-width: 34rem; }
.hero__claim { margin-top: 1.4rem; font-family: var(--font-ja-serif); font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--snow); min-height: 1.8em; opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero__claim.is-on { opacity: 1; transform: none; }
:root[data-lang="en"] .hero__claim { font-family: var(--font-en-serif); font-size: clamp(1.1rem, 1.7vw, 1.45rem); }

/* live HUD */
.hud { pointer-events: auto; position: absolute; right: var(--gutter); top: clamp(5.5rem, 13vh, 9rem); display: grid; gap: .35rem; text-align: right; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--text-dim); pointer-events: none; }
.hud b { color: var(--snow); font-weight: 500; }
.hud__link { display: inline-flex; gap: .6rem; justify-content: flex-end; border-bottom: 1px solid transparent; transition: border-color .3s; }
.hud__link:hover { border-color: var(--gold); }
.hud__row { display: flex; justify-content: flex-end; gap: .6rem; }
.hud__clock { font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--snow); font-family: var(--font-en-serif); letter-spacing: .04em; line-height: 1.1; }
/* Compact hero: tablets and split-window browsers need the same collision-free
   stacking as phones. The full desktop HUD only has enough room above 960px. */
@media (max-width: 960px) {
  .brand__sub { display: none; }
  .brand__mark { font-size: 1.2rem; }
  .hero { min-height: 640px; }
  .hero__copy { top: 5.8rem; }
  .hero__eyebrow { margin-bottom: .8rem; }
  .hero__eyebrow .caps { font-size: .68rem; }
  .hero__lead { font-size: .95rem; line-height: 1.6; margin-top: .8rem; }
  .hero__claim { font-size: .95rem; margin-top: .9rem; }
  .hud { top: auto; bottom: 10.4rem; right: var(--gutter); left: var(--gutter); display: flex; flex-wrap: wrap; gap: .3rem .9rem; text-align: left; font-size: .68rem; align-items: baseline; }
  .hud__clock { font-size: 1.35rem; width: 100%; }
  .hud__row { justify-content: flex-start; gap: .4rem; }
  .hud .hud__hide-m { display: none; }
  .dial__ring { height: 4rem; }
  .dial__hint { display: none; }
  .hud__row { max-width: 100%; }
  .hud__link { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 2 * var(--gutter)); }
  .dial__actions { gap: .35rem; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 0 var(--gutter) .2rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .dial__actions::-webkit-scrollbar { display: none; }
  .dial__actions .pill { flex: none; white-space: nowrap; }
  .dial { padding-bottom: 4.2rem; }
  .hud { bottom: 13.6rem; font-size: .64rem; }
  .match { bottom: 12.6rem; }
  .dial__actions .pill { padding: .4rem .75rem; font-size: .74rem; }
  .match { bottom: 8.2rem; }
  .bubble { left: 1rem; right: 1rem; top: auto; bottom: 19.5rem; max-width: none; border-radius: 16px; }
  .attrib { display: none; }
}

/* dial */
.dial { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 1.25rem; pointer-events: none; }
.dial__hint { text-align: center; font-size: var(--fs-small); letter-spacing: .12em; color: var(--text-dim); margin-bottom: .6rem; transition: opacity .6s; }
.dial__hint.is-hidden { opacity: 0; }
/* grab cue — the only thing telling a first-time visitor the mountain turns. Sits on the scene so it
   survives the cramped phone layout, and leaves on the first drag. */
.grabcue { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); z-index: 3; display: flex; align-items: center; gap: .55rem;
  padding: .5rem .95rem; border-radius: 999px; background: rgba(11,15,23,.42); backdrop-filter: blur(8px); border: 1px solid rgba(246,243,236,.18);
  color: rgba(246,243,236,.92); pointer-events: none; opacity: 0; }
.grabcue.is-armed { animation: grabcue-in .7s var(--ease-out) forwards; }
.grabcue__text { font-size: .68rem; letter-spacing: .1em; white-space: nowrap; }
.grabcue__arrow { font-size: 1.15rem; line-height: 1; opacity: .8; }
.grabcue__hand { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1.5px solid currentColor; }
.grabcue.is-armed .grabcue__hand { animation: grabcue-swipe 2.4s var(--ease-out) infinite; }
@keyframes grabcue-in { to { opacity: 1; } }
@keyframes grabcue-swipe { 0%, 100% { transform: translateX(-.42rem); } 50% { transform: translateX(.42rem); } }
.grabcue.is-gone { opacity: 0 !important; transition: opacity .45s; animation: none; }
@media (prefers-reduced-motion: reduce) { .grabcue.is-armed { animation: none; opacity: 1; } .grabcue__hand { animation: none; } }
/* narrated intro subtitle — floats in the sky above the summit so the caption
   never covers the mountain it is describing */
.introcap { position: absolute; left: 50%; top: clamp(6.5rem, 15vh, 9.5rem); z-index: 12; max-width: min(32rem, 88vw); text-align: center;
  font-family: var(--font-ja-sans); font-size: clamp(.98rem, 3vw, 1.22rem); font-weight: 600; line-height: 1.55; letter-spacing: .01em; color: #fff;
  padding: .7rem 1.25rem; border-radius: .9rem; text-wrap: balance;
  background: rgba(9,12,19,.6); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 12px 38px rgba(0,0,0,.4), inset 0 0 0 1px rgba(246,243,236,.14); text-shadow: 0 1px 8px rgba(0,0,0,.55);
  opacity: 0; transform: translate(-50%, -.5rem); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); pointer-events: none; }
.introcap.is-on { opacity: 1; transform: translate(-50%, 0); }
/* while the narration plays, the mountain is the whole show: the title copy
   steps aside for the caption, and competing hints dim out. */
.is-intro .hero__copy { opacity: 0 !important; transform: translateY(-.45rem) !important; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out) !important; transition-delay: 0s !important; }
.is-intro #bubble { opacity: 0 !important; pointer-events: none; transition: opacity .35s; }
.is-intro #claim, .is-intro .dial__hint, .is-intro .scrollcue { opacity: .12 !important; transition: opacity .4s; }
@media (max-width: 960px) { .introcap { top: clamp(5.6rem, 13vh, 8rem); } .grabcue { top: 51%; } }
.dial__ring { position: relative; height: 5.6rem; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.dial__track { position: absolute; left: 50%; top: 0; height: 100%; white-space: nowrap; will-change: transform; }
.dial__tick { position: absolute; top: 0; width: 1px; height: 10px; background: var(--line); }
.dial__tick--major { height: 16px; background: rgba(246,243,236,.45); }
.dial__label { position: absolute; top: 1.4rem; transform: translateX(-50%); font-size: .8rem; letter-spacing: .06em; color: var(--text-dim); white-space: nowrap; pointer-events: auto; padding: .2rem .5rem; border-radius: 999px; transition: color .3s, background .3s; }
.dial__label:hover, .dial__label.is-active { color: var(--snow); }
.dial__label.is-active { background: rgba(246,243,236,.12); }
.dial__label--home { color: var(--gold); }
.dial__needle { position: absolute; left: 50%; top: 0; width: 2px; height: 1.3rem; background: var(--gold); transform: translateX(-50%); box-shadow: 0 0 12px var(--gold); }
.dial__deg { position: absolute; left: 50%; bottom: .2rem; transform: translateX(-50%); font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim); }
.dial__actions { display: flex; justify-content: center; gap: .5rem; margin-top: .4rem; pointer-events: auto; flex-wrap: wrap; padding: 0 var(--gutter); }
.match { position: absolute; left: 50%; bottom: 7.4rem; transform: translateX(-50%); display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem; border-radius: 999px; background: rgba(212,168,83,.14); border: 1px solid rgba(212,168,83,.5); color: var(--gold); font-size: var(--fs-small); letter-spacing: .08em; opacity: 0; transition: opacity .4s; pointer-events: none; }
.match.is-on { opacity: 1; }
.match__bar { width: 90px; height: 3px; background: rgba(212,168,83,.25); border-radius: 2px; overflow: hidden; }
.match__bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s linear; }

/* touch bubble */
.bubble { position: absolute; z-index: 5; max-width: 20rem; padding: .8rem 1rem .8rem .9rem; display: flex; gap: .7rem; align-items: flex-start; background: rgba(246,243,236,.4); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); color: var(--ink); border: 1px solid rgba(255,255,255,.4); border-radius: 16px 16px 16px 4px; box-shadow: 0 10px 40px rgba(0,0,0,.24); font-size: .9rem; line-height: 1.55; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); pointer-events: none; }
.bubble.is-on { opacity: 1; transform: none; }
.bubble img { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; }
.bubble small { display: block; color: #5c5c5c; font-size: .72rem; letter-spacing: .06em; margin-bottom: .15rem; }

/* loading */
.loader { position: absolute; inset: 0; display: grid; place-items: center; background: var(--ink); z-index: 6; transition: opacity .8s var(--ease-out); }
.loader.is-done { opacity: 0; pointer-events: none; }
.loader svg { width: min(70vw, 520px); }
.loader path { stroke: var(--paper); stroke-width: 1.5; fill: none; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.4s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader p { margin-top: 1rem; font-size: var(--fs-small); letter-spacing: .2em; color: var(--text-dim); }

.scrollcue { position: absolute; left: var(--gutter); bottom: 1.4rem; font-size: .72rem; letter-spacing: .2em; color: var(--text-dim); display: none; }
@media (min-width: 961px) { .scrollcue { display: block; } }

/* attribution */
.attrib { position: absolute; right: var(--gutter); bottom: .5rem; font-size: .66rem; color: rgba(246,243,236,.6); letter-spacing: .04em; }

/* ---------- HERO / daylight treatment ----------
   A clear winter noon: the owner's daytime photograph of the front, cross-
   fading into the measured terrain as the mountain turns. The frame stays
   bright — no heavy vignettes; legibility comes from text shadows and one
   light foot gradient behind the dial. */
.hero--day { --hero-turn: 0; isolation: isolate; min-height: 620px; background: #24466b; }
.hero--day .hero__canvas { z-index: 0; touch-action: pan-y pinch-zoom; }
.hero--day .hero__photo { z-index: 1; opacity: 0; transition: opacity .14s linear; }
.hero--day .hero__photo-blur { inset: -5%; background-position: 50% 45%; filter: blur(34px) saturate(1.04); transform: scale(1.1); }
.hero--day .hero__photo-img {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 5%, #000 94%, transparent);
}
.hero--day .hero__photo::after { background: none; }
.hero--day .hero__veil { z-index: 3;
  background: linear-gradient(180deg, rgba(8,20,40,.26) 0%, rgba(8,20,40,.05) 20%, transparent 46%, rgba(5,10,20,.16) 78%, rgba(5,10,20,.5) 100%); }
.hero--day .hero__copy { z-index: 4; opacity: 0; transform: translateY(14px); transition: opacity 1.4s .25s var(--ease-out), transform 1.4s .25s var(--ease-out); }
.hero--day.is-ready .hero__copy { opacity: 1; transform: none; }
.hero--day.is-ready.has-orbited .hero__copy { opacity: 0; transform: translateY(-.45rem); transition-delay: 0s; transition-duration: .7s; }
.hero--day .hero__eyebrow { color: rgba(255,255,255,.88); text-shadow: 0 1px 6px rgba(8,24,48,.6); margin-bottom: 1.1rem; }
.hero--day .hero__title { font-size: clamp(2.9rem, 5.6vw, 6.2rem); line-height: 1.18; letter-spacing: .05em; text-shadow: 0 2px 30px rgba(8,24,48,.55), 0 1px 3px rgba(8,24,48,.6); text-wrap: balance; }
:root[data-lang="en"] .hero--day .hero__title { max-width: 10.5ch; font-size: clamp(2.8rem, 5.2vw, 5.8rem); line-height: 1.02; letter-spacing: -.01em; }
.hero--day .hero__lead { color: rgba(255,255,255,.95); text-shadow: 0 1px 12px rgba(8,24,48,.65), 0 1px 3px rgba(8,24,48,.5); max-width: 30rem; }

/* the place claim: one serif line above the dial, naming what you look at */
.hero--day .hero__claim { position: absolute; z-index: 5; left: 50%; bottom: 11.6rem; margin: 0; max-width: min(42rem, 88vw); text-align: center;
  font-family: var(--font-ja-serif); font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.6; color: #fff;
  text-shadow: 0 1px 4px rgba(5,15,30,.7), 0 2px 18px rgba(5,15,30,.55);
  opacity: 0; transform: translate(-50%, 6px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); pointer-events: none; }
.hero--day .hero__claim.is-on { opacity: 1; transform: translate(-50%, 0); }
:root[data-lang="en"] .hero--day .hero__claim { font-family: var(--font-en-serif); }

.hero--day .dial { z-index: 6; opacity: 0; transition: opacity .9s .3s var(--ease-out); }
.hero--day.is-ready .dial { opacity: 1; }
.hero--day .dial__label { color: rgba(246,243,236,.78); text-shadow: 0 1px 4px rgba(5,15,30,.8); }
.hero--day .dial__label:hover, .hero--day .dial__label.is-active { color: #fff; }
.hero--day .dial__hint { color: rgba(255,255,255,.82); text-shadow: 0 1px 4px rgba(5,15,30,.7); }
.hero--day .dial__deg { color: rgba(255,255,255,.75); text-shadow: 0 1px 4px rgba(5,15,30,.7); }

.hero--day .hero__scroll { z-index: 5; display: flex; align-items: center; gap: .75rem; bottom: max(1.35rem, env(safe-area-inset-bottom)); opacity: 0; transition: opacity 1s 1.3s var(--ease-out); }
.hero--day.is-ready .hero__scroll { opacity: 1; }
.hero__scroll i { display: block; width: 2.8rem; height: 1px; background: linear-gradient(90deg, rgba(246,243,236,.7), transparent); transform-origin: left; animation: day-scroll 2.8s ease-in-out infinite; }
@keyframes day-scroll { 0%, 100% { transform: scaleX(.45); opacity: .42; } 50% { transform: scaleX(1); opacity: .9; } }
.hero--day .attrib { z-index: 5; color: rgba(246,243,236,.55); text-shadow: 0 1px 3px rgba(5,15,30,.6); bottom: max(.7rem, env(safe-area-inset-bottom)); }
.hero--day.is-dragging .hero__canvas { cursor: grabbing; }

/* The site navigation and ledger remain available immediately after the
   opening screen; only the brand and language switch share its frame. */
body.is-hero-view .sitenav,
body.is-hero-view .trip-pill,
body.is-hero-view .trip-tray { opacity: 0; visibility: hidden; pointer-events: none; }
.sitenav, .trip-pill, .trip-tray { transition: opacity .45s var(--ease-out), visibility 0s; }

.hero--day.is-fallback .hero__photo-img { inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 44%; -webkit-mask-image: none; mask-image: none; }
.hero--day.is-fallback .hero__canvas { pointer-events: none; cursor: default; }
.hero--day.is-fallback .dial, .hero--day.is-fallback .grabcue, .hero--day.is-fallback .introcap, .hero--day.is-fallback .hero__claim { display: none; }

@media (max-width: 960px) {
  .hero--day { min-height: 640px; }
  .hero--day .hero__copy { top: clamp(6.2rem, 15vh, 8.2rem); max-width: min(35rem, 80vw); }
  .hero--day .hero__title { font-size: clamp(2.7rem, 8vw, 4.9rem); }
  :root[data-lang="en"] .hero--day .hero__title { font-size: clamp(2.6rem, 7.6vw, 4.6rem); }
  .hero--day .hero__lead { font-size: .95rem; line-height: 1.6; margin-top: .8rem; }
  .hero--day .hero__claim { bottom: 12.6rem; font-size: .95rem; }
  .hero--day .attrib { display: none; }
  .hero--day .hero__scroll { display: none; }
}
@media (max-width: 600px) {
  .hero--day .hero__copy { left: 1.15rem; right: 1.15rem; top: clamp(6.2rem, 15.5vh, 8.5rem); max-width: 88vw; }
  .hero--day .hero__title { font-size: clamp(2.35rem, 11vw, 3.7rem); line-height: 1.22; letter-spacing: .04em; }
  :root[data-lang="en"] .hero--day .hero__title { max-width: 10ch; font-size: clamp(2.3rem, 10.4vw, 3.5rem); line-height: 1.04; }
  .hero--day .hero__lead { font-size: .88rem; max-width: 92vw; }
  .hero--day .hero__claim { bottom: 11.9rem; font-size: .88rem; }
  .hero--day .hero__scroll { font-size: .62rem; }
}
@media (max-height: 680px) and (min-width: 601px) {
  .hero--day .hero__copy { top: 5.4rem; }
  .hero--day .hero__title { font-size: clamp(2.5rem, 6.4vw, 4.2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll i { animation: none; }
  .hero--day .hero__copy, .hero--day .hero__scroll { transition-duration: .01ms; transition-delay: 0s; }
}

/* ---------- sections shared ---------- */
.section { position: relative; padding: clamp(5rem, 12vh, 9rem) var(--gutter); }
.section__inner { max-width: 80rem; margin: 0 auto; }
.section__eyebrow { margin-bottom: 1rem; }
.section__title { font-size: var(--fs-h1); line-height: 1.2; margin: 0 0 1.2rem; font-weight: 500; }
.section__lead { font-size: var(--fs-lead); color: var(--text-dim); max-width: var(--measure); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* Crawlable, user-visible travel summary. Kept in HTML so the essentials survive JS/WebGL failure. */
[data-static-lang] { display: none; }
:root[data-lang="ja"] [data-static-lang="ja"], :root[data-lang="en"] [data-static-lang="en"] { display: block; }
.discovery { padding: clamp(5rem, 10vh, 8rem) var(--gutter); background: linear-gradient(180deg, #0b0f17, #101722); border-top: 1px solid var(--line); }
.discovery__inner { max-width: 80rem; margin: 0 auto; }
.discovery h2 { max-width: 22ch; margin: .7rem 0 1.2rem; font-size: var(--fs-h1); line-height: 1.25; font-weight: 500; }
.discovery__lead { max-width: 52rem; margin: 0 0 2.4rem; color: var(--text-dim); font-size: var(--fs-lead); }
.discovery__grid { display: grid; gap: 1.1rem; }
.discovery__grid section { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(246,243,236,.025); }
.discovery__grid h3 { margin: 0 0 .55rem; font-size: 1rem; font-weight: 500; }
.discovery__grid p { margin: 0; color: var(--text-dim); font-size: .92rem; }
.discovery__grid a, .footer__links a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(212,168,83,.5); text-underline-offset: .2em; }
.discovery__reviewed { margin: 1.5rem 0 0; color: rgba(246,243,236,.58); font-size: .75rem; }
@media (min-width: 760px) { .discovery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- trip ledger ---------- */
.trip-pill { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1rem .7rem 1.1rem; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .85rem; letter-spacing: .06em; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .3s var(--ease-out), opacity .3s; }
.trip-pill.is-empty { opacity: .85; }
.trip-pill__n { display: grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: .75rem; }
.trip-pill.is-pulse { animation: tripPulse .6s var(--ease-out); }
@keyframes tripPulse { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }
.trip-tray { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: 4.6rem; z-index: 61; width: min(26rem, calc(100vw - 2rem)); max-height: min(70vh, 40rem); overflow: auto; padding: 1.2rem 1.2rem 1.4rem; border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.trip-tray__head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .8rem; }
.trip-tray__head h2 { margin: 0; font-size: 1.35rem; font-weight: 500; }
.trip-tray__head .caps { color: #6a6a6a; }
.trip-tray__close { margin-left: auto; font-size: 1.4rem; line-height: 1; color: #6a6a6a; }
.trip-tray__empty { color: #444; font-size: .9rem; }
.trip-tray__list { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .3rem; }
.trip-tray__list li { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: center; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.trip-tray__kind { font-size: .68rem; letter-spacing: .1em; color: var(--wakutama); }
.trip-tray__name a { text-decoration: underline; text-decoration-color: rgba(0,0,0,.25); }
.trip-tray__rm { color: #5a5a5a; font-size: 1.1rem; }
.trip-tray__dist { font-size: .78rem; color: #555; margin: 0 0 .8rem; }
.trip-tray__date { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: #444; margin-bottom: .8rem; }
.trip-tray__date input { font: inherit; padding: .3rem .5rem; border: 1px solid rgba(0,0,0,.2); border-radius: 8px; }
.trip-tray__actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.trip-tray .pill { border-color: rgba(0,0,0,.25); background: transparent; color: var(--ink); }
.trip-tray .pill--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.trip-tray .pill--ghost { border-color: transparent; color: #5f5f5f; }
.trip-btn.is-on { background: rgba(212,168,83,.18); border-color: var(--gold); color: var(--gold); }

.compass { position: absolute; right: var(--gutter); bottom: 9.5rem; z-index: 5; display: none; flex-direction: column; align-items: center; gap: .2rem; color: var(--gold); }
.compass.is-on { display: flex; }
.compass__arrow { font-size: 2.2rem; line-height: 1; transition: transform .2s linear; text-shadow: 0 0 14px var(--gold); }
.compass__txt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; }
.loader__cap { transition: opacity .4s; }

/* ---------- nav + footer ---------- */
.sitenav { display: flex; gap: .1rem; padding: .25rem; border-radius: 999px; background: rgba(11,15,23,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); margin-right: .4rem; }
.sitenav a { padding: .45rem .8rem; border-radius: 999px; font-size: .78rem; letter-spacing: .08em; color: var(--text-dim); transition: color .3s, background .3s; }
.sitenav a:hover { color: var(--snow); background: rgba(246,243,236,.1); }
@media (max-width: 960px) { .sitenav { display: none; } }
.footer { padding: clamp(4rem, 9vh, 7rem) var(--gutter) 3rem; background: #07090e; border-top: 1px solid var(--line); }
.footer__inner { max-width: 80rem; margin: 0 auto; }
.footer__line { font-size: var(--fs-h2); margin: 0 0 .6rem; }
.footer__sub { color: var(--text-dim); max-width: var(--measure); margin: 0 0 2.5rem; }
.footer__cols { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__cols { grid-template-columns: 1.2fr 1.2fr 1fr; } }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; font-size: .86rem; color: var(--text-dim); }
.footer__list a:hover { color: var(--snow); }
.footer__about { color: var(--text-dim); font-size: .9rem; margin: 0; }
.footer__links { margin: 2rem 0 0; color: var(--text-dim); font-size: .78rem; }
.footer__links a, .footer__links button { text-decoration: underline; text-decoration-color: rgba(246,243,236,.3); text-underline-offset: .2em; }
.footer__links button { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.footer__links a:hover, .footer__links button:hover { color: var(--snow); }
.footer__copy { margin: 3rem 0 0; font-size: .74rem; color: rgba(246,243,236,.6); letter-spacing: .08em; }

/* ---------- analytics consent ---------- */
.consent { position: fixed; z-index: 100; left: max(1rem, env(safe-area-inset-left)); right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 1.5rem; width: min(54rem, calc(100vw - 2rem)); margin-inline: auto; padding: 1rem 1.1rem; border: 1px solid rgba(246,243,236,.2); border-radius: 1rem; background: rgba(7,9,14,.96); box-shadow: 0 24px 70px rgba(0,0,0,.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.consent__copy { flex: 1; min-width: 0; }
.consent__copy strong { display: block; margin-bottom: .3rem; font-size: .92rem; }
.consent__copy p { margin: 0; color: var(--text-dim); font-size: .78rem; line-height: 1.65; }
.consent__copy a { display: inline-block; margin-top: .25rem; color: var(--gold); font-size: .72rem; text-decoration: underline; text-underline-offset: .2em; }
.consent__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.consent .pill { min-height: 2.5rem; white-space: nowrap; }
.consent .pill--primary { background: var(--snow); border-color: var(--snow); color: var(--bg); }
@media (max-width: 680px) { .consent { align-items: stretch; flex-direction: column; gap: .8rem; } .consent__actions { justify-content: stretch; } .consent__actions .pill { flex: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill--live::before { animation: none; }
  .trip-pill.is-pulse { animation: none; }
  .loader path { animation: none; stroke-dashoffset: 0; }
}

/* mobile ledger placement (must come after the base .trip-pill rules) */
@media (max-width: 960px) {
  .trip-pill { top: 3.4rem; bottom: auto; right: max(.9rem, env(safe-area-inset-right)); padding: .5rem .75rem .5rem .85rem; font-size: .76rem; }
  .trip-tray { left: 1rem; right: 1rem; width: auto; top: 6.2rem; bottom: auto; max-height: 70vh; }
}

/* generated imagery (optional files in assets/gen) */
.gen-wrap { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, rgba(246,243,236,.06), rgba(246,243,236,.02)); }
.gen-wrap img.gen, .gen-wrap .gen-pic { width: 100%; height: 100%; object-fit: cover; display: block; }
.gen-wrap.gen-missing img.gen { display: none; }
.gen-wrap.gen-missing::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-ja-serif); font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: .2em; color: rgba(246,243,236,.45); }

/* real photos (owner / CC) */
.real-wrap { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, rgba(246,243,236,.06), rgba(246,243,236,.02)); }
.real-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.real-wrap.gen-missing img { display: none; }
.real-wrap.gen-missing::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-ja-serif); font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: .2em; color: rgba(246,243,236,.45); }
.real-credit { position: absolute; right: .45rem; bottom: .4rem; max-width: min(72%, 20rem); font-size: .58rem; letter-spacing: .03em; line-height: 1.4; color: rgba(255,255,255,.7); background: rgba(0,0,0,.32); padding: .12rem .45rem; border-radius: .7rem; backdrop-filter: blur(4px); text-wrap: balance; opacity: .75; transition: opacity var(--dur) var(--ease-out); }
.real-wrap:hover .real-credit, .real-credit:focus-within { opacity: 1; }
@media (max-width: 720px) { .real-credit { font-size: .54rem; max-width: 82%; } }
.real-credit a { color: inherit; }

/* picture boxes honour their aspect-ratio everywhere */
.pic { display: block; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sitenav__proto { color: var(--gold) !important; }
.footer__proto { margin: 2rem 0 0; }
.footer__proto a { color: var(--gold); border-bottom: 1px solid rgba(212,168,83,.4); }

.footer__disclaimer { margin-top: 2rem; max-width: 46rem; font-size: .74rem; line-height: 1.8; color: rgba(246,243,236,.55); }

/* the measured Fujinomiya skyline, used as the mark (see assets/img/miyafuji-mark.svg) */
.brand__fuji { width: 2.2rem; height: auto; opacity: .85; margin-right: -.15rem; align-self: flex-end; margin-bottom: .12rem; flex: none; }
@media (max-width: 960px) { .brand__sub { display: none; } }
@media (max-width: 720px) { .brand__fuji { width: 2.1rem; } }
