/* =====================================================================
   Maschinenhaus Spinas
   Visual language: editorial, warm wood & stone, Rhaetian-railway red
   ===================================================================== */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f5f1ea;          /* warm stone */
  --bg-soft: #ebe4d8;     /* darker stone */
  --surface: #fffcf7;
  --ink: #1b221e;         /* pine black */
  --ink-2: #2b3a31;       /* pine */
  --muted: rgba(27, 34, 30, 0.68);
  --line: rgba(27, 34, 30, 0.12);
  --accent: #c8102e;      /* RhB red */
  --accent-deep: #9e0c24;
  --wood: #b07a45;
  --snow: #fbfaf7;

  --shadow-sm: 0 2px 8px rgba(27, 34, 30, 0.06);
  --shadow: 0 1.25rem 3rem rgba(27, 34, 30, 0.12);
  --radius: 1.4rem;
  --radius-sm: 0.9rem;
  --container: min(1200px, calc(100vw - 2.5rem));
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll, body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure { margin: 0; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: var(--container); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: .6rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.025em; line-height: 1.1; }
p { margin: 0; color: var(--muted); text-wrap: pretty; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink); line-height: 1.5; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 2.75rem; height: 1px; background: currentColor; opacity: .8; }
.eyebrow--light { color: rgba(255, 255, 255, .85); }

.section { padding: clamp(5rem, 10vw, 9rem) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section__head { display: grid; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head p { max-width: 38rem; font-size: 1.06rem; }
.section__head--center { text-align: center; justify-items: center; margin-inline: auto; }
.section__head--center .eyebrow::after { content: ""; width: 2.75rem; height: 1px; background: currentColor; opacity: .8; }

/* ---------- Buttons ---------- */
.cta {
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 3.4rem; padding: 0 1.6rem;
  border-radius: 999px; font-weight: 600; font-size: .98rem;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
}
.cta svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.cta:hover svg { transform: translateX(3px); }
.cta--accent { background: var(--accent); color: #fff; box-shadow: 0 .75rem 2rem rgba(200, 16, 46, .35); }
.cta--accent:hover { background: var(--accent-deep); transform: translateY(-2px); }
.cta--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(255, 255, 255, .08); }
.cta--ghost:hover { background: rgba(255, 255, 255, .18); }
.cta--dark { background: var(--ink); color: #fff; }
.cta--dark:hover { background: var(--ink-2); transform: translateY(-2px); }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.5rem; padding: 0 1.15rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, transform .2s var(--ease);
}
.pill--accent { background: var(--accent); color: #fff; }
.pill--accent:hover { background: var(--accent-deep); }
.pill--dark { background: var(--ink); color: #fff; }
.pill--dark:hover { background: var(--ink-2); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: .25rem; width: fit-content;
  transition: border-color .2s, color .2s;
}
.link-arrow svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow--light { color: #fff; border-color: rgba(255, 255, 255, .3); }
.link-arrow--light:hover { color: #fff; border-color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.nav.is-scrolled, body.menu-open .nav {
  background: rgba(245, 241, 234, .86);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { width: var(--container); margin-inline: auto; min-height: 4.6rem; display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: baseline; gap: .55rem; font-family: var(--display); }
.brand__mark { width: .62rem; height: .62rem; border-radius: 50%; background: var(--accent); align-self: center; box-shadow: 0 0 0 .28rem rgba(200, 16, 46, .18); }
.brand__name { font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; }
.brand__place { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }

.nav__links { display: none; gap: 1.8rem; margin-left: auto; }
.nav__links a { font-size: .92rem; font-weight: 500; opacity: .85; position: relative; padding: .4rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.lang-toggle { display: inline-flex; gap: .3rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; padding: .5rem .65rem; border-radius: 999px; }
.lang-toggle span { opacity: .5; transition: opacity .2s; }
.lang-toggle span.is-active { opacity: 1; }
.lang-toggle:hover span { opacity: .85; }
.nav__book { display: none; }

.menu-toggle { width: 2.75rem; height: 2.75rem; display: grid; place-content: center; gap: 6px; border-radius: 50%; }
.menu-toggle span { display: block; width: 20px; height: 1.6px; background: currentColor; transition: transform .3s var(--ease); }
body.menu-open .menu-toggle span:first-child { transform: translateY(3.8px) rotate(45deg); }
body.menu-open .menu-toggle span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

.overlay {
  position: fixed; inset: 0; z-index: 45;
  background: var(--bg);
  padding: 7rem 1.5rem 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
body.menu-open .overlay { opacity: 1; visibility: visible; }
.overlay__nav { display: grid; gap: .25rem; }
.overlay__nav a { font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.25; }
.overlay__book { color: var(--accent); }
.overlay__foot { font-size: .85rem; }

@media (min-width: 640px) { .nav__book { display: inline-flex; } }
@media (min-width: 1040px) {
  .nav__links { display: flex; }
  .nav__links + .nav__actions { margin-left: 1rem; }
  .menu-toggle { display: none; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 14, 12, .45) 0%, rgba(10, 14, 12, 0) 28%),
    linear-gradient(0deg, rgba(10, 14, 12, .82) 0%, rgba(10, 14, 12, .4) 45%, rgba(10, 14, 12, .1) 75%),
    linear-gradient(90deg, rgba(10, 14, 12, .45) 0%, rgba(10, 14, 12, 0) 60%);
}
.hero__content { padding-bottom: clamp(3rem, 8vh, 6rem); display: grid; gap: 1.5rem; }
.hero h1 { font-size: clamp(2.7rem, 7.6vw, 7rem); max-width: 14ch; font-weight: 600; }
.hero h1 span { display: block; }
.hero h1 em { display: block; font-style: normal; font-weight: 400; color: rgba(255, 255, 255, .78); font-size: .62em; letter-spacing: -0.03em; margin-top: .35em; max-width: 22ch; line-height: 1.05; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; }


@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(200,16,46,.55); } 50% { box-shadow: 0 0 0 .7rem rgba(200,16,46,0); } }

/* =====================================================================
   FACTS
   ===================================================================== */
.facts { background: var(--ink); color: #fff; }
.facts__row { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 1.4rem .5rem; display: grid; gap: .15rem; text-align: center; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.fact:nth-child(3n) { border-right: 0; }
.fact strong { font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -0.03em; }
.fact span { font-size: .78rem; color: rgba(255,255,255,.6); }
@media (min-width: 900px) {
  .facts__row { grid-template-columns: repeat(6, 1fr); }
  .fact { border-bottom: 0; padding: 1.8rem .5rem; }
  .fact:nth-child(3n) { border-right: 1px solid rgba(255,255,255,.1); }
  .fact:last-child { border-right: 0; }
}

/* =====================================================================
   STORY
   ===================================================================== */
.story__grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
.story__copy { display: grid; gap: 1.4rem; max-width: 36rem; }
.story__copy h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.story__tags { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.story__tags li { font-size: .82rem; font-weight: 500; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.story__media { position: relative; min-height: 30rem; }
.story__img { position: absolute; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__img--a { inset: 0 18% 22% 0; }
.story__img--b { right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; border: 6px solid var(--bg); }
.story__img--b figcaption {
  position: absolute; left: .7rem; right: .7rem; bottom: .7rem;
  font-size: .75rem; color: #fff; background: rgba(27, 34, 30, .55); padding: .45rem .7rem; border-radius: .6rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@media (min-width: 900px) {
  .story__grid { grid-template-columns: 1fr 1.05fr; }
  .story__media { min-height: 38rem; }
}

/* =====================================================================
   QUOTE
   ===================================================================== */
.quote { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--accent); color: #fff; overflow: hidden; position: relative; }
.quote::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.05) 46px 48px);
  pointer-events: none;
}
.quote__inner { display: grid; gap: 1.4rem; justify-items: start; position: relative; }
.quote__dot { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .45rem rgba(255,255,255,.2); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-family: var(--display); font-size: clamp(2rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; color: #fff; font-weight: 500; max-width: 20ch; }
.quote__sub { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* =====================================================================
   ROOMS
   ===================================================================== */
.rooms__grid { display: grid; gap: 1.25rem; }
.room {
  display: grid; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.room:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.room__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.room:hover .room__media img { transform: scale(1.04); }
.room__body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: .6rem; align-content: start; }
.room__meta { display: flex; flex-wrap: wrap; row-gap: .2rem; gap: .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wood); }
.room__body p { font-size: .96rem; }
.room__meta span + span::before { content: "·"; margin-right: .5rem; opacity: .6; }

/* Feature card: full image with text overlay */
.room--feature { position: relative; display: block; aspect-ratio: 4 / 5; border: 0; color: #fff; isolation: isolate; }
.room--feature .room__media { position: absolute; inset: 0; aspect-ratio: auto; z-index: -1; }
.room--feature .room__media img { height: 100%; }
.room--feature .room__body {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 7rem clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(0deg, rgba(15, 20, 17, .88) 0%, rgba(15, 20, 17, .55) 50%, rgba(15, 20, 17, 0) 100%);
  gap: .8rem;
}
.room--feature .room__meta { color: #fff; }
.room--feature .room__meta span { padding: .38rem .8rem; border-radius: 999px; font-size: .66rem; letter-spacing: .14em;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.room--feature .room__meta span + span::before { content: none; }
.room--feature h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; }
.room--feature p { color: rgba(255, 255, 255, .82); max-width: 32rem; font-size: 1rem; }

.room--cta { background: var(--accent); color: #fff; border-color: transparent; padding: 2rem; align-content: space-between; gap: 2rem; min-height: 16rem; }
.room--cta:hover { background: var(--accent-deep); }
.room--cta h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.room--cta p { color: rgba(255,255,255,.8); }
.room--cta .room__meta { color: rgba(255,255,255,.75); }
.room--cta__arrow { width: 3rem; height: 3rem; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; transition: transform .3s var(--ease); }
.room--cta__arrow svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.room--cta:hover .room--cta__arrow { transform: translateX(4px); }
@media (min-width: 700px) { .rooms__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .rooms__grid { grid-template-columns: repeat(3, 1fr); }
  .room--feature { grid-column: span 2; aspect-ratio: auto; min-height: 27rem; }
  .room--cta { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; min-height: 0; gap: 2.5rem; padding: 2rem 2.5rem; }
}

/* =====================================================================
   GALLERY (bento)
   ===================================================================== */
.gallery__head { display: grid; gap: 1.5rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.gallery__head .section__head { margin-bottom: 0; }
@media (min-width: 900px) { .gallery__head { grid-template-columns: 1fr auto; } }

.filter { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.filter button { padding: .55rem 1.05rem; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background-color .25s, color .25s; }
.filter button[aria-selected="true"] { background: var(--ink); color: #fff; }
.filter button:hover:not([aria-selected="true"]) { color: var(--ink); }

.bento { columns: 2; column-gap: .6rem; }
.bento__item {
  display: block; width: 100%; margin: 0 0 .6rem; break-inside: avoid;
  position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; background: var(--bg);
  animation: tileIn .6s var(--ease) both; animation-delay: calc(var(--i) * 45ms);
}
@keyframes tileIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.bento__item img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.bento__item:hover img { transform: scale(1.04); }
.bento__caption {
  position: absolute; left: .6rem; bottom: .6rem; right: .6rem;
  font-size: .78rem; font-weight: 500; color: #fff; text-align: left;
  padding: .45rem .7rem; border-radius: .55rem; background: rgba(27, 34, 30, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.bento__item:hover .bento__caption, .bento__item:focus-visible .bento__caption { opacity: 1; transform: none; }
@media (hover: none) { .bento__caption { display: none; } }
.bento-more { display: flex; justify-content: center; margin-top: 1.75rem; }
.bento-more button {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 3.2rem; padding: 0 1.5rem;
  border-radius: 999px; border: 1px solid rgba(27, 34, 30, .25); background: var(--surface);
  font-weight: 600; transition: background-color .25s, border-color .25s, color .25s;
}
.bento-more strong { font-family: var(--display); color: var(--accent); }
.bento-more button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.bento-more button:hover strong { color: #fff; }
@media (min-width: 900px) { .bento { columns: 3; column-gap: .75rem; } .bento__item { margin-bottom: .75rem; } }

/* =====================================================================
   AMENITIES
   ===================================================================== */
.amenities__grid { display: grid; gap: 2.5rem; }
.amenities .section__head { margin-bottom: 0; align-content: start; }
.amenity-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.amenity-list li { display: flex; align-items: center; gap: 1rem; padding: 1.05rem .25rem; border-bottom: 1px solid var(--line); font-weight: 500; }
.amenity-list svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 640px) {
  .amenity-list { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
}
@media (min-width: 1000px) {
  .amenities__grid { grid-template-columns: .9fr 1.4fr; gap: 5rem; }
  .amenities .section__head { position: sticky; top: 7rem; }
}

/* =====================================================================
   ARRIVAL
   ===================================================================== */
.arrival { background: var(--ink-2); color: #fff; overflow: hidden; }
.arrival::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60rem 30rem at 85% 10%, rgba(255,255,255,.07), transparent 60%);
  pointer-events: none;
}
.arrival p { color: rgba(255,255,255,.72); }
.arrival__grid { display: grid; gap: 3.5rem; position: relative; }
.arrival__copy { display: grid; gap: 1.4rem; align-content: start; max-width: 36rem; }
.arrival__cards { display: grid; gap: .9rem; margin: .6rem 0; }
.mini-card { padding: 1.3rem 1.4rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: grid; gap: .35rem; }
.mini-card__icon { font-size: 1.15rem; line-height: 1; height: 1.2rem; display: block; }
.mini-card h3 { font-size: 1.15rem; }
.mini-card p { font-size: .95rem; }
@media (min-width: 640px) { .arrival__cards { grid-template-columns: 1fr 1fr; } }

.route { list-style: none; margin: 0; padding: 0 0 0 2.25rem; position: relative; align-self: center; }
.route::before { content: ""; position: absolute; left: .6rem; top: .7rem; bottom: .7rem; width: 3px; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent)); opacity: .9; }
.route li { position: relative; padding: .58rem 0; display: grid; gap: .1rem; }
.route li::before {
  content: ""; position: absolute; left: calc(-2.25rem + .7rem); top: 1.05rem; transform: translateX(-50%);
  width: .8rem; height: .8rem; border-radius: 50%; background: var(--ink-2); border: 3px solid #fff;
}
.route__name { font-family: var(--display); font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; }
.route__note { font-size: .8rem; color: rgba(255,255,255,.55); }
.route__tunnel .route__name { color: rgba(255,255,255,.55); font-style: italic; }
.route__tunnel::before { border-style: dashed !important; background: transparent !important; }
.route__stop { margin: .5rem 0; padding: 1.05rem 1.2rem !important; border-radius: var(--radius-sm); background: #fff; color: var(--ink); margin-left: -.6rem; box-shadow: var(--shadow); }
.route__stop::before { left: calc(-1.65rem + .7rem) !important; top: 1.5rem !important; width: 1.25rem !important; height: 1.25rem !important; background: var(--accent) !important; border-color: #fff !important; box-shadow: 0 0 0 .4rem rgba(200,16,46,.35); animation: pulse 2.8s ease-in-out infinite; }
.route__stop .route__name { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; }
.route__note--stop { color: var(--accent) !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem !important; }
@media (min-width: 960px) {
  .arrival__grid { grid-template-columns: 1.15fr 1fr; gap: 6rem; }
}

/* =====================================================================
   LOCATION
   ===================================================================== */
.location .section__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.town { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.town img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.town:hover img { transform: scale(1.03); }
.town__card {
  position: absolute; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  max-width: 24rem; padding: 1.3rem 1.5rem; border-radius: var(--radius-sm);
  background: rgba(245, 241, 234, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; gap: .5rem; box-shadow: var(--shadow);
}
.town__card strong { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
@media (max-width: 640px) {
  .town { aspect-ratio: 4 / 3; }
  .town__card { position: static; max-width: none; border-radius: 0; box-shadow: none; background: var(--surface); }
  .town { display: flex; flex-direction: column; aspect-ratio: auto; }
  .town img { aspect-ratio: 4 / 3; height: auto; }
}

.location__grid { display: grid; gap: 2.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.distances { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.distances li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.distances__val { font-family: var(--display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; color: var(--accent); }
.distances__label { font-weight: 500; }

.map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 24rem; background: #e4ddd0; border: 1px solid var(--line); display: grid; }
.map iframe { width: 100%; height: 100%; min-height: 24rem; border: 0; display: block; }
.map__placeholder { position: relative; display: grid; place-items: center; padding: 1.5rem; color: rgba(43, 58, 49, .22); }
.map__topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__river { stroke: #7fa7b8; opacity: .8; }
.map__pin { position: absolute; left: 50%; top: 42%; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .5rem rgba(200,16,46,.2); animation: pulse 2.8s ease-in-out infinite; }
.map__card { position: relative; margin-top: 5rem; background: var(--surface); color: var(--ink); padding: 1.3rem 1.5rem; border-radius: var(--radius-sm); box-shadow: var(--shadow); display: grid; gap: .3rem; justify-items: start; max-width: 20rem; }
.map__card strong { font-family: var(--display); font-size: 1.2rem; }
.map__card span { font-size: .9rem; color: var(--muted); }
.map__coords { font-variant-numeric: tabular-nums; font-size: .8rem !important; }
.map__card .pill { margin-top: .6rem; }
.map__card small { font-size: .72rem; color: var(--muted); }
.map__ext { position: absolute; right: .8rem; bottom: .8rem; font-size: .78rem; font-weight: 600; padding: .45rem .8rem; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); }
@media (min-width: 960px) {
  .location__grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
}

/* =====================================================================
   SEASONS
   ===================================================================== */
.seasons__head { display: grid; gap: 1.5rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.seasons__head .section__head { margin-bottom: 0; }
@media (min-width: 900px) { .seasons__head { grid-template-columns: 1fr auto; } }
.season-toggle { display: inline-flex; padding: .3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); width: fit-content; }
.season-toggle button { padding: .65rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: background-color .25s, color .25s; }
.season-toggle button[aria-selected="true"] { background: var(--ink); color: #fff; }

.season { display: grid; gap: 2rem; align-items: center; }
.season.is-in { animation: seasonIn .6s var(--ease) both; }
@keyframes seasonIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.season__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); max-height: 40rem; }
.season__media img { width: 100%; height: 100%; object-fit: cover; }
.season__list { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.season__list li { display: grid; gap: .25rem; padding: 1.25rem 0 1.25rem 3.2rem; border-bottom: 1px solid var(--line); position: relative; counter-increment: s; }
.season__list li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1.35rem; font-family: var(--display); font-size: .85rem; font-weight: 600; color: var(--accent); }
.season__list strong { font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.season__list span { color: var(--muted); }
@media (min-width: 900px) { .season { grid-template-columns: .9fr 1fr; gap: 5rem; } }

/* =====================================================================
   RULES
   ===================================================================== */
.rules__grid { display: grid; gap: 2rem; }
.rules .section__head { margin-bottom: 0; align-content: start; }
.rules h2, .amenities h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.rules__list { margin: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.rules__list div { display: grid; gap: .15rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.rules__list dt { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wood); }
.rules__list dd { margin: 0; font-weight: 500; }
@media (min-width: 640px) { .rules__list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
@media (min-width: 1000px) { .rules__grid { grid-template-columns: .9fr 1.4fr; gap: 5rem; } }

/* =====================================================================
   BOOKING
   ===================================================================== */
.book { color: #fff; overflow: hidden; isolation: isolate; }
.book__bg { position: absolute; inset: 0; z-index: -1; }
.book__bg img { width: 100%; height: 100%; object-fit: cover; }
.book__bg::after { content: ""; position: absolute; inset: 0; background: rgba(16, 21, 18, .86); }
.book p { color: rgba(255,255,255,.75); }
.book__inner { display: grid; justify-items: center; }

.tickets { display: grid; gap: 1.25rem; width: 100%; max-width: 60rem; }
@media (min-width: 860px) {
  .tickets { grid-template-columns: 1fr 1fr; }
  .ticket--featured, .tickets[data-count="2"] .ticket, .tickets[data-count="1"] .ticket { grid-column: 1 / -1; }
}

.ticket {
  --stub: 10.5rem; --notch: 13px;
  position: relative; display: grid; grid-template-columns: 1fr var(--stub);
  border-radius: 1.1rem; overflow: hidden; color: var(--ink);
  -webkit-mask:
    radial-gradient(circle at calc(100% - var(--stub)) 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle at calc(100% - var(--stub)) 0, transparent var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at calc(100% - var(--stub)) 100%, transparent var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
  transition: transform .4s var(--ease);
}
.ticket:hover { transform: translateY(-4px); }

.ticket__main {
  display: grid; gap: .6rem; align-content: start;
  padding: 1.5rem 1.75rem 1.6rem;
  background:
    repeating-linear-gradient(0deg, rgba(27, 34, 30, .018) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #fffdf8, #f3eee4);
  border-right: 2px dashed rgba(27, 34, 30, .22);
}
.ticket__top { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.ticket__gleis {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: .28rem .6rem; border-radius: .35rem;
}
.ticket__badge { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.ticket__name { font-family: var(--display); font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-top: .2rem; }
.ticket__route {
  display: flex; align-items: center; gap: .7rem; max-width: 24rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.ticket__route strong { color: var(--ink); }
.ticket__line { flex: 1; height: 0; border-top: 2px dotted rgba(27, 34, 30, .3); position: relative; }
.ticket__line::after { content: ""; position: absolute; right: -2px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ticket__body { color: var(--muted); font-size: .94rem; }

.ticket__stub {
  display: grid; place-content: center; justify-items: center; gap: .75rem; padding: 1.25rem 1rem;
  background: var(--ink-2); color: #fff; text-align: center;
  font-weight: 600; font-size: .9rem; line-height: 1.3;
}
.ticket__arrow {
  width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .55); transition: transform .35s var(--ease), background-color .3s, color .3s;
}
.ticket__arrow svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ticket:hover .ticket__arrow { transform: translateX(4px); background: #fff; color: var(--ink-2); }

@media (min-width: 641px) { .ticket:not(.ticket--featured) { --stub: 8.5rem; } }
.ticket--featured .ticket__main { padding: 2rem 2.25rem 2.1rem; gap: .75rem; }
.ticket--featured .ticket__name { font-size: clamp(2.4rem, 4vw, 3.2rem); }
.ticket--featured .ticket__stub { background: var(--accent); font-size: 1rem; }
.ticket--featured:hover .ticket__arrow { color: var(--accent); }

@media (max-width: 640px) {
  .ticket {
    --stub: 4.2rem;
    grid-template-columns: 1fr; grid-template-rows: auto var(--stub);
    -webkit-mask:
      radial-gradient(circle at 0 calc(100% - var(--stub)), transparent var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
      radial-gradient(circle at 100% calc(100% - var(--stub)), transparent var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
            mask:
      radial-gradient(circle at 0 calc(100% - var(--stub)), transparent var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
      radial-gradient(circle at 100% calc(100% - var(--stub)), transparent var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
  }
  .ticket__main { border-right: 0; border-bottom: 2px dashed rgba(27, 34, 30, .22); padding: 1.4rem 1.4rem 1.5rem; }
  .ticket--featured .ticket__main { padding: 1.6rem 1.4rem 1.7rem; }
  .ticket__stub { display: flex; justify-content: center; align-items: center; gap: .8rem; padding: .5rem 1rem; }
  .ticket__arrow { width: 2.2rem; height: 2.2rem; order: 2; }
}

.widget { width: 100%; max-width: 64rem; margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; background: #fff; }
.widget iframe { width: 100%; min-height: 34rem; border: 0; display: block; }
.book__note { margin-top: 1.75rem; font-size: .85rem; text-align: center; }

/* =====================================================================
   HOST
   ===================================================================== */
.host { padding: clamp(4rem, 8vw, 6rem) 0; }
.host__card {
  display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.host__avatar {
  width: 7rem; height: 7rem; border-radius: 50%;
  object-fit: cover; background: var(--bg-soft);
  box-shadow: 0 0 0 .35rem var(--bg), 0 0 0 calc(.35rem + 1px) var(--line);
}
.host__copy { display: grid; gap: .6rem; }
.host__name { font-size: clamp(2rem, 4vw, 3rem); }
.host__cta { justify-self: start; }
@media (min-width: 860px) {
  .host__card { grid-template-columns: auto 1fr auto; gap: 2.5rem; }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom)); }
.footer__inner { display: grid; gap: 1.75rem; }
.footer__brand { display: grid; gap: .7rem; }
.footer__brand p { color: rgba(255,255,255,.5); font-size: .88rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .9rem; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 760px) { .footer__inner { grid-template-columns: 1fr auto; align-items: end; } }

/* =====================================================================
   STICKY BOOKING BAR (mobile)
   ===================================================================== */
.sticky-book {
  position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .7rem .7rem 1.2rem; border-radius: 999px;
  background: rgba(27, 34, 30, .92); color: #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,.3);
  transform: translateY(150%); transition: transform .45s var(--ease);
}
.sticky-book.is-visible { transform: none; }
.sticky-book__text { display: grid; line-height: 1.25; min-width: 0; }
.sticky-book__text strong { font-family: var(--display); font-size: 1rem; }
.sticky-book__text span { font-size: .74rem; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .sticky-book { display: none; } }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 15, 13, .94);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  opacity: 0; transition: opacity .25s;
}
.lightbox.is-open { opacity: 1; }
.lightbox__figure { display: grid; justify-items: center; gap: .9rem; padding: 4rem .5rem 1.5rem; height: 100vh; height: 100dvh; align-content: center; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; height: auto; border-radius: .6rem; object-fit: contain; opacity: 0; transition: opacity .3s; }
.lightbox__img.is-loaded { opacity: 1; }
.lightbox__caption { display: flex; gap: 1rem; color: rgba(255,255,255,.85); font-size: .9rem; }
.lightbox__count { color: rgba(255,255,255,.45); font-variant-numeric: tabular-nums; }
.lightbox__btn { color: #fff; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: rgba(255,255,255,.08); transition: background-color .2s; z-index: 1; }
.lightbox__btn:hover { background: rgba(255,255,255,.2); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; font-size: 1rem; }
.lightbox__prev { margin-left: .75rem; }
.lightbox__next { margin-right: .75rem; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 1.25rem; }
  .lightbox__prev { left: 1rem; margin: 0; }
  .lightbox__next { right: 1rem; margin: 0; }
  .lightbox__figure { padding-bottom: 5rem; }
}

/* =====================================================================
   RESPONSIVE REFINEMENTS (tablet & phone)
   ===================================================================== */
.link-arrow { display: inline; line-height: 1.6; }
.link-arrow svg { display: inline-block; vertical-align: -0.15em; margin-left: .35rem; }
.room--cta > div { display: grid; gap: .5rem; }

@media (max-width: 899px) {
  /* seasons: full-width landscape image instead of narrow portrait */
  .season__media { aspect-ratio: 4 / 3; width: 100%; max-height: none; }
  /* keep footer links clear of the sticky booking bar */
  .footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 639px) {
  :root { --container: calc(100vw - 2.5rem); }

  /* nav: everything must fit inside the viewport */
  .nav__inner { gap: .5rem; min-height: 4rem; }
  .nav__actions { gap: .15rem; }
  .brand__place { display: none; }
  .lang-toggle { padding: .5rem .45rem; }
  .menu-toggle { margin-right: -.6rem; }
  .overlay { padding-top: 6rem; }

  /* hero */
  .hero .eyebrow::before { display: none; }
  .hero .eyebrow { font-size: .66rem; letter-spacing: .18em; }
  .hero__content { gap: 1.1rem; padding-bottom: 2.5rem; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: .6rem; }
  .hero__actions .cta { justify-content: center; }

  /* facts */
  .fact { padding: 1.1rem .25rem; }

  /* story collage */
  .story__media { min-height: 24rem; }
  .story__img--a { inset: 0 12% 18% 0; }
  .story__img--b { width: 46%; border-width: 4px; }

  /* section rhythm */
  .section { padding: 4.5rem 0; }
  .section__head { margin-bottom: 2.25rem; }
  .quote { padding: 3.75rem 0; }

  /* distances: narrower value column */
  .distances li { grid-template-columns: 7rem 1fr; gap: .75rem; }
  .distances__val { font-size: 1.15rem; white-space: nowrap; }

  /* host card */
  .host__avatar { width: 5.5rem; height: 5.5rem; }
  .host__cta { justify-self: stretch; justify-content: center; }

  /* booking */
  .book .section__head p { font-size: 1rem; }
}

@media (max-width: 380px) {
  h2 { font-size: 2rem; }
  .hero h1 { font-size: 2.45rem; }
  .ticket--featured .ticket__name { font-size: 2.2rem; }
  .ticket__route { letter-spacing: .08em; }
}
