/* Layout concept: one long scroll that alternates mist-paper sections with deep teal ink bands;
   brass hotel key tags carry the numbers (branch no., nightly price). Single light theme by choice.
   Phone first: the bottom action bar, compact hero search and photo-first branch page are the main view. */

/* Fonts are served from this site (Latin only), no Google Fonts request. */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --paper: #eef1ec;
  --paper-2: #e3e9e2;
  --card: #f8faf6;
  --ink: #0f2b2c;
  --ink-2: #183d3e;
  --text: #132828;
  --muted: #586b69;
  --faint: #9db0ab;
  --line: #cbd6cf;
  --brass: #b4843c;
  --brass-2: #dcbc82;
  --brass-ink: #855e22;
  --on-ink: #eef1ec;
  --on-ink-muted: #a9bdb8;
  --wa: #189d4f;
  --danger: #b4233c;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-accent: "Instrument Serif", Georgia, "Times New Roman", serif;

  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .8, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --nav-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16.5px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 650; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fit { font-size: 13.5px; color: var(--brass-ink); background: rgba(180, 132, 60, .1); padding: 8px 12px; border-radius: 12px; }
:focus-visible { outline: 2.5px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- type ---------- */
.eyebrow { font: 600 12.5px/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-ink); }
.eyebrow.on-ink { color: var(--brass-2); }
.h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: .98; letter-spacing: -0.035em; font-variation-settings: "opsz" 96; }
.h2 em, .hero-title em, .cta-title em, .bv-title em, .sheet h2 em {
  font-family: var(--f-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
}
.h2 em { color: var(--brass-ink); }
.sec-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-sub { color: var(--muted); font-size: 17.5px; max-width: 58ch; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--on-ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15.5px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .3s, box-shadow .35s var(--ease), color .3s;
  isolation: isolate; overflow: hidden;
}
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(15, 43, 44, .5); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-ink { --bg: var(--ink); --fg: var(--on-ink); }
.btn-brass { --bg: var(--brass-2); --fg: var(--ink); }
.btn-wa { --bg: var(--wa); --fg: #fff; }
.btn-wa:hover { box-shadow: 0 10px 24px -10px rgba(24, 157, 79, .7); }
.btn-line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost-light { --bg: transparent; --fg: var(--on-ink); box-shadow: inset 0 0 0 1.5px rgba(238, 241, 236, .4); }
.btn-ghost-light:hover { box-shadow: inset 0 0 0 1.5px var(--on-ink); }

.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform .35s var(--ease), background-color .25s, color .25s, box-shadow .25s;
}
.icon-btn:hover { transform: translateY(-2px) rotate(-6deg); background: var(--ink); color: var(--on-ink); box-shadow: none; }
.icon-btn.wa:hover { background: var(--wa); }
.icon-btn .ic { width: 21px; height: 21px; }

/* ---------- key tag (signature element) ---------- */
.tag {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 70px; padding: 26px 12px 12px; gap: 1px;
  background: linear-gradient(165deg, #e8cd98 0%, var(--brass-2) 35%, var(--brass) 100%);
  color: var(--ink); border-radius: 12px 12px 20px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 10px 22px -8px rgba(15, 43, 44, .45);
  transform-origin: 50% 11px; font-variant-numeric: tabular-nums;
}
.tag::before {
  content: ""; position: absolute; top: 8px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}
.tag small { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .78; line-height: 1.2; }
.tag b { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.05; letter-spacing: -0.02em; }
@keyframes swing { 0% { rotate: 0deg; } 20% { rotate: 9deg; } 45% { rotate: -6deg; } 65% { rotate: 3deg; } 85% { rotate: -1deg; } 100% { rotate: 0deg; } }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-tag {
  display: inline-block; width: 22px; height: 30px; border-radius: 6px 6px 10px 10px; position: relative;
  background: linear-gradient(165deg, #e8cd98, var(--brass));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  transform-origin: 50% 6px; transition: rotate .6s var(--ease);
}
.logo-tag::before { content: ""; position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ink); }
.logo:hover .logo-tag { animation: swing 1.1s var(--ease); }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { font: 700 22px/1 var(--f-display); letter-spacing: -0.03em; }
.logo-word small { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; opacity: .75; margin-top: 3px; }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--brass); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--on-ink);
  transition: transform .5s var(--ease), background-color .4s, color .4s, box-shadow .4s;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--nav-h); }
.nav.solid { background: rgba(238, 241, 236, .9); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.nav.hide { transform: translateY(-105%); }
.nav-links { display: none; gap: 34px; font-weight: 500; font-size: 15px; }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: none; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.nav .btn-sm { display: none; }
.burger { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.burger .ic { width: 22px; height: 22px; }
@media (min-width: 640px) { .nav .btn-sm { display: inline-flex; } }
@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .burger { display: none; }
}
@media (min-width: 1180px) { .nav-phone { display: inline-flex; } }

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 70; background: var(--ink); color: var(--on-ink);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: menuIn .55s var(--ease-io) both;
}
@keyframes menuIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; padding-block: 18px 32px; }
.menu-close { align-self: flex-end; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(238, 241, 236, .35); }
.menu-links { display: grid; gap: 4px; margin-top: 7vh; }
.menu-links a { font: 650 clamp(40px, 11vw, 64px)/1.08 var(--f-display); letter-spacing: -0.035em; animation: rise .8s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 150ms); }
.menu-foot { margin-top: auto; display: grid; gap: 6px; }
.menu-phone { font: 600 24px/1.2 var(--f-display); }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--on-ink); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 2.4s var(--ease) both; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 32, 33, .72) 0%, rgba(10, 32, 33, .25) 34%, rgba(10, 32, 33, .55) 70%, rgba(10, 32, 33, .92) 100%),
    linear-gradient(90deg, rgba(10, 32, 33, .55), rgba(10, 32, 33, 0) 65%);
}
@keyframes heroZoom { from { transform: scale(1.14); filter: saturate(.6); } to { transform: scale(1); filter: saturate(1); } }
.hero-inner { min-height: clamp(620px, 92svh, 940px); display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; padding-block: calc(var(--nav-h) + 48px) clamp(28px, 5vw, 56px); }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; animation: fadeUp .9s var(--ease) .1s both; }
.live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(238, 241, 236, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.hero-title { font-size: clamp(46px, min(9.4vw, 14.5vh), 128px); line-height: .9; letter-spacing: -0.045em; font-weight: 650; font-variation-settings: "opsz" 96; max-width: 12ch; }
.hero-title em { color: var(--brass-2); padding-right: .04em; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; animation: rise 1.15s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 180ms); }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-sub { max-width: 46ch; font-size: clamp(17px, 1.6vw, 19.5px); color: rgba(238, 241, 236, .86); animation: fadeUp 1s var(--ease) .5s both; }

/* finder */
.finder {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px;
  padding: 12px; border-radius: 26px; background: var(--card); color: var(--text);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  animation: fadeUp 1s var(--ease) .65s both;
}
.finder .field { min-width: 0; padding: 10px 14px; border-radius: 16px; background: var(--paper); }
.finder .field:first-child { grid-column: 1 / -1; }
.finder-go { grid-column: 1 / -1; min-height: 56px; }
@media (min-width: 900px) {
  .finder { grid-template-columns: 1.3fr 1.1fr 1fr .9fr auto; align-items: stretch; max-width: 1060px; border-radius: 999px; padding: 10px; }
  .finder .field { background: transparent; border-radius: 0; padding: 6px 18px; border-left: 1px solid var(--line); }
  .finder .field:first-child { grid-column: auto; border-left: 0; padding-left: 26px; }
  .finder-go { grid-column: auto; min-height: 64px; padding: 0 30px; }
}

/* fields */
.field { display: grid; gap: 4px; align-content: start; }
.field label, .label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; border: 0; background: transparent; padding: 2px 0; font-size: 16.5px; font-weight: 500; color: var(--text); outline: none;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 20px; cursor: pointer; }
.field input[type="date"] { cursor: pointer; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .2s, color .2s, box-shadow .2s; }
.stepper button:hover { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.stepper .ic { width: 15px; height: 15px; }
.stepper output { min-width: 26px; text-align: center; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--on-ink); padding-block: 22px 26px; border-top: 1px solid rgba(238, 241, 236, .08); }
.marquee-track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; font: 650 clamp(38px, 6vw, 84px)/1 var(--f-display); letter-spacing: -0.04em; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px rgba(238, 241, 236, .55); }
.marquee-track i { display: inline-block; width: .32em; height: .44em; border-radius: .08em .08em .14em .14em; background: linear-gradient(165deg, #e8cd98, var(--brass)); position: relative; }
.marquee-track i::before { content: ""; position: absolute; top: .06em; left: 50%; width: .08em; height: .08em; margin-left: -.04em; border-radius: 50%; background: var(--ink); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- intro ---------- */
.intro { padding-block: clamp(80px, 11vw, 150px); }
.intro-grid { display: grid; gap: 56px; }
.intro-text { display: grid; gap: 22px; }
.say { font: 600 clamp(27px, 3.6vw, 48px)/1.16 var(--f-display); letter-spacing: -0.03em; max-width: 26ch; color: var(--text); }
.say .w { color: var(--faint); transition: color .35s; }
.say .w.on { color: var(--text); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.stats div { padding: 22px 0 22px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.stats div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.stats div:nth-child(even) { padding-left: 20px; }
.stats dt { font-size: 13.5px; color: var(--muted); order: 2; }
.stats dd { margin: 0; font: 650 clamp(34px, 4vw, 52px)/1 var(--f-display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) {
  .intro-grid { grid-template-columns: 1.5fr 1fr; align-items: end; gap: 80px; }
}

/* ---------- branches ---------- */
.branches { position: relative; background: var(--paper-2); padding-block: clamp(70px, 9vw, 120px); }
.branches-head { display: grid; gap: 18px; margin-bottom: 34px; }
.branches-aside { display: grid; gap: 18px; color: var(--muted); max-width: 40ch; }
.pin-progress { display: none; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.pin-progress span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--bp, 0)); }
.track-wrap { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track-wrap::-webkit-scrollbar { display: none; }
.track { display: flex; gap: 18px; width: max-content; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-top: 22px; padding-bottom: 8px; }
.bcard { position: relative; display: flex; flex-direction: column; width: min(78vw, 360px); scroll-snap-align: center; color: var(--text); }
.bcard-media { position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 4.6; max-width: 100%; background: var(--ink-2); }
.bcard-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.1s var(--ease), filter .6s; }
.bcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 32, 33, 0) 45%, rgba(10, 32, 33, .78)); }
.bcard-over { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: var(--on-ink); display: grid; gap: 4px; }
.bcard { container-type: inline-size; }
/* --len = letters in the branch name (set by script), so long names like Mohammadpur shrink instead of breaking */
.bcard-over h3 { font-size: 30px; font-size: clamp(21px, calc(118cqi / var(--len, 9)), 42px); letter-spacing: -0.035em; overflow-wrap: normal; white-space: nowrap; }
.bcard-over p { font-size: 14.5px; color: rgba(238, 241, 236, .85); line-height: 1.45; }
.bcard .tag { position: absolute; top: -14px; right: 22px; z-index: 2; }
.bcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px 0; }
.bcard-price { font-size: 14px; color: var(--muted); }
.bcard-price b { display: block; font: 650 21px/1.2 var(--f-display); color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bcard-go { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--on-ink); transition: transform .5s var(--ease), background-color .3s; }
.bcard:hover .bcard-media img { transform: scale(1.12); }
.bcard:hover .tag { animation: swing 1.2s var(--ease); }
.bcard:hover .bcard-go { transform: rotate(-45deg); background: var(--brass); }
@media (min-width: 1000px) {
  .branches-head { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .branches-aside { justify-self: end; }
  .bcard { width: 380px; }
}
/* pinned horizontal scroll (desktop, tall screens, motion allowed) */
.branches.pin { padding-block: 0; height: var(--pin-h, auto); }
.branches.pin .pin-inner { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: calc(var(--nav-h) - 10px); }
.branches.pin .track-wrap { overflow: visible; scroll-snap-type: none; }
.branches.pin .track { transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.branches.pin .bcard { width: calc(min(46vh, 470px) * .87); }
.branches.pin .h2 { font-size: clamp(36px, min(5.4vw, 9.5vh), 72px); }
.branches.pin .branches-head { margin-bottom: 18px; }
.branches.pin .pin-progress { display: block; }

/* ---------- rooms stack ---------- */
.rooms { padding-block: clamp(80px, 10vw, 140px) clamp(60px, 8vw, 110px); }
.stack { display: grid; gap: 22px; }
.scard {
  --s: 1; --dim: 0;
  display: grid; overflow: hidden; border-radius: 30px; background: var(--card);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(15, 43, 44, .35);
  transform: scale(var(--s)); transform-origin: 50% 0;
  position: relative;
}
.scard::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: var(--dim); pointer-events: none; border-radius: inherit; }
.scard-media { position: relative; min-height: 240px; max-width: 100%; overflow: hidden; }
.scard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scard-media .tag { position: absolute; left: 22px; top: 20px; }
.scard-body { display: grid; gap: 16px; padding: 26px 22px 24px; align-content: start; min-width: 0; }
.scard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.scard h3 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.035em; }
.scard-n { font: italic 400 20px/1 var(--f-accent); color: var(--brass-ink); }
.specs { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14.5px; }
.specs li { display: inline-flex; align-items: center; gap: 7px; }
.specs .ic { width: 18px; height: 18px; color: var(--brass-ink); }
.scard-blurb { color: var(--muted); max-width: 52ch; }
.rate-wrap { overflow-x: auto; max-width: 100%; }
.rate { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.rate caption { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.rate th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.rate td { padding: 0; border-bottom: 1px solid var(--line); }
.rate td:not(:first-child), .rate th:not(:first-child) { text-align: right; padding-right: 10px; white-space: nowrap; }
.rate td:last-child, .rate th:last-child { padding-right: 0; width: 40px; }
.rate tr { transition: background-color .2s; }
.rate tbody tr:hover { background: var(--paper); }
.rate .rb { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 8px 9px 0; font-weight: 600; text-align: left; }
.rate .go { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink); transition: background-color .2s, color .2s, transform .3s var(--ease); }
.rate .go .ic { width: 16px; height: 16px; }
.rate tbody tr:hover .go { background: var(--ink); color: var(--on-ink); transform: translateX(2px); }
.rate .na { color: var(--faint); }
@media (min-width: 860px) {
  .scard { grid-template-columns: 1fr 1.08fr; min-height: 520px; }
  .scard-media { min-height: 100%; }
  .scard-body { padding: 36px 38px 32px; }
}
@media (min-width: 960px) and (min-height: 560px) {
  .stack { gap: 48px; }
  .scard { position: sticky; top: calc(var(--nav-h) + 12px + var(--i) * 12px); min-height: 0; }
  .scard-body { padding: 28px 36px 24px; gap: 12px; }
  .scard h3 { font-size: clamp(32px, 3.2vw, 44px); }
  .rate .rb { padding: 7px 8px 7px 0; }
  .rate .go { width: 28px; height: 28px; }
}

/* ---------- amenities ---------- */
.amen { background: var(--ink); color: var(--on-ink); padding-block: clamp(80px, 10vw, 140px); }
.amen .eyebrow { color: var(--brass-2); }
.amen .h2 em { color: var(--brass-2); }
.amen-grid { display: grid; gap: 48px; }
.amen-side { display: grid; gap: 16px; align-content: start; }
.amen-photos { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; margin-top: 18px; align-items: start; }
.ph { margin: 0; overflow: hidden; border-radius: 20px; }
.ph img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.ph-b { margin-top: 44px; }
.amen-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.amen-list li { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 22px 0; border-top: 1px solid rgba(238, 241, 236, .14); }
.amen-list .ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(220, 188, 130, .12); color: var(--brass-2); transition: transform .5s var(--ease), background-color .3s, color .3s; }
.amen-list li:hover .ico { transform: rotate(-12deg) scale(1.06); background: var(--brass-2); color: var(--ink); }
.amen-list h3 { font-size: 20px; letter-spacing: -0.015em; align-self: end; }
.amen-list p { color: var(--on-ink-muted); font-size: 15px; }
@media (min-width: 640px) { .amen-list { grid-template-columns: 1fr 1fr; column-gap: 36px; } }
@media (min-width: 1000px) {
  .amen-grid { grid-template-columns: 1fr 1.15fr; gap: 80px; }
  .amen-side { position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; }
}

/* ---------- how ---------- */
.how { padding-block: clamp(80px, 10vw, 140px) clamp(40px, 6vw, 80px); }
.steps { display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 4px 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.step-n { grid-row: span 2; font: italic 400 clamp(64px, 7vw, 104px)/.8 var(--f-accent); color: var(--brass); min-width: .7em; }
.steps h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; align-self: end; }
.steps p { color: var(--muted); max-width: 40ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .steps li { grid-template-columns: 1fr; padding-top: 30px; }
  .step-n { grid-row: auto; margin-bottom: 14px; }
}

/* ---------- faq ---------- */
.faq { padding-block: clamp(60px, 8vw, 110px); }
.faq-grid { display: grid; gap: 30px; }
.faq-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa-h { font: inherit; letter-spacing: normal; }
.qa-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; text-align: left; font: 600 clamp(18px, 1.8vw, 21px)/1.3 var(--f-display); letter-spacing: -0.015em; }
.qa-q:hover > span:first-child { color: var(--brass-ink); }
.qa-ic { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .3s, transform .5s var(--ease); }
.qa-ic::before, .qa-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -.9px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease); }
.qa-ic::after { transform: rotate(90deg); }
.qa.open .qa-ic { background: var(--ink); color: var(--on-ink); box-shadow: none; transform: rotate(180deg); }
.qa.open .qa-ic::after { transform: rotate(0deg); }
.qa-a { overflow: hidden; display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s var(--ease), visibility 0s .5s; }
.qa.open .qa-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s var(--ease), visibility 0s 0s; }
.qa-a > div { min-height: 0; }
.qa-a p { padding: 0 52px 24px 0; color: var(--muted); max-width: 64ch; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: 1fr 1.5fr; gap: 80px; } .faq-head { position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; } }

/* ---------- contact ---------- */
.contact { padding-block: clamp(60px, 8vw, 110px) clamp(80px, 10vw, 140px); background: var(--paper-2); }
.clist { border-top: 1px solid var(--line); }
.crow { display: grid; gap: 14px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: center; }
.crow h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; transition: transform .5s var(--ease); }
.crow h3 a:hover { color: var(--brass-ink); }
.crow:hover h3 { transform: translateX(6px); }
.crow-addr { display: grid; gap: 2px; color: var(--muted); font-size: 15px; min-width: 0; }
.crow-phone { font: 600 18px/1.3 var(--f-display); font-variant-numeric: tabular-nums; user-select: all; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 1000px) {
  .crow { grid-template-columns: 1fr 1.3fr .9fr auto; gap: 30px; }
}

/* ---------- cta ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--on-ink); }
.cta-media { position: absolute; inset: -12% 0; z-index: -1; transform: translate3d(0, var(--cy, 0px), 0); will-change: transform; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 43, 44, .95), rgba(15, 43, 44, .4)); }
.cta-inner { display: grid; gap: 26px; padding-block: clamp(90px, 13vw, 180px); }
.cta-title { font-size: clamp(46px, 7.6vw, 116px); line-height: .92; letter-spacing: -0.045em; max-width: 11ch; }
.cta-title em { color: var(--brass-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */
.foot { background: #0a2021; color: var(--on-ink-muted); padding-block: 70px 28px; font-size: 15px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 14px; color: var(--on-ink); }
.foot-brand p { color: var(--on-ink-muted); }
.foot h4 { font: 600 12px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 16px; }
.foot ul { display: grid; gap: 8px; }
.foot a:hover { color: var(--on-ink); }
.logo-light { color: var(--on-ink); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 56px; padding-top: 22px; padding-right: calc(var(--gutter-r) + 70px); border-top: 1px solid rgba(238, 241, 236, .1); font-size: 13.5px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1.3fr 1fr; } .foot-brand { grid-column: auto; align-content: start; } }

/* ---------- FAB ---------- */
.fab { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(24, 157, 79, .8); transition: transform .4s var(--ease); }
.fab-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(24, 157, 79, .5); animation: ring 2.8s 2s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(24, 157, 79, .45); } 70%, 100% { box-shadow: 0 0 0 16px rgba(24, 157, 79, 0); } }
.fab-btn:hover { transform: scale(1.07) rotate(-8deg); }
.fab-btn .ic { position: absolute; width: 28px; height: 28px; transition: transform .45s var(--ease), opacity .3s; }
.fab-btn .ic-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.fab-btn[aria-expanded="true"] .ic-wa { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab-btn[aria-expanded="true"] .ic-x { opacity: 1; transform: none; }
.fab-panel { width: min(300px, calc(100vw - 36px)); background: var(--card); border-radius: 22px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(15, 43, 44, .45), 0 0 0 1px var(--line); transform-origin: 100% 100%; animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.94); } }
.fab-title { font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 4px 6px 10px; }
.fab-panel a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 10px; border-radius: 12px; font-weight: 600; transition: background-color .2s; }
.fab-panel a:hover { background: var(--paper); }
.fab-panel a .ic { color: var(--wa); }
.fab-panel small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- branch view ---------- */
.bv-hero { padding-block: calc(var(--nav-h) + 30px) 40px; }
.bv-hero .back { margin-bottom: 14px; }
.bv-grid { display: grid; gap: 30px; }
.bv-badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border-radius: 999px; background: rgba(15, 43, 44, .72); color: var(--on-ink); font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bv-badge .ic { width: 16px; height: 16px; color: var(--brass-2); }
.sm-only { display: none; }
.bv-text { display: grid; gap: 16px; align-content: start; min-width: 0; }
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; justify-self: start; padding: 8px 14px 8px 10px; margin-left: -10px; border-radius: 999px; transition: background-color .2s; }
.back:hover { background: var(--paper-2); }
.back .ic { transition: transform .35s var(--ease); }
.back:hover .ic { transform: translateX(-3px); }
.bv-text { container-type: inline-size; }
/* long branch names (Mohammadpur) shrink to fit the column instead of running into the photo */
.bv-title { font-size: clamp(54px, 9vw, 128px); font-size: clamp(44px, min(9vw, calc(180cqi / var(--len, 8))), 128px); line-height: .9; letter-spacing: -0.045em; }
.bv-title em { color: var(--brass-ink); }
.bv-addr { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.bv-addr .ic { color: var(--brass-ink); margin-top: 3px; }
.bv-line { color: var(--muted); max-width: 44ch; }
.bv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.bv-media { position: relative; margin: 0; overflow: hidden; border-radius: 26px; aspect-ratio: 4 / 3.3; max-width: 100%; }
.bv-media img { width: 100%; height: 100%; object-fit: cover; }
.bv-media .tag { position: absolute; right: 22px; top: 0; border-top-left-radius: 0; border-top-right-radius: 0; padding-top: 22px; }
@media (min-width: 960px) {
  .bv-grid { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 56px; }
  .bv-media { aspect-ratio: auto; min-height: 520px; order: 2; }
}
.staybar { position: relative; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 30; background: rgba(238, 241, 236, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-block: 1px solid var(--line); transition: top .5s var(--ease); }
body.nav-hidden .staybar { top: env(safe-area-inset-top, 0px); }
.staybar-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding-block: 10px; align-items: center; }
.staybar .field { padding: 4px 0; min-width: 0; }
.staybar-sum { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }
.staybar-sum b { color: var(--text); font-weight: 600; }
@media (min-width: 900px) { .staybar { position: sticky; } .staybar-row { grid-template-columns: repeat(4, minmax(0, 1fr)) 1.4fr; gap: 24px; } .staybar-sum { grid-column: auto; text-align: right; } .staybar .field + .field { border-left: 1px solid var(--line); padding-left: 20px; } }

.bv-rooms { padding-block: clamp(50px, 7vw, 90px); }
.bv-rooms-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 34px; }
.rgrid { display: grid; gap: 26px; }
@media (min-width: 860px) { .rgrid { grid-template-columns: 1fr 1fr; gap: 30px; } }
.rcard { display: flex; flex-direction: column; background: var(--card); border-radius: 26px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 24px 50px -36px rgba(15, 43, 44, .4); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.rcard:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), 0 34px 60px -34px rgba(15, 43, 44, .5); }
.rcard-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 2.8; overflow: hidden; cursor: zoom-in; }
.rcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.rcard:hover .rcard-media img { transform: scale(1.06); }
.rcard-media .tag { position: absolute; left: 20px; top: 0; border-top-left-radius: 0; border-top-right-radius: 0; padding-top: 22px; }
.rcard:hover .tag { animation: swing 1.2s var(--ease); }
.rcard-photos { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(15, 43, 44, .72); color: var(--on-ink); font-size: 12.5px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rcard-photos .ic { width: 15px; height: 15px; }
.rcard-body { display: grid; gap: 14px; padding: 22px 22px 24px; flex: 1; align-content: start; }
.rcard h3 { font-size: 30px; letter-spacing: -0.03em; }
.rcard-blurb { color: var(--muted); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 5px 11px; border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 500; color: var(--text); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper); gap: 4px; justify-self: start; max-width: 100%; }
.seg button { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s, box-shadow .25s; font-variant-numeric: tabular-nums; white-space: nowrap; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--on-ink); box-shadow: 0 6px 14px -8px rgba(15, 43, 44, .6); }
.rcard-foot { display: flex; align-items: end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.total { display: grid; gap: 1px; font-variant-numeric: tabular-nums; }
.total span { font-size: 13px; color: var(--muted); }
.total b { font: 650 26px/1.1 var(--f-display); letter-spacing: -0.02em; }

.bv-info { padding-block: 10px clamp(60px, 8vw, 100px); }
.info-grid { display: grid; gap: 22px; }
.info-card { background: var(--card); border-radius: 24px; padding: 26px 24px; display: grid; gap: 16px; align-content: start; box-shadow: 0 1px 0 var(--line); }
.info-card h3 { font-size: 24px; letter-spacing: -0.02em; }
.near li, .rules li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.near .ic, .rules .ic { color: var(--brass-ink); margin-top: 2px; }
.rules b { display: block; font-weight: 600; }
.rules span { color: var(--muted); font-size: 14.5px; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 860px) { .info-grid { grid-template-columns: 1fr 1fr; } }

.bv-others { background: var(--paper-2); padding-block: clamp(60px, 8vw, 100px); }
.bv-others .track { padding-top: 22px; }

/* ---------- booking sheet ---------- */
.sheet, .lightbox { padding: 0; border: 0; max-width: none; max-height: none; }
.sheet {
  width: min(640px, 100%); margin: auto auto 0; border-radius: 28px 28px 0 0; background: var(--card); color: var(--text);
  max-height: 94svh; overflow: hidden; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .4);
}
.sheet[open] { animation: sheetUp .55s var(--ease) both; }
.sheet::backdrop { background: rgba(8, 26, 27, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .4s both; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 700px) {
  .sheet { margin: auto; border-radius: 28px; max-height: 92vh; }
  .sheet[open] { animation: sheetIn .5s var(--ease) both; }
  @keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
}
.sheet-inner { max-height: inherit; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
.sheet-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.sheet-head img { width: 76px; height: 60px; object-fit: cover; border-radius: 14px; }
.sheet-head h2 { font-size: 24px; letter-spacing: -0.025em; }
.sheet-close { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .2s, color .2s, transform .4s var(--ease); }
.sheet-close:hover { background: var(--ink); color: var(--on-ink); transform: rotate(90deg); }
.book-form { display: grid; gap: 14px; }
.seg-wrap { display: grid; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book-form .field { background: var(--paper); border-radius: 16px; padding: 10px 14px; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; min-width: 0; }
.book-form .field:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.book-form .field.bad { box-shadow: inset 0 0 0 1.5px var(--danger); }
.book-form textarea { resize: vertical; min-height: 46px; }
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.err { color: var(--danger); font-size: 12.5px; min-height: 0; }
.err:empty { display: none; }
.sum { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--ink); color: var(--on-ink); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.sum-row span { color: var(--on-ink-muted); font-size: 14.5px; }
.sum-row b { font: 650 28px/1.1 var(--f-display); letter-spacing: -0.02em; }
.sum-note { font-size: 13px; color: var(--brass-2); }
@media (max-width: 420px) { .grid-2 > .field:nth-child(-n+2) { grid-column: 1 / -1; } }
@media (max-width: 340px) { .grid-2 { grid-template-columns: 1fr; } }

.done { display: grid; gap: 14px; text-align: left; }
.done-mark svg { width: 64px; height: 64px; fill: none; stroke: var(--wa); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done-mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) forwards; }
.done-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { font-size: 32px; letter-spacing: -0.03em; }
.done p { color: var(--muted); }
.done-ref b { color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.done-msg { margin: 0; white-space: pre-wrap; word-break: break-word; font: 13.5px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--paper); border-radius: 16px; padding: 14px 16px; max-height: 220px; overflow: auto; user-select: all; }
.done-actions { display: grid; gap: 10px; }
.done-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.done-row .btn { padding: 0 14px; font-size: 14.5px; }
@media (max-width: 400px) { .done-row { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox { width: 100%; height: 100%; margin: 0; background: rgba(8, 26, 27, .97); color: var(--on-ink); }
.lightbox[open] { display: grid; place-items: center; animation: fade .35s both; }
.lightbox::backdrop { background: transparent; }
.lb-fig { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 70px 16px 80px; max-width: 100%; }
.lb-fig img { max-width: min(1100px, 100%); max-height: 74vh; width: auto; border-radius: 18px; object-fit: contain; animation: lbIn .5s var(--ease) both; }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
.lb-fig figcaption { font-size: 14.5px; color: var(--on-ink-muted); text-align: center; }
.lb-close, .lb-nav { position: fixed; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(238, 241, 236, .1); transition: background-color .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(238, 241, 236, .24); }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.lb-prev { left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.lb-next { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 800px) { .lb-prev, .lb-next { bottom: auto; top: 50%; margin-top: -25px; } }

/* ---------- curtain (view change) ---------- */
.curtain { position: fixed; inset: 0; z-index: 90; background: var(--ink); display: grid; place-items: center; pointer-events: none; transform: translateY(101%); }
.curtain .logo-tag { width: 34px; height: 46px; opacity: 0; transform: translateY(20px); transition: opacity .3s, transform .5s var(--ease); }
.curtain.in { transform: none; transition: transform .5s var(--ease-io); }
.curtain.in .logo-tag { opacity: 1; transform: none; transition-delay: .2s; }
.curtain.out { transform: translateY(-101%); transition: transform .55s var(--ease-io); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; transition: opacity .3s, transform .45s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- scroll reveals ---------- */
.pre[data-reveal] { opacity: 0; transform: translateY(36px); }
/* clip reveals clip the image, never the observed box (a clipped box never reports as visible) */
.pre[data-reveal="clip"] { opacity: 1; transform: none; }
.pre[data-reveal="clip"] img { clip-path: inset(100% 0 0 0); transform: scale(1.25); }
.in[data-reveal] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.in[data-reveal="clip"] { transition: none; }
.in[data-reveal="clip"] img { clip-path: inset(0 0 0 0); transform: none; transition: clip-path 1.3s var(--ease), transform 1.6s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }

/* view enter */
.view-enter .bv-title .line > span, .view-enter .line > span { animation: rise 1.1s var(--ease) both; }
.view-enter .bv-media img { animation: heroZoom 1.8s var(--ease) both; }

/* a branch page loaded directly: hide the home page until the script draws the branch */
html.at-branch #home-view { display: none; }

/* ---------- swipe bar under sideways lists ---------- */
.swipe { height: 3px; margin: 20px var(--gutter-r) 0 var(--gutter-l); background: var(--line); border-radius: 3px; overflow: hidden; }
.swipe span { display: block; height: 100%; width: 30%; background: var(--ink); border-radius: inherit; }
.branches.pin .swipe { display: none; }
.hero-sub .sub-short { display: none; }

/* ---------- branch map (loads Google Maps only when asked) ---------- */
.map-card { grid-column: 1 / -1; }
.map-head { display: grid; gap: 6px; }
.map-head p { display: flex; gap: 8px; color: var(--muted); font-size: 15px; }
.map-head .ic { color: var(--brass-ink); margin-top: 2px; }
.map-box { position: relative; width: 100%; aspect-ratio: 16 / 8; min-height: 240px; border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.map-load {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--ink);
  background:
    linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, .75) 46%, rgba(255, 255, 255, .75) 50%, transparent 50%),
    linear-gradient(20deg, transparent 62%, rgba(255, 255, 255, .6) 62%, rgba(255, 255, 255, .6) 65%, transparent 65%),
    linear-gradient(rgba(15, 43, 44, .06) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, rgba(15, 43, 44, .06) 1px, transparent 1px) 0 0 / 30px 30px,
    var(--paper-2);
}
.map-load .ic { width: 26px; height: 26px; padding: 15px; box-sizing: content-box; border-radius: 50%; background: var(--ink); color: var(--brass-2); box-shadow: 0 0 0 8px rgba(15, 43, 44, .08); margin-bottom: 10px; transition: transform .5s var(--ease); }
.map-load:hover .ic { transform: translateY(-3px) rotate(-6deg); }
.map-load b { font: 650 19px/1.2 var(--f-display); letter-spacing: -0.015em; }
.map-load small { color: var(--muted); font-size: 13px; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- phone action bar ---------- */
.dock {
  display: none; position: fixed; z-index: 45;
  left: calc(10px + env(safe-area-inset-left, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  grid-template-columns: 58px 62px 1fr; gap: 4px; padding: 6px; border-radius: 24px;
  background: rgba(15, 43, 44, .94); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(238, 241, 236, .08);
  transition: transform .55s var(--ease), opacity .4s;
}
body.dock-off .dock { transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; }
.dock-btn { display: grid; place-items: center; align-content: center; gap: 3px; height: 54px; border-radius: 18px; color: var(--on-ink); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; transition: background-color .2s, transform .2s; -webkit-tap-highlight-color: transparent; }
.dock-btn .ic { width: 21px; height: 21px; }
.dock-btn:active, .dock-main:active { transform: scale(.96); }
.dock-btn:active, .dock-wa[aria-expanded="true"] { background: rgba(238, 241, 236, .12); }
.dock-wa .ic { color: #3ddc84; }
.dock-main {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; height: 54px; padding: 0 16px 0 18px; border-radius: 18px;
  background: linear-gradient(165deg, #e8cd98, var(--brass-2) 40%, var(--brass)); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .2s; -webkit-tap-highlight-color: transparent;
}
.dock-main > span { display: grid; min-width: 0; }
.dock-main b { font: 650 16.5px/1.15 var(--f-display); letter-spacing: -0.01em; }
.dock-main small { font-size: 12px; font-weight: 500; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* ---------- phone layout (the main target) ---------- */
@media (max-width: 759px) {
  .dock { display: grid; }
  .fab { left: calc(10px + env(safe-area-inset-left, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); align-items: stretch; }
  .fab-btn { display: none; }
  .fab-panel { width: 100%; transform-origin: 30% 100%; }
  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .foot-bottom { padding-right: 0; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }

  /* hero: search form on the first screen */
  .hero-inner { min-height: clamp(560px, 100svh, 860px); gap: 16px; padding-block: calc(var(--nav-h) + 16px) 16px; }
  .hero-eyebrow { display: none; }
  .hero-title { font-size: clamp(40px, 12.4vw, 60px); }
  .hero-sub { font-size: 16.5px; }
  .hero-sub .sub-long { display: none; }
  .hero-sub .sub-short { display: inline; }
  .finder { gap: 8px; padding: 8px; border-radius: 24px; margin-top: 4px; }
  .finder .field { padding: 9px 13px; border-radius: 16px; }
  .finder-go { grid-column: auto; min-height: 0; padding: 0 16px; }

  .marquee { padding-block: 16px 18px; }

  /* branch page: photo first, then the essentials, rooms close behind */
  .bv-hero { padding-block: calc(var(--nav-h) + 10px) 26px; }
  .bv-hero .back { margin-bottom: 8px; }
  .bv-grid { gap: 20px; }
  .bv-media { aspect-ratio: 16 / 11.5; border-radius: 22px; }
  .bv-title { font-size: clamp(44px, 13vw, 64px); }
  .bv-text { gap: 12px; }
  .bv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .bv-actions .btn { padding: 0 12px; }
  .lg-only { display: none; }
  .sm-only { display: inline; }
  .rcard-foot .btn { flex: 1 1 auto; }
  .map-box { aspect-ratio: 4 / 3.4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
@media print {
  .nav, .fab, .dock, .progress, .curtain, .toast, .marquee { display: none !important; }
  .pre[data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
