/* Germany Hotel Stays — "Nachtzug"
   Ink-black night, warm cream paper, signal vermilion and a little brass.
   Editorial numbering, a split-flap departure board, postcards on a table. */

@view-transition { navigation: auto; }

:root {
  --night: #0e1117;
  --night-2: #161a22;
  --night-line: rgba(243, 236, 222, 0.12);
  --paper: #f3eee4;
  --paper-2: #e8e0d0;
  --card: #fbf8f2;
  --ink: #14161b;
  --ink-soft: #3a3d44;
  --muted: #6c675d;
  --line: rgba(20, 22, 27, 0.13);
  --signal: #e0482d;
  --signal-deep: #b8351e;
  --brass: #cfa45a;
  --brass-light: #ecd2a0;
  --on-night: #f3ecde;
  --on-night-muted: #a9a59c;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* paper grain over everything, very quiet */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background-image: var(--grain); opacity: 0.07; mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--signal-deep); }

::selection { background: var(--signal); color: #fff; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--signal); color: #fff; padding: 0.6rem 0.9rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 620; letter-spacing: -0.02em; color: var(--ink); }

h1 { margin: 0; font-weight: 460; font-size: clamp(2.8rem, 8vw, 7.4rem); line-height: 0.94; letter-spacing: -0.045em; }

.lede { font-size: 1.2rem; max-width: 34rem; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  margin: 0 0 1.4rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-light);
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow:has(.pulse)::before { display: none; }
.eyebrow-dark { color: var(--signal-deep); }

.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--signal); animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

/* ---------- Word reveal ---------- */

.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; animation: rise 1.1s calc(0.15s + var(--i) * 0.07s) var(--ease) both; }
.split .ln { display: block; }

@keyframes rise { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* headings inside [data-reveal] wait for the observer */
.js [data-reveal] .split-wait .w > span,
.js [data-reveal] h2 .w > span { transform: translateY(110%) rotate(4deg); transition: transform 1s calc(var(--i) * 0.06s) var(--ease); }
.js [data-reveal].is-in h2 .w > span { transform: none; }
h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
h2 .w > span { display: inline-block; }

/* ---------- Progress + header ---------- */

.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress > span {
  display: block; height: 100%; background: linear-gradient(90deg, var(--signal), var(--brass));
  transform-origin: left; transform: scaleX(var(--p, 0));
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  color: var(--on-night);
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--night-line);
  transition: transform 0.5s var(--ease), background-color 0.4s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header { position: fixed; inset: 0 0 auto; }
main { padding-top: 76px; }
.page-home main, main:has(> .detail) { padding-top: 0; }
.page-home .site-header:not(.is-scrolled),
body:has(.detail) .site-header:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.header-inner {
  width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 76px; transition: min-height 0.4s var(--ease);
}
.is-scrolled .header-inner { min-height: 62px; }

.brand { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; margin-right: auto; }
.brand:hover { color: inherit; }
.brand-seal { position: relative; width: 36px; height: 36px; color: var(--brass); display: grid; place-items: center; }
.brand-seal svg { position: absolute; inset: 0; }
.brand-seal b { font-family: var(--serif); font-weight: 620; font-size: 0.82rem; letter-spacing: -0.02em; color: var(--brass-light); animation: fade 0.8s 0.7s ease both; }
.brand-seal svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.brand-seal circle { stroke-dasharray: 117; stroke-dashoffset: 117; animation: draw 1.4s 0.2s var(--ease) forwards; }

.brand:hover .brand-seal { animation: spin-seal 1.2s var(--ease); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin-seal { to { transform: rotate(360deg); } }
.brand-word { font-family: var(--serif); font-weight: 620; font-size: 1.18rem; color: #fff; letter-spacing: -0.02em; }

.nav-bar { display: flex; gap: 0.2rem; }
.nav-bar a {
  position: relative; color: var(--on-night-muted); text-decoration: none;
  padding: 0.5rem 0.85rem; font-size: 0.98rem; transition: color 0.3s ease;
}
.nav-bar a::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav-bar a:hover { color: #fff; }
.nav-bar a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-bar a[aria-current="page"] { color: #fff; }
.nav-bar a[aria-current="page"]::before {
  content: ""; position: absolute; left: 50%; top: 0.1rem; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--signal);
}

.nav-toggle, .nav-drawer { display: none; }

/* ---------- Buttons + links ---------- */

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 3.1rem; padding: 0.6rem 0.75rem 0.6rem 1.35rem;
  border-radius: 999px; background: var(--ink); color: #fff;
  text-decoration: none; font-weight: 600; letter-spacing: 0.01em;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 0; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%;
  background: var(--signal); transition: width 0.6s var(--ease);
}
.btn:hover { color: #fff; }
.btn:hover::before { width: 120%; }
.btn-arrow {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); overflow: hidden; transition: transform 0.5s var(--ease), background-color 0.4s;
}
.btn:hover .btn-arrow { transform: rotate(-45deg); background: rgba(255, 255, 255, 0.22); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light .btn-arrow { background: rgba(20, 22, 27, 0.08); }
.btn-light:hover .btn-arrow { transform: translateY(2px); }

.link-line {
  position: relative; color: inherit; text-decoration: none; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size 0.5s var(--ease);
}
.link-line:hover { color: inherit; animation: line-swap 0.7s var(--ease); }
@keyframes line-swap {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  50% { background-size: 0 1px; background-position: 100% 100%; }
  51% { background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}
.link-light { color: var(--on-night); }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 0 4.5rem;
  background: var(--night); color: var(--on-night);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image:
    linear-gradient(var(--night-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(80% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-glow {
  position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -20vmax; top: -25vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 72, 45, 0.28), rgba(207, 164, 90, 0.08) 45%, transparent 68%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
  translate: var(--mx, 0) var(--my, 0);
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-8vmax, 6vmax) scale(1.15); } }

.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }

.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 5.6rem); line-height: 0.98; }
.hero h1 .ln-accent { color: transparent; -webkit-text-stroke: 1.2px var(--brass-light); font-weight: 460; }
.hero h1 .ln-accent .w > span { background: linear-gradient(100deg, var(--brass-light) 0 40%, transparent 40%); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; animation: rise 1.1s calc(0.15s + var(--i) * 0.07s) var(--ease) both, fill-in 1.4s 1.3s var(--ease) forwards; }
@keyframes fill-in { to { background-position: 0 0; } }

.hero .eyebrow { animation: fade-up 0.9s 0.1s var(--ease) both; }
.hero .lede { color: var(--on-night-muted); margin: 1.6rem 0 0; animation: fade-up 1s 0.7s var(--ease) both; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.8rem; margin-top: 2.2rem; animation: fade-up 1s 0.85s var(--ease) both; }
.hero-actions .link-line { color: var(--on-night); }

.stats {
  display: flex; gap: clamp(1.5rem, 4vw, 3.2rem); margin: 2.4rem 0 0; padding-top: 1.6rem;
  border-top: 1px solid var(--night-line); animation: fade-up 1s 1s var(--ease) both;
}
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-night-muted); }
.stats dd { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums lining-nums; }
.stats div:last-child dd { color: var(--signal); }

/* postcard deck */
.hero-stage { position: relative; animation: fade 1.2s 0.4s ease both; }
.deck { position: relative; aspect-ratio: 4 / 5; max-width: min(430px, 62vh); margin-inline: auto; perspective: 1400px; }
.card-post {
  position: absolute; inset: 0;
  display: block; border-radius: 6px; overflow: hidden;
  background: var(--card); padding: 12px 12px 54px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translate(calc(var(--k, 0) * 14px), calc(var(--k, 0) * -12px)) rotate(calc(var(--r, 0) * 1deg)) scale(calc(1 - var(--k, 0) * 0.035));
  transition: transform 1s var(--ease), opacity 0.8s ease;
  z-index: calc(20 - var(--k, 0));
  opacity: calc(1 - max(var(--k, 0) - 3, 0));
  text-decoration: none; color: var(--ink);
}
.card-post img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; filter: saturate(0.92) contrast(1.04); }
.card-post-cap {
  position: absolute; left: 16px; right: 16px; bottom: 12px;
  display: flex; align-items: baseline; gap: 0.7rem;
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.02em;
}
.card-post-cap span { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; color: var(--signal); }
.card-post.is-leaving { animation: toss 1s var(--ease-io) forwards; }
@keyframes toss {
  0% { transform: translate(0, 0) rotate(calc(var(--r, 0) * 1deg)); z-index: 30; }
  45% { transform: translate(-115%, -6%) rotate(-14deg); z-index: 30; }
  55% { z-index: 0; }
  100% { transform: translate(calc(var(--k, 0) * 14px), calc(var(--k, 0) * -12px)) rotate(calc(var(--r, 0) * 1deg)) scale(calc(1 - var(--k, 0) * 0.035)); z-index: 0; }
}

/* split-flap board */
.board {
  position: absolute; left: 50%; bottom: -3.6rem; translate: -50% 0; z-index: 40;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.6rem 0.8rem 0.6rem 1rem; border-radius: 10px;
  background: #07090c; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.board-label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.board-cells { display: flex; gap: 3px; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-weight: 600; font-size: 1.05rem; color: #f6efe1; }
.board-cells .cell {
  position: relative; width: 1.15em; height: 1.6em; display: grid; place-items: center;
  border-radius: 3px; background: linear-gradient(#1c2028 50%, #15181e 50%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.6);
}
.board-cells .cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.7); }
.board-cells .cell.is-flip { animation: flap 0.09s linear; }
@keyframes flap { 0% { transform: rotateX(0); } 50% { transform: rotateX(-80deg); } 100% { transform: rotateX(0); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 999px; border: 1px solid var(--night-line);
  animation: fade 1s 1.6s ease both;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--brass); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* ---------- Marquee ---------- */

.marquee-clip { overflow: hidden; padding: 1.4rem 0; margin: -2.6rem 0 -1.4rem; position: relative; z-index: 2; }
.marquee {
  overflow: hidden; background: var(--signal); color: #fff;
  border-block: 1px solid var(--signal-deep);
  rotate: -1.2deg; margin: 0 -2vw; position: relative;
  box-shadow: 0 14px 30px -18px rgba(184, 53, 30, 0.8);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; }
.marquee span span, .marquee-set > span { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.4rem); padding: 0.55rem 1.4rem; white-space: nowrap; letter-spacing: -0.02em; }
.marquee i { font-style: normal; font-size: 0.9rem; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

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

.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-tight { padding-top: clamp(1.5rem, 4vw, 3rem); }

.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0.5rem 3rem; margin-bottom: clamp(3rem, 7vw, 6rem); }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0.4rem; }
.section-head h2 { margin: 0; font-weight: 460; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 0.98; letter-spacing: -0.04em; }
.section-head > p { margin: 0; color: var(--muted); max-width: 22rem; }

.page-head { padding: clamp(4rem, 10vw, 8rem) 0 clamp(1rem, 3vw, 2rem); position: relative; }
.page-head h1 { font-size: clamp(3.4rem, 12vw, 10rem); }
.page-head .eyebrow { animation: fade-up 0.8s var(--ease) both; }
.page-head .lede { margin: 1.6rem 0 0; animation: fade-up 1s 0.45s var(--ease) both; }

/* generic reveal */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hotel entries ---------- */

.list { display: grid; gap: clamp(4rem, 9vw, 8rem); counter-reset: entry; }

.entry {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 0 clamp(1.2rem, 3vw, 2.5rem);
  position: relative;
}
.entry-media { grid-column: 1 / span 7; position: relative; display: block; border-radius: 4px; overflow: hidden; background: var(--night); }
.entry-body { grid-column: 8 / span 5; position: relative; min-width: 0; }
.entry.is-flip .entry-media { grid-column: 6 / span 7; grid-row: 1; }
.entry.is-flip .entry-body { grid-column: 1 / span 5; grid-row: 1; }

.entry-media figure { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; }
.entry-media img {
  width: 100%; height: 118%; object-fit: cover;
  transform: translate3d(0, calc(-7.6% + var(--py, 0px)), 0) scale(1.04);
  transition: transform 0.15s linear, filter 0.8s ease;
  will-change: transform;
}
.entry:hover .entry-media img { filter: saturate(1.1); }

.js .entry[data-reveal] { opacity: 1; transform: none; }
.js .entry .entry-media { clip-path: inset(12% 12% 12% 12% round 4px); transition: clip-path 1.4s var(--ease-io); }
.js .entry.is-in .entry-media { clip-path: inset(0 0 0 0 round 4px); }
.js .entry .entry-body > * { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.js .entry.is-in .entry-body > * { opacity: 1; transform: none; }
.js .entry.is-in .entry-body > :nth-child(2) { transition-delay: 0.15s; }
.js .entry.is-in .entry-body > :nth-child(3) { transition-delay: 0.22s; }
.js .entry.is-in .entry-body > :nth-child(4) { transition-delay: 0.3s; }
.js .entry.is-in .entry-body > :nth-child(5) { transition-delay: 0.38s; }
.js .entry.is-in .entry-body > :nth-child(6) { transition-delay: 0.46s; }

.entry-peek {
  position: absolute; left: var(--cx, 50%); top: var(--cy, 50%); z-index: 2;
  width: 6.5rem; height: 6.5rem; margin: -3.25rem 0 0 -3.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--signal); color: #fff; font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  transform: scale(0); transition: transform 0.5s var(--ease-spring);
  pointer-events: none;
}
.entry-media:hover .entry-peek { transform: scale(1); }

.entry-num {
  display: block; margin-bottom: 0.4rem;
  font-family: var(--serif); font-weight: 460; font-size: clamp(5rem, 11vw, 9.5rem); line-height: 0.8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(20, 22, 27, 0.35);
  font-variant-numeric: lining-nums;
  transition: color 0.6s var(--ease), -webkit-text-stroke-color 0.6s;
}
.entry:hover .entry-num { color: var(--signal); -webkit-text-stroke-color: var(--signal); }

.place { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--muted); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.place-pin { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(224, 72, 45, 0.18); }

.entry-name { margin: 0.6rem 0 0.9rem; font-size: clamp(1.7rem, 2.6vw, 2.45rem); line-height: 1.06; letter-spacing: -0.03em; }
.entry-name a {
  color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--signal), var(--signal)) 0 92% / 0 2px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.entry-name a:hover { background-size: 100% 2px; color: var(--ink); }

.entry-lead { margin: 0; color: var(--ink-soft); font-size: 1rem; max-width: 52ch; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.3rem 0 1.6rem; padding: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.18rem 0.8rem;
  font-size: 0.86rem; color: var(--ink-soft);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.chips li:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.photo-flag {
  position: absolute; right: 0.8rem; bottom: 0.8rem; z-index: 1;
  background: rgba(14, 17, 23, 0.78); color: #fff;
  font-size: 0.74rem; letter-spacing: 0.04em; padding: 0.25rem 0.65rem; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---------- Method band ---------- */

.method { position: relative; background: var(--night); color: var(--on-night-muted); overflow: hidden; isolation: isolate; }
.method::before {
  content: "10"; position: absolute; z-index: -1; right: -2vw; bottom: -0.25em;
  font-family: var(--serif); font-size: clamp(14rem, 34vw, 32rem); line-height: 1; letter-spacing: -0.08em;
  color: transparent; -webkit-text-stroke: 1px var(--night-line);
}
.method-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.method h2 { margin: 0 0 1.4rem; color: #fff; font-weight: 460; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.02; letter-spacing: -0.035em; }
.method p { max-width: 40rem; }

.card {
  position: relative; background: var(--night-2); color: var(--on-night);
  padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: 6px;
  border: 1px solid var(--night-line);
}
.card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 60px; height: 60px; border-left: 2px solid var(--signal); border-top: 2px solid var(--signal); border-top-left-radius: 6px; }
.card h3 { margin: 0 0 1.1rem; font-size: 1.45rem; color: #fff; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { display: flex; gap: 0.9rem; align-items: baseline; padding: 0.85rem 0; border-top: 1px solid var(--night-line); }
.no { position: relative; flex: none; width: 14px; height: 14px; top: 2px; }
.no::before, .no::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--signal); transform: rotate(45deg) scaleX(0); transition: transform 0.6s var(--ease); }
.no::after { transform: rotate(-45deg) scaleX(0); }
.card.is-in .no::before { transform: rotate(45deg) scaleX(1); }
.card.is-in .no::after { transform: rotate(-45deg) scaleX(1); transition-delay: 0.15s; }
.card.is-in li:nth-child(2) .no::before { transition-delay: 0.35s; }
.card.is-in li:nth-child(2) .no::after { transition-delay: 0.5s; }
.card.is-in li:nth-child(3) .no::before { transition-delay: 0.7s; }
.card.is-in li:nth-child(3) .no::after { transition-delay: 0.85s; }
.prose li + li { margin-top: 0.45rem; }

/* ---------- Places ---------- */

.city-list { position: relative; display: grid; margin-top: 1rem; }
.city {
  position: relative;
  display: grid; grid-template-columns: 4rem minmax(12rem, 0.85fr) 1.15fr; gap: 0.5rem 2rem;
  padding: 2rem 0; border-top: 1px solid var(--line);
}
.city::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.city:hover::after { transform: scaleX(1); }
.city:last-of-type { border-bottom: 1px solid var(--line); }
.city-num { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; color: var(--signal-deep); padding-top: 0.7rem; }
.city h2 { margin: 0; font-weight: 460; font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1; letter-spacing: -0.035em; transition: transform 0.6s var(--ease), color 0.4s; }
.city:hover h2 { transform: translateX(10px); color: var(--signal-deep); }
.city h2 + p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.city > div:last-child p { margin: 0 0 0.6rem; max-width: 60ch; }
.city > div:last-child p:first-child { color: var(--ink-soft); }

.city-preview {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: 300px; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  opacity: 0; scale: 0.6; rotate: -6deg;
  transition: opacity 0.35s ease, scale 0.5s var(--ease), rotate 0.6s var(--ease);
  translate: var(--x, 0) var(--y, 0);
}
.city-preview.is-on { opacity: 1; scale: 1; rotate: 3deg; }
.city-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hotel detail ---------- */

.detail-hero { position: relative; min-height: min(86svh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; background: var(--night); padding-top: 76px; }
.detail-photo { position: absolute; inset: 0; z-index: -2; margin: 0; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.08); animation: zoom-settle 2.2s var(--ease) both; }
@keyframes zoom-settle { from { scale: 1.15; filter: brightness(0.4); } to { scale: 1; filter: none; } }
.detail-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 17, 23, 0.75) 0%, rgba(14, 17, 23, 0) 30%, rgba(14, 17, 23, 0.25) 55%, rgba(14, 17, 23, 0.9) 100%); }
.detail-hero .photo-flag { top: 92px; bottom: auto; right: 1.2rem; }
.detail-head { position: relative; padding: 0 0 clamp(2rem, 5vw, 4rem); }
.detail-head .crumbs { margin: 0 0 1.2rem; color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; animation: fade-up 0.8s 0.2s var(--ease) both; }
.detail-head .crumbs a { color: #fff; }
.detail-head .place { color: var(--brass-light); animation: fade-up 0.8s 0.3s var(--ease) both; }
.detail-title { margin: 0.8rem 0 0; color: #fff; font-weight: 460; font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 0.96; letter-spacing: -0.045em; max-width: 14ch; text-wrap: balance; }
.detail-num {
  position: absolute; right: 0; bottom: clamp(1.5rem, 4vw, 3.5rem);
  font-family: var(--serif); font-size: clamp(5rem, 14vw, 13rem); line-height: 0.8; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
  animation: fade-up 1.2s 0.6s var(--ease) both;
}

.detail-intro { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: clamp(3rem, 7vw, 5.5rem) 0 1rem; }
.detail-summary { margin: 0 0 1.8rem; font-family: var(--serif); font-size: clamp(1.3rem, 2.1vw, 1.75rem); line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); }
.note { margin-top: 1.2rem; max-width: 48ch; }

/* address as a hotel key tag */
.facts {
  position: relative; margin: 0; padding: 2.6rem 1.6rem 1.4rem;
  background: var(--card); border-radius: 10px 10px 28px 28px;
  box-shadow: 0 1px 0 var(--line), 0 30px 50px -30px rgba(20, 22, 27, 0.35), inset 0 0 0 1px var(--line);
  rotate: 1.5deg; transition: rotate 0.8s var(--ease-spring);
}
.facts:hover { rotate: -1deg; }
.facts-hole { position: absolute; left: 50%; top: 0.9rem; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3); }
.facts div { padding: 0.8rem 0; border-top: 1px dashed var(--line); }
.facts dt { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--signal-deep); }
.facts dd { margin: 0.2rem 0 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; }

.credit { margin: 1.5rem 0 0; max-width: 70ch; }

.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 5rem); padding: 2rem 0 clamp(4rem, 8vw, 7rem); counter-reset: block; }
.blocks > article, .blocks > figure { position: relative; margin: 3rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--ink); }
.blocks > article:not(.sources) { counter-increment: block; }
.blocks > article:not(.sources)::before {
  content: counter(block, decimal-leading-zero); position: absolute; right: 0; top: 1.2rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; color: var(--signal-deep);
}
.blocks > figure { border: 0; padding: 0; grid-column: 1 / -1; border-radius: 4px; overflow: hidden; }
.blocks > figure img { width: 100%; }
.blocks > figure figcaption { padding: 0.8rem 1rem; background: var(--card); }
.blocks > article.sources { grid-column: 1 / -1; }
.blocks h2 { margin: 0 0 0.7rem; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 460; letter-spacing: -0.03em; }
.blocks p { margin: 0; max-width: 62ch; color: var(--ink-soft); }
.frame { position: relative; margin: 0; }

.sources { font-size: 0.93rem; color: var(--muted); }
.sources a { word-break: break-word; color: var(--ink); }
.sources ul { columns: 2 18rem; column-gap: 2rem; padding-left: 1.1rem; }
.sources li::marker { color: var(--signal); }

/* ---------- Prose pages ---------- */

.prose { padding: clamp(4rem, 9vw, 7rem) 0 5rem; max-width: 46rem; }
.prose h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 0.98; margin-bottom: 1.8rem; animation: fade-up 1s var(--ease) both; }
.prose > :not(h1) { animation: fade-up 1s 0.2s var(--ease) both; }
.prose h2 { font-size: 1.6rem; font-weight: 460; letter-spacing: -0.025em; margin: 2.6rem 0 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.prose p { margin: 0.8rem 0 0; color: var(--ink-soft); }
.prose ol, .prose ul { margin: 0.7rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); }
.prose li::marker { color: var(--signal); }

.missing {
  position: relative; margin: 1.4rem 0; padding: 1.1rem 1.3rem 1.1rem 3.3rem;
  background: var(--card); border-radius: 6px; color: var(--ink);
  box-shadow: inset 3px 0 0 var(--signal), inset 0 0 0 1px var(--line);
}
.missing::before {
  content: "!"; position: absolute; left: 1.1rem; top: 1.2rem;
  width: 1.35rem; height: 1.35rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--signal); color: #fff;
  font-weight: 600; font-size: 0.85rem; line-height: 1;
  animation: nudge 2.8s 1.2s var(--ease) infinite;
}
@keyframes nudge { 0%, 70%, 100% { transform: none; } 76% { transform: rotate(-14deg); } 84% { transform: rotate(10deg); } 92% { transform: rotate(-4deg); } }
.missing p { margin: 0; }

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

.site-footer { position: relative; overflow: hidden; background: var(--night); color: var(--on-night-muted); padding: clamp(4rem, 8vw, 6rem) 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-mark { font-family: var(--serif); color: #fff; font-size: 1.7rem; margin: 0 0 0.6rem; letter-spacing: -0.02em; }
.footer-grid > div:first-child p:last-child { max-width: 26rem; }
.footer-label { margin: 0 0 0.5rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.footer-nav, .footer-legal { display: grid; gap: 0.4rem; align-content: start; }
.site-footer a { color: var(--on-night); text-decoration: none; justify-self: start; background: linear-gradient(var(--signal), var(--signal)) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease), color 0.3s; }
.site-footer a:hover { color: #fff; background-size: 100% 1px; }

.footer-giant {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 3vw;
  width: calc(100% - 2.5rem); margin: clamp(3rem, 7vw, 5rem) auto 0;
  font-family: var(--serif); font-weight: 460; font-size: clamp(3.4rem, 11.5vw, 11rem); line-height: 0.86; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 236, 222, 0.22);
  user-select: none;
}
.footer-giant span { padding-bottom: 0.14em; }
.footer-giant span:last-child { color: var(--on-night); -webkit-text-stroke: 0; background: linear-gradient(90deg, var(--signal), var(--brass)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .footer-giant span { display: inline-block; transform: translateY(40%); opacity: 0; transition: transform 1.4s var(--ease), opacity 1s ease; }
.js .footer-giant.is-in span { transform: none; opacity: 1; }
.js .footer-giant.is-in span:last-child { transition-delay: 0.12s; }

.fine { border-top: 1px solid var(--night-line); margin-top: 2.4rem; padding-top: 1.1rem; font-size: 0.9rem; }

/* ---------- View transitions ---------- */

::view-transition-old(root) { animation: vt-out 0.45s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.6s var(--ease) both; }
::view-transition-group(*) { animation-duration: 0.7s; animation-timing-function: var(--ease-io); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-20px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(30px); } }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 420px; width: 100%; margin: 1rem auto 4rem; }
  .entry, .entry.is-flip { grid-template-columns: 1fr; gap: 1.6rem; }
  .entry-media, .entry-body, .entry.is-flip .entry-media, .entry.is-flip .entry-body { grid-column: 1; grid-row: auto; }
  .entry-num { position: absolute; right: 0; top: -0.2em; margin: 0; font-size: clamp(4rem, 14vw, 6rem); }
  .entry-body { padding-right: 0; }
  .entry-name { padding-right: 4.5rem; }
  .detail-intro { grid-template-columns: 1fr; }
  .facts { max-width: 26rem; }
}

@media (max-width: 860px) {
  .nav-bar { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: transparent; color: #fff;
    border: 1px solid var(--night-line); border-radius: 999px;
    font: inherit; font-weight: 600; padding: 0.45rem 0.95rem; cursor: pointer;
  }
  .nav-toggle-bars { position: relative; width: 16px; height: 2px; background: currentColor; transition: background-color 0.2s ease; }
  .nav-toggle-bars::before, .nav-toggle-bars::after {
    content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor;
    transition: transform 0.4s var(--ease);
  }
  .nav-toggle-bars::before { transform: translateY(-5px); }
  .nav-toggle-bars::after { transform: translateY(5px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }
  .nav-drawer {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s var(--ease);
    background: var(--night);
  }
  .nav-drawer.is-open { grid-template-rows: 1fr; }
  .site-header:has(.nav-drawer.is-open) { background: var(--night) !important; }
  .nav-drawer-inner { overflow: hidden; }
  .nav-drawer-links { display: grid; padding: 0.4rem 1.25rem 1.4rem; }
  .nav-drawer a {
    display: block; padding: 0.8rem 0; color: var(--on-night); text-decoration: none;
    font-family: var(--serif); font-size: 1.9rem; letter-spacing: -0.03em;
    border-top: 1px solid var(--night-line);
    opacity: 0; transform: translateY(-14px);
    transition: opacity 0.4s ease, transform 0.55s var(--ease), color 0.3s;
  }
  .nav-drawer.is-open a { opacity: 1; transform: none; }
  .nav-drawer.is-open a:nth-child(2) { transition-delay: 0.05s; }
  .nav-drawer.is-open a:nth-child(3) { transition-delay: 0.1s; }
  .nav-drawer.is-open a:nth-child(4) { transition-delay: 0.15s; }
  .nav-drawer.is-open a:nth-child(5) { transition-delay: 0.2s; }
  .nav-drawer a[aria-current="page"] { color: var(--signal); }
  .header-inner { min-height: 66px; }

  .method-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .city { grid-template-columns: 1fr; gap: 0.6rem; }
  .city-num { padding: 0; }
  .city-preview { display: none; }
  .blocks { grid-template-columns: 1fr; }
  .detail-num { display: none; }
  main { padding-top: 66px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap, .header-inner { width: calc(100% - 2rem); }
  .hero { padding-top: 6rem; }
  .stats { gap: 1.4rem; }
  .board { font-size: 0.9rem; gap: 0.6rem; }
  .board-label { display: none; }
  .board-cells { font-size: 0.92rem; }
  .entry-peek { display: none; }
  .facts { rotate: 0deg; }
}

@media (hover: none) {
  .entry-peek { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .marquee-track { animation: none; }
  ::view-transition-group(*), ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
