/* =============================================================
   Casa Hanna — styles.css
   After lasalaplazahotel.com: full-screen photographs, a forest
   green bar, warm stone and sand grounds, a light editorial serif,
   a hotel booking bar fixed at the foot of the screen.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --cream: #F6F4F2;
  --sand: #EDE9E5;
  --sand-2: #E3DDD6;
  --green: #2A3936;
  --green-2: #33453F;
  --sage: #4B6753;
  --brown: #66473E;
  --brown-2: #523830;
  --ink: #2A3936;
  --ink-soft: #5B6663;
  --light: #FBFAF8;
  --light-soft: #D3D9D4;
  --gold: #E2CDB6;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;

  --t1: clamp(64px, 10.5vw, 176px);
  --t2: clamp(36px, 4.4vw, 66px);
  --t3: clamp(22px, 2.05vw, 30px);
  --t4: clamp(17px, 1.25vw, 18px);
  --t5: 14px;

  --m: clamp(20px, 5vw, 88px);
  --gap: clamp(12px, 1.6vw, 28px);
  --section: clamp(96px, 11vw, 180px);
  --nav-h: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans); font-size: var(--t4); line-height: 1.6;
  color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
figure { margin: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-weight: 300; text-wrap: balance; }
::selection { background: var(--brown); color: #fff; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; padding: 10px 16px; background: var(--green); color: var(--light); }
.skip-link:focus { top: 16px; }

/* =============================================================
   3. Type & small components
   ============================================================= */
.kicker {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; line-height: 1.4;
  color: var(--brown); margin-bottom: 18px;
}
.h2 { font-family: var(--serif); font-size: var(--t2); line-height: 1.04; letter-spacing: -0.02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--brown); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--brown-2); transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-small { min-height: 42px; padding: 0 20px; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  background: rgba(251, 250, 248, .14); color: var(--light);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn-ghost::after { content: "→"; font-size: 15px; letter-spacing: 0; transition: transform .3s var(--ease); }
.btn-ghost:hover { background: var(--light); color: var(--green); }
.btn-ghost:hover::after { transform: translateX(4px); }

.text-link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  transition: color .3s var(--ease), text-underline-offset .3s var(--ease);
}
.text-link:hover { color: var(--brown); text-underline-offset: 8px; }

/* =============================================================
   4. Navigation
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--m); color: var(--light);
  transition: background-color .45s var(--ease), height .45s var(--ease);
}
.nav.is-scrolled { background: var(--green); height: 72px; }
.wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; }
.wordmark-name { font-family: var(--serif); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.wordmark-sub { display: none; margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 24px; }
.nav-phone { display: none; font-size: 14px; font-weight: 500; }
.nav-links ul { display: none; }
.nav-toggle { padding: 10px 0; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.nav-links.is-open ul {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  padding: 12px var(--m) 32px; background: var(--green);
}
.nav-links.is-open ul a { display: block; padding: 10px 0; font-family: var(--serif); font-size: var(--t3); }

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: calc(var(--nav-h) + 40px) var(--m) 120px;
  color: var(--light); text-align: center; overflow: hidden;
  background: var(--green);
}
.hero-media { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.slide.is-active { opacity: 1; animation: kenburns 9s linear both; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 29, 27, .62) 0%, rgba(20, 29, 27, .30) 38%, rgba(20, 29, 27, .38) 62%, rgba(20, 29, 27, .72) 100%); /* taste-skill-ignore: neutral scrim under text on photo */
}
.hero-inner { position: relative; z-index: 1; max-width: 980px; }
.hero .kicker { color: var(--gold); }
.hero-title {
  font-family: var(--serif); font-weight: 300; font-size: var(--t1);
  line-height: .95; letter-spacing: -0.03em;
}
.hero-lead { margin: 26px auto 0; max-width: 44ch; font-size: max(18px, var(--t4)); color: var(--light); }
.hero-down {
  position: absolute; z-index: 1; left: 50%; bottom: 36px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 20px; background: rgba(251, 250, 248, .18);
}
.hero-down span {
  position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px;
  border-radius: 2px; background: var(--light); animation: wheel 1.8s var(--ease) infinite;
}

/* =============================================================
   6. Booking bar
   ============================================================= */
.booking {
  position: relative; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  padding: 28px var(--m); background: var(--sand);
}
.booking-field {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 70px; padding: 12px 20px; background: #fff;
}
.booking-field label {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.booking-field input, .booking-field select {
  border: 0; background: transparent; min-height: 30px; padding: 2px 0;
  font-size: 16px; font-weight: 500; color: var(--ink); width: 100%; cursor: pointer;
}
.booking-field input:focus, .booking-field select:focus { outline: none; }
.booking-field:focus-within { background: var(--cream); }
.booking-field:nth-child(4) { grid-column: 1 / -1; }
.booking-submit {
  grid-column: 1 / -1; min-height: 64px;
  background: var(--brown); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .3s var(--ease);
}
.booking-submit:hover { background: var(--brown-2); }
.badge { display: none; }

/* =============================================================
   7. Statement over photograph
   ============================================================= */
.statement {
  position: relative; overflow: hidden;
  padding: calc(var(--section) * 1.1) var(--m);
  background: var(--green); color: var(--light); text-align: center;
}
.bg {
  position: absolute; left: 0; right: 0; top: -12%; width: 100%; height: 124%;
  object-fit: cover; will-change: transform;
}
.statement::after, .proof::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(30, 42, 39, .78);
}
.statement-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.statement .kicker { color: var(--gold); }
.statement-text { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.35; letter-spacing: -0.005em; }
.statement .btn-ghost { margin-top: 44px; }

/* =============================================================
   8. Rooms — fanned cards on sand
   ============================================================= */
.rooms { position: relative; z-index: 2; background: var(--sand); padding: var(--section) 0 calc(var(--section) * .8); overflow-x: clip; }
.rooms-head { padding: 0 var(--m); display: grid; gap: 24px; }
.rooms-sub { max-width: 46ch; }
.fan-arrows { display: flex; gap: 10px; }
.arrow {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brown); color: #fff;
  transition: background-color .3s var(--ease), transform .3s var(--ease), opacity .3s;
}
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.arrow:hover { background: var(--brown-2); transform: scale(1.06); }
.arrow:disabled { opacity: .35; cursor: default; transform: none; }

.fan {
  display: flex; gap: clamp(20px, 3vw, 48px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 70px var(--m) 60px;
  scroll-padding-inline: var(--m);
}
.fan::-webkit-scrollbar { display: none; }
.fan:focus-visible { outline-offset: -6px; }
.card {
  flex: 0 0 clamp(250px, 24vw, 340px); scroll-snap-align: start;
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0));
  transition: transform .7s var(--ease);
}
.card:nth-child(6n+1) { --r: -5deg; --y: 18px; }
.card:nth-child(6n+2) { --r: 4deg; --y: -12px; }
.card:nth-child(6n+3) { --r: -2.5deg; --y: 30px; }
.card:nth-child(6n+4) { --r: 5.5deg; --y: 0px; }
.card:nth-child(6n+5) { --r: -4deg; --y: -8px; }
.card:nth-child(6n+6) { --r: 3deg; --y: 22px; }
.card:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); }
.card figure { overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand-2); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.05); }
.card-name { margin-top: 20px; font-family: var(--serif); font-size: var(--t3); line-height: 1.15; font-weight: 400; }
.card-facts { margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); }
.card-text { margin-top: 10px; font-size: 16px; color: var(--ink-soft); }
.rooms-note { padding: 0 var(--m); max-width: calc(64ch + 2 * var(--m)); font-size: 15px; color: var(--ink-soft); }
.rooms-note .text-link { color: var(--ink); white-space: nowrap; }

/* =============================================================
   9. Terrace band on cream
   ============================================================= */
.terrace { background: var(--cream); padding: var(--section) 0; }
.terrace-head { padding: 0 var(--m); margin-bottom: 48px; max-width: calc(760px + 2 * var(--m)); }
.terrace-sub { margin-top: 20px; max-width: 46ch; }
.band { display: flex; flex-wrap: wrap; height: 84svh; min-height: 520px; }
.panel { position: relative; overflow: hidden; min-width: 0; height: 50%; background: var(--green); }
.panel-1, .panel-4 { width: 64%; }
.panel-2, .panel-3 { width: 36%; }
.panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.panel:hover img { transform: scale(1.04); }
.panel-1::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(150deg, rgba(20, 28, 26, .6) 0%, rgba(20, 28, 26, 0) 48%); /* taste-skill-ignore: neutral scrim under text on photo */
}
.panel-title {
  position: absolute; top: 24px; left: var(--m); z-index: 1;
  font-family: var(--serif); font-size: var(--t3); line-height: 1.15; color: #fff;
}

/* =============================================================
   10. House — collage on deep green
   ============================================================= */
.house { position: relative; background: var(--green); color: var(--light); height: 190vw; min-height: 760px; max-height: 1080px; overflow: hidden; }
.house-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(84%, 480px); text-align: center; z-index: 2; }
.house .kicker { color: var(--gold); }
.house-center p { margin: 18px auto 30px; max-width: 34ch; color: var(--light-soft); }
.drift { position: absolute; width: 30%; aspect-ratio: 9 / 10; object-fit: cover; will-change: transform; }
.d1 { left: 6%; top: 4%; }
.d2 { left: 56%; top: 8%; }
.d5 { left: 64%; top: 70%; }
.d6 { left: 8%; top: 72%; }
.d7 { left: 36%; top: 82%; }
.d3, .d4, .d8 { display: none; }

/* =============================================================
   11. Facilities on cream
   ============================================================= */
.facilities { background: var(--cream); padding: var(--section) var(--m); }
.fac-cols { margin-top: 56px; display: grid; gap: 40px; }
.fac-group { font-family: var(--serif); font-size: var(--t3); font-weight: 400; margin-bottom: 16px; }
.fac-col li { line-height: 1.5; color: var(--ink-soft); transition: color .25s var(--ease); cursor: default; }
.fac-col li:hover, .fac-col li:focus { color: var(--ink); outline: none; }
.fac-col li:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.fac-desc { display: none; }

/* =============================================================
   12. Brașov on sand
   ============================================================= */
.city { background: var(--sand); padding: var(--section) var(--m); }
.city-title { max-width: 14ch; }
.city-pano { margin-top: 48px; }
.city-pano img { width: 100%; aspect-ratio: 1024 / 396; object-fit: cover; }
figcaption { margin-top: 10px; font-size: var(--t5); color: var(--ink-soft); }
.city-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.city-photos { grid-column: 1 / -1; grid-row: 3; margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.city-ph-tall { grid-column: 1 / 8; }
.city-ph-tall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.city-ph-small { grid-column: 6 / -1; margin-top: -40%; position: relative; }
.city-ph-small img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.table-name { display: none; }
.dist { grid-column: 1 / -1; }
.dist li { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 11px 0; }
.dist li.g { margin-top: 26px; }
.dist .k { grid-column: 1 / -1; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); }
.dist .p { grid-row: 2; }
.dist .v { grid-row: 2; text-align: right; font-variant-numeric: tabular-nums; }
.dist a { text-decoration: underline; text-underline-offset: 4px; }
.dist a:hover { color: var(--brown); }
.city-note { grid-column: 1 / -1; margin-top: 32px; max-width: 46ch; }

/* =============================================================
   13. Reviews over a photograph
   ============================================================= */
.proof { position: relative; overflow: hidden; background: var(--green); color: var(--light); padding: var(--section) var(--m); }
.proof-inner { position: relative; z-index: 1; }
.proof .kicker { color: var(--gold); }
.scores { margin-top: 48px; display: grid; gap: 32px; }
.score { display: flex; align-items: center; gap: 18px; }
.score-num { font-family: var(--serif); font-size: clamp(56px, 6vw, 92px); line-height: 1; font-weight: 300; }
.score-of { font-size: 15px; color: var(--light-soft); line-height: 1.45; }
.subscores { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; font-size: 15px; }
.subscores li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--light-soft); }
.subscores li span:last-child { color: var(--light); font-variant-numeric: tabular-nums; }
.quotes { margin-top: 72px; display: grid; gap: 40px; }
.q p { font-family: var(--serif); font-size: var(--t3); line-height: 1.35; }
.q footer { margin-top: 14px; font-size: 13px; color: var(--light-soft); }

/* =============================================================
   14. FAQ on cream
   ============================================================= */
.faq { background: var(--cream); padding: var(--section) var(--m); display: flex; flex-direction: column-reverse; gap: 72px; }
.faq-photos { position: relative; }
.faq-ph-tall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.faq-ph-sq { position: absolute; right: -8px; bottom: -40px; width: 40%; }
.faq-ph-sq img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 8px solid var(--cream); }
.facts { margin-top: 32px; display: grid; gap: 8px; }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; }
.facts dt { color: var(--ink-soft); }
.acc { margin-top: 36px; display: grid; gap: 2px; }
.acc details { background: var(--sand); padding: 4px 20px; transition: background-color .3s var(--ease); }
.acc details[open] { background: var(--sand-2); }
.acc summary {
  list-style: none; cursor: pointer; min-height: 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 500;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--brown); border-bottom: 2px solid var(--brown);
  transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease);
}
.acc details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.acc details p { padding: 0 0 18px; max-width: 54ch; color: var(--ink-soft); }
.faq-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

/* =============================================================
   15. Map
   ============================================================= */
.map-band { height: clamp(320px, 42vw, 520px); background: var(--sand); }
.map-band iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(.95); }

/* =============================================================
   16. Footer — photograph + green panel
   ============================================================= */
.footer { display: grid; background: var(--green); color: var(--light); }
.footer-photo { min-height: 320px; position: relative; }
.footer-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.footer-panel {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
  padding: 80px var(--m) 140px;
}
.footer-name { font-family: var(--serif); font-size: clamp(40px, 4vw, 60px); line-height: 1; font-weight: 300; color: var(--gold); }
.footer-panel address, .footer-contact { color: var(--light-soft); line-height: 1.7; }
.footer-contact a { color: var(--light); font-size: var(--t3); font-family: var(--serif); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-links a:hover { color: var(--gold); }
.credits { max-width: 56ch; font-size: 13px; line-height: 1.6; color: var(--light-soft); opacity: .85; }
.credits a, .legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal { font-size: 13px; color: var(--light-soft); }

/* =============================================================
   17. Phone dock + lightbox
   ============================================================= */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--green);
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.dock.is-on { transform: none; }
.dock-call, .dock-book {
  display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 24px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.dock-call { color: var(--light); }
.dock-book { background: var(--brown); color: #fff; }

.lightbox {
  width: min(1200px, 100% - 24px); max-height: 92vh; margin: auto;
  border: 0; padding: 0; background: var(--cream); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); /* taste-skill-ignore: dialog */
}
.lightbox::backdrop { background: rgba(20, 28, 26, .8); }
.lightbox-close {
  position: sticky; top: 0; z-index: 2; display: block; margin-left: auto;
  padding: 16px 22px; background: var(--cream);
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.lightbox-close:hover { color: var(--brown); }
.lightbox-grid { padding: 0 16px 16px; columns: 2 220px; column-gap: 12px; }
.lightbox-grid img { width: 100%; margin-bottom: 12px; break-inside: avoid; }

/* =============================================================
   18. Motion
   ============================================================= */
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.js .hero-inner > * { animation: heroIn 1.1s var(--ease) both; }
.js .hero-inner > :nth-child(2) { animation-delay: .1s; }
.js .hero-inner > :nth-child(3) { animation-delay: .25s; }
.js [data-reveal].rise { animation: reveal .9s var(--ease) var(--d, 0ms) both; }

/* =============================================================
   19. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .booking { grid-template-columns: 1fr 1fr 1fr; }
  .booking-field:nth-child(4) { grid-column: auto; }
  .house { height: 150vw; }
}

@media (min-width: 720px) {
  .rooms-head { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .fac-cols { grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); }
  .scores { grid-template-columns: auto auto 1fr; align-items: center; column-gap: 56px; }
  .quotes { grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); }
  .quotes .q:nth-child(2) { margin-top: 80px; }
  .quotes .q:nth-child(3) { margin-top: 160px; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-links ul { display: flex; gap: 26px; }
  .nav-links a { position: relative; padding: 6px 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
    background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
  }
  .nav-links a:hover::after { transform: scaleX(1); }
  .nav-phone { display: inline; }
  .wordmark-name { font-size: 28px; }
  .wordmark-sub { display: block; }

  .hero { padding-bottom: 170px; }
  .hero-down { bottom: 120px; }

  /* Booking bar fixed at the foot of the screen */
  .booking {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
    width: min(940px, calc(100% - 2 * var(--m) - 140px));
    grid-template-columns: 1fr 1fr .9fr 1.1fr; gap: 1px; padding: 0; background: var(--sand-2);
    box-shadow: 0 22px 50px -20px rgba(20, 28, 26, .55); /* taste-skill-ignore: fixed booking bar floats over content */
  }
  .booking-submit { grid-column: auto; min-height: 62px; }
  .booking-field { min-height: 62px; padding: 9px 20px; }
  .badge {
    display: grid; place-items: center;
    position: absolute; right: -112px; top: 50%; width: 96px; height: 96px; margin-top: -48px;
    border-radius: 50%; background: var(--gold); color: var(--brown);
  }
  .badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
  .badge text { font-family: var(--sans); font-size: 9.6px; font-weight: 600; letter-spacing: .14em; fill: var(--brown); }
  .badge span { font-family: var(--serif); font-size: 30px; line-height: 1; }

  .house { height: 110vh; min-height: 760px; }
  .drift { width: clamp(130px, 12.5vw, 200px); }
  .d1 { left: 21%; top: 8%; }
  .d2 { left: 41%; top: 3%; }
  .d3 { display: block; left: 61%; top: 11%; }
  .d4 { display: block; left: 68%; top: 41%; }
  .d5 { left: 59%; top: 70%; }
  .d6 { left: 38%; top: 77%; }
  .d7 { left: 20%; top: 63%; }
  .d8 { display: block; left: 18%; top: 35%; }

  .facilities { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .facilities .kicker, .facilities .h2 { grid-column: 1 / 7; }
  .fac-cols { grid-column: 1 / 13; grid-template-columns: repeat(12, 1fr); margin-top: 72px; }
  .fac-col { grid-column: span 3; }
  .fac-desc { display: block; grid-column: 10 / 13; grid-row: 1; padding-top: 6px; max-width: 26ch; font-family: var(--serif); font-size: var(--t3); line-height: 1.3; color: var(--brown); }

  .city-title { max-width: none; }
  .city-pano { margin-top: 64px; }
  .city-grid { margin-top: 96px; }
  .city-photos { grid-column: 1 / 5; grid-row: 1 / span 2; margin-top: 0; display: block; align-self: end; }
  .city-ph-small { width: 70%; margin: -30% 0 0 50%; }
  .table-name { display: block; grid-column: 7; grid-row: 1; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-top: 4px; }
  .dist { grid-column: 8 / 13; grid-row: 1; }
  .dist li { grid-template-columns: 34% 1fr auto; padding: 0; margin-top: 22px; align-items: baseline; }
  .dist li:first-child { margin-top: 0; }
  .dist li.g { margin-top: 40px; }
  .dist .k { grid-column: 1; grid-row: 1; }
  .dist .p { grid-column: 2; grid-row: 1; }
  .dist .v { grid-column: 3; grid-row: 1; }
  .city-note { grid-column: 8 / 13; grid-row: 2; align-self: end; margin-top: 64px; }

  .faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .faq-text { grid-column: 1 / 7; }
  .faq-photos { grid-column: 8 / 13; align-self: start; margin-top: 40px; }
  .faq-ph-tall img { aspect-ratio: 3 / 4; }
  .faq-ph-sq { left: -18%; right: auto; bottom: -48px; width: 46%; }

  .dock { display: none; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-photo { min-height: 720px; }
  .footer-panel { justify-content: center; padding: 96px var(--m) 150px; }
}

/* =============================================================
   20. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .slide.is-active, .badge svg, .hero-down span { animation: none; }
  .js .hero-inner > *, .js [data-reveal].rise { animation: none; }
  .drift, .bg { transform: none !important; }
  .card, .card img, .panel img { transition: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   21. Scroll scenes (after shopify.com/editions): a window that
   opens, a chapter index, words that rise, photographs that are
   uncovered, a pinned horizontal run, curtains between chapters.
   ============================================================= */

/* --- Reading progress under the nav --- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* --- Hero: the window opens as you scroll --- */
.hero-pin { position: relative; }
.js .hero-pin.is-pinned { height: 175svh; }
.js .hero-pin.is-pinned .hero { position: sticky; top: 0; height: 100svh; min-height: 0; }
.hero { --e: 0; --p: 0; }
.hero-media { transform: scale(calc(1.14 - .14 * var(--e))); transform-origin: 50% 60%; }
.hero-frame {
  position: absolute; z-index: 1; pointer-events: none;
  top: calc(var(--fy, 11svh) * (1 - var(--e)));
  bottom: calc(var(--fy, 11svh) * (1 - var(--e)));
  left: calc(var(--fx, 16vw) * (1 - var(--e)));
  right: calc(var(--fx, 16vw) * (1 - var(--e)));
  outline: 1px solid rgba(251, 250, 248, calc(.75 * (1 - var(--e))));
  box-shadow: 0 0 0 100vmax rgba(20, 29, 27, calc(.5 * (1 - var(--e)))); /* taste-skill-ignore: window frame mask */
}
.js .hero-pin.is-pinned .hero-inner {
  transform: translateY(calc(var(--p) * -10svh)) scale(calc(1 - .08 * var(--p)));
  opacity: calc(1 - max(0, var(--p) - .55) * 2.4);
}
.js .hero-pin.is-pinned .hero-down { opacity: calc(1 - var(--p) * 3); }

/* --- Chapter index (roman numerals), right edge --- */
.chapters { display: none; }
@media (min-width: 1100px) {
  .chapters {
    display: block; position: fixed; right: 18px; top: 50%; z-index: 45;
    transform: translate(calc(100% + 40px), -50%);
    transition: transform .7s var(--ease);
    mix-blend-mode: difference; color: #fff;
  }
  .chapters.is-on { transform: translate(0, -50%); }
  .chapters ol { list-style: none; display: grid; gap: 4px; }
  .chapters a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 3px 0; }
  .chapters span {
    font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    opacity: 0; transform: translateX(10px);
    transition: opacity .4s var(--ease), transform .4s var(--ease);
  }
  .chapters i {
    font-family: var(--serif); font-style: normal; font-size: 16px; min-width: 2.2em; text-align: right;
    opacity: .55; transition: opacity .3s var(--ease);
  }
  .chapters a::after {
    content: ""; width: 14px; height: 1.5px; background: currentColor;
    transform: scaleX(.35); transform-origin: right; opacity: .55;
    transition: transform .4s var(--ease), opacity .3s;
  }
  .chapters a:hover span, .chapters a.is-active span { opacity: 1; transform: none; }
  .chapters a:hover i, .chapters a.is-active i { opacity: 1; }
  .chapters a.is-active::after { transform: scaleX(1.6); opacity: 1; }
}

/* --- Headings: words rise from behind their baseline --- */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .wi { display: inline-block; }
@keyframes wordUp { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }
.js [data-split].play .wi { animation: wordUp 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }

/* --- Photographs uncovered like a curtain --- */
@keyframes wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.22); } to { transform: none; } }
.js [data-wipe].play { animation: wipe 1.15s cubic-bezier(.77, 0, .18, 1) both; animation-delay: var(--d, 0ms); }
.js [data-wipe].play img { animation: settle 1.6s var(--ease) both; animation-delay: var(--d, 0ms); }

/* --- Rooms: pinned horizontal run on desktop --- */
.rooms-stage { position: relative; }
.rooms.is-pinned { padding: 0; }
.rooms.is-pinned .rooms-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 0;
  padding: 84px 0 96px;
}
.rooms.is-pinned .fan { overflow: visible; scroll-snap-type: none; padding-top: 44px; padding-bottom: 36px; will-change: transform; }
.rooms.is-pinned .card { flex-basis: clamp(190px, min(19vw, calc((100svh - 330px) * .68)), 300px); transform: rotate(calc(var(--r) * (1 - var(--k, 0)))) translateY(calc(var(--y) * (1 - var(--k, 0)))); transition: none; }
.rooms.is-pinned .card:hover { transform: rotate(0) translateY(-6px) scale(1.02); transition: transform .5s var(--ease); }
.rooms.is-pinned .card-text { display: none; }
.rooms.is-pinned .fan-arrows { display: none; }
.rooms-count { display: none; }
.rooms.is-pinned .rooms-count {
  display: block; position: absolute; right: var(--m); top: 104px;
  font-family: var(--serif); font-size: var(--t3); color: var(--brown);
}
.rooms.is-pinned .rooms-sub, .rooms.is-pinned .rooms-note { display: none; }
.rooms.is-pinned .rooms-head { grid-template-columns: 1fr; }

/* --- Curtains: the statement stays while the rooms slide over it --- */
.statement.is-curtain { position: sticky; top: 0; z-index: 0; }

/* --- Footer revealed from underneath --- */
@media (min-width: 960px) {
  main { position: relative; z-index: 1; }
  .footer.is-reveal { position: sticky; bottom: 0; z-index: 0; }
}

/* --- Reduced motion: keep every picture and word in place --- */
@media (prefers-reduced-motion: reduce) {
  .js [data-split].play .wi, .js [data-wipe].play, .js [data-wipe].play img { animation: none; }
  .chapters { display: none !important; }
}

/* Window size for the hero frame */
.hero { --fx: 5vw; --fy: 9svh; }
@media (min-width: 960px) { .hero { --fx: 16vw; --fy: 11svh; } }

/* Phone nav: keep the wordmark clear of the button */
@media (max-width: 959px) {
  .wordmark-name { font-size: 17px; letter-spacing: .04em; }
  .nav-right .btn-small { min-height: 38px; padding: 0 14px; font-size: 12px; letter-spacing: .1em; }
}
@media (max-width: 360px) {
  .nav-right .btn-small { display: none; }
}

/* =============================================================
   22. Legal: company data, legal links, ANPC badge, consent, map
   ============================================================= */
.todo { background: #FFE9A8; color: #4A3A00; padding: 0 .3em; border-radius: 3px; font-weight: 600; white-space: nowrap; }

.footer .company { max-width: 60ch; font-size: 14px; line-height: 1.65; color: var(--light-soft); }
.legal-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; }
.legal-links a, .legal-links button {
  color: inherit; font: inherit; padding: 6px 0; min-height: 32px;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.legal-links a:hover, .legal-links button:hover { color: var(--gold); }
.anpc { display: inline-flex; align-items: center; justify-content: center; width: 250px; height: 50px; background: #fff; border-radius: 4px; }
.anpc img { width: 250px; height: 50px; object-fit: contain; }
.anpc:hover { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --- Map waiting for consent --- */
.map-band { position: relative; display: grid; place-items: center; }
.map-band iframe { position: absolute; inset: 0; }
.map-consent { max-width: 520px; padding: 40px var(--m); text-align: center; }
.map-band.is-loaded .map-consent { visibility: hidden; }
.map-title { font-family: var(--serif); font-size: var(--t3); margin-bottom: 10px; }
.map-consent p:not(.map-title) { color: var(--ink-soft); font-size: 16px; }
.map-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; }

/* --- Consent banner --- */
.cookie {
  position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px;
  padding: 22px 22px 18px; background: var(--green); color: var(--light);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .55); /* taste-skill-ignore: consent dialog floats */
  border-radius: 6px;
}
.cookie[hidden] { display: none; }
.cookie-title { font-family: var(--serif); font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.cookie-text { font-size: 15px; line-height: 1.55; color: var(--light-soft); }
.cookie-text a { color: var(--light); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-btn {
  min-height: 48px; padding: 0 14px; border-radius: 4px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--light); color: var(--green);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.cookie-btn:hover { background: var(--gold); color: var(--brown-2); }
@media (min-width: 720px) {
  .cookie { left: 24px; right: auto; bottom: 24px; width: 440px; }
}
@media (min-width: 960px) {
  .cookie { bottom: 110px; }
}

/* --- Legal pages --- */
.legal-page { background: var(--cream); }
.nav.is-static { position: sticky; top: 0; height: 72px; }
.nav-back { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; justify-self: start; white-space: nowrap; }
.nav-back:hover { color: var(--gold); }
.legal-main { padding: clamp(56px, 8vw, 110px) var(--m) clamp(72px, 9vw, 130px); }
.legal-article { max-width: 760px; margin: 0 auto; }
.legal-article h1 { margin-bottom: 10px; }
.legal-updated { font-size: 14px; color: var(--ink-soft); margin-bottom: 36px; }
.legal-article h2 { font-family: var(--serif); font-weight: 400; font-size: var(--t3); line-height: 1.2; margin: 44px 0 14px; }
.legal-article p, .legal-article li { color: var(--ink); line-height: 1.7; }
.legal-article p + p { margin-top: 14px; }
.legal-article ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; margin-top: 10px; }
.legal-article a { text-decoration: underline; text-underline-offset: 3px; color: var(--brown); }
.legal-article .btn { color: #fff; text-decoration: none; margin-top: 16px; }
.inline-btn { font: inherit; color: var(--brown); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.table-wrap { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
.legal-article table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.legal-article th, .legal-article td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--sand-2); }
.legal-article th { background: var(--sand); font-weight: 600; }
.legal-footer {
  background: var(--green); color: var(--light); text-align: center;
  padding: 56px var(--m) 72px; display: grid; justify-items: center; gap: 20px;
}
.legal-footer .company { max-width: 70ch; font-size: 14px; line-height: 1.65; color: var(--light-soft); }
.legal-footer .company a { color: var(--light); }
.legal-footer .legal { font-size: 13px; color: var(--light-soft); }
.not-found { text-align: center; min-height: 40vh; display: grid; align-content: center; justify-items: center; }
@media (max-width: 540px) {
  .nav-back { font-size: 12px; letter-spacing: .06em; }
  .legal-page .wordmark-name { font-size: 15px; }
  .legal-page .nav-right { display: none; }
  .legal-page .nav { grid-template-columns: auto 1fr; gap: 12px; }
  .legal-page .wordmark { align-items: flex-end; }
}

/* =============================================================
   23. Phone fit fixes (checked at 360 / 390 / 414 px)
   ============================================================= */
.booking { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.booking-field { min-width: 0; }
.booking-field input, .booking-field select { min-width: 0; min-height: 38px; }
@media (min-width: 540px) { .booking { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .booking { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.1fr); } }

.legal-links a, .legal-links button { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact a { display: inline-block; padding: 6px 0; }
.wordmark { padding: 6px 4px; }
.nav-back { font-size: 13px; display: inline-flex; align-items: center; min-height: 44px; }
.rooms-note .text-link, .map-actions .text-link, .faq-actions .text-link { display: inline-block; padding: 10px 0; }
.dist a { display: inline-block; padding: 8px 0; margin: -8px 0; }
@media (max-width: 540px) { .nav-back { font-size: 13px; } }

/* Legal tables become cards on phones */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  .legal-article table { min-width: 0; }
  .legal-article thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-article tr { display: block; background: #fff; padding: 14px 16px; margin-bottom: 12px; border-radius: 4px; }
  .legal-article td { display: block; padding: 6px 0; border: 0; }
  .legal-article td::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brown); margin-bottom: 2px; }
}
