/* Maha, a desert retreat. One stylesheet serves both English (ltr) and Arabic
   (rtl): layout is built on logical properties, and [dir="rtl"] rules below
   only override what must genuinely change (Arabic faces, no letter-spacing,
   a couple of mirrored gradients). */

:root {
  --cream: #F3EAD8;
  --cream-2: #ECDFC6;
  --paper: #FBF6EC;
  --ink: #211B12;
  --ink-soft: #6A5E48;
  --night: #14111B;
  --night-2: #1C1826;
  --night-3: #251F30;
  --sand: #C9A36B;
  --sand-deep: #A87C46;
  --clay: #AF5430;
  --gold: #C39A4C;
  --gold-soft: #D9B86C;
  --line: rgba(33, 27, 18, 0.14);
  --line-2: rgba(33, 27, 18, 0.08);
  --line-dark: rgba(243, 234, 216, 0.15);
  --line-dark-2: rgba(243, 234, 216, 0.07);
  --serif: "Cinzel", Georgia, "Times New Roman", serif;
  --sans: "Mulish", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ar-serif: "El Messiri", "Cinzel", serif;
  --ar-sans: "Tajawal", "Mulish", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 5vw, 64px);
  --gut: clamp(40px, 8vw, 130px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* smooth + the fixed nav can leave a thin paint glitch at the top edge on
   mobile after a long jump. auto avoids it, and instant anchor jumps read
   fine on touch. */
@media (max-width: 900px) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[dir="rtl"] body { font-family: var(--ar-sans); line-height: 1.95; }

img { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--sand); color: var(--night); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--ar-serif); font-weight: 600; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--gut); }

/* small carved kicker, the brand's display serif at a quiet size */
.kicker {
  font-family: var(--serif);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: #8A5320;
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .7; }
[dir="rtl"] .kicker { font-family: var(--ar-serif); letter-spacing: 0; text-transform: none; font-size: .92rem; }

.display { font-size: clamp(1.9rem, 4.4vw, 3.3rem); line-height: 1.1; letter-spacing: .02em; }
[dir="rtl"] .display { letter-spacing: 0; line-height: 1.35; }
.lat { direction: ltr; unicode-bidi: isolate; }
.num { direction: ltr; unicode-bidi: isolate; font-feature-settings: "tnum" 1; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--sans); font-weight: 700; font-size: .94rem; letter-spacing: .01em;
  padding: .95em 1.7em; background: var(--gold); color: var(--night);
  border: 1px solid var(--gold); border-radius: 2px;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
[dir="rtl"] .btn { font-family: var(--ar-sans); font-weight: 700; }
.btn:hover { background: var(--night); color: var(--gold-soft); border-color: var(--night); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--gold); color: var(--night); }
.section--dark .btn--ghost, .hero .btn--ghost { color: var(--cream); border-color: rgba(243,234,216,.42); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: var(--cream); color: var(--night); border-color: var(--cream); }

.ulink {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .94rem;
  color: var(--ink); padding-block: .2em; position: relative;
}
.ulink::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(1); transform-origin: inline-start;
  transition: transform .5s var(--ease); opacity: .5;
}
.ulink:hover::after { transform: scaleX(0); transform-origin: inline-end; }
.ulink .arr { transition: transform .4s var(--ease); }
.ulink:hover .arr { transform: translateX(4px); }
[dir="rtl"] .ulink .arr { transform: scaleX(-1); }
[dir="rtl"] .ulink:hover .arr { transform: scaleX(-1) translateX(4px); }
.section--dark .ulink { color: var(--cream); }

/* reveal: visible by default, hidden only once js confirms it runs */
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.js .reveal.d2 { transition-delay: .12s; }
html.js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1 !important; transform: none !important; } }

/* a slim desert-horizon divider */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--dark .rule { background: var(--line-dark); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  padding: 16px var(--pad);
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.scrolled { background: rgba(20, 17, 27, .92); padding-block: 11px; box-shadow: 0 1px 0 var(--line-dark); backdrop-filter: blur(8px); }
/* persistent scrim so cream nav text stays legible with js off / over bright areas */
.nav::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 200%; background: linear-gradient(to bottom, rgba(20, 17, 27, .55), rgba(20, 17, 27, 0)); z-index: -1; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mark { width: 34px; height: 34px; flex: none; color: var(--gold-soft); }
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-en { font-family: var(--serif); font-weight: 600; font-size: 1.14rem; letter-spacing: .22em; color: var(--cream); }
.brand-ar { font-family: var(--ar-serif); font-size: .9rem; color: var(--sand); margin-block-end: 3px; }
[dir="rtl"] .brand-en { letter-spacing: .08em; }
.nav-end { margin-inline-start: auto; display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links a { font-size: .92rem; font-weight: 600; color: var(--cream); opacity: .85; transition: opacity .3s, color .3s; }
.nav-links a:hover { opacity: 1; color: var(--gold-soft); }
.nav-links .btn { color: var(--night); opacity: 1; }
.nav-links .btn:hover { color: var(--gold-soft); }
.lang { display: inline-flex; align-items: center; gap: 7px; }
.nav-links .lang { letter-spacing: 0; text-transform: none; }
.lang .globe { width: 17px; height: 17px; display: block; }
.lang .globe svg { width: 100%; height: 100%; }

.nav-toggle { display: none; position: relative; z-index: 70; width: 42px; height: 42px; border: 0; background: transparent; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); transition: transform .4s var(--ease), opacity .3s; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(14,11,18,.86) 4%, rgba(14,11,18,.28) 42%, rgba(14,11,18,.5) 100%);
}
.hero-inner { padding: 0 var(--pad) clamp(56px, 9vh, 120px); max-width: 1240px; margin-inline: auto; width: 100%; color: var(--cream); }
.hero .mark-lg { width: 56px; height: 56px; color: var(--gold-soft); margin-block-end: 22px; }
.hero .mark-lg svg { width: 100%; height: 100%; }
.hero-ar { font-family: var(--ar-serif); font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--sand); margin: 0 0 .2em; text-shadow: 0 2px 16px rgba(14,11,18,.55); }
.hero h1 { font-size: clamp(3rem, 11vw, 8.2rem); line-height: 1.05; letter-spacing: .12em; font-weight: 500; color: var(--paper); }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.25; }
.hero-tag { font-size: clamp(1.05rem, 1.8vw, 1.34rem); max-width: 30ch; margin: clamp(18px, 3vh, 30px) 0 0; color: rgba(243,234,216,.92); font-weight: 400; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-block-start: clamp(26px, 4vh, 40px); }
.hero-scroll { position: absolute; inset-inline-end: var(--pad); inset-block-end: 30px; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(243,234,216,.6); writing-mode: vertical-rl; }
[dir="rtl"] .hero-scroll { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0; text-transform: none; }
.hero-rule { width: 64px; height: 2px; background: var(--gold); margin-block: 20px 0; }

/* ---------------------------------------------------------------- story */
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.story-copy .display { margin-block: 18px 0; }
.story-copy p { color: var(--ink-soft); margin-block: 1.1em 0; max-width: 46ch; }
.story-copy p:first-of-type { color: var(--ink); font-size: 1.12rem; }
.signoff { display: flex; align-items: center; gap: 16px; margin-block-start: 34px; }
.signoff .line { width: 48px; height: 1px; background: var(--sand-deep); flex: none; }
.signoff .name { font-family: var(--serif); font-size: 1rem; letter-spacing: .08em; }
[dir="rtl"] .signoff .name { font-family: var(--ar-serif); letter-spacing: 0; }
.signoff .role { font-size: .86rem; color: var(--ink-soft); }

.framed { position: relative; }
.framed img { width: 100%; height: 100%; object-fit: cover; }
.arch { border-start-start-radius: 50% 22%; border-start-end-radius: 50% 22%; overflow: hidden; }
.story-photo { aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -40px rgba(20,17,27,.6); }
.story-photo .oryx-chip {
  position: absolute; inset-block-end: 18px; inset-inline-start: 18px; width: 92px; height: 92px;
  border-radius: 50%; overflow: hidden; border: 3px solid var(--paper);
}
.story-photo .oryx-chip img { aspect-ratio: 1; }

/* ---------------------------------------------------------------- rooms */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-block-end: clamp(30px, 5vw, 54px); }
.head-row .display { margin-block-start: 14px; max-width: 18ch; }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.room { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line-2); }
.room-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.room:hover .room-photo img { transform: scale(1.05); }
.room-body { padding: 22px clamp(18px, 1.8vw, 26px) 24px; display: flex; flex-direction: column; flex: 1; }
.room-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.room-name h3 { font-size: 1.34rem; letter-spacing: .04em; }
[dir="rtl"] .room-name h3 { letter-spacing: 0; }
.room-name .ar { font-family: var(--ar-serif); color: #8F5E28; font-size: 1rem; }
.room p { color: var(--ink-soft); font-size: .96rem; margin: 10px 0 18px; }
.room-foot { margin-block-start: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block-start: 16px; border-block-start: 1px solid var(--line-2); }
.room-price { font-size: .92rem; color: var(--ink); }
.room-price b { font-family: var(--serif); font-weight: 600; font-size: 1.16rem; letter-spacing: .02em; }
.room-price .per { color: var(--ink-soft); }

/* ---------------------------------------------------------------- quote band */
.band { position: relative; isolation: isolate; color: var(--cream); text-align: center; }
.band .bg { position: absolute; inset: 0; z-index: -2; }
.band .bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14,11,18,.62); }
.band .wrap { padding-block: clamp(80px, 13vw, 170px); }
.band .mark { width: 40px; height: 40px; color: var(--gold-soft); margin-inline: auto; margin-block-end: 26px; }
.band .mark svg { width: 100%; height: 100%; }
.band-text { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.5; letter-spacing: .03em; max-width: 22ch; margin-inline: auto; }
[dir="rtl"] .band-text { font-family: var(--ar-serif); letter-spacing: 0; line-height: 1.7; max-width: 26ch; }
.band-text .em { color: var(--gold-soft); }

/* a full-bleed cinematic breather between sections */
.interlude { position: relative; height: clamp(280px, 46vh, 460px); isolation: isolate; display: flex; align-items: flex-end; color: var(--cream); }
.interlude img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.interlude::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14,11,18,.86), rgba(14,11,18,.12) 62%); }
.interlude .cap { padding: 0 var(--pad) clamp(24px, 4vw, 44px); width: 100%; max-width: 1240px; margin-inline: auto; }
.interlude .cap .kline { font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.7rem); letter-spacing: .06em; }
[dir="rtl"] .interlude .cap .kline { font-family: var(--ar-serif); letter-spacing: 0; }
.interlude .cap .sub { font-size: .9rem; color: rgba(243,234,216,.7); margin-block-start: 6px; }

/* ---------------------------------------------------------------- experiences */
.exp-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.exp { position: relative; overflow: hidden; isolation: isolate; color: var(--cream); display: flex; align-items: flex-end; min-height: 300px; }
.exp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.exp::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14,11,18,.85) 6%, rgba(14,11,18,.05) 70%); }
.exp:hover img { transform: scale(1.06); }
/* caption scrim so the gold accent and copy stay legible over bright frames */
.exp-body { padding: clamp(20px, 2vw, 30px); background: linear-gradient(to top, rgba(14,11,18,.93) 0%, rgba(14,11,18,.86) 86%, rgba(14,11,18,.45) 100%); }
.exp-body h3 { font-size: 1.3rem; letter-spacing: .04em; }
[dir="rtl"] .exp-body h3 { letter-spacing: 0; }
.exp-body .ar { font-family: var(--ar-serif); color: var(--sand); font-size: .92rem; }
.exp-body p { font-size: .94rem; color: rgba(243,234,216,.84); margin: 8px 0 0; max-width: 36ch; }
.exp--tall { grid-column: span 4; min-height: 460px; }
.exp--wide { grid-column: span 8; min-height: 460px; }
.exp--half { grid-column: span 6; }
.exp--third { grid-column: span 4; }

/* ---------------------------------------------------------------- visit */
.visit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.info-block { margin-block-start: 26px; }
.info-block .info-label { font-family: var(--serif); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 8px; font-weight: 600; }
[dir="rtl"] .info-block .info-label { font-family: var(--ar-serif); letter-spacing: 0; text-transform: none; font-size: 1rem; }
.info-block p, .info-row { color: var(--cream); opacity: .9; margin: 0; }
.info-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; border-block-end: 1px solid var(--line-dark-2); max-width: 380px; }
.visit-photo { aspect-ratio: 5 / 6; overflow: hidden; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- reserve */
.reserve-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.reserve-intro p { color: var(--ink-soft); margin-block-start: 16px; max-width: 40ch; }
.book {
  background: var(--paper); border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 38px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--ink); background: var(--cream);
  border: 1px solid var(--line); border-radius: 2px; padding: .8em .9em; width: 100%;
  transition: border-color .3s, box-shadow .3s;
}
[dir="rtl"] .field input, [dir="rtl"] .field select, [dir="rtl"] .field textarea { font-family: var(--ar-sans); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(195,154,76,.18); }
.field textarea { resize: vertical; min-height: 84px; }
.field.invalid input, .field.invalid select { border-color: var(--clay); }
.field .err { color: var(--clay); font-size: .8rem; min-height: 1em; }
.book-summary { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 14px 0 2px; border-block-start: 1px solid var(--line); }
.book-summary .nights { font-size: .92rem; color: var(--ink-soft); }
.book-summary .nights b { color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.book .btn { grid-column: 1 / -1; width: 100%; }
.form-note { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-soft); margin: 0; }
.form-note.alert { color: var(--clay); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--night); color: var(--cream); padding-block: clamp(54px, 7vw, 86px) 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(30px, 5vw, 70px); }
.footer .brand-en { color: var(--cream); }
.footer-blurb { color: rgba(243,234,216,.7); margin: 18px 0 20px; max-width: 38ch; font-size: .96rem; }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--cream); transition: background .3s, color .3s, border-color .3s; }
.socials a:hover { background: var(--gold); color: var(--night); border-color: var(--gold); }
.socials svg { width: 18px; height: 18px; }
.footer-col .col-h { font-family: var(--serif); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 16px; font-weight: 600; }
[dir="rtl"] .footer-col .col-h { font-family: var(--ar-serif); letter-spacing: 0; text-transform: none; font-size: 1.02rem; }
.footer-col a { display: block; color: rgba(243,234,216,.78); font-size: .94rem; padding-block: 5px; transition: color .3s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-start: clamp(40px, 6vw, 64px); padding-block-start: 24px; border-block-start: 1px solid var(--line-dark); font-size: .84rem; color: rgba(243,234,216,.6); }
.credit { display: inline-flex; align-items: center; gap: 12px; }
.credit-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(243,234,216,.6); }
[dir="rtl"] .credit-label { letter-spacing: 0; text-transform: none; font-size: .92rem; font-family: var(--ar-sans); }
.wlogo { display: inline-flex; align-items: center; gap: 11px; opacity: .9; transition: opacity .4s var(--ease); }
.wlogo:hover { opacity: 1; }
.wlogo-mark { height: 38px; width: auto; display: block; }
.wlogo-word { height: 26px; width: auto; display: block; }

/* ---------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14,11,18,.72); backdrop-filter: blur(3px); }
.modal-card { position: relative; background: var(--paper); color: var(--ink); max-width: 460px; width: 100%; padding: clamp(30px, 4vw, 46px); text-align: center; border-top: 1px solid var(--line); animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-card .mark { width: 42px; height: 42px; color: var(--gold); margin: 0 auto 18px; }
.modal-card .mark svg { width: 100%; height: 100%; }
.modal-card h3 { font-size: 1.5rem; letter-spacing: .04em; }
[dir="rtl"] .modal-card h3 { letter-spacing: 0; }
.modal-card p { color: var(--ink-soft); margin: 12px 0 0; font-size: .98rem; }
.modal-extra { margin-block-start: 20px; }
.modal-summary { text-align: start; border: 1px solid var(--line); margin-block-start: 8px; }
.modal-summary .row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 16px; font-size: .92rem; }
.modal-summary .row:not(:last-child) { border-block-end: 1px solid var(--line-2); }
.modal-summary .row .k { color: var(--ink-soft); }
.modal-summary .row .v { font-weight: 600; }
.modal-ref { font-size: .86rem; color: var(--ink-soft); margin-block-start: 14px; }
.modal-ref .code { font-family: var(--serif); font-weight: 600; letter-spacing: .1em; color: var(--ink); }
.modal-close { margin-block-start: 24px; background: var(--ink); color: var(--paper); border: 0; padding: .8em 2em; border-radius: 2px; font-weight: 700; font-size: .9rem; transition: background .3s; }
.modal-close:hover { background: var(--gold); color: var(--night); }

/* skip link + a11y */
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 10px 16px; z-index: 200; border-radius: 2px; }
.skip:focus { inset-inline-start: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.nav .nav-links a:focus-visible, .nav .btn:focus-visible { outline-offset: 5px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0; inset-block-start: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--night);
    transform: translateX(100%); transition: transform .5s var(--ease); pointer-events: none;
  }
  [dir="rtl"] .nav-links { transform: translateX(-100%); }
  body.menu-open .nav-links { transform: none; pointer-events: auto; }
  /* the scrolled nav gets backdrop-filter, which makes it the containing block
     for its fixed children. that traps the full-screen menu in the header box
     once you scroll, so drop it while the menu is open. */
  body.menu-open .nav { backdrop-filter: none; }
  .nav-links a { font-size: 1.3rem; opacity: 1; }
  .story-grid, .visit-grid, .reserve-grid { grid-template-columns: 1fr; }
  .visit-photo { order: -1; aspect-ratio: 16 / 10; }
  .rooms { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .exp-grid > * { grid-column: 1 / -1 !important; min-height: 320px; }
  .book { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-scroll { display: none; }
}
@media (max-width: 520px) {
  .head-row { gap: 14px; }
}
