/* Hotel Ceasar Palace: one system for every page */
@view-transition { navigation: auto; }

:root {
  --bg: #f1ede5;
  --r-img: 18px;
  /* a semicircle top on a 4:5 photo (40% of the height = half the width) with rounded feet; 999px would shrink the feet to 0 */
  --arch: 50% 50% var(--r-img) var(--r-img) / 40% 40% var(--r-img) var(--r-img);
  --bg-2: #e6dfd1;
  --surface: #d9d0bf;
  --ink: #26261f;
  --muted: #59564d;
  --line: rgba(38, 38, 31, .15);
  --accent: #8a6a2c;
  --gold: #c9a45c;
  --accent-ink: #ffffff;
  --night: #1b2130;
  --night-ink: #e9e3d6;
  --night-muted: #a9a79f;
  --night-line: rgba(233, 227, 214, .16);

  --font-display: "EB Garamond", "Garamond", Georgia, serif;
  --font-text: "Jost", "Futura", system-ui, sans-serif;
  --font-script: "Pinyon Script", "Snell Roundhand", cursive;
  --teal: #2f6f6c;
  --teal-soft: #cfe2df;
  --blush: #efd9cf;
  --sand-soft: #e9dcc3;

  --t-hero: clamp(44px, 6.4vw, 96px);
  --t-h1: clamp(40px, 5.2vw, 80px);
  --t-h2: clamp(32px, 3.7vw, 56px);
  --t-h3: clamp(22px, 1.8vw, 28px);
  --t-lead: clamp(18px, 1.35vw, 21px);
  --t-body: 16px;
  --t-small: 14px;
  --t-label: 13px;

  --gut: clamp(20px, 5.5vw, 80px);
  --max: 1280px;
  --sec: clamp(88px, 11vw, 168px);
  --nav-h: 76px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --fast: 180ms;
  --slow: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.on-night :focus-visible, .hero :focus-visible, .nav--over :focus-visible { outline-color: var(--night-ink); }
html { scrollbar-color: #a59d8c var(--bg); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--t-h2); letter-spacing: -0.025em; }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: var(--t-lead); line-height: 1.6; max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); }
.label { font-size: var(--t-label); font-weight: 500; letter-spacing: .01em; color: var(--muted); }
.num { font-variant-numeric: tabular-nums lining-nums; }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.section { padding-block: var(--sec); }
.section--tight { padding-block: calc(var(--sec) * .66); }
.section--alt { background: var(--bg-2); }
.on-night { background: var(--night); color: var(--night-ink); }
.on-night .muted, .on-night .label { color: var(--night-muted); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; text-decoration: none; transition: top var(--fast) var(--ease); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* head row: heading left, a line and a link at its right */
.head { display: flex; align-items: end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.head h2 { max-width: 14em; }
.head__aside { max-width: 26em; display: grid; gap: 16px; justify-items: start; }

/* ---------- links and buttons ---------- */
.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 15px; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-block: 6px; transition: background-size 420ms var(--ease);
}
.link:hover { background-size: 100% 1px; }
.link .arr { transition: transform var(--fast) var(--ease); }
.link:hover .arr { transform: translateX(4px); }
.arr { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  --b-bg: var(--accent); --b-ink: var(--accent-ink); --b-line: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: 2px;
  background: var(--b-bg); color: var(--b-ink); border: 1px solid var(--b-line);
  font: 500 15px/1 var(--font-text); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform 120ms var(--ease);
}
.btn:hover { --b-line: #6f5422; }
.btn:active { transform: scale(.97); }
.btn .arr { transition: transform var(--fast) var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { --b-bg: transparent; --b-ink: var(--ink); --b-line: var(--ink); }
.btn--ghost:hover { --b-bg: var(--ink); --b-ink: var(--bg); --b-line: var(--ink); }
.btn--light { --b-bg: var(--night-ink); --b-ink: var(--night); --b-line: var(--night-ink); }
.btn--light:hover { --b-bg: #fff; --b-line: #fff; }
.btn--line-light { --b-bg: transparent; --b-ink: #fff; --b-line: rgba(255,255,255,.7); }
.btn--line-light:hover { --b-bg: #fff; --b-ink: var(--night); --b-line: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg.ic { width: 18px; height: 18px; flex: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  color: var(--ink); background: rgba(241, 237, 229, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease), color 400ms var(--ease), transform 500ms var(--ease);
}
.nav.is-solid { background: var(--bg); border-bottom-color: var(--line); }
.nav--over:not(.is-solid) { color: #fff; }
.nav__bar { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 400 22px/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; margin-right: auto; }
.logo .mark { width: 44px; height: 44px; flex: none; border-radius: 50%; }
.logo small { display: block; font: 500 11px/1 var(--font-text); letter-spacing: .02em; opacity: .75; margin-bottom: 5px; }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; display: block; padding: 10px 10px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 400ms var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { min-height: 44px; padding: 0 20px; }
.nav--over:not(.is-solid) .btn { --b-bg: #fff; --b-ink: var(--night); --b-line: #fff; }
.nav--over:not(.is-solid) .btn:hover { --b-bg: var(--night-ink); --b-line: var(--night-ink); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 2px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 300ms var(--ease); }
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 49; background: var(--night); color: var(--night-ink);
  padding: calc(var(--nav-h) + 24px) var(--gut) 32px; display: flex; flex-direction: column; gap: 32px;
  overflow-y: auto; visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path 700ms var(--ease-in-out), visibility 0s linear 700ms;
}
.sheet.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 700ms var(--ease-in-out), visibility 0s; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li a { display: flex; align-items: baseline; justify-content: space-between; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--night-line); font: 400 clamp(28px, 7vw, 40px)/1.1 var(--font-display); letter-spacing: -0.02em; text-decoration: none; }
.sheet li { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.sheet.is-open li { opacity: 1; transform: none; }
.sheet.is-open li:nth-child(2) { transition-delay: 40ms; } .sheet.is-open li:nth-child(3) { transition-delay: 80ms; }
.sheet.is-open li:nth-child(4) { transition-delay: 120ms; } .sheet.is-open li:nth-child(5) { transition-delay: 160ms; }
.sheet.is-open li:nth-child(6) { transition-delay: 200ms; } .sheet.is-open li:nth-child(7) { transition-delay: 240ms; }
.sheet.is-open li:nth-child(8) { transition-delay: 280ms; } .sheet.is-open li:nth-child(9) { transition-delay: 320ms; }
.sheet__foot { margin-top: auto; display: grid; gap: 16px; font-size: 15px; }
.sheet__foot a { text-decoration: none; }
.sheet .btn-row .btn { flex: 1 1 140px; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { color: var(--night-ink); background: transparent; border-bottom-color: transparent; }
body.menu-open .nav .btn { visibility: hidden; }

@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}
@media (max-width: 560px) {
  :root { --nav-h: 64px; }
  .nav .nav__cta { display: none; }
  .logo { font-size: 20px; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; color: #fff; background: var(--night); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 17, 26, .55) 0%, rgba(14, 17, 26, 0) 22%),
    linear-gradient(0deg, rgba(14, 17, 26, .78) 0%, rgba(14, 17, 26, .28) 48%, rgba(14, 17, 26, 0) 70%);
}
.hero__inner { position: absolute; inset: auto 0 0; padding-bottom: clamp(32px, 6vh, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 48px; }
.hero h1 { font-size: var(--t-hero); line-height: .98; letter-spacing: -0.035em; max-width: 11em; }
.statement em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 24px; color: rgba(255, 255, 255, .9); max-width: 30em; }
.hero .btn-row { margin-top: 36px; }
.hero__side { display: grid; justify-items: end; gap: 20px; }
.hero__facts { list-style: none; margin: 0; padding: 0; text-align: right; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .85); }
.hero__ctrl { display: flex; align-items: center; gap: 16px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(14, 17, 26, .2); color: #fff; cursor: pointer; transition: background-color var(--fast) var(--ease), transform 120ms var(--ease); }
.icon-btn:hover { background: rgba(255, 255, 255, .16); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 14px; height: 14px; fill: currentColor; }
.icon-btn .i-play { display: none; }
.icon-btn[aria-pressed="true"] .i-play { display: block; }
.icon-btn[aria-pressed="true"] .i-pause { display: none; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; text-decoration: none; color: rgba(255, 255, 255, .85); }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: #fff; animation: cue 2.4s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(260%); } }
.hero__progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(255,255,255,.14); }
.hero__progress span { display: block; height: 100%; width: 100%; background: rgba(255,255,255,.7); transform-origin: left; transform: scaleX(0); }
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { justify-items: end; width: 100%; }
  .hero__facts { display: none; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* entrance (JS adds .is-entering to <html> before paint) */
.js .hero .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js .hero .line > span { display: block; transform: translateY(105%); transition: transform 1200ms var(--ease); }
.js .hero [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease), transform 1100ms var(--ease); }
.js .hero__media { opacity: 0; transform: scale(1.06); transition: opacity 1400ms var(--ease), transform 2400ms var(--ease); }
.js .is-in .line > span { transform: none; }
.js .is-in [data-rise] { opacity: 1; transform: none; }
.js .is-in .hero__media, .js .is-in.hero__media { opacity: 1; transform: none; }
.js .is-in .line:nth-child(2) > span { transition-delay: 90ms; }
.js .is-in .line:nth-child(3) > span { transition-delay: 180ms; }
.js .is-in [data-rise="1"] { transition-delay: 380ms; }
.js .is-in [data-rise="2"] { transition-delay: 500ms; }
.js .is-in [data-rise="3"] { transition-delay: 640ms; }

/* ---------- page header (inner pages) ---------- */
.phead { padding: calc(var(--nav-h) + clamp(56px, 9vw, 128px)) 0 clamp(48px, 6vw, 88px); }
.phead__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.phead h1 { grid-column: 1 / span 8; }
.phead .lead { grid-column: 9 / -1; color: var(--muted); }
.phead__crumb { grid-column: 1 / -1; margin-bottom: 8px; }
.crumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.crumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .phead h1, .phead .lead { grid-column: 1 / -1; }
}

/* full-bleed media header (room pages, dining, banquet) */
.mhead { position: relative; height: min(88svh, 900px); min-height: 520px; color: #fff; overflow: hidden; background: var(--night); isolation: isolate; }
.mhead > img, .mhead > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mhead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,17,26,.5) 0%, rgba(14,17,26,0) 26%), linear-gradient(0deg, rgba(14,17,26,.72) 0%, rgba(14,17,26,.15) 50%, rgba(14,17,26,0) 70%); }
.mhead__inner { position: absolute; inset: auto 0 0; padding-bottom: clamp(32px, 6vh, 64px); }
.mhead .crumb { color: rgba(255,255,255,.8); margin-bottom: 16px; }
.mhead h1 { max-width: 11em; }
.mhead .lead { margin-top: 20px; color: rgba(255,255,255,.88); }
.js .mhead > img, .js .mhead > video { transform: scale(1.06); transition: transform 2200ms var(--ease); }
.js .mhead.is-in > img, .js .mhead.is-in > video { transform: none; }

/* ---------- reveals ---------- */
.js [data-reveal] { clip-path: inset(100% 0 0 0 round var(--r-img)); transition: clip-path 1300ms var(--ease); }
.js [data-reveal] img, .js [data-reveal] video { transform: scale(1.12); transition: transform 1800ms var(--ease); }
.js [data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--r-img)); }
.js [data-reveal].arch { clip-path: inset(100% 0 0 0 round var(--arch)); }
.js [data-reveal].arch.is-in { clip-path: inset(0 0 0 0 round var(--arch)); }
.js [data-reveal].is-in img, .js [data-reveal].is-in video { transform: none; }
.js [data-lines] .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-lines] .line > span { display: block; transform: translateY(105%); transition: transform 1100ms var(--ease); }
.js [data-lines].is-in .line > span { transform: none; }
.js [data-lines].is-in .line:nth-child(2) > span { transition-delay: 80ms; }
.js [data-lines].is-in .line:nth-child(3) > span { transition-delay: 160ms; }
.js [data-lines].is-in .line:nth-child(4) > span { transition-delay: 240ms; }

/* ---------- photos ---------- */
.ph { position: relative; overflow: hidden; margin: 0; background: var(--surface); border-radius: var(--r-img); }
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; }
.ph--43 { aspect-ratio: 4 / 3; }
.ph--32 { aspect-ratio: 3 / 2; }
.ph--45 { aspect-ratio: 4 / 5; }
.ph--11 { aspect-ratio: 1; }
.ph--169 { aspect-ratio: 16 / 9; }
.ph--21 { aspect-ratio: 21 / 9; }
a.ph, .tile a .ph { display: block; }
.zoom img, .zoom video { transition: transform 900ms var(--ease); }
a:hover .zoom img, a.zoom:hover img, a:hover .zoom video { transform: scale(1.03); }
.js [data-reveal].is-in.zoom img { transition: transform 900ms var(--ease); }

/* ---------- intro (home) ---------- */
.intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.statement { grid-column: 1 / span 10; font: 400 clamp(28px, 3.3vw, 50px)/1.18 var(--font-display); letter-spacing: -0.02em; text-wrap: pretty; }
.statement .w { transition: color 300ms linear; }
.js .statement .w { color: rgba(38, 38, 31, .22); }
.js .statement .w.is-on { color: var(--ink); }
.js .statement .w.is-on.em { color: var(--accent); }
.intro__photos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 7vw, 112px); align-items: start; }
.intro__photos .a { grid-column: 1 / span 8; grid-row: 1; }
.intro__photos .b { grid-column: 8 / -1; grid-row: 1; margin-top: clamp(120px, 16vw, 240px); position: relative; z-index: 2; padding-left: clamp(0px, 3vw, 48px); }
.intro__photos .b p { margin-top: 24px; }
.intro__photos .b .link { margin-top: 12px; }
@media (max-width: 760px) {
  .statement { grid-column: 1 / -1; }
  .intro__photos .a, .intro__photos .b { grid-column: 1 / -1; margin-top: 0; position: static; }
}

/* ---------- rooms ---------- */
.rooms { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 24px; }
.room { display: grid; gap: 20px; align-content: start; }
.room--lead { grid-column: 1 / span 7; grid-row: span 2; position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.room--b { grid-column: 9 / -1; }
.room--c { grid-column: 9 / -1; }
.room__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.room__price { font-size: 15px; }
.room__price b { font-weight: 500; }
.room p { color: var(--muted); max-width: 32em; }
.room__tags { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.room__tags li::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin: 0 8px 2px 0; vertical-align: middle; }
.room__actions { display: flex; flex-wrap: wrap; gap: 4px 28px; padding-top: 4px; }
.room h3 a { text-decoration: none; }
@media (max-width: 900px) {
  .room--lead, .room--b, .room--c { grid-column: 1 / -1; grid-row: auto; position: static; }
}

/* ---------- dining band ---------- */
.dine__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.dine__text { grid-column: 1 / span 5; display: grid; gap: 24px; position: sticky; top: calc(var(--nav-h) + 48px); }
.dine__text h2 { margin-bottom: 8px; }
.dine__media { grid-column: 7 / -1; display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.dine__media .wide { grid-column: 1 / -1; }
.dine__media .low { margin-top: 64px; }
.dine__list { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--night-line); }
.dine__list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--night-line); }
.dine__list b { font: 400 22px/1.2 var(--font-display); }
.dine__list span { color: var(--night-muted); grid-column: 1 / -1; font-size: 15px; }
@media (max-width: 900px) {
  .dine__text { grid-column: 1 / -1; position: static; }
  .dine__media { grid-column: 1 / -1; margin-top: 24px; }
}

/* ---------- photo chapters (signature) ---------- */
.chapters { position: relative; height: calc(var(--n, 4) * 85svh + 100svh); background: var(--bg); }
.chapters__stick { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto 1fr; padding-top: calc(var(--nav-h) + 32px); padding-bottom: 24px; }
.chapters__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.chapters__count { font: 400 18px/1 var(--font-display); color: var(--muted); }
.chapters__count b { color: var(--ink); font-weight: 400; }
.chapters__frame { position: relative; overflow: hidden; background: var(--night); border-radius: var(--r-img); }
.chapter { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); border-radius: 0; }
.chapter:first-child { clip-path: inset(0 0 0 0); }
.chapter img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transform-origin: 50% 70%; }
.chapter:first-child img { transform: none; }
.chapters__panel { position: absolute; left: 0; bottom: 0; z-index: 3; width: min(420px, 88%); background: var(--bg); padding: 28px 32px 30px; }
.chapters__panel h3 { margin-bottom: 10px; }
.chapters__panel p { color: var(--muted); }
.chapters__panel .txt { transition: opacity 300ms var(--ease), transform 500ms var(--ease); }
.chapters__panel .txt.is-swap { opacity: 0; transform: translateY(8px); }
.chapters__bar { display: flex; gap: 6px; margin-bottom: 18px; }
.chapters__bar i { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.chapters__bar i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
@media (max-width: 640px), (max-height: 560px) {
  .chapters { height: auto; }
  .chapters__stick { position: static; height: auto; padding-top: var(--sec); padding-bottom: var(--sec); }
  .chapters__frame { background: none; display: grid; gap: 32px; }
  .chapter { position: static; clip-path: none !important; }
  .chapter img { transform: none !important; aspect-ratio: 4 / 5; height: auto; }
  .chapter .m-txt { display: block !important; padding-top: 16px; }
  .chapters__panel, .chapters__count { display: none; }
}
.chapter .m-txt { display: none; }
.chapter .m-txt h3 { margin-bottom: 8px; }
.chapter .m-txt p { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .chapters { height: auto; }
  .chapters__stick { position: static; height: auto; padding-bottom: var(--sec); }
  .chapters__frame { background: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .chapter { position: static; clip-path: none !important; }
  .chapter img { transform: none !important; aspect-ratio: 4 / 3; height: auto; }
  .chapter .m-txt { display: block; padding-top: 16px; }
  .chapters__panel, .chapters__count { display: none; }
}

/* ---------- split (events, about) ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.split__media { grid-column: 1 / span 7; }
.split__text { grid-column: 9 / -1; display: grid; gap: 24px; align-content: start; }
.split--r .split__media { grid-column: 6 / -1; grid-row: 1; }
.split--r .split__text { grid-column: 1 / span 4; grid-row: 1; }
.split__sub { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
@media (max-width: 900px) {
  .split__media, .split__text, .split--r .split__media, .split--r .split__text { grid-column: 1 / -1; grid-row: auto; }
  .split__text { margin-top: 16px; }
}

/* ---------- amenities list ---------- */
.amen { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.amen__photo { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 32px); }
.amen__list { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.amen__list li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.amen__list svg { width: 28px; height: 28px; stroke: var(--accent); stroke-width: 1.3; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.amen__list b { font: 400 22px/1.25 var(--font-display); letter-spacing: -0.01em; }
.amen__list p { grid-column: 2; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .amen__photo { grid-column: 1 / -1; position: static; }
  .amen__list { grid-column: 1 / -1; margin-top: 24px; }
}

/* ---------- gallery strip / wall ---------- */
.wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.wall > * { grid-column: span 4; }
.wall .w-4 { grid-column: span 4; } .wall .w-7 { grid-column: span 7; } .wall .w-5 { grid-column: span 5; } .wall .w-3 { grid-column: span 3; } .wall .w-6 { grid-column: span 6; } .wall .w-8 { grid-column: span 8; }
.wall .ph:not([class*="ph--"]) { height: 100%; }
@media (max-width: 760px) { .wall > *, .wall .w-7, .wall .w-5, .wall .w-3, .wall .w-6, .wall .w-8 { grid-column: span 6; } .wall > .full { grid-column: 1 / -1; } }

/* ---------- location ---------- */
.loc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.loc__type { grid-column: 1 / -1; font: 400 clamp(48px, 7vw, 6rem)/.98 var(--font-display); letter-spacing: -0.035em; text-decoration: none; display: inline-block; }
.loc__h { grid-column: 1 / -1; margin-bottom: clamp(40px, 5vw, 72px); }
.loc__type span { background: linear-gradient(currentColor, currentColor) 0 92% / 0 2px no-repeat; transition: background-size 700ms var(--ease); }
.loc__type:hover span { background-size: 100% 2px; }
.loc__media { grid-column: 1 / span 7; }
.loc__info { grid-column: 9 / -1; display: grid; gap: 28px; }
.dist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.dist li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.dist li span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.addr { font-style: normal; font-size: 18px; line-height: 1.6; }
@media (max-width: 900px) { .loc__media, .loc__info { grid-column: 1 / -1; } }

/* ---------- closing + footer ---------- */
.close { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: var(--night); }
.close > img, .close > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.close::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,17,26,.8) 0%, rgba(14,17,26,.45) 55%, rgba(14,17,26,.2) 100%); }
.close__inner { padding-block: clamp(120px, 16vw, 220px); display: grid; gap: 28px; justify-items: start; }
.close h2 { font-size: clamp(44px, 6vw, 92px); max-width: 9em; letter-spacing: -0.035em; }
.close p { max-width: 30em; color: rgba(255,255,255,.88); font-size: var(--t-lead); }

.foot { background: var(--night); color: var(--night-ink); padding: clamp(72px, 8vw, 112px) 0 32px; }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.foot__brand { grid-column: span 3; display: grid; gap: 20px; align-content: start; }
.foot__brand .logo { margin: 0; }
.foot__emblem { display: block; width: clamp(150px, 13vw, 190px); margin-bottom: 22px; }
.foot__emblem img { width: 100%; height: auto; transition: transform 1200ms var(--ease); }
.foot__emblem:hover img { transform: rotate(-4deg) scale(1.03); }
/* the brand lettering follows the hotel's own logo: Roman capitals (Cinzel) under a widely spaced HOTEL */
.foot { --font-roman: "Cinzel", "Trajan Pro", var(--font-display); }
.foot .muted { color: var(--night-muted); }
.foot__col { grid-column: span 3; display: grid; gap: 12px; align-content: start; font-size: 15px; padding-top: 6px; }
.foot__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.foot h3 { font: 500 11px/1.4 var(--font-roman); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.foot a { text-decoration: none; color: var(--night-ink); }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.foot address { font-style: normal; line-height: 1.7; }
.foot__lockup { grid-column: 1 / -1; display: grid; justify-items: center; gap: clamp(14px, 1.6vw, 22px); margin: clamp(24px, 3vw, 40px) 0 clamp(32px, 4vw, 56px); padding-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--night-line); text-align: center; }
.foot__stars { display: flex; gap: 14px; }
.foot__stars svg { width: 11px; height: 11px; fill: var(--gold); }
.foot__hotel { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); width: min(100%, 560px); font: 400 clamp(12px, 1.1vw, 16px)/1 var(--font-roman); letter-spacing: .9em; text-indent: .9em; text-transform: uppercase; color: var(--gold); }
.foot__hotel::before, .foot__hotel::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(217, 164, 65, .6)); }
.foot__hotel::after { transform: scaleX(-1); }
.foot__name { margin: 0; font: 400 clamp(40px, 8.4vw, 132px)/.95 var(--font-roman); letter-spacing: .05em; text-indent: .05em; text-transform: uppercase; color: var(--night-ink); white-space: nowrap; }
.foot__place { font: 400 clamp(11px, .95vw, 13px)/1 var(--font-roman); letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: var(--night-muted); }
.foot__legal { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 13px; color: var(--night-muted); }
.foot__legal a { color: var(--night-muted); }
@media (max-width: 900px) {
  .foot__brand { grid-column: 1 / -1; }
  .foot__col { grid-column: span 6; }
}
@media (max-width: 560px) {
  .foot__col { grid-column: 1 / -1; }
}

/* ---------- phone action bar ---------- */
.actionbar { display: none; }
@media (max-width: 640px) {
  .actionbar { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 500ms var(--ease); }
  .actionbar.is-on { transform: none; }
  .actionbar .btn { min-height: 48px; padding: 0 10px; font-size: 14px; gap: 8px; }
  body { padding-bottom: 0; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- rooms page / room detail ---------- */
.rlist { display: grid; gap: clamp(88px, 10vw, 152px); }
.rrow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.rrow > a.ph { grid-column: 1 / -1; }
.rrow__name { grid-column: 1 / span 4; display: grid; gap: 12px; align-content: start; }
.rrow__desc { grid-column: 5 / span 4; display: grid; gap: 16px; align-content: start; }
.rrow__act { grid-column: 10 / -1; display: grid; gap: 12px; align-content: start; justify-items: start; }
.rrow__act .btn { width: 100%; }
.price { font: 400 32px/1.1 var(--font-display); letter-spacing: -0.02em; }
.price small { font: 400 14px/1.4 var(--font-text); color: var(--muted); letter-spacing: 0; display: block; margin-top: 6px; }
@media (max-width: 900px) {
  .rrow__name, .rrow__desc, .rrow__act { grid-column: 1 / -1; }
  .rrow__act .btn { width: auto; }
}
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.checks li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 10px; height: 6px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg) translateY(-3px); }

.rd { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; align-items: start; }
.rd__main { grid-column: 1 / span 7; display: grid; gap: 40px; }
.rd__aside { grid-column: 9 / -1; position: sticky; top: calc(var(--nav-h) + 32px); border: 1px solid var(--line); padding: 32px; display: grid; gap: 22px; background: var(--bg-2); }
.rd__rates { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.rd__rates div { padding: 16px 0 4px; display: grid; gap: 4px; }
.rd__rates div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.rd__rates b { font: 400 28px/1.1 var(--font-display); letter-spacing: -0.02em; }
.rd__aside .btn { width: 100%; }
.rd__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rd__pics .full { grid-column: 1 / -1; }
@media (max-width: 900px) { .rd__main, .rd__aside { grid-column: 1 / -1; position: static; } }
.others { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.others > a { grid-column: span 6; display: grid; gap: 16px; text-decoration: none; }
@media (max-width: 640px) { .others > a { grid-column: 1 / -1; } }


/* ---------- gallery page ---------- */

.lb { position: fixed; inset: 0; z-index: 80; background: rgba(14, 17, 26, .96); color: var(--night-ink); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity 400ms var(--ease), visibility 0s linear 400ms; }
.lb.is-open { opacity: 1; visibility: visible; transition: opacity 400ms var(--ease), visibility 0s; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gut); font-size: 14px; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(16px, 6vw, 96px); min-height: 0; touch-action: pan-y; }
.lb__stage img, .lb__stage video { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity 300ms var(--ease), transform 500ms var(--ease); }
.lb .icon-btn { border-color: rgba(233,227,214,.4); }
.lb .icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb__cap { padding: 16px var(--gut) 24px; font-size: 14px; color: var(--night-muted); text-align: center; min-height: 56px; }
body.lb-open { overflow: hidden; }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 2px;
  border: 1px solid rgba(42,42,38,.35); background: var(--bg-2); color: var(--ink);
  font: 400 16px/1.4 var(--font-text); transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%232a2a26' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(138, 106, 44, .22); }
.field [aria-invalid="true"] { border-color: #9b2c1f; }
.field__error { font-size: 14px; color: #9b2c1f; min-height: 0; }
.field__error:empty { display: none; }
.form__foot { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; }
.form__status { font-size: 15px; }
.form__status:empty { display: none; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .form__foot .btn { width: 100%; } }

.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; align-items: start; }
.contact__form { grid-column: 1 / span 7; }
.contact__info { grid-column: 9 / -1; display: grid; gap: 32px; }
.contact__info h2 { font-size: var(--t-h3); margin-bottom: 10px; }
.cline { display: grid; gap: 6px; font-size: 17px; }
.cline a { text-decoration: none; }
.cline a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.map { width: 100%; aspect-ratio: 21 / 9; border: 0; background: var(--surface); display: block; filter: grayscale(.3) contrast(1.02); }
@media (max-width: 900px) { .contact__form, .contact__info { grid-column: 1 / -1; } .map { aspect-ratio: 4 / 3; } }

/* ---------- misc ---------- */
.two { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.two > :first-child { grid-column: 1 / span 5; }
.two > :last-child { grid-column: 7 / -1; }
@media (max-width: 900px) { .two > :first-child, .two > :last-child { grid-column: 1 / -1; } }
.prose { display: grid; gap: 20px; max-width: 36em; }
.prose p { font-size: 17px; line-height: 1.75; }
.prose--lg p:first-child { font: 400 clamp(22px, 2vw, 28px)/1.45 var(--font-display); letter-spacing: -0.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { border: 1px solid var(--line); padding: 8px 14px; font-size: 14px; border-radius: 2px; }
.on-night .tags li { border-color: var(--night-line); }
.mt-s { margin-top: 24px; } .mt-m { margin-top: 48px; } .mt-l { margin-top: clamp(64px, 8vw, 120px); }
.center-404 { min-height: 100svh; display: grid; align-content: center; gap: 24px; padding-top: var(--nav-h); }


/* ================= v2: depth, arches, motion ================= */

/* palace arch frame, from the logo's arch; the outline sits offset behind the photo */
.arch { border-radius: var(--arch); }
.archwrap { position: relative; isolation: isolate; align-self: start; }
.archwrap::before {
  content: ""; position: absolute; z-index: -1; inset: -14px;
  border: 1px solid var(--line); border-radius: 50% 50% calc(var(--r-img) + 14px) calc(var(--r-img) + 14px) / 40% 40% calc(var(--r-img) + 14px) calc(var(--r-img) + 14px); pointer-events: none;
  transition: transform 1600ms var(--ease) 300ms, opacity 1200ms var(--ease) 300ms;
}
.on-night .archwrap::before { border-color: var(--night-line); }
.js .archwrap::before { opacity: 0; transform: scale(.94); }
.js .archwrap.is-in::before { opacity: 1; transform: none; }

/* photographs drift inside their frames as the page scrolls */
[data-parallax] > img, [data-parallax] > video { scale: 1.16; translate: 0 var(--py, 0%); will-change: translate; }
.hero__media, .mhead > img, .mhead > video { will-change: translate; }

/* hover: a label slides into a linked room photograph */
.peek {
  position: absolute; right: 20px; bottom: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 500;
  opacity: 0; transform: translateY(10px); transition: opacity 300ms var(--ease), transform 500ms var(--ease);
}
a:hover > .peek, a:focus-visible > .peek { opacity: 1; transform: none; }
.ph::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(14,17,26,0); transition: background-color 600ms var(--ease); pointer-events: none; }
a.ph:hover::after { background: rgba(14,17,26,.12); }

/* destinations band: two lines that slide against each other with the scroll */

/* sideways gallery: the section holds while the photographs travel left */
.hs { position: relative; background: var(--bg-2); overflow-x: clip; }
.hs__stick { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: 100%; align-content: start; padding: calc(var(--nav-h) + clamp(32px, 5vh, 64px)) 0 clamp(28px, 5vh, 56px); }
.hs__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vh, 48px); }
.hs__track { display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 32px); padding-inline: max(var(--gut), (100vw - var(--max)) / 2); will-change: transform; height: min(54svh, 560px); align-self: end; }
.hs__item { position: relative; flex: none; height: 84%; aspect-ratio: var(--ar, 4 / 3); display: block; text-decoration: none; }
.hs__item.tall { height: 100%; }
.hs__item.low { height: 66%; }
.hs__item .ph { height: 100%; }
.hs__item figcaption { position: absolute; left: 0; top: 100%; padding-top: 12px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.hs__end { flex: none; align-self: center; display: grid; gap: 20px; justify-items: start; width: min(340px, 70vw); padding-right: max(var(--gut), (100vw - var(--max)) / 2); }
.hs__end p { font: 400 clamp(26px, 2.4vw, 36px)/1.2 var(--font-display); letter-spacing: -0.02em; }
.hs__bar { height: 1px; background: var(--line); margin-top: 48px; }
.hs__bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.hs.is-static { height: auto !important; }
.hs.is-static .hs__stick { position: static; height: auto; padding-block: var(--sec); }
.hs.is-static .hs__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 40px; scrollbar-width: thin; transform: none !important; }
.hs.is-static .hs__track { height: auto; }
.hs.is-static .hs__item { scroll-snap-align: start; height: min(56svh, 420px); }
.hs.is-static .hs__item.low, .hs.is-static .hs__item.tall { height: min(56svh, 420px); }
.hs.is-static .hs__bar { display: none; }

/* lists arrive row by row; icons draw themselves */
.js [data-stagger] > li { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-stagger].is-in > li { opacity: 1; transform: none; }
.js [data-stagger] svg :is(path, rect, circle) { stroke-dasharray: 130; stroke-dashoffset: 130; transition: stroke-dashoffset 1600ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 250ms); }
.js [data-stagger].is-in svg :is(path, rect, circle) { stroke-dashoffset: 0; }

/* inner page header with an arched photograph */
.phead--img .phead__grid { align-items: end; }
.phead--img h1 { grid-column: 1 / span 7; grid-row: 2; }
.phead--img .lead { grid-column: 1 / span 6; grid-row: 3; margin-top: 28px; }
.phead--img .phead__crumb { grid-row: 1; grid-column: 1 / span 7; }
.phead__img { grid-column: 9 / -1; grid-row: 1 / span 3; }
@media (max-width: 900px) {
  .phead--img h1, .phead--img .lead, .phead--img .phead__crumb { grid-column: 1 / -1; }
  .phead__img { grid-column: 1 / -1; grid-row: auto; width: min(100%, 420px); margin: 40px 0 0 18px; }
}

/* intro statement column gets an arch beside it */
@media (max-width: 760px) {
  .intro__photos .b { grid-column: 1 / -1; grid-row: auto; padding-left: 18px; margin-top: 24px; }
  .intro__photos .b .archwrap { width: 78%; }
}


/* ================= v3: premium motion layer ================= */

/* buttons: a darker fill sweeps in from the left on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--b-sweep, #6f5422); transform: scaleX(0); transform-origin: right; transition: transform 550ms var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--ghost { --b-sweep: var(--ink); }
.btn--light { --b-sweep: #fff; }
.btn--line-light { --b-sweep: #fff; }
.nav--over:not(.is-solid) .btn { --b-sweep: var(--night-ink); }
.btn--ghost:hover, .btn--line-light:hover { --b-bg: transparent; }
.btn[data-magnetic] { transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), translate 600ms cubic-bezier(.2, .9, .3, 1.3); }

/* headline letters rise in, short headings only */
.js [data-chars] .ch-w { display: inline-block; white-space: nowrap; }
.js [data-chars] .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotateX(-50deg); transform-origin: 50% 100%; transition: opacity 700ms var(--ease), transform 1000ms var(--ease); transition-delay: calc(var(--c, 0) * 18ms + var(--d, 0ms)); }
.js [data-chars].is-in .ch { opacity: 1; transform: none; }
[data-chars] { perspective: 600px; }

/* first-visit curtain: the arch draws, then the curtain lifts */
.curtain { position: fixed; inset: 0; z-index: 200; background: var(--night); color: var(--night-ink); display: grid; place-items: center; transition: clip-path 1100ms cubic-bezier(.76, 0, .24, 1); clip-path: inset(0 0 0 0); }
.curtain .mark { display: block; width: 104px; height: 104px; margin-inline: auto; border-radius: 50%; animation: seal-in 1100ms var(--ease) forwards; }
@keyframes seal-in { from { opacity: 0; transform: scale(.7) rotate(-30deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.curtain p { margin-top: 18px; font: 400 22px/1 var(--font-display); letter-spacing: -0.01em; opacity: 0; animation: fadeup 900ms var(--ease) 450ms forwards; text-align: center; }
.curtain p small { display: block; font: 500 12px/1 var(--font-text); letter-spacing: .02em; opacity: .7; margin-bottom: 8px; }
.curtain.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html:not(.js) .curtain { display: none; }

/* nav: steps out of the way on the way down, returns on the way up; gold progress hairline */
.nav.is-hidden { transform: translateY(-100%); }
.nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform-origin: left; transform: scaleX(0); opacity: 0; transition: opacity 400ms var(--ease); }
.nav.is-solid .nav__progress { opacity: 1; }

/* night bands open from an inset panel to the full width as they arrive */
[data-open] { clip-path: inset(0 var(--oi, 0px) round var(--or, 0px)); }

/* footer name rises letter by letter */
.foot__name .ch { display: inline-block; }

/* gold accents on night */
.on-night .link:hover, .foot a:hover { color: var(--gold); }
.on-night .statement em { color: var(--gold); }

/* room tiles: a fine gold frame draws inside the photo on hover */
a.ph::before { content: ""; position: absolute; inset: 14px; z-index: 2; border: 1px solid rgba(255, 255, 255, .7); opacity: 0; transform: scale(1.04); transition: opacity 500ms var(--ease), transform 700ms var(--ease); pointer-events: none; }
a.ph:hover::before { opacity: 1; transform: none; }
.hs__item .ph::before { content: none; }

/* gallery page: photographs arrive in a stagger */


/* ================= v4: live layer ================= */

/* page changes: the old page lifts away, the new one rises in */
::view-transition-old(root) { animation: vt-out 420ms cubic-bezier(.65, 0, .35, 1) both; }
::view-transition-new(root) { animation: vt-in 700ms cubic-bezier(.16, 1, .3, 1) 80ms both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-28px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(36px); } }

/* cursor ring: follows the mouse, opens into a labelled disc over photographs */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; mix-blend-mode: normal; }
.cursor__ring { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1px solid rgba(38, 38, 31, .45); display: grid; place-items: center; transition: width 450ms var(--ease), height 450ms var(--ease), margin 450ms var(--ease), background-color 450ms var(--ease), border-color 450ms var(--ease), opacity 300ms var(--ease); }
.cursor__label { font: 500 13px/1 var(--font-text); letter-spacing: .02em; color: var(--night); opacity: 0; transform: scale(.6); transition: opacity 300ms var(--ease), transform 450ms var(--ease); white-space: nowrap; }
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--accent); }
.cursor.is-media .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: rgba(241, 237, 229, .92); border-color: transparent; }
.cursor.is-media .cursor__label { opacity: 1; transform: none; }
.cursor.on-dark .cursor__ring { border-color: rgba(255, 255, 255, .55); }
.cursor.is-hidden .cursor__ring { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* live footage: the hero video follows the cursor a little; header photos breathe */
.hero__media video { scale: 1.06; transition: translate 1200ms cubic-bezier(.16, 1, .3, 1); }
@media (prefers-reduced-motion: no-preference) {
  .mhead > img { animation: breathe 22s ease-in-out infinite alternate; }
  .close > img, .close > video { animation: breathe 26s ease-in-out infinite alternate; }
}
@keyframes breathe { from { scale: 1; } to { scale: 1.08; } }

/* section heads: a hairline draws under the heading row */
.head { position: relative; }
.head::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-1 * clamp(20px, 2.6vw, 36px)); height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1600ms var(--ease) 200ms; }
.on-night .head::after { background: var(--night-line); }
.head.is-in::after, html:not(.js) .head::after { transform: scaleX(1); }

/* paragraphs arrive word by word out of a soft blur */
.js [data-words] .wd { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(.35em); transition: opacity 800ms var(--ease), filter 900ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--w, 0) * 22ms + 150ms); }
.js [data-words].is-in .wd { opacity: 1; filter: none; transform: none; }

/* rooms: hovering one card quiets the others */
.rooms .room, .others > a { transition: opacity 500ms var(--ease); }
@media (hover: hover) {
  .rooms:has(.room:hover) .room:not(:hover), .others:has(> a:hover) > a:not(:hover) { opacity: .5; }
}

/* footer name: letters lift in gold under the cursor */
.js .foot__name[data-chars].is-in .ch { transition: transform 600ms var(--ease), color 400ms var(--ease), opacity 700ms var(--ease); transition-delay: 0s; }
.js .foot__name[data-chars].is-in .ch:hover { transform: translateY(-.08em); color: var(--gold); }
.foot__name { cursor: default; }

/* logo mark: a gold sheen on hover */
.logo .mark { transition: transform 900ms var(--ease); }
.logo:hover .mark { transform: rotate(-8deg) scale(1.06); }
.logo:hover svg { color: var(--gold); transform: translateY(-2px); }

/* destinations band leans with scroll speed */


/* ================= v5: joy layer ================= */
body { font-size: 17px; letter-spacing: .005em; }
h1 em, h2 em, .statement em, .display em { font-style: italic; font-weight: 400; }
.hero h1 em { color: var(--gold); }
.logo { font-weight: 500; letter-spacing: 0; }

/* handwritten flourish over a heading, drawn left to right */
.has-script { position: relative; }
.script {
  display: block; font: 400 clamp(44px, 5.4vw, 88px)/.9 var(--font-script); color: var(--accent);
  letter-spacing: 0; margin: 0 0 -.18em -.06em; transform: rotate(-4deg); transform-origin: left bottom;
  pointer-events: none; white-space: nowrap;
}
.on-night .script, .hero .script, .mhead .script, .close .script { color: var(--gold); }
.js .script { clip-path: inset(-20% 100% -30% -5%); transition: clip-path 1800ms cubic-bezier(.65, 0, .35, 1) 150ms; }
.js .script.is-in, .js .is-in > .script, .js .is-in .script { clip-path: inset(-20% -5% -30% -5%); }
.hero .script { font-size: clamp(40px, 4.4vw, 72px); margin-bottom: 0; }
.js .hero .script { transition-delay: 900ms; }

/* rotating seal in the hero */
.seal { position: relative; display: grid; place-items: center; width: 132px; height: 132px; color: #fff; text-decoration: none; }
.seal svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal svg.ring text { font: 500 10.5px var(--font-text); letter-spacing: .32em; fill: currentColor; text-transform: uppercase; }
.seal .core { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); display: grid; place-items: center; transition: background-color 400ms var(--ease), transform 600ms var(--ease); }
.seal .core { overflow: hidden; border-color: rgba(217, 164, 65, .7); }
.seal .core .mark { width: 100%; height: 100%; }
.seal:hover .core { background: rgba(255, 255, 255, .14); transform: scale(1.08); }
.seal:hover svg.ring { animation-duration: 8s; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .seal { width: 96px; height: 96px; } .seal svg.ring text { font-size: 9px; } .seal .core { width: 44px; height: 44px; } }

/* intro: editorial scatter along a gold line that draws as you scroll */
.scatter { position: relative; text-align: center; }
.scatter__mark { width: 34px; height: 38px; margin: 0 auto 28px; color: var(--accent); display: block; }
.scatter .statement { grid-column: auto; max-width: 22em; margin: 0 auto; font-size: clamp(26px, 2.7vw, 42px); line-height: 1.25; text-align: center; }
.scatter__field { position: relative; margin-top: clamp(56px, 7vw, 96px); min-height: 1500px; }
.scatter__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.scatter__line span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--lp, 0)); }
.sc { position: absolute; margin: 0; text-align: left; }
.sc .ph { width: 100%; }
.sc p { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 26ch; padding-left: 16px; position: relative; }
.sc p::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sc--a { left: 0; top: 0; width: 30%; }
.sc--b { right: 4%; top: 120px; width: 22%; }
.sc--c { left: 58%; top: 520px; width: 34%; }
.sc--d { left: 8%; top: 640px; width: 26%; }
.sc--e { right: 0; top: 1080px; width: 30%; }
.sc--f { left: 14%; top: 1150px; width: 22%; }
.sc--g { left: 50%; top: 1270px; transform: translateX(-50%); width: auto; text-align: center; }
@media (max-width: 900px) {
  .scatter__field { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .scatter__line { display: none; }
  .sc { position: static; width: auto !important; transform: none !important; }
  .sc--a, .sc--c, .sc--e { grid-column: 1 / -1; }
  .sc--g { grid-column: 1 / -1; }
}

/* explore index: a held photograph on the left, a quiet index on the right.
   The active row lights, its hairline draws across, and its photograph unveils upward over the last. */
.xp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.xp__stage { position: sticky; top: calc(var(--nav-h) + 32px); }
.xp__frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--nav-h) - 72px); width: 100%; overflow: hidden; border-radius: var(--r-img); background: var(--surface); }
.xp__frame::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(14, 17, 26, 0) 55%, rgba(14, 17, 26, .62) 100%); }
.xp__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; clip-path: inset(100% 0 0 0); transform: scale(1.14); transition: clip-path 1000ms var(--ease), transform 1600ms var(--ease), filter 1000ms var(--ease); }
.xp__frame img.is-on { z-index: 2; clip-path: inset(0); transform: scale(1); }
.xp__frame img.is-out { z-index: 1; clip-path: inset(0); transform: scale(1.06); filter: brightness(.6); }
.xp__cap { position: absolute; left: clamp(20px, 2vw, 32px); right: clamp(20px, 2vw, 32px); bottom: clamp(18px, 2vw, 28px); z-index: 4; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0; color: #fff; overflow: hidden; }
.xp__cap span { display: block; transition: transform 700ms var(--ease), opacity 500ms var(--ease); }
.xp__cap-t { font: italic 400 clamp(24px, 2.1vw, 32px)/1.1 var(--font-display); letter-spacing: -0.015em; }
.xp__cap-r { font: 400 14px/1.2 var(--font-text); color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; transition-delay: 60ms; }
.xp__cap.is-swap span { transform: translateY(110%); opacity: 0; transition-duration: 260ms; transition-delay: 0ms; }

.xp__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.xp__list a {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t r" "d r";
  column-gap: 24px; row-gap: 6px; padding: clamp(20px, 2.1vw, 28px) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.xp__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease); }
.xp__list .t { grid-area: t; font: 400 clamp(28px, 2.6vw, 42px)/1.05 var(--font-display); letter-spacing: -0.022em; color: var(--muted); transition: color 400ms var(--ease), transform 700ms var(--ease); }
.xp__list .t em { font-style: italic; }
.xp__list .d { grid-area: d; font-size: 15px; line-height: 1.45; color: var(--muted); transition: transform 700ms var(--ease) 40ms; }
.xp__list .r { grid-area: r; align-self: center; display: flex; align-items: center; gap: 20px; }
.xp__list .r__m { font: 400 14px/1 var(--font-text); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color 400ms var(--ease); }
.xp__list .go { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background-color 400ms var(--ease), border-color 400ms var(--ease), color 400ms var(--ease); }
.xp__list .go svg { transition: transform 600ms var(--ease); }
.xp__list .thumb { display: none; }
.xp__list a.is-on::after { transform: scaleX(1); }
.xp__list a.is-on .t { color: var(--ink); transform: translateX(14px); }
.xp__list a.is-on .t em { color: var(--accent); }
.xp__list a.is-on .d { transform: translateX(14px); }
.xp__list a.is-on .r__m { color: var(--ink); }
.xp__list a.is-on .go { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.xp__list a.is-on .go svg { transform: rotate(-45deg); }
.xp__list a:focus-visible { outline-offset: 6px; }
@media (max-width: 900px) {
  .xp { grid-template-columns: 1fr; }
  .xp__stage { display: none; }
  .xp__list a { grid-template-columns: minmax(0, 1fr) 80px; grid-template-areas: "t thumb" "d thumb"; }
  .xp__list .t { color: var(--ink); font-size: clamp(26px, 7vw, 34px); }
  .xp__list .r { display: none; }
  .xp__list a.is-on .t, .xp__list a.is-on .d { transform: none; }
  .xp__list a::after { display: none; }
  .xp__list .thumb { display: block; grid-area: thumb; align-self: center; width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .xp__frame img, .xp__cap span, .xp__list .t, .xp__list .d, .xp__list a::after { transition: none; }
}

/* facilities: the forecourt at dusk keeping Thodupuzha time, beside a hairline ledger of what the house offers.
   On arrival each rule draws across, then its name and line rise out of a mask, one row after the next. */
.conc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: stretch; }
.conc__photo { min-height: clamp(520px, 46vw, 680px); height: 100%; }
.conc__photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(14, 17, 26, 0) 45%, rgba(14, 17, 26, .72) 100%); }
.conc__clock { position: absolute; z-index: 2; left: clamp(24px, 2.6vw, 40px); right: clamp(24px, 2.6vw, 40px); bottom: clamp(22px, 2.4vw, 36px); display: grid; gap: 10px; color: #fff; }
.conc__time { font: italic 400 clamp(72px, 8vw, 128px)/.85 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.conc__time i { font-style: normal; display: inline-block; margin: 0 .02em; animation: conc-colon 2s steps(1) infinite; }
.conc__note { font: 400 clamp(15px, 1.2vw, 17px)/1.4 var(--font-text); color: rgba(255, 255, 255, .85); max-width: 26ch; }
@keyframes conc-colon { 50% { opacity: .25; } }

.conc__list { margin: 0; align-self: center; }
.conc__row { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: baseline; padding: clamp(22px, 2.4vw, 32px) 0; }
.conc__row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.conc__row:last-child { border-bottom: 1px solid var(--line); }
.conc__row dt, .conc__row dd { margin: 0; overflow: hidden; }
.conc__row dt span, .conc__row dd span { display: block; }
.conc__row dt { font: 400 clamp(28px, 2.5vw, 40px)/1.08 var(--font-display); letter-spacing: -0.022em; color: var(--ink); padding-bottom: .08em; }
.conc__row dt em { font-style: italic; color: var(--accent); }
.conc__row dd { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 34ch; }
.conc__row dt span { transition: transform 700ms var(--ease); }
@media (hover: hover) { .conc__row:hover dt span { transform: translateX(10px); } }
/* arrival */
.js .conc__row::before { transform: scaleX(0); transition: transform 1100ms var(--ease); transition-delay: calc(var(--i) * 110ms); }
.js .conc__row dt span, .js .conc__row dd span { transform: translateY(105%); opacity: 0; transition: transform 1000ms var(--ease), opacity 700ms var(--ease); transition-delay: calc(var(--i) * 110ms + 250ms); }
.js .conc__row dd span { transition-delay: calc(var(--i) * 110ms + 340ms); }
.js [data-conc].is-in .conc__row::before { transform: none; }
.js [data-conc].is-in .conc__row dt span, .js [data-conc].is-in .conc__row dd span { transform: none; opacity: 1; }
.js [data-conc].is-in .conc__row:hover dt span { transform: translateX(10px); transition-delay: 0ms; }
@media (max-width: 900px) {
  .conc { grid-template-columns: 1fr; gap: 40px; }
  .conc__photo { min-height: 0; aspect-ratio: 4 / 5; }
  .conc__row { grid-template-columns: 1fr; gap: 8px; }
}

/* map: framed, warm-toned, inactive until clicked so it never traps the scroll */
.mapbox { position: relative; overflow: hidden; background: var(--surface); height: min(76svh, 720px); min-height: 460px; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) sepia(.18) contrast(1.05) brightness(1.02); transition: filter 900ms var(--ease); }
.mapbox.is-live iframe { filter: none; }
.mapbox__shield { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-end; padding: 20px; background: transparent; border: 0; cursor: pointer; }
.mapbox__shield span { background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; padding: 12px 18px; display: inline-flex; gap: 10px; align-items: center; transition: transform 400ms var(--ease); }
.mapbox__shield:hover span { transform: translateY(-3px); }
.mapbox.is-live .mapbox__shield { display: none; }
.mapbox__card { position: absolute; z-index: 3; left: clamp(16px, 4vw, 56px); top: clamp(16px, 4vw, 56px); width: min(380px, calc(100% - 32px)); background: var(--bg); padding: clamp(24px, 2.6vw, 36px); display: grid; gap: 16px; box-shadow: 0 24px 60px -24px rgba(14, 17, 26, .35); }
.mapbox__card h3 { font-size: clamp(24px, 2.2vw, 32px); }
.mapbox__card .script { font-size: 48px; margin-bottom: -10px; }
.mapbox__pulse { position: absolute; z-index: 1; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; pointer-events: none; }
.mapbox__pulse::before, .mapbox__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 2.4s var(--ease) infinite; }
.mapbox__pulse::after { animation-delay: 1.2s; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(6); opacity: 0; } }
.mapbox.is-live .mapbox__pulse { display: none; }
@media (max-width: 760px) {
  .mapbox { height: auto; min-height: 0; display: grid; }
  .mapbox iframe { position: relative; height: 380px; }
  .mapbox__card { position: relative; left: 0; top: 0; width: 100%; box-shadow: none; order: -1; }
  .mapbox__pulse { top: calc(100% - 190px); }
}

/* floating WhatsApp button (desktop; phones have the action bar) */
.wa-float { position: fixed; right: 28px; bottom: 28px; z-index: 45; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -12px rgba(14, 17, 26, .5); transform: scale(0); transition: transform 600ms cubic-bezier(.2, .9, .3, 1.3), background-color 300ms var(--ease); text-decoration: none; }
.wa-float.is-on { transform: scale(1); }
.wa-float:hover { background: #6f5422; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: pulse-sm 2.8s var(--ease) infinite; }
@keyframes pulse-sm { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.wa-float .tip { position: absolute; right: calc(100% + 14px); white-space: nowrap; background: var(--ink); color: var(--bg); font-size: 14px; padding: 10px 14px; opacity: 0; transform: translateX(8px); transition: opacity 300ms var(--ease), transform 400ms var(--ease); pointer-events: none; }
.wa-float:hover .tip, .wa-float:focus-visible .tip { opacity: 1; transform: none; }
@media (max-width: 640px) { .wa-float { display: none; } }


/* ================= v6: Garamond, story, gallery ================= */
h1, h2, h3, .display { font-weight: 500; letter-spacing: -0.01em; }
h1 { letter-spacing: -0.02em; line-height: 1.02; }
h2 { line-height: 1.06; }
.hero h1 { font-weight: 500; letter-spacing: -0.025em; line-height: 1; }
.hero h1 em, h1 em, h2 em { font-weight: 400; }
.statement { font-weight: 400; letter-spacing: -0.005em; }
.logo { font-weight: 500; font-size: 24px; }
.price, .rd__rates b, .dine__list b, .amen__list b, .loc__type, .sheet li a, .chapters__count { font-weight: 500; }
.icon-btn--ink { color: var(--ink); border-color: var(--line); background: transparent; }
.icon-btn--ink:hover { background: rgba(38, 38, 31, .06); }

/* STORY: the section holds while the photographs fly out to their places */
.story { position: relative; height: 320svh; background: var(--bg); }
.story__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; perspective: 1400px; }
.story__text { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(620px, 46vw); text-align: center; display: grid; justify-items: center; gap: 22px; z-index: 2; }
.story__mark { width: clamp(96px, 8vw, 132px); height: auto; }
.story__h { font: 500 13px/1 var(--font-text); letter-spacing: .02em; color: var(--muted); }
.story .statement { grid-column: auto; font-size: clamp(24px, 2.15vw, 34px); line-height: 1.3; text-align: center; margin: 0; }
.js .story .statement .w { display: inline-block; color: rgba(38, 38, 31, .2); filter: blur(5px); transform: translateY(.35em) rotate(2deg); transition: color 500ms var(--ease), filter 700ms var(--ease), transform 800ms var(--ease); }
.js .story .statement .w.is-on { filter: none; transform: none; }
.story.is-static .statement .w { filter: none !important; transform: none !important; }
/* the arch mark draws itself as the story starts */
/* the emblem turns in like a struck coin as the story starts */
.js .story__mark { opacity: 0; transform: perspective(600px) rotateY(-80deg) scale(.8); filter: blur(4px); transition: opacity 900ms var(--ease), transform 1600ms var(--ease), filter 900ms var(--ease); }
.story.is-in .story__mark, .story.is-static .story__mark { opacity: 1; transform: none; filter: none; }
.js .story .statement .w.is-on { color: var(--ink); }
.js .story .statement .w.is-on.em { color: var(--accent); }
.story__cta { opacity: var(--cta, 1); transform: translateY(calc((1 - var(--cta, 1)) * 16px)); }
.st { position: absolute; margin: 0; z-index: 1; will-change: transform, opacity; transform-style: preserve-3d; }
.st .ph { width: 100%; box-shadow: 0 30px 60px -30px rgba(14, 17, 26, .35); }
.st .ph img, .st .ph video { will-change: transform; }
.st figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.st--a { left: 5%; top: 12%; width: 18vw; }
.st--b { right: 6%; top: 9%; width: 14vw; }
.st--c { left: 9%; bottom: 7%; width: 21vw; }
.st--d { right: 10%; bottom: 8%; width: 15vw; }
.st--e { left: 31%; top: 4%; width: 11vw; }
.st--f { right: 30%; bottom: 3%; width: 9vw; }
.st--e figcaption, .st--f figcaption { display: none; }
.story.is-static { height: auto; }
.story.is-static .story__stage { position: static; height: auto; overflow: visible; padding: var(--sec) var(--gut); display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; }
.story.is-static .story__text { position: static; transform: none; width: auto; grid-column: 1 / -1; grid-row: 1; margin-bottom: 24px; }
.story.is-static .st { position: static; width: auto; min-width: 0; transform: none !important; opacity: 1 !important; }
.story.is-static .st figcaption { white-space: normal; }
.story.is-static .story__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.story.is-static .st--e, .story.is-static .st--f { display: none; }
.story.is-static .story__cta { --cta: 1; }

/* RIBBONS: two endless rows of photographs sliding in opposite directions */
/* A look around: a row of photographs as narrow slices. The active one opens wide, sharpens and names itself;
   a gold rule runs along its foot as the timer, and when it fills the next slice opens. */
.look .head { margin-bottom: clamp(32px, 4vw, 56px); }
.look__ctrl { display: flex; align-items: center; gap: 20px; }
.look__row { display: flex; gap: 10px; height: clamp(440px, 60vh, 660px); }
.look__p { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--r-img); background: var(--surface); text-decoration: none; color: #fff; transition: flex-grow 1100ms var(--ease); }
.look__p.is-on { flex-grow: 7; }
.look__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); filter: saturate(.45) brightness(.72); transition: transform 1600ms var(--ease), filter 900ms var(--ease); }
.look__p.is-on .look__ph img { transform: scale(1); filter: none; }
.look__p:hover .look__ph img { filter: saturate(.8) brightness(.9); }
.look__p.is-on:hover .look__ph img { filter: none; }
.look__p::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14, 17, 26, 0) 55%, rgba(14, 17, 26, .66) 100%); opacity: 0; transition: opacity 900ms var(--ease); }
.look__p.is-on::after { opacity: 1; }
.look__cap { position: absolute; z-index: 1; left: clamp(20px, 2.2vw, 36px); bottom: clamp(26px, 2.8vw, 42px); overflow: hidden; white-space: nowrap; }
.look__cap span { display: block; font: italic 400 clamp(26px, 2.4vw, 40px)/1.1 var(--font-display); letter-spacing: -0.02em; padding-bottom: .06em; transform: translateY(110%); transition: transform 500ms var(--ease); }
.look__p.is-on .look__cap span { transform: none; transition: transform 1000ms var(--ease) 450ms; }
.look__bar { position: absolute; z-index: 1; left: clamp(20px, 2.2vw, 36px); right: clamp(20px, 2.2vw, 36px); bottom: 14px; height: 1px; background: rgba(255, 255, 255, .28); opacity: 0; transition: opacity 400ms var(--ease); }
.look__bar::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.look__p.is-on .look__bar { opacity: 1; }
.look__p.is-on .look__bar::after { animation: look-bar 5.5s linear forwards; }
.look.is-paused .look__bar::after, .look.is-off .look__bar::after, .look__row:hover .look__bar::after, .look__row:focus-within .look__bar::after { animation-play-state: paused; }
@keyframes look-bar { to { transform: scaleX(1); } }
.look__p:focus-visible { outline-offset: 4px; }
@media (max-width: 760px) {
  .look__row { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .look__row::-webkit-scrollbar { display: none; }
  .look__p, .look__p.is-on { flex: 0 0 80%; aspect-ratio: 4 / 5; scroll-snap-align: center; }
  .look__ph img, .look__p.is-on .look__ph img { filter: none; transform: none; }
  .look__p::after { opacity: 1; }
  .look__cap span { transform: none; font-size: 24px; }
  .look__bar, .look__ctrl .icon-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { clip-path: none; }
  .js [data-reveal] img, .js [data-reveal] video, .js .mhead > img, .js .hero__media { transform: none; }
  .js .hero .line > span, .js [data-lines] .line > span { transform: none; }
  .js .hero [data-rise], .js .hero__media { opacity: 1; transform: none; }
  .js .statement .w { color: var(--ink); }
  .look__bar { display: none; }
  .js .story .statement .w { color: var(--ink); }
  .js .script { clip-path: none; }
  .js .conc__row dt span, .js .conc__row dd span { transform: none; opacity: 1; }
  .js .conc__row::before { transform: none; }
  .conc__time i { animation: none; }
  .seal svg.ring { animation: none; }
  .scatter__line span { transform: scaleY(1); }
  .js [data-words] .wd { opacity: 1; filter: none; transform: none; }
  .head::after { transform: scaleX(1); }
  .cursor { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .js [data-chars] .ch { opacity: 1; transform: none; }
  .curtain { display: none; }
  [data-open] { clip-path: none; }
  .nav.is-hidden { transform: none; }
  .js [data-stagger] > li { opacity: 1; transform: none; }
  .js [data-stagger] svg :is(path, rect, circle) { stroke-dashoffset: 0; }
  .js .archwrap::before { opacity: 1; transform: none; }
  [data-parallax] > img, [data-parallax] > video { scale: 1; translate: none; }
  @view-transition { navigation: none; }
}
@media print { .nav, .actionbar, .hero__media, .sheet { display: none !important; } }
@media (max-width: 760px) {
  .hero::after { background: linear-gradient(180deg, rgba(14,17,26,.55) 0%, rgba(14,17,26,0) 20%), linear-gradient(0deg, rgba(14,17,26,.88) 0%, rgba(14,17,26,.55) 50%, rgba(14,17,26,.1) 78%); }
}

/* ---------- home entrance: through the palace arch ----------
   load: a door-sized arch of the drone film rises out of the night between the name;
   then the arch widens to full bleed and the name parts. Scrolling away folds it back into an arch. */
.hero { --aw: clamp(150px, 20vw, 300px); --ah: calc(var(--aw) * 1.4); }
.js .hero__media {
  opacity: 1; transform: none;
  clip-path: inset(calc(50% + var(--ah) / 2) calc(50% - var(--aw) / 2) calc(50% - var(--ah) / 2) calc(50% - var(--aw) / 2) round 999px 999px 0 0);
  transition: clip-path 1000ms cubic-bezier(.22, 1, .36, 1);
}
.js .hero.is-gate .hero__media { clip-path: inset(calc(50% - var(--ah) / 2) calc(50% - var(--aw) / 2) calc(50% - var(--ah) / 2) calc(50% - var(--aw) / 2) round 999px 999px 0 0); }
.js .hero.is-in .hero__media { clip-path: inset(0 0 0 0 round 0 0 0 0); transition: clip-path 1500ms cubic-bezier(.76, 0, .24, 1); }
.js .hero.is-set .hero__media {
  transition: none;
  clip-path: inset(0 calc(var(--hp, 0) * 16%) 0 calc(var(--hp, 0) * 16%) round calc(var(--hp, 0) * 999px) calc(var(--hp, 0) * 999px) 0 0);
}
.js .hero__media video { scale: 1.32; transition: translate 1200ms cubic-bezier(.16, 1, .3, 1), scale 2600ms cubic-bezier(.22, 1, .36, 1); }
.js .hero.is-in .hero__media video { scale: 1.06; }
.js .hero::after { opacity: 0; transition: opacity 1400ms var(--ease) 500ms; }
.js .hero.is-in::after { opacity: 1; }
.js body:has(.hero:not(.is-in)) .nav { opacity: 0; }
.js .nav { transition: transform 500ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease), opacity 900ms var(--ease) 900ms; }
body:has(.hero) .curtain { display: none; }
.js .hero h1 { --d: 760ms; }
.js .hero.is-in [data-rise="1"] { transition-delay: 1150ms; }
.js .hero.is-in [data-rise="2"] { transition-delay: 1270ms; }
.js .hero.is-in [data-rise="3"] { transition-delay: 1400ms; }

.hero__gate {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  display: grid; grid-template-columns: 1fr var(--aw) 1fr; align-items: center; column-gap: clamp(20px, 3.4vw, 56px);
  font: 400 clamp(56px, 9vw, 168px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--night-ink);
}
.hero__gate span { display: block; overflow: hidden; padding: .04em .02em .12em; }
.hero__gate span:first-child { justify-self: end; }
.hero__gate span:last-of-type { justify-self: start; }
.hero__gate i { display: block; font-style: normal; transform: translateY(110%); transition: transform 1100ms cubic-bezier(.22, 1, .36, 1), opacity 900ms var(--ease); }
.hero__gate span:last-of-type i { font-style: italic; color: var(--gold); transition-delay: 90ms; }
.hero__arch { grid-column: 2; grid-row: 1; width: calc(var(--aw) * 1.1); height: calc(var(--aw) * 1.45); margin: calc(var(--aw) * -.05) calc(var(--aw) * -.05) 0; align-self: center; justify-self: center; overflow: visible; }
.hero__arch path { fill: none; stroke: var(--gold); stroke-width: .4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1000ms cubic-bezier(.65, 0, .35, 1) 200ms, opacity 500ms var(--ease); }
.hero.is-gate .hero__gate i { transform: none; }
.hero.is-gate .hero__arch path { stroke-dashoffset: 0; }
.hero.is-in .hero__gate span:first-child i { transform: translateX(-42vw); opacity: 0; transition: transform 1500ms cubic-bezier(.76, 0, .24, 1), opacity 1100ms var(--ease) 300ms; }
.hero.is-in .hero__gate span:last-of-type i { transform: translateX(42vw); opacity: 0; transition: transform 1500ms cubic-bezier(.76, 0, .24, 1), opacity 1100ms var(--ease) 300ms; }
.hero.is-in .hero__arch path { opacity: 0; }
.hero.is-set .hero__gate { visibility: hidden; }
@media (max-width: 760px) {
  .hero__gate { grid-template-columns: 1fr; grid-template-rows: 1fr var(--ah) 1fr; row-gap: 18px; justify-items: center; font-size: clamp(48px, 15vw, 76px); }
  .hero__gate span:first-child { align-self: end; justify-self: center; }
  .hero__gate span:last-of-type { align-self: start; justify-self: center; }
  .hero__arch { grid-column: 1; grid-row: 2; }
  .hero.is-in .hero__gate span:first-child i { transform: translateY(-40vh); }
  .hero.is-in .hero__gate span:last-of-type i { transform: translateY(40vh); }
}
html:not(.js) .hero__gate { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__gate { display: none; }
  .js .hero__media, .js .hero.is-set .hero__media { clip-path: none; }
  .js .hero__media video { scale: 1.06; }
  .js .hero::after { opacity: 1; }
  .js body:has(.hero:not(.is-in)) .nav { opacity: 1; }
}

/* ---------- rooms: full-width cards that stack as you scroll ---------- */
.stack { display: grid; gap: 32px; margin-top: clamp(40px, 5vw, 72px); }
.scard {
  position: sticky; top: calc(var(--nav-h) + 20px + var(--i) * 18px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  height: clamp(440px, calc(100svh - var(--nav-h) - 110px), 640px);
  background: var(--bg); border: 1px solid var(--line); overflow: hidden;
  transform-origin: 50% 0; will-change: transform;
}
.scard::after { content: ""; position: absolute; inset: 0; background: var(--night); opacity: var(--dim, 0); pointer-events: none; z-index: 2; }
.scard__ph { grid-column: 1 / span 7; height: 100%; display: block; }
.scard__body { grid-column: 8 / -1; display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3vw, 48px) clamp(28px, 3vw, 48px) clamp(28px, 3vw, 48px) 8px; min-width: 0; }
.scard__no { font-size: 14px; color: var(--muted); display: flex; align-items: baseline; gap: 8px; }
.scard__no i { font: italic 400 clamp(52px, 5vw, 84px)/.9 var(--font-display); color: var(--accent); letter-spacing: -0.03em; }
.scard h3 { font-size: clamp(30px, 3vw, 46px); line-height: 1.05; letter-spacing: -0.02em; }
.scard h3 a { text-decoration: none; }
.scard__txt { color: var(--muted); max-width: 30em; }
.scard__rates { display: flex; gap: 40px; margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.scard__rates dt { font-size: 13px; color: var(--muted); }
.scard__rates dd { margin: 0; font: 400 clamp(24px, 2.2vw, 32px)/1.2 var(--font-display); letter-spacing: -0.01em; }
.scard .room__actions { align-items: center; gap: 12px 28px; }
.stack.is-measuring .scard { position: relative; top: 0; transform: none !important; }
.stack.is-flat .scard { position: relative; top: 0; }
@media (max-width: 900px) {
  .scard { grid-template-columns: 1fr; height: auto; top: calc(var(--nav-h) + 12px + var(--i) * 12px); }
  .scard__ph { grid-column: 1; height: auto; aspect-ratio: 3 / 2; }
  .scard__body { grid-column: 1; padding: 24px 22px 26px; }
  .scard__rates { margin-top: 4px; }
}

/* ---------- dusk: the page darkens and the Darbar Garden opens through an arch ---------- */
.dusk { position: relative; background: var(--bg); }
.dusk__stick { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; --aw: clamp(150px, 20vw, 300px); }
.dusk__night { position: absolute; inset: 0; background: var(--night); opacity: var(--n, 1); }
.dusk__media { position: absolute; inset: 0; background: var(--night); }
.dusk__media img { width: 100%; height: 100%; object-fit: cover; scale: var(--zs, 1); will-change: scale; }
.dusk__dim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 17, 26, .9) 0%, rgba(14, 17, 26, .45) 45%, rgba(14, 17, 26, .15) 75%); opacity: var(--dm, 1); }
.dusk__gate { display: none; }
.dusk__copy { position: absolute; left: 0; right: 0; bottom: clamp(48px, 9vh, 104px); opacity: var(--cp, 1); transform: translateY(calc((1 - var(--cp, 1)) * 32px)); }
.dusk__copy h2 { font-size: var(--t-h2); max-width: 13em; color: #fff; }
.dusk__copy h2 em { color: var(--gold); }
.dusk__copy p { margin-top: 18px; font-size: var(--t-lead); color: rgba(255, 255, 255, .86); max-width: 30em; }
.dusk.is-live { height: 330vh; }
.dusk.is-live .dusk__stick { position: sticky; top: 0; }
.dusk.is-live .dusk__gate {
  position: absolute; inset: 0; pointer-events: none;
  display: grid; grid-template-columns: 1fr var(--aw) 1fr; align-items: center; column-gap: clamp(20px, 3.4vw, 56px);
  font: 400 clamp(56px, 9vw, 168px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--night-ink);
}
.dusk__gate span { display: block; overflow: hidden; padding: .04em .02em .12em; }
.dusk__gate span:first-child { justify-self: end; grid-column: 1; }
.dusk__gate span:last-child { justify-self: start; grid-column: 3; }
.dusk__gate i { display: block; font-style: normal; will-change: transform; }
.dusk__gate span:last-child i { font-style: italic; color: var(--gold); }
@media (max-width: 760px) {
  .dusk.is-live .dusk__gate { grid-template-columns: 1fr; grid-template-rows: 1fr calc(var(--aw) * 1.4) 1fr; row-gap: 18px; justify-items: center; font-size: clamp(48px, 15vw, 76px); }
  .dusk__gate span:first-child { grid-column: 1; grid-row: 1; align-self: end; justify-self: center; }
  .dusk__gate span:last-child { grid-column: 1; grid-row: 3; align-self: start; justify-self: center; }
}

/* the closing film opens out of an arch */
.close[data-open] { clip-path: inset(0 calc(var(--op, 0) * 22%) 0 round calc(var(--op, 0) * 999px) calc(var(--op, 0) * 999px) 0 0); }
@media (prefers-reduced-motion: reduce) { .close[data-open] { clip-path: none; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
/* the parting names clip only below their line, so they can slide out sideways freely */
.hero__gate span, .dusk__gate span { overflow: visible; clip-path: inset(-1em -100vw 0 -100vw); }
@media (max-width: 640px) { .scard .room__tags { display: none; } .scard__body { gap: 12px; } }

/* ---------- photo chapters: louvred shutters, a rolling numeral, masked lines ---------- */
.chapter::after { content: ""; position: absolute; inset: 0; background: var(--night); opacity: var(--dk, 0); pointer-events: none; }
.chapter img { will-change: transform; }
.chapters__count { display: flex; align-items: baseline; gap: 10px; }
.chapters__count .roll { display: inline-block; height: 1.1em; overflow: hidden; font: italic 400 clamp(44px, 4.4vw, 72px)/1.1 var(--font-display); color: var(--accent); letter-spacing: -0.02em; }
.chapters__count .roll > span { display: block; will-change: transform; }
.chapters__count .of { font: 400 16px/1 var(--font-text); color: var(--muted); }
.chapters__panel .txt, .chapters__panel .txt.is-swap { opacity: 1; transform: none; transition: none; overflow: hidden; }
.chapters__panel .txt h3, .chapters__panel .txt p { transition: transform 700ms var(--ease), opacity 500ms var(--ease); }
.chapters__panel .txt p { transition-delay: 70ms; }
.chapters__panel .txt.is-swap h3, .chapters__panel .txt.is-swap p { transform: translateY(-26px); opacity: 0; transition-duration: 260ms; transition-delay: 0ms; }
.chapters__panel .txt.is-from h3, .chapters__panel .txt.is-from p { transform: translateY(26px); opacity: 0; transition: none; }

/* ---------- the road from Gandhi Square: Kerala roadside milestones ---------- */
.road { position: relative; padding-block: clamp(80px, 9vw, 140px) 0; background: var(--bg); overflow: hidden; }
.road__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.road__head h2 em { color: var(--accent); }
.road__head p { font-size: var(--t-lead); max-width: 22em; justify-self: end; }
.road__scroll { position: relative; }
.road__stones { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 2vw, 32px); align-items: end; position: relative; z-index: 1; }
.stone {
  --lift: 0px;
  position: relative; display: grid; grid-template-rows: auto 1fr; text-align: center;
  height: clamp(220px, 21vw, 300px); border-radius: 999px 999px 3px 3px; overflow: hidden;
  background: #fbf9f4; border: 1px solid var(--line); color: var(--ink);
  transform: translateY(var(--lift)); transition: transform 500ms var(--ease);
}
.stone:nth-child(even) { height: clamp(200px, 19vw, 272px); }
.stone__cap { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; aspect-ratio: 1 / .92; padding-bottom: 12px; background: var(--gold); color: var(--night); }
.stone__cap b { font: italic 400 clamp(34px, 3.4vw, 56px)/1 var(--font-display); letter-spacing: -0.03em; }
.stone__cap small { font: 500 12px/1 var(--font-text); letter-spacing: .04em; margin-top: 4px; opacity: .75; }
.stone__name { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 10px 18px; font: 400 clamp(17px, 1.5vw, 22px)/1.15 var(--font-display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.stone__name small { font: 400 12px/1.3 var(--font-text); color: var(--muted); letter-spacing: .01em; }
.stone--home { background: var(--night); color: var(--night-ink); border-color: var(--night); }
.stone--home .stone__cap { background: transparent; color: var(--gold); justify-content: center; padding-bottom: 0; }
.stone--home .stone__cap .mark { width: 58%; height: auto; border-radius: 50%; }
.stone--home .stone__name small { color: var(--night-muted); }
@media (hover: hover) { .stone:hover { --lift: -10px; } }
/* the road they stand on; its centre line runs as the page scrolls */
.road__way { position: relative; height: clamp(56px, 6vw, 84px); margin-top: -1px; background: #2a3042; }
.road__way::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--surface); }
.road__way i { position: absolute; left: -200px; right: -200px; top: 50%; height: 3px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--gold) 0 46px, transparent 46px 92px); transform: translateX(var(--rx, 0px)); will-change: transform; }
/* the stones rise from the verge one after another */
.js .road .stone { opacity: 0; transform: translateY(60px); transition: opacity 700ms var(--ease), transform 1000ms var(--ease); transition-delay: calc(var(--i) * 90ms); }
.js .road.is-in .stone { opacity: 1; transform: translateY(var(--lift)); }
.js .road.is-in .stone:hover { transition-delay: 0ms; }
@media (max-width: 900px) {
  .road__head { grid-template-columns: 1fr; }
  .road__head p { justify-self: start; }
  .road__scroll { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .road__scroll::-webkit-scrollbar { display: none; }
  .road__stones { grid-template-columns: repeat(6, 150px); width: max-content; margin: 0; padding-inline: var(--gut); }
  .stone { scroll-snap-align: center; height: 230px; }
  .stone:nth-child(even) { height: 212px; }
  .road__way { width: calc(6 * 150px + 5 * clamp(12px, 2vw, 32px) + 2 * var(--gut)); min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .js .road .stone { opacity: 1; transform: none; } .road__way i { transform: none; } }

/* ---------- the drive to the hills (v10): a pinned 3D road out of Gandhi Square ---------- */
.road__stage { display: flex; flex-direction: column; }
.road__head { order: -1; }
.drive__sky, .drive__hills, .drive__ground, .drive__lights, .drive__hud, .drive__scenes { display: none; }
.road:not(.is-live) .drive__world { display: contents; }
.road:not(.is-live) .drive__road, .road:not(.is-live) .drive__posts { display: none; }
@media (max-width: 900px) {
  .road:not(.is-live) .road__stones { grid-template-columns: repeat(3, minmax(0, 1fr)); width: auto; padding: 0; margin-inline: auto; row-gap: 20px; }
  .road:not(.is-live) .road__way { width: auto; }
}

.road.is-live { height: 520vh; padding: 0; background: var(--night); overflow: visible; }
.road.is-live .road__way { display: none; }
.road.is-live .road__stage { position: sticky; top: 0; display: block; height: 100svh; min-height: 560px; overflow: hidden; background: var(--g2, #2a3042); }
.road.is-live .drive__sky, .road.is-live .drive__hills, .road.is-live .drive__ground, .road.is-live .drive__world, .road.is-live .drive__lights, .road.is-live .drive__hud, .road.is-live .drive__scenes { display: block; }
.drive__sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky1) 0, var(--sky2) var(--hz)); }
.drive__sun { position: absolute; left: 64%; top: var(--hz); width: 46vmin; aspect-ratio: 1; margin: -23vmin 0 0 -23vmin; border-radius: 50%;
  background: radial-gradient(circle, #fff3d6 0 9%, #f6cf7e 13%, rgba(246, 199, 110, .35) 24%, rgba(246, 199, 110, 0) 62%);
  transform: translate3d(0, var(--sy, 0px), 0); opacity: var(--so, 1); will-change: transform; }
.drive__hills { position: absolute; left: calc(50% - max(65%, 560px)); width: max(130%, 1120px); transform-origin: 50% 100%; will-change: transform; }
.drive__hills path { fill: var(--hc); }
.drive__hills--far { top: calc(var(--hz) - 30vh); height: 30vh; --hc: var(--h1); transform: translate3d(var(--hx1, 0), 0, 0) scale(var(--hs1, 1)); }
.drive__hills--mid { top: calc(var(--hz) - 22vh); height: 22vh; --hc: var(--h2); transform: translate3d(var(--hx2, 0), 0, 0) scale(var(--hs2, 1)); }
.drive__hills--near { top: calc(var(--hz) - 13vh); height: 13vh; --hc: var(--h3); transform: translate3d(var(--hx3, 0), 0, 0) scale(var(--hs3, 1)); }
.drive__ground { position: absolute; left: 0; right: 0; top: calc(var(--hz) - 1px); bottom: 0; background: linear-gradient(180deg, var(--g1) 0, var(--g2) 100%); }
.drive__world { position: absolute; inset: 0; perspective: 900px; perspective-origin: 50% var(--hz); }
.drive__road {
  position: absolute; left: calc(50% - var(--rw) / 2); top: calc(var(--hz) + var(--G)); width: var(--rw); height: 9000px; overflow: hidden;
  transform-origin: 50% 0; transform: translate3d(0, 0, 600px) rotateX(-90deg);
  background:
    linear-gradient(180deg, transparent 35%, var(--sky2) 100%),
    linear-gradient(90deg, transparent 3.5%, var(--paint) 3.5% 4.6%, transparent 4.6% 95.4%, var(--paint) 95.4% 96.5%, transparent 96.5%),
    linear-gradient(90deg, transparent 17%, rgba(0,0,0,.14) 21% 29%, transparent 33% 67%, rgba(0,0,0,.14) 71% 79%, transparent 83%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px, rgba(0,0,0,.03) 9px 11px, transparent 11px 23px),
    var(--asph);
}
.drive__dash { position: absolute; left: calc(50% - .8%); width: 1.6%; top: 0; height: calc(100% + 320px); background: repeating-linear-gradient(180deg, var(--paint) 0 150px, transparent 150px 320px); transform: translate3d(0, var(--dy, 0px), 0); will-change: transform; }
.drive__posts, .road.is-live .road__stones { position: absolute; inset: 0; transform-style: preserve-3d; }
.drive__post { position: absolute; left: calc(50% - 5px); top: var(--hz); width: 10px; height: calc(var(--G) * .42); background: linear-gradient(180deg, #f4efe4 0 18%, #d9a441 18% 32%, #f4efe4 32% 100%); }
.road.is-live .road__stones { display: block; margin: 0; padding: 0; width: auto; }
.road.is-live .stone {
  --sw: calc(var(--G) * .95);
  position: absolute; left: calc(50% - var(--sw) / 2); top: var(--hz); width: var(--sw); height: calc(var(--sw) * 1.42);
  font-size: calc(var(--sw) / 9.5); opacity: 0; transition: none; border-color: rgba(0, 0, 0, .12); transform-origin: 50% 100%;
}
.road.is-live .stone__cap { padding-bottom: .8em; }
.road.is-live .stone__cap b { font-size: 3.4em; font-variant-numeric: tabular-nums; }
.road.is-live .stone__cap small { font-size: .9em; margin-top: .2em; }
.road.is-live .stone__name { font-size: calc(1.45em * var(--nm, 1)); padding: .6em .4em; gap: .3em; overflow-wrap: normal; }
.road.is-live .stone__name small { font-size: .62em; }
.road.is-live .stone--home .stone__cap .mark { width: 56%; }
.drive__lights { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; pointer-events: none; opacity: var(--lt, 0);
  background: radial-gradient(ellipse 34% 75% at 38% 100%, rgba(255, 228, 170, .32), transparent 70%), radial-gradient(ellipse 34% 75% at 62% 100%, rgba(255, 228, 170, .32), transparent 70%); }
.road.is-live .road__head { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 5vh); margin: 0 auto; opacity: var(--ho, 1); transform: translate3d(0, var(--hy, 0px), 0); color: var(--ink); }
.road.is-live .road__head p { color: var(--muted); }
.drive__hud { position: absolute; left: 0; right: 0; bottom: clamp(92px, 12vh, 128px); color: #fff; opacity: var(--uo, 0); }
.road.is-live .drive__hud { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 14px 32px; }
.drive__meter { display: flex; align-items: baseline; gap: 12px; }
.drive__meter b { font: italic 400 clamp(64px, 8.6vw, 136px)/.9 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.drive__meter span, .drive__next { font: 400 clamp(16px, 1.3vw, 19px)/1.3 var(--font-text); color: rgba(255, 255, 255, .78); }
.drive__next { justify-self: end; }
.drive__next { text-align: right; }
.drive__next span { display: block; margin-top: 4px; color: #fff; font: italic 400 clamp(30px, 3.4vw, 54px)/1.05 var(--font-display); letter-spacing: -0.02em; }
.drive__route { grid-column: 1 / -1; position: relative; height: 2px; background: rgba(255, 255, 255, .28); }
.drive__route i { position: absolute; left: var(--at); top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--night); border: 2px solid rgba(255, 255, 255, .7); }
.drive__route b { position: absolute; left: 0; top: 0; height: 2px; width: var(--rp, 0%); background: var(--gold); }
.drive__route b::after { content: ""; position: absolute; right: -7px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); }
@media (max-width: 760px) {
  .drive__hud { bottom: clamp(88px, 13vh, 120px); }
  .road.is-live .road__head { grid-template-columns: 1fr; }
  .road.is-live .road__head p { justify-self: start; }
  .drive__next span { font-size: 26px; }
  .drive__meter span { display: none; }
}

/* destination scenes: each stop rises on the horizon as the car pulls up to it */
.drive__scenes { position: absolute; inset: 0; pointer-events: none; }
.scene { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translate3d(0, 28px, 0) scale(.96); transform-origin: 50% var(--hz); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.scene.is-on { opacity: 1; transform: none; }
.scene svg { position: absolute; left: 50%; top: calc(var(--hz) - 30vh); width: min(860px, 96vw); height: 30vh; transform: translateX(-50%); filter: brightness(var(--sb, 1)) saturate(var(--sb, 1)); overflow: visible; }
.scene figcaption { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 3vh); text-align: center; color: var(--cap, var(--ink)); }
.scene figcaption b { display: block; font: italic 400 clamp(44px, 6.4vw, 104px)/.95 var(--font-display); letter-spacing: -0.035em; }
.scene figcaption span { display: block; margin-top: 10px; font: 500 clamp(14px, 1.2vw, 17px)/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.scene:not(.is-on) * { animation-play-state: paused !important; }
.sc-land { fill: var(--h3); }
.sc-water { fill: #b9d6dc; } .sc-wall { fill: #e4ddcd; } .sc-wall-s { fill: #c9c0ad; } .sc-rock { fill: #6b675d; } .sc-rock-d { fill: #4f4c45; }
.sc-flow { fill: none; stroke: #f2f8f8; stroke-linecap: round; stroke-dasharray: 16 12; animation: sc-flow .7s linear infinite; }
.sc-mist { fill: #fff; opacity: .55; transform-box: fill-box; transform-origin: center; animation: sc-mist 2.6s ease-in-out infinite; }
.sc-mist:nth-of-type(2n) { animation-delay: -1.3s; }
.sc-ripple { fill: none; stroke: #eef6f6; stroke-width: 2; opacity: .7; animation: sc-ripple 3s ease-in-out infinite; }
.sc-meadow1 { fill: #9bab66; } .sc-meadow2 { fill: #7a9150; }
.sc-pine { fill: #3e5a3b; transform-box: fill-box; transform-origin: 50% 100%; animation: sc-sway 3.4s ease-in-out infinite alternate; }
.sc-pine:nth-of-type(2n) { animation-delay: -1.7s; }
.sc-glider { animation: sc-glide 14s linear infinite; }
.sc-glider path { fill: none; stroke: #2a3042; stroke-width: 1.2; } .sc-glider .sc-wing { fill: #d9a441; stroke: none; }
.sc-tea { fill: #5d8a3c; } .sc-tea2 { fill: #4c7a30; } .sc-row { fill: none; stroke: #3c6524; stroke-width: 3; stroke-linecap: round; }
.sc-tree { stroke: #33442a; stroke-width: 3; } .sc-crown { fill: #3f5a32; }
.sc-cloud { fill: #fff; opacity: .85; animation: sc-drift 18s linear infinite; }
.sc-cloud + .sc-cloud { animation-duration: 26s; animation-delay: -9s; opacity: .7; }
@keyframes sc-flow { to { stroke-dashoffset: -28; } }
@keyframes sc-mist { 50% { transform: scale(1.25); opacity: .3; } }
@keyframes sc-ripple { 50% { transform: translateX(14px); opacity: .25; } }
@keyframes sc-sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@keyframes sc-glide { from { transform: translate(-120px, 30px); } to { transform: translate(740px, -20px); } }
@keyframes sc-drift { from { transform: translateX(-160px); } to { transform: translateX(760px); } }
@media (max-width: 760px) { .scene svg { height: 22vh; top: calc(var(--hz) - 22vh); } .scene figcaption { top: calc(var(--nav-h) + 2vh); } }

/* ---------- inside the palace (v11): a cinematic full-bleed stage ----------
   the frame grows from a card to the whole screen, each room sweeps in behind a slanted blade of gold light,
   the room beneath sinks back and softens, and titles rise letter by letter. Only while .is-live. */
.chapters__rail, .chapters__blade, .chapters__kicker { display: none; }
.chapters.is-live { background: var(--night); }
.chapters.is-live .chapters__stick { width: 100%; max-width: none; margin: 0; padding: 0; display: block; }
.chapters.is-live .chapters__frame { position: absolute; inset: 0; border-radius: 0; clip-path: inset(var(--fy, 0px) var(--fx, 0px) round var(--fr, 0px)); }
.chapters.is-live .chapter img { filter: blur(var(--bl, 0px)) saturate(var(--sat, 1)); }
/* a soft vignette so the type always reads */
.chapters.is-live .chapters__frame::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 17, 26, .6) 0, rgba(14, 17, 26, 0) 26%, rgba(14, 17, 26, 0) 48%, rgba(14, 17, 26, .82) 100%),
              linear-gradient(90deg, rgba(14, 17, 26, .35) 0, rgba(14, 17, 26, 0) 45%); }
.chapters.is-live .chapters__head { position: absolute; z-index: 4; left: var(--gut); right: var(--gut); top: calc(var(--nav-h) + 28px); margin: 0; color: #fff; opacity: var(--ho, 1); }
.chapters.is-live .chapters__head h2 { color: #fff; font-size: clamp(22px, 1.9vw, 30px); font-style: italic; letter-spacing: -0.01em; }
.chapters.is-live .chapters__count .of { color: rgba(255, 255, 255, .6); }
/* the blade: a hairline of warm light riding the edge of the incoming photograph */
.chapters.is-live .chapters__blade { display: block; position: absolute; z-index: 3; top: -20%; bottom: -20%; left: 0; width: 2px; pointer-events: none;
  background: linear-gradient(180deg, transparent, #f6d38a 30%, #fff4dc 50%, #f6d38a 70%, transparent);
  box-shadow: 0 0 24px 6px rgba(246, 199, 110, .45), 0 0 80px 20px rgba(246, 199, 110, .18);
  transform: translate3d(var(--bx, -10px), 0, 0) rotate(var(--ba, -20deg)); opacity: var(--bo, 0); }
/* caption: big italic title, letters rising */
.chapters.is-live .chapters__panel { left: var(--gut); bottom: clamp(48px, 9vh, 96px); width: min(760px, 62%); padding: 0; background: none; color: #fff; }
.chapters.is-live .chapters__kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font: 500 12px/1 var(--font-text); letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.chapters.is-live .chapters__kicker span { color: var(--gold); }
.chapters.is-live .chapters__kicker::after { content: ""; width: 56px; height: 1px; background: rgba(255, 255, 255, .4); order: 1; }
.chapters.is-live .chapters__panel h3 { font: italic 400 clamp(52px, 7.2vw, 128px)/.95 var(--font-display); letter-spacing: -0.035em; margin-bottom: 18px; color: #fff; overflow: hidden; padding-bottom: .06em; }
.chapters.is-live .chapters__panel h3 .c { display: inline-block; transform: translate3d(0, 0, 0); transition: transform 900ms cubic-bezier(.16, 1, .3, 1), opacity 600ms var(--ease); transition-delay: calc(var(--ci) * 28ms); }
.chapters.is-live .chapters__panel .txt.is-swap h3 .c { transform: translate3d(0, -110%, 0) rotate(-6deg); opacity: 0; transition-duration: 300ms; transition-delay: calc(var(--ci) * 10ms); }
.chapters.is-live .chapters__panel .txt.is-from h3 .c { transform: translate3d(0, 110%, 0) rotate(8deg); opacity: 0; transition: none; }
.chapters.is-live .chapters__panel .txt.is-swap h3, .chapters.is-live .chapters__panel .txt.is-from h3 { transform: none; opacity: 1; }
.chapters.is-live .chapters__panel p { color: rgba(255, 255, 255, .8); font-size: clamp(16px, 1.25vw, 19px); max-width: 30em; }
.chapters.is-live .chapters__panel .txt.is-swap p, .chapters.is-live .chapters__panel .txt.is-from p { filter: blur(6px); }
.chapters.is-live .chapters__bar { display: none; }
/* the rail: every room listed down the right edge, the current one lit, each a shortcut */
.chapters.is-live .chapters__rail { display: grid; gap: 4px; position: absolute; z-index: 4; right: var(--gut); bottom: clamp(120px, 15vh, 160px); list-style: none; margin: 0; padding: 0; width: 240px; }
.chapters__rail button { position: relative; display: grid; grid-template-columns: 32px 1fr; align-items: baseline; width: 100%; padding: 12px 0 14px; background: none; border: 0; color: rgba(255, 255, 255, .5); text-align: left; cursor: pointer; font: 400 15px/1.2 var(--font-text); transition: color 400ms var(--ease); }
.chapters__rail .n { font: 500 11px/1 var(--font-text); letter-spacing: .12em; }
.chapters__rail .t { font: italic 400 20px/1.1 var(--font-display); transition: transform 500ms var(--ease); }
.chapters__rail i { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .18); }
.chapters__rail i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
.chapters__rail button:hover, .chapters__rail button.is-on { color: #fff; }
.chapters__rail button.is-on .t { transform: translateX(8px); }
.chapters__rail button:focus-visible { outline-offset: 2px; }
@media (max-width: 1000px) { .chapters.is-live .chapters__rail { display: none; } .chapters.is-live .chapters__panel { width: auto; right: var(--gut); } }

/* ---------- contact (v12): the front desk ----------
   A dusk header with the desk's live clock and direct lines, then one joined object: the night desk card
   beside a quiet, grouped enquiry form, then the map. */
.mhead--desk h1 em { font-style: italic; color: #f3d699; }
.mhead--desk::after { background: linear-gradient(180deg, rgba(14,17,26,.45) 0%, rgba(14,17,26,0) 24%), linear-gradient(0deg, rgba(14,17,26,.86) 0%, rgba(14,17,26,.55) 38%, rgba(14,17,26,0) 72%); }
.mhead--desk .lead { max-width: 34em; }
.deskbar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; margin-top: clamp(28px, 4vh, 44px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .24); }
.deskbar__clock { display: flex; align-items: baseline; gap: 16px; margin: 0; color: rgba(255, 255, 255, .85); font-size: 15px; }
.deskbar__time { font: italic 400 clamp(44px, 4.6vw, 68px)/.9 var(--font-display); letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.deskbar__time i, .desk__clock i { font-style: normal; animation: conc-colon 2s steps(1) infinite; }
.deskbar__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.mhead--desk .btn--ghost { --b-ink: #fff; --b-line: rgba(255, 255, 255, .6); }
.mhead--desk .btn--ghost:hover { --b-bg: #fff; --b-ink: var(--night); --b-line: #fff; }
.mhead--desk .btn svg, .desk .btn svg { width: 18px; height: 18px; }

.desk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: calc(var(--r-img) + 6px); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.desk__side { position: relative; isolation: isolate; padding: clamp(32px, 4vw, 64px); background: var(--night); color: var(--night-ink); overflow: hidden; }
.desk__side::before { content: ""; position: absolute; z-index: -1; right: -18%; bottom: -14%; width: 78%; aspect-ratio: 640 / 582; background: url("../img/emblem-gold.webp") center / contain no-repeat; opacity: .06; transform: rotate(-12deg); }
.desk__in { position: sticky; top: calc(var(--nav-h) + 32px); display: flex; flex-direction: column; gap: 18px; }
.desk__emblem { width: 92px; height: auto; margin-bottom: 8px; }
.desk__h { font: 400 clamp(34px, 3.2vw, 50px)/1.02 var(--font-display); letter-spacing: -0.025em; color: var(--night-ink); }
.desk__h em, .desk__title em { font-style: italic; color: var(--gold); }
.desk__note { color: var(--night-muted); font-size: 16px; max-width: 26ch; }
.desk__list { margin: 18px 0 0; display: grid; }
.desk__list > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--night-line); }
.desk__list dt { font: 500 11px/1.9 var(--font-roman, "Cinzel", serif); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.desk__list dd { margin: 0; display: grid; gap: 6px; font-size: 17px; line-height: 1.5; }
.desk__list dd.num a { font: 400 clamp(22px, 1.9vw, 28px)/1.15 var(--font-display); letter-spacing: -0.01em; }
.desk__list a { color: var(--night-ink); text-decoration: none; width: fit-content; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size 600ms var(--ease), color 300ms var(--ease); }
.desk__list a:hover { color: var(--gold); background-size: 100% 1px; }
.desk__list address { font-style: normal; color: var(--night-ink); }
.desk__go { margin-top: 8px; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }

.desk__main { padding: clamp(32px, 4.4vw, 72px); background: var(--bg); }
.desk__title { font: 400 clamp(34px, 3.2vw, 50px)/1.02 var(--font-display); letter-spacing: -0.025em; }
.desk__sub { margin: 12px 0 clamp(28px, 3vw, 44px); color: var(--muted); font-size: 16px; }
.desk .form { display: grid; grid-template-columns: 1fr; gap: 0; }
.form__group { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin: 0; padding: 28px 0 34px; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.form__group legend { float: left; grid-column: 1 / -1; width: 100%; padding: 0; margin-bottom: 6px; font: italic 400 22px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.form__group legend + * { clear: both; }
/* quiet fields: a single rule underneath that warms to gold on focus */
.desk .field label { font: 500 12px/1.3 var(--font-text); letter-spacing: .04em; color: var(--muted); transition: color 300ms var(--ease); }
.desk .field:focus-within label { color: var(--accent); }
.desk .field input, .desk .field select, .desk .field textarea {
  min-height: 46px; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(42, 42, 38, .3); border-radius: 0; background-color: transparent;
  font-size: 17px; transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.desk .field select { background-position: right 2px center; padding-right: 28px; }
.desk .field textarea { min-height: 112px; }
.desk .field input:hover, .desk .field select:hover, .desk .field textarea:hover { border-color: var(--ink); }
.desk .field input:focus, .desk .field select:focus, .desk .field textarea:focus { border-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.desk .field [aria-invalid="true"] { border-color: #9b2c1f; box-shadow: 0 1px 0 0 #9b2c1f; }
.desk .field ::placeholder { color: rgba(42, 42, 38, .45); }
.desk .form__foot { padding-top: 28px; border-top: 1px solid var(--line); }
.desk-map .mapbox { border-radius: var(--r-img); }

/* arrival: the night card opens first, the form follows */
.js .desk__in > * { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease), transform 1000ms var(--ease); }
.js .desk.is-in .desk__in > * { opacity: 1; transform: none; }
.js .desk.is-in .desk__in > :nth-child(2) { transition-delay: 90ms; } .js .desk.is-in .desk__in > :nth-child(3) { transition-delay: 160ms; } .js .desk.is-in .desk__in > :nth-child(4) { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) { .js .desk__in > * { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .desk { grid-template-columns: 1fr; }
  .desk__main { order: -1; }
}
@media (max-width: 640px) {
  .form__group { grid-template-columns: 1fr; }
  .deskbar__acts .btn { flex: 1 1 auto; }
  .mhead--desk { height: auto; min-height: 100svh; }
}

/* ---------- tariff (v12): a price list you can play with ----------
   Choose single or double and the number of nights; every rate rolls to its new figure. */
.rates__bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.rates__bar h2 { max-width: 12em; }
.rates__bar h2 em { font-style: italic; color: var(--accent); }
.rates__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); min-width: 0; }
.seg label { position: relative; z-index: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 11px 24px; border-radius: 999px; font: 500 14px/1 var(--font-text); color: var(--muted); text-align: center; transition: color 400ms var(--ease); }
.seg input:checked + span { color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg__glide { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform 600ms var(--ease); }
.seg:has(input[value="double"]:checked) .seg__glide { transform: translateX(100%); }
.nights { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.nights button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font: 400 20px/1 var(--font-text); cursor: pointer; transition: background-color 300ms var(--ease); }
.nights button:hover { background: rgba(38, 38, 31, .08); }
.nights button:disabled { color: rgba(38, 38, 31, .3); cursor: default; background: transparent; }
.nights output { min-width: 92px; text-align: center; font: 500 14px/1 var(--font-text); }
.nights output b { font: italic 400 22px/1 var(--font-display); }

.rates__list { list-style: none; margin: 0; padding: 0; }
.rate { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: clamp(24px, 3.4vw, 56px); align-items: center; padding: clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.rate__ph { display: block; aspect-ratio: 4 / 3; }
.rate__ph img { transition: transform 1400ms var(--ease); }
.rate:hover .rate__ph img { transform: scale(1.05); }
.rate__name { font: 400 clamp(30px, 2.8vw, 44px)/1.04 var(--font-display); letter-spacing: -0.025em; }
.rate__name a { text-decoration: none; }
.rate__txt { margin: 14px 0 18px; color: var(--muted); max-width: 40ch; }
.rate__tags { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; color: var(--ink); }
.rate__tags li { position: relative; padding-left: 14px; }
.rate__tags li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.rate__price { display: grid; justify-items: end; text-align: right; gap: 4px; }
.rate__per { font: 500 12px/1.3 var(--font-text); letter-spacing: .04em; color: var(--muted); }
.rate__amt { display: flex; align-items: baseline; margin: 2px 0 0; font: italic 400 clamp(52px, 5vw, 80px)/1 var(--font-display); letter-spacing: -0.035em; color: var(--ink); }
.rate__rs { font-size: .38em; font-style: normal; letter-spacing: 0; margin-right: 6px; color: var(--muted); }
.rate__amt .roll { display: inline-block; overflow: hidden; padding-bottom: .05em; }
.roll__in { display: inline-block; transition: transform 700ms var(--ease), opacity 500ms var(--ease); }
.roll.is-out .roll__in { transform: translateY(-70%); opacity: 0; transition-duration: 220ms; }
.roll.is-in .roll__in { transform: translateY(70%); opacity: 0; transition: none; }
.rate__gst { font-size: 14px; color: var(--muted); }
.rate__both { margin-top: 10px; font-size: 13px; color: var(--muted); }
.rate__total { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.rate__total b { font: italic 400 24px/1 var(--font-display); color: var(--accent); margin: 0 2px; }
.rate__price .btn { margin-top: 18px; }
.js .rate { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 1100ms var(--ease); transition-delay: calc(var(--i) * 110ms); }
.js [data-rates].is-in .rate { opacity: 1; transform: none; }

.good { background: var(--night); color: var(--night-ink); }
.good__h { color: var(--night-ink); margin-bottom: clamp(32px, 4vw, 56px); }
.good__h em { font-style: italic; color: var(--gold); }
.good__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin: 0; }
.good__list > div { padding-top: 22px; border-top: 1px solid var(--night-line); display: grid; gap: 18px; align-content: start; }
.good__list dt { font: 500 11px/1.4 var(--font-roman, "Cinzel", serif); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.good__list dd { margin: 0; display: grid; gap: 6px; }
.good__list dd b { font: italic 400 clamp(40px, 3.6vw, 56px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--night-ink); font-weight: 400; }
.good__list dd span { color: var(--night-muted); font-size: 15px; max-width: 30ch; }
.good__cta { margin-top: clamp(40px, 5vw, 64px); }
.good .btn--ghost { --b-ink: var(--night-ink); --b-line: rgba(255, 255, 255, .5); }
.good .btn--ghost:hover { --b-bg: var(--night-ink); --b-ink: var(--night); --b-line: var(--night-ink); }

@media (max-width: 960px) {
  .rate { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rate__ph { grid-column: 1 / -1; }
  .rate__price { justify-items: start; text-align: left; }
}
@media (max-width: 640px) {
  .rate { grid-template-columns: 1fr; }
  .good__list { grid-template-columns: 1fr; gap: 28px; }
  .rates__ctrl { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .js .rate { opacity: 1; transform: none; } }

/* ---------- facilities (v12): a stay, in five parts ----------
   A held photograph on the left follows the stay as you read: each stage unveils its own picture,
   the step list underneath lights the stage you are in. Every item says whether it is included. */
.stay .head h2 em { font-style: italic; color: var(--accent); }
.stay__key { display: flex; gap: 10px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font: 500 12px/1 var(--font-text); letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.tag--inc { border-color: rgba(138, 106, 44, .55); color: var(--accent); background: rgba(217, 164, 65, .1); }
.stay__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.stay__stage { position: sticky; top: calc(var(--nav-h) + 28px); display: grid; gap: 18px; }
.stay__frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--nav-h) - 120px); width: 100%; overflow: hidden; border-radius: var(--r-img); background: var(--surface); }
.stay__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.16); transition: clip-path 1100ms var(--ease), transform 1700ms var(--ease), filter 1100ms var(--ease); }
.stay__frame img.is-on { z-index: 2; clip-path: inset(0); transform: scale(1); }
.stay__frame img.is-out { z-index: 1; clip-path: inset(0); transform: scale(1.06); filter: brightness(.55); }
.stay__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stay__steps button { position: relative; width: 100%; padding: 14px 0 0; border: 0; background: none; text-align: left; cursor: pointer; font: 500 13px/1.25 var(--font-text); color: var(--muted); transition: color 400ms var(--ease); }
.stay__steps button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.stay__steps button::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 800ms var(--ease); }
.stay__steps li.is-on button { color: var(--ink); }
.stay__steps li.is-on button::after, .stay__steps li.is-past button::after { transform: scaleX(1); }
.stay__steps button:hover { color: var(--ink); }

.stay__ch { min-height: 78svh; padding: 8vh 0; display: flex; flex-direction: column; justify-content: center; }
.stay__ch:first-child { padding-top: 0; min-height: 70svh; justify-content: flex-start; }
.stay__mph { display: none; }
.stay__t { font: italic 400 clamp(56px, 6.4vw, 104px)/.92 var(--font-display); letter-spacing: -0.04em; color: var(--muted); transition: color 600ms var(--ease); }
.stay__ch.is-on .stay__t { color: var(--ink); }
.stay__lead { margin: 18px 0 30px; font: 400 clamp(20px, 1.7vw, 26px)/1.35 var(--font-display); letter-spacing: -0.01em; color: var(--ink); max-width: 26ch; }
.stay__items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stay__items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.stay__items b { display: block; font: 400 clamp(20px, 1.6vw, 24px)/1.2 var(--font-display); letter-spacing: -0.01em; font-weight: 400; }
.stay__items p { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 46ch; }
.js .stay__items li { opacity: .35; transform: translateY(10px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.js .stay__ch.is-on .stay__items li, .js .stay__ch.was-on .stay__items li { opacity: 1; transform: none; }
.js .stay__ch.is-on .stay__items li:nth-child(2) { transition-delay: 70ms; } .js .stay__ch.is-on .stay__items li:nth-child(3) { transition-delay: 140ms; } .js .stay__ch.is-on .stay__items li:nth-child(4) { transition-delay: 210ms; }
@media (max-width: 900px) {
  .stay__grid { grid-template-columns: 1fr; }
  .stay__stage { display: none; }
  .stay__ch, .stay__ch:first-child { min-height: 0; padding: 0 0 56px; }
  .stay__mph { display: block; aspect-ratio: 4 / 3; margin-bottom: 24px; }
  .stay__t { color: var(--ink); font-size: clamp(48px, 13vw, 72px); }
  .js .stay__items li { opacity: 1; transform: none; }
}
@media (max-width: 520px) { .stay__items li { grid-template-columns: 1fr; gap: 10px; } .stay__items .tag { justify-self: start; } }
@media (prefers-reduced-motion: reduce) { .js .stay__items li { opacity: 1; transform: none; } .stay__frame img, .stay__t { transition: none; } }

/* ---------- gallery (v14): a curved carousel, modelled on a cylinder seen from inside ----------
   Lengths are in ring units (--u px each, set by site.js from the width). Cards on the far sides come toward you and grow;
   hovering a centre card stops the ring and springs it forward. site.js writes every card transform. */
.galsec { padding-bottom: clamp(24px, 3vw, 48px); overflow-x: clip; }
.galbar { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; position: relative; z-index: 2; }
.galbar h2 em { font-style: italic; color: var(--accent); }
.galbar svg { width: 14px; height: 14px; fill: currentColor; }
[data-cr-toggle] .i-play, [data-cr-toggle][aria-pressed="true"] .i-pause { display: none; }
[data-cr-toggle][aria-pressed="true"] .i-play { display: block; }
.cr { --u: 2.4px; --cy: calc(var(--u) * 92); position: relative; height: calc(var(--u) * 214); margin-top: calc(var(--u) * 12); perspective: calc(var(--u) * 376.41); perspective-origin: 50% var(--cy); transform-style: preserve-3d; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.cr.is-drag { cursor: grabbing; }
.cr::before { content: ""; position: absolute; left: 8%; right: 8%; top: calc(var(--cy) + var(--u) * 48); height: calc(var(--u) * 62); border-radius: 50%; background: radial-gradient(closest-side, rgba(38, 38, 31, .16), rgba(38, 38, 31, .06) 60%, transparent); pointer-events: none; }
.cr__card { position: absolute; left: 50%; top: var(--cy); width: calc(var(--u) * 75.97); height: calc(var(--u) * 113.8); margin: calc(var(--u) * -56.9) 0 0 calc(var(--u) * -37.985); transform-style: preserve-3d; visibility: hidden; }
.cr__body { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 100%; }
.cr__face { position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--u) * 4); background: var(--surface); backface-visibility: hidden; box-shadow: 0 calc(var(--u) * 6) calc(var(--u) * 10) rgba(14, 17, 26, .16), 0 var(--u) calc(var(--u) * 2.5) rgba(14, 17, 26, .12); -webkit-box-reflect: below calc(var(--u) * 4) linear-gradient(to bottom, transparent 68%, rgba(0, 0, 0, .15)); transition: box-shadow 500ms var(--ease); }
.cr__face::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 calc(var(--u) * .5) rgba(255, 255, 255, .28); background: linear-gradient(170deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 28%, transparent 45%); pointer-events: none; }
.cr__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.cr__shade { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; }
.cr__shade--l { background: linear-gradient(90deg, rgba(14, 17, 26, .85), rgba(14, 17, 26, .25) 55%, rgba(14, 17, 26, .05)); }
.cr__shade--r { background: linear-gradient(270deg, rgba(14, 17, 26, .85), rgba(14, 17, 26, .25) 55%, rgba(14, 17, 26, .05)); }
.cr__n { position: absolute; left: calc(var(--u) * 6); bottom: calc(var(--u) * 6); z-index: 2; padding: calc(var(--u) * 1.6) calc(var(--u) * 3.2); border-radius: 999px; background: rgba(14, 17, 26, .55); backdrop-filter: blur(6px); color: #fff; font: 500 calc(var(--u) * 3.6)/1 var(--font-roman, "Cinzel", serif); letter-spacing: .2em; opacity: 0; transform: translateY(6px); transition: opacity 250ms ease-in, transform 180ms ease-in; }
.cr__card.is-focus .cr__n { opacity: 1; transform: none; transition: opacity 350ms ease-out 80ms, transform 500ms var(--ease) 180ms; }
.cr__card.is-focus .cr__face { -webkit-box-reflect: initial; box-shadow: 0 calc(var(--u) * 16) calc(var(--u) * 30) rgba(14, 17, 26, .34), 0 calc(var(--u) * 4) calc(var(--u) * 8) rgba(14, 17, 26, .22); }
/* first arrival: cards rise and tip up into the ring, nearest the centre first */
.js .cr__body { opacity: 0; transform: translateY(calc(var(--u) * 112)) rotateX(-40deg) scale(.84); transition: transform 1.3s cubic-bezier(.16, 1, .3, 1), opacity 1.3s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--dl, 0s); }
.js .cr.is-in .cr__body { opacity: 1; transform: none; }
.cr__hint { width: fit-content; margin: calc(var(--u) * 6) auto 0; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font: 500 11px/1 var(--font-roman, "Cinzel", serif); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); transition: opacity 300ms; }
.cr.has-focus + .cr__hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .js .cr__body { opacity: 1; transform: none; transition: none; } }

/* lightbox: a dark room with a strip of every picture underneath */
.lb { grid-template-rows: auto 1fr auto; background: rgba(14, 17, 26, .94); backdrop-filter: blur(10px); }
.lb__stage img, .lb__stage video { border-radius: calc(var(--r-img) - 6px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.lb__cap { font: italic 400 clamp(20px, 1.8vw, 26px)/1.3 var(--font-display); color: var(--night-ink); min-height: 0; padding: 18px var(--gut) 12px; }


/* ---------- phone polish ---------- */
html { -webkit-tap-highlight-color: transparent; }
.rate__amt .roll { padding-right: .12em; } /* italic last digit leans past the clip box */
.deskbar__time { white-space: nowrap; }
.btn[data-magnetic] { transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), translate 600ms cubic-bezier(.2, .9, .3, 1.3), transform 120ms var(--ease); }
@media (max-width: 640px) {
  .foot__name { font-size: clamp(24px, 8.4vw, 40px); }
  .foot__col { gap: 2px; }
  .foot__links { row-gap: 0; }
  .foot__col h3 { margin-bottom: 6px; }
  .foot__col > a, .foot__links a, .foot address + a { display: inline-block; padding-block: 8px; } /* 40px+ tap targets */
  .desk__list > div { grid-template-columns: 1fr; gap: 8px; }
  .desk__list dd.num { gap: 14px; }
}
@media (hover: none) {
  a.zoom:active img, a:active .zoom img { transform: scale(1.03); transition-duration: 200ms; }
  .link:active, .foot a:active { opacity: .6; }
}
/* phone hero: content sits in the flow, so on short screens the hero grows instead of sliding under the logo */
@media (max-width: 760px) {
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__inner { position: relative; inset: auto; padding-top: calc(var(--nav-h) + 32px); }
}
@media (max-width: 760px) and (max-height: 760px) {
  .hero .seal { display: none; }
  .hero .lead { margin-top: 16px; }
  .hero .btn-row { margin-top: 24px; }
  .hero__grid { row-gap: 20px; }
}
