/* =========================================================
   סוויטת ארץ — stone, ink and a deep sea; one circle as the motif
   ========================================================= */

:root {
  --paper: #F4F4F1;      /* cool limestone white */
  --paper-2: #EAE8E2;
  --stone: #D8D1C5;      /* lobby travertine */
  --ink: #141B1D;        /* deep ink */
  --ink-soft: #5A6365;
  --sea: #17322F;        /* the Red Sea after dusk */
  --sea-2: #21423E;
  --cognac: #9A5A2F;     /* lobby leather, used sparingly */
  --line: rgba(20, 27, 29, .14);

  --serif: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --sans: "Assistant", "Segoe UI", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--cognac); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0;
}
.lead { font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.65; margin: 0; max-width: 40ch; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 1.6em;
  border: 1px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, translate .25s;
}
.btn:hover { --bg: var(--sea-2); translate: 0 -1px; }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light:hover { --bg: var(--stone); }
.btn--small { min-height: 44px; padding: 0 1.25em; font-size: .95rem; }
.btn--block { width: 100%; }
.wa-ico { width: 20px; height: 20px; fill: currentColor; }

.link {
  display: inline-block; padding-block: 10px;
  font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: var(--cognac);
}
.link:hover { color: var(--cognac); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px max(var(--gutter), calc((100% - var(--wrap)) / 2));
  transition: background-color .35s, padding .35s, box-shadow .35s;
}
.nav > .btn { transition: opacity .3s, visibility .3s, background-color .25s, translate .25s; }
.nav.cta-off > .btn { opacity: 0; visibility: hidden; }
.nav.is-solid {
  background: rgba(244, 244, 241, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
}
.nav__brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.nav__mark { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.nav__sub { font-size: .9rem; color: var(--ink-soft); }
.nav__links { display: flex; gap: 30px; margin-inline-start: auto; }
.nav__links a { text-decoration: none; font-weight: 500; position: relative; padding-block: 6px; }
.nav__links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

/* =========================================================
   HERO — the eclipse
   The disc photo and the light word share one clip circle; the ink
   word sits beneath. Where the word crosses the edge, it changes tone.
   --k (set by JS from scroll) opens the circle until it fills the screen.
   ========================================================= */
.hero { position: relative; height: 200svh; }
.hero__stage {
  --R: min(38vw, 30svh);   /* circle radius at rest */
  --cy: 43svh;             /* circle centre, from the top */
  --k: 1;
  --clip: circle(calc(var(--R) * var(--k) * var(--open, 1)) at 50% var(--cy));
  position: sticky; top: 0;
  height: 100svh; overflow: hidden;
}
/* the whole photo, faded, so the circle reads as a clear window onto it */
.hero__ghost {
  position: absolute; inset: 0;
  opacity: calc(.3 * var(--open, 1));
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 88%);
  pointer-events: none;
}
.hero__ghost img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  transform: scale(calc(1.12 - (var(--k) - 1) * .035));
  filter: saturate(.85);
}
/* a turning ring of words around the circle; it fades out below, where the word sits */
.hero__ring {
  --ring: 2.44;            /* path radius ≈ 1.12 R */
  position: absolute; left: 50%; top: var(--cy);
  width: calc(var(--R) * var(--ring)); aspect-ratio: 1;
  translate: -50% -50%;
  scale: calc(var(--k) * var(--open, 1));
  opacity: clamp(0, calc(var(--open, 1) * (1 - (var(--k) - 1) * 2.2)), 1);
  -webkit-mask-image: linear-gradient(to bottom, #000 42%, transparent 68%);
  mask-image: linear-gradient(to bottom, #000 42%, transparent 68%);
  pointer-events: none;
}
.hero__ring svg { display: block; width: 100%; height: 100%; overflow: visible; animation: spin 90s linear infinite; }
/* Chrome drops text on a path in an RTL context; LTR here still lets the Hebrew read right to left */
.hero__ring text { direction: ltr; font: 500 6.3px var(--sans); fill: var(--ink); fill-opacity: .72; }
@keyframes spin { to { rotate: -360deg; } }
.hero__probe { position: absolute; top: 0; width: var(--R); height: var(--cy); visibility: hidden; pointer-events: none; }
.hero__disc {
  position: absolute; inset: 0;
  clip-path: var(--clip);
}
.hero__disc img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  transform: scale(calc(1.12 - (var(--k) - 1) * .035));
}
/* a soft shade low in the circle so the light word reads on bright floors */
.hero__disc::after {
  content: ""; position: absolute; inset: 0;
  opacity: calc(1.25 - var(--k) * .25);
  background: radial-gradient(55% 16% at 50% calc(var(--cy) + var(--R) * .86), rgba(20, 27, 29, .34), transparent),
              linear-gradient(to top, rgba(20, 27, 29, .5), rgba(20, 27, 29, .1) 50%, transparent 70%);
}

.mark {
  position: absolute; inset: 0;
  margin: 0;
  display: grid; justify-items: center;
  /* the word sits across the lower edge of the circle */
  padding-top: calc(var(--cy) + var(--R) * .86 - .5em);
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(7.5rem, 19vw, 16rem);
  line-height: 1;
  letter-spacing: -.02em;
  pointer-events: none;
  user-select: none;
}
.mark--ink { color: var(--ink); }
.mark--light { color: var(--paper); clip-path: var(--clip); text-shadow: 0 2px 40px rgba(20, 27, 29, .35); }

.hero__foot {
  position: absolute; inset: auto 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
  padding: 0 var(--gutter) clamp(24px, 4.5svh, 44px);
  opacity: calc(1 - (var(--k) - 1) * 2.2);
  pointer-events: none;
}
.hero__foot .btn { pointer-events: auto; }
.hero__foot.is-gone { visibility: hidden; }
.hero__sea {
  margin: 0 0 4px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2; color: var(--ink);
}
.hero__lede { text-wrap: balance; margin: 0; max-width: 36ch; color: var(--ink-soft); font-size: 1.05rem; }

/* Load: the circle opens from a point, then the word and foot arrive */
.js-motion .hero__stage { animation: open 1.3s var(--ease) .05s both; }
@property --open { syntax: "<number>"; inherits: true; initial-value: 1; }
@keyframes open { from { --open: 0; } to { --open: 1; } }
.js-motion .mark--ink, .js-motion .mark--light { animation: rise 1.1s var(--ease) .35s both; }
.js-motion .hero__foot > * { animation: rise 1s var(--ease) .7s both; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Intro ---------- */
.intro { padding-block: var(--section) calc(var(--section) * .6); }
.intro__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin: clamp(32px, 4vw, 48px) 0 0; border-top: 1px solid var(--line);
}
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-inline-end: 24px; }
.facts dt { font-size: .9rem; color: var(--ink-soft); }
.facts dd { text-wrap: balance; margin: 2px 0 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }

/* ---------- Spaces: a list, with one photo that follows along ---------- */
.spaces { padding-bottom: var(--section); }
.spaces__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.spaces__media {
  position: sticky; top: max(96px, calc(50svh - 300px));
  align-self: start;
  aspect-ratio: 4 / 5; max-height: 600px;
  border-radius: 999px 999px 6px 6px;  /* an arch: the circle, standing */
  overflow: hidden; background: var(--paper-2);
}
.spaces__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .8s var(--ease), transform 1.4s var(--ease);
}
.spaces__media img.is-on { opacity: 1; transform: none; }
.spaces__media img[src*="sofa-nook"] { object-position: 35% 50%; }

.spaces__list { list-style: none; margin: 0; padding: 0; }
.space {
  min-height: 34svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 32px;
  border-top: 1px solid var(--line);
  opacity: .55; transition: opacity .6s var(--ease);
}
.space:last-child { border-bottom: 1px solid var(--line); }
.space.is-on { opacity: 1; }
.space h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.1rem); line-height: 1.15; margin: 0 0 10px; }
.space p { margin: 0; max-width: 40ch; color: var(--ink-soft); }
.space__img { display: none; }

/* ---------- Galleries (suite + complex) ---------- */
.gallery { padding-bottom: var(--section); }
.gallery__inner, .complex__head { max-width: calc(clamp(400px, (100svh - 340px) * 4 / 3, 880px) + 2 * var(--gutter)); }
.gallery .h2 { margin-bottom: clamp(24px, 3vw, 36px); }
.gal__stage { position: relative; }
.gal__track {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  grid-template-rows: 100%;
  aspect-ratio: 4 / 3;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 6px; background: var(--paper-2);
  cursor: grab;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gal__track.is-dragging img { pointer-events: none; }
.gal__slide { scroll-snap-align: start; min-height: 0; }
.gal__slide img[src*="reading-chair"] { object-position: 50% 85%; }
.gal__slide img[src*="atrium-up"] { object-position: 50% 0; }
.gal__slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }

.gal__btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 0; color: var(--ink);
  background: rgba(244, 244, 241, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(20, 27, 29, .18);
  transition: background-color .25s, opacity .25s, box-shadow .25s;
}
.gal__btn:hover { background: #fff; box-shadow: 0 8px 24px rgba(20, 27, 29, .24); }
.gal__btn:disabled { opacity: 0; pointer-events: none; }
.gal__btn--prev { right: 16px; }
.gal__btn--next { left: 16px; }
.gal__btn svg, .lightbox svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.gal__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--ink-soft); }
.gal__cap { margin: 0; min-height: 1.7em; }
.gal__count { flex: none; margin: 0; direction: ltr; font-variant-numeric: tabular-nums; font-size: .95rem; }

.gal__thumbs {
  display: flex; gap: 8px; margin: 14px -5px 0; padding: 5px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, #000 90%, transparent);
  mask-image: linear-gradient(to left, #000 90%, transparent);
}
.gal__thumbs.is-end { -webkit-mask-image: none; mask-image: none; }
.gal__thumbs::-webkit-scrollbar { display: none; }
.gal__thumbs button {
  flex: 0 1 76px; min-width: 56px; aspect-ratio: 4 / 3; padding: 0;
  border: 0; border-radius: 4px; overflow: hidden; cursor: pointer;
  background: var(--paper-2); opacity: .5;
  outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity .25s, outline-color .25s;
}
.gal__thumbs button:hover { opacity: .85; }
.gal__thumbs button[aria-current="true"] { opacity: 1; outline-color: var(--cognac); }
.gal__thumbs button:focus-visible { outline-color: var(--ink); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- The complex: the one dark band ---------- */
.complex {
  background: var(--sea); color: var(--paper);
  padding-block: var(--section);
}
.complex__head {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 6vw, 96px); align-items: start;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.complex__head p { margin: 0; max-width: 46ch; color: rgba(244, 244, 241, .72); }
.complex__list {
  list-style: none; margin: 16px 0 0; padding: 0; max-width: 300px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.complex__list li {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(244, 244, 241, .28);
  font-size: .95rem; color: var(--paper);
}
.complex .gal__track { background: var(--sea-2); }
.complex .gal__meta { color: rgba(244, 244, 241, .7); }
.complex .gal__thumbs button { background: var(--sea-2); }
.complex .gal__thumbs button[aria-current="true"] { outline-color: var(--stone); }
.complex .gal__thumbs button:focus-visible { outline-color: var(--paper); }
.complex :focus-visible { outline-color: var(--stone); }

/* ---------- Amenities ---------- */
.amenities { padding-block: var(--section); }
.amenities__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.amenities__groups { display: grid; gap: clamp(28px, 4vw, 44px); }
.amen-group h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; }
/* a hairline grid: lines only between cells, none around the edge */
.amen {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
}
.amen li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 118px; padding: 18px 10px;
  background: var(--paper); text-align: center;
  font-size: .98rem; line-height: 1.3; text-wrap: balance;
}
.ico { width: 30px; height: 30px; fill: none; stroke: var(--sea); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Location ---------- */
.location { padding-bottom: var(--section); }
.location__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.location__addr { font-style: normal; font-family: var(--serif); font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.4; margin: 20px 0 14px; }
.location__addr span { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); }
.location__sea { margin: 0 0 6px; font-family: var(--serif); font-size: 1.45rem; color: var(--sea); }
.location__near { margin: 0 0 8px; color: var(--ink-soft); }
.location__map { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.location__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.02); }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); padding-block: var(--section); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__text p { color: var(--ink-soft); max-width: 36ch; }
.contact__direct { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.contact__direct a {
  display: inline-block; padding-block: 10px;
  font-weight: 600; text-decoration: underline; text-underline-offset: 6px;
  text-decoration-thickness: 1px; text-decoration-color: var(--cognac);
}
.contact__direct a:hover { color: var(--cognac); }
.contact__direct a[data-phone] { direction: ltr; unicode-bidi: isolate; }

.form {
  background: var(--paper); border-radius: 8px;
  padding: clamp(22px, 3.5vw, 40px);
  display: grid; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .92rem; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; min-width: 0;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 27, 29, .1); }
.field input[type="date"] { text-align: right; -webkit-appearance: none; appearance: none; }
.field .is-invalid { border-color: #A23A22; }
.stepper {
  display: grid; grid-template-columns: 48px 1fr 48px;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff;
}
.stepper button { border: 0; background: transparent; font-size: 1.35rem; cursor: pointer; color: var(--ink); min-height: 48px; transition: background-color .2s; }
.stepper button:hover { background: var(--paper-2); }
.stepper input { border: 0; border-radius: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form__error { color: #A23A22; margin: 0; font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { padding-block: 28px; color: var(--ink-soft); font-size: .92rem; }
.footer__inner { display: flex; align-items: baseline; gap: 10px 24px; flex-wrap: wrap; }
.footer__mark { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); line-height: 1; }
.footer__inner span:last-child { margin-inline-start: auto; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  width: 54px; height: 54px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 0 0 1px rgba(244, 244, 241, .25), 0 10px 30px rgba(20, 27, 29, .3);
  transform: scale(0); transition: transform .35s var(--ease);
}
.fab svg { width: 26px; height: 26px; fill: currentColor; }
.fab.is-visible { transform: scale(1); }
.fab { transition: transform .35s var(--ease), background-color .3s, color .3s; }
.fab.on-dark { background: var(--paper); color: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: #0E1415; color: var(--paper);
}
.lightbox[open] { display: grid; place-items: center; animation: fade .3s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 1500px); max-height: 82vh; max-height: 82dvh; object-fit: contain; border-radius: 4px; animation: lbIn .45s var(--ease); }
.lightbox button {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--paper);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
  transition: background-color .25s;
}
.lightbox button:hover { background: rgba(255, 255, 255, .18); }
.lightbox__close { top: calc(20px + env(safe-area-inset-top)); left: 20px; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { right: 20px; }
.lightbox__nav--next { left: 20px; }
.lightbox__cap {
  position: absolute; inset-inline: 0; bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0 1em;
  margin: 0; padding-inline: var(--gutter);
  color: rgba(244, 244, 241, .78); font-size: .95rem;
}
.lightbox__cap span { opacity: .6; direction: ltr; unicode-bidi: isolate; }
@keyframes fade { from { opacity: 0; } }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }

/* ---------- Scroll reveals (images only) ---------- */
.js-motion .reveal { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate .9s var(--ease); }
.js-motion .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .intro__grid, .amenities__grid, .location__grid, .contact__grid, .complex__head { grid-template-columns: 1fr; }
  .spaces__grid { grid-template-columns: 1fr; }
  .spaces__media { display: none; }
  .space { min-height: 0; opacity: 1; padding-block: 0 36px; border: 0; }
  .space:last-child { border: 0; }
  .space__img {
    display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 6px; margin-bottom: 18px; cursor: zoom-in;
  }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .nav { padding: 12px var(--gutter); gap: 12px; }
  .nav__sub { display: none; }
  .nav__mark { font-size: 1.7rem; }
  .hero { height: 165svh; }
  .hero__stage { --R: min(39vw, 30svh); --cy: 42svh; }
  .hero__disc img { object-position: 59% 50%; }
  .mark { font-size: 33vw; }
  .hero__foot { flex-direction: column; align-items: stretch; text-align: center; gap: 18px; }
  .hero__lede { margin-inline: auto; }
  .hero__sea { font-size: 1.45rem; }
  .facts dd { font-size: 1.15rem; }
  .gallery__inner { padding-inline: 0; }
  .gallery .h2, .gal__meta, .gal__thumbs { padding-inline: var(--gutter); }
  .gal__track { border-radius: 0; }
  .gal__btn { width: 44px; height: 44px; }
  .gal__btn--prev { right: 10px; }
  .gal__btn--next { left: 10px; }
  .gal__meta { font-size: .95rem; margin-top: 12px; }
  .gal__thumbs { margin-top: 8px; scroll-padding-inline: var(--gutter); }
  .gal__thumbs button { width: 64px; }
  .amen li { min-height: 96px; padding: 14px 6px; gap: 8px; font-size: .88rem; }
  .ico { width: 26px; height: 26px; }
  .hero__ring { --ring: 2.5; }
  .hero__ring text { font-size: 7.4px; }
  .hero__ghost img { object-position: 59% 50%; }
  .fab { display: grid; width: 48px; height: 48px; left: 10px; }
  .nav__brand { min-height: 44px; align-items: center; }
  .lightbox img { max-height: min(74dvh, 100dvh - 216px); }
  .footer__inner span:last-child { margin-inline-start: 0; }
  .lightbox__nav { top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); translate: none; background: rgba(14, 20, 21, .7); }
  .lightbox__nav--prev { right: 16px; }
  .lightbox__nav--next { left: 16px; }
  .lightbox__cap { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .lightbox img { max-height: 74dvh; }
}

@media (hover: none) {
  .btn:hover { --bg: var(--ink); translate: none; }
  .btn--light:hover { --bg: var(--paper); }
  .gal__btn:hover { background: rgba(244, 244, 241, .9); box-shadow: 0 6px 20px rgba(20, 27, 29, .18); }
  .gal__thumbs button:hover { opacity: .5; }
  .gal__thumbs button[aria-current="true"] { opacity: 1; }
  .stepper button:hover { background: transparent; }
  .lightbox button:hover { background: rgba(255, 255, 255, .08); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero__ring svg { animation: none; }
  .hero { height: 100svh; }
}

/* ---------- Short phones (e.g. 320x568) ---------- */
@media (max-width: 720px) and (max-height: 700px) {
  .hero__stage { --R: min(40vw, 25svh); --cy: 37svh; }
  .mark { font-size: min(30vw, 15svh); }
}
@media (max-width: 359px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- Phones in landscape ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .mark { font-size: 30svh; }
  .space__img, .location__map { aspect-ratio: auto; height: calc(100svh - 120px); }
}
