/* ============================================================
   SouthGate Sea Edition — Inner Pages
   Shared styles for penthouse.html / premium.html
   ============================================================ */

body.inner-page { background: var(--bg); animation: page-fadein .28s ease both; }
@keyframes page-fadein { from { opacity: 0; } to { opacity: 1; } }

/* ── Typography — no word-breaking, no orphans ── */
p, h1, h2, h3 {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
}
p   { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ── Full-screen: remove the 1080px page container ── */
body.inner-page .page {
  max-width: 100%;
  box-shadow: none;
  background: transparent;
}

/* ── NAV override — active inner button: brighter fill, no ring ── */
.tn-inner-offices.active {
  background: #eef3f8 !important;
  color: #180a21 !important;
}
.tn-inner-ml.active {
  background: #ede8eb !important;
  color: #180a21 !important;
}

/* ── HERO ─────────────────────────────────────── */
.ih-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.ih-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ih-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,6,8,.25)  0%,
    rgba(10,6,8,.55) 55%,
    rgba(22,8,32,.97) 100%
  );
}

/* Micro Living hero — brighter overlay */
.ih-hero-ml .ih-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10,6,8,.10)  0%,
    rgba(10,6,8,.25) 55%,
    rgba(22,8,32,.48) 100%
  );
}

.ih-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 5vw 44px;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ih-eyebrow {
  font-family: var(--english);
  font-size: 11px;
  letter-spacing: .32em;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: ih-fade-up .5s .2s ease forwards;
}

/* one-time shine sweep on the eyebrow */
.ih-eyebrow::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -80%;
  width: 55%;
  height: 180%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,.85) 50%,
    transparent 100%
  );
  transform: skewX(-15deg);
  opacity: 0;
  animation: ih-shine .85s 1.1s ease-out forwards;
}

@keyframes ih-shine {
  0%   { left: -80%; opacity: 1; }
  100% { left: 120%; opacity: 1; }
}

.ih-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(60px, 11vw, 128px);
  line-height: 1;
  letter-spacing: .04em;
  color: #f1ebdf;
  margin-bottom: 18px;
  opacity: 0;
  animation: ih-fade-up .85s .38s ease forwards;
}

.ih-sub {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: .18em;
  color: rgba(255,255,255,.65);
  opacity: 0;
  animation: ih-fade-up .65s .65s ease forwards;
}

@keyframes ih-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Specs strip */
.ih-specs {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: rgba(10,6,8,.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,.07);
}

.ihs-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 22px 20px;
}

.ihs-val {
  font-family: var(--english);
  font-size: 30px;
  font-weight: 400;
  color: #f1ebdf;
  line-height: 1;
}

.ihs-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.42);
  text-align: center;
}

.ihs-sep {
  width: 1px;
  background: rgba(255,255,255,.1);
  align-self: center;
  height: 36px;
}

/* ── DESCRIPTION ──────────────────────────────── */
.ih-desc {
  background: var(--paper);
  padding: 90px 5vw 100px;
}

.ih-desc-layout {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: 64px;
  align-items: flex-start;
  direction: rtl;
}

.ih-desc-aside { flex: 0 0 200px; }

.ih-desc-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 50px;
  line-height: 1.1;
  color: var(--ink);
  position: sticky;
  top: 90px;
}

.ih-desc-title::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  margin: 14px 0 0;
}

.ih-desc-body {
  flex: 1;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.ih-desc-body p + p { margin-top: 18px; }

/* ── GALLERY MOSAIC ───────────────────────────── */
.ih-gallery {
  background: var(--dark);
  padding: 0;
}

.ih-mosaic {
  display: flex;
  gap: 3px;
  height: 540px;
}

.ihm-main {
  flex: 1.55;
  overflow: hidden;
}

.ihm-main img,
.ihm-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.ihm-main:hover img,
.ihm-side div:hover img { transform: scale(1.03); }

.ihm-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ihm-side div {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.ihm-side div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── CTA STRIP ───────────────────────────────── */
.ih-cta {
  background: linear-gradient(to left, #38174d 0%, #2b1040 40%, #160820 70%, #0a0608 100%);
  padding: 90px 5vw 100px;
  text-align: center;
}

.ih-cta-label {
  font-family: var(--english);
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}

.ih-cta-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 50px;
  color: #f1ebdf;
  margin-bottom: 14px;
  line-height: 1.1;
}

.ih-cta-sub {
  color: rgba(255,255,255,.5);
  font-size: 15px;
  margin-bottom: 40px;
  letter-spacing: .04em;
}

.ih-cta-btn {
  display: inline-block;
  padding: 16px 52px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 999px;
  color: rgba(255,255,255,.9);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  transition: background .3s, border-color .3s, color .3s;
  text-decoration: none;
}

.ih-cta-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.9);
  color: #fff;
}

/* ── CONTACT MODAL — OFFICES (light blue) ───── */
.page-offices .ihm-box {
  background: linear-gradient(160deg, #dae2ec 0%, #c4d5e6 100%);
  border-color: rgba(24,10,33,.1);
}
.page-offices .ihm-eyebrow { color: rgba(24,10,33,.35); }
.page-offices .ihm-title   { color: #180a21; }
.page-offices .ihm-sub     { color: rgba(24,10,33,.5); }
.page-offices .ihm-close   { color: rgba(24,10,33,.35); }
.page-offices .ihm-close:hover { color: #180a21; }
.page-offices .ihm-form input,
.page-offices .ihm-form select {
  background: rgba(255,255,255,.55);
  border-color: rgba(24,10,33,.18);
  color: #180a21;
}
.page-offices .ihm-form input::placeholder { color: rgba(24,10,33,.4); }
.page-offices .ihm-form input:focus,
.page-offices .ihm-form select:focus { border-color: rgba(24,10,33,.45); }
.page-offices .ihm-form select option { background: #dae2ec; color: #180a21; }
.page-offices .ihm-submit {
  background: #180a21;
  color: #dae2ec;
}
.page-offices .ihm-submit:hover { background: #2e1545; }
.page-offices .ihm-disclaimer { color: rgba(24,10,33,.3); }
.page-offices .ihm-backdrop { background: rgba(218,226,236,.55); }

/* ── CONTACT MODAL — MICRO LIVING (dark purple) */
.page-ml .ihm-box {
  background: linear-gradient(160deg, #38174d 0%, #200d30 100%);
}
.page-ml .ihm-submit { background: #5c2a7a; }
.page-ml .ihm-submit:hover { background: #7034a0; }

/* ── CONTACT MODAL ───────────────────────────── */
.ih-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}
.ih-modal.open {
  visibility: visible;
  pointer-events: all;
}
.ihm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,6,8,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s;
}
.ih-modal.open .ihm-backdrop { opacity: 1; }

.ihm-box {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #2b1040 0%, #160820 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 48px 40px 36px;
  width: min(460px, calc(100vw - 32px));
  box-shadow: 0 40px 80px rgba(0,0,0,.7);
  transform: translateY(28px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  direction: rtl;
}
.ih-modal.open .ihm-box {
  transform: translateY(0);
  opacity: 1;
}
.ihm-close {
  position: absolute;
  top: 14px; left: 16px;
  background: none; border: none;
  color: rgba(255,255,255,.4);
  font-size: 20px; cursor: pointer;
  line-height: 1; padding: 4px 8px;
  transition: color .2s;
}
.ihm-close:hover { color: #fff; }

.ihm-eyebrow {
  font-family: var(--english);
  font-size: 10px; letter-spacing: .28em;
  color: rgba(255,255,255,.3);
  margin-bottom: 10px;
}
.ihm-title {
  font-family: var(--sans);
  font-weight: 200; font-size: 36px;
  color: #f1ebdf; margin-bottom: 6px;
}
.ihm-sub {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  margin-bottom: 28px;
}
.ihm-form {
  display: flex; flex-direction: column; gap: 12px;
}
.ihm-form input,
.ihm-form select {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  font-family: var(--sans); font-size: 15px;
  outline: none; width: 100%;
  box-sizing: border-box;
  transition: border-color .2s;
}
.ihm-form input::placeholder { color: rgba(255,255,255,.32); }
.ihm-form input:focus,
.ihm-form select:focus { border-color: rgba(241,235,223,.45); }
.ihm-form select option { background: #2b1040; color: #fff; }

.ihm-submit {
  background: #38174d; border: none;
  border-radius: 8px; padding: 16px;
  color: #f1ebdf;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  cursor: pointer; width: 100%; margin-top: 4px;
  transition: background .25s;
}
.ihm-submit:hover { background: #4e2070; }
.ihm-submit:disabled { opacity: .6; cursor: default; }

.ihm-disclaimer {
  font-size: 10px; color: rgba(255,255,255,.22);
  text-align: center; margin-top: 16px; letter-spacing: .06em;
}

/* ── MICRO LIVING hero logo ──────────────────── */
.ih-hero-logo {
  height: 124px;
  width: auto;
  margin-bottom: 28px;
  filter: brightness(0) invert(1);
  opacity: 0;
  animation: ih-fade-up .55s .18s ease forwards;
}

/* ── MICRO LIVING English hero title ─────────── */
.ih-title-en {
  font-family: var(--english);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.08;
  letter-spacing: .16em;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 22px;
  opacity: 0;
  animation: ih-letter-in 1.2s .3s cubic-bezier(.22,.61,.36,1) forwards;
}
.ih-title-en span { display: block; white-space: nowrap; }

.ih-hebrew-sub {
  font-family: var(--sans);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: .16em;
  color: rgba(255,255,255,.88);
  opacity: 0;
  animation: ih-fade-up .65s 1s ease forwards;
}

/* letters EXPAND outward — from tight to wide */
@keyframes ih-letter-in {
  from { letter-spacing: .01em; opacity: 0; }
  to   { letter-spacing: .16em; opacity: 1; }
}

/* ── PRIVATE AMENITIES SECTION ───────────────── */
.ih-amenities {
  background: #fff;
  padding: 96px 5vw 108px;
  text-align: center;
}

.iha-eyebrow {
  font-family: var(--english);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .4em;
  color: #877394;
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.iha-eyebrow.anim-in { opacity: 1; transform: translateY(0); }

.iha-title {
  font-family: var(--english);
  font-size: clamp(20px, 2.8vw, 42px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .06em;
  color: #877394;
  text-transform: uppercase;
  direction: ltr;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 52px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s .12s ease, transform .9s .12s ease;
}
.iha-title.anim-in { opacity: 1; transform: translateY(0); }

.iha-body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.95;
  color: #877394;
  max-width: 680px;
  margin: 0 auto;
  direction: rtl;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .85s .26s ease, transform .85s .26s ease;
}
.iha-body.anim-in { opacity: 1; transform: translateY(0); }

/* ── MICRO LIVING full-height hero ───────────── */
.ih-hero.ih-hero-ml {
  min-height: 100vh;
}

/* ── GALLERY SHARED ELEMENTS ─────────────────── */
.ml-slider-wrap {
  overflow: visible;
  margin: 0;
}

.ml-track {
  display: flex;
  gap: 16px;
  padding: 0 5vw;
  transition: transform .8s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.ml-slide {
  min-width: calc(44% - 10px);
  flex-shrink: 0;
}

.ml-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.ml-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
  padding-bottom: 4px;
}

.ml-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: background .3s;
}
.ml-dot.active { background: rgba(255,255,255,.9); }

/* Dots on white background */
.ml-dots-dark .ml-dot { background: rgba(92,82,94,.2); }
.ml-dots-dark .ml-dot.active { background: rgba(92,82,94,.75); }

/* ── GALLERY 1 — white section (continuous auto-scroll) ── */
.ml-gallery-auto {
  background: #fff;
  padding: 32px 0 48px;
  overflow: hidden;
}

.ml-auto-wrap {
  overflow: hidden;
}

.ml-auto-track {
  display: flex;
  gap: 14px;
  will-change: transform;
}

.ml-auto-slide {
  flex-shrink: 0;
  min-width: calc(50% - 7px);
  position: relative;
}

.ml-auto-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.ml-auto-caption {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.9);
  font-family: var(--english);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-shadow: 0 1px 10px rgba(0,0,0,.7);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ml-caption-sub {
  font-size: 8px;
  letter-spacing: .22em;
  opacity: .75;
  font-style: normal;
}

.ml-auto-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 22px 0 0;
}

.ml-auto-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(92,82,94,.2);
  transition: background .35s, transform .35s;
  cursor: default;
}

.ml-auto-dot.active {
  background: rgba(92,82,94,.75);
  transform: scale(1.25);
}

/* Light dots for dark gallery */
.ml-auto-dots--light .ml-auto-dot         { background: rgba(255,255,255,.22); }
.ml-auto-dots--light .ml-auto-dot.active  { background: rgba(255,255,255,.85); }


/* ── DARK SECTION (#5c525e) ──────────────────── */
.ml-dark-section {
  /* white behind top half of bubble, fades to dark — bubble is ~360px, margin-top -32px */
  background: linear-gradient(to bottom, #ffffff 0px, #ffffff 150px, #5c525e 210px, #5c525e 100%);
  padding-bottom: 64px;
}

/* ── THE RESIDENCE BUBBLE ────────────────────── */
.ml-residence-bubble {
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 68%, #f1ebdf 84%, #f1ebdf 100%);
  border-radius: 32px;
  margin: -32px 20vw 60px;
  padding: 72px 48px 64px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.12);
}

.mlr-eyebrow {
  font-family: var(--english);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .45em;
  color: rgba(56,23,77,.4);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.mlr-title {
  font-family: var(--english);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 400;
  letter-spacing: .1em;
  color: #38174d;
  text-transform: uppercase;
  margin-bottom: 32px;
  line-height: 1.3;
}

.mlr-body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: #877394;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* ── TICKER ──────────────────────────────────── */
.ml-ticker {
  overflow: hidden;
  padding: 38px 0 44px;
  margin-bottom: 60px;
}

.ml-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ml-tick 30s linear infinite;
}

.ml-ticker-track span {
  font-family: var(--english);
  font-size: clamp(12px, 1.4vw, 22px);
  font-weight: 200;
  letter-spacing: .28em;
  color: #dcd1d5;
  text-transform: uppercase;
  flex-shrink: 0;
}

@keyframes ml-tick {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── GALLERY 2 — dark section override ──────── */
.ml-gallery-auto--dark {
  background: transparent;
  padding: 0 0 20px;
}

.ml-gallery-auto--dark .ml-auto-hint {
  color: rgba(255,255,255,.35);
}

/* ── FINAL WHITE SECTION ─────────────────────── */
.ml-final-section {
  background: #fff;
  padding: 96px 40px 112px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.ml-final-btn-primary {
  display: inline-block;
  padding: 17px 60px;
  border: 2px solid rgba(92,82,94,.65);
  border-radius: 999px;
  color: #5c525e;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .3s, border-color .3s, color .3s;
}
.ml-final-btn-primary:hover {
  background: rgba(92,82,94,.08);
  border-color: #5c525e;
}

.ml-final-btn-secondary {
  display: inline-block;
  padding: 12px 40px;
  border: 1.5px solid rgba(92,82,94,.3);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .1em;
  color: rgba(92,82,94,.55);
  text-decoration: none;
  transition: border-color .3s, color .3s;
}
.ml-final-btn-secondary:hover {
  border-color: rgba(92,82,94,.65);
  color: #5c525e;
}

/* ══════════════════════════════════════════════
   OFFICES PAGE
   ══════════════════════════════════════════════ */

/* Hero */
.ih-hero.ih-hero-offices { min-height: 100vh; }

.ih-hero-offices .ih-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10,6,8,.22)  0%,
    rgba(10,6,8,.52) 55%,
    rgba(10,6,8,.82) 100%
  );
}

.ih-title-offices {
  font-size: clamp(78px, 15.6vw, 218px);
  color: #dae2ec;
}

.ih-hero-offices .ih-hebrew-sub {
  color: #dae2ec;
}

/* Main white section */
.of-main-section {
  background: #fff;
  padding-bottom: 0;
}

/* Bubble */
.of-bubble {
  background: #dae2ec;
  border-radius: 32px;
  margin: -32px 20vw 60px;
  padding: 72px 48px 64px;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.08);
}

.ofb-eyebrow {
  font-family: var(--english);
  font-size: clamp(13px, 1.4vw, 20px);
  font-weight: 300;
  letter-spacing: .35em;
  color: rgba(24,10,33,.5);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.ofb-title {
  font-family: var(--english);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 400;
  letter-spacing: .1em;
  color: #180a21;
  text-transform: uppercase;
  margin-bottom: 32px;
  line-height: 1.3;
}

.ofb-body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(24,10,33,.6);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* Ticker override for offices (dark text on white) */
.of-ticker {
  border-top-color: rgba(24,10,33,.08);
  border-bottom-color: rgba(24,10,33,.08);
}
.of-ticker .ml-ticker-track span { color: #180a21; }

/* Gallery inside offices (inherits ml-gallery-auto, just white bg) */
.of-gallery { background: #fff; }

/* Remove gap between ticker and next section */
.of-main-section .ml-ticker { margin-bottom: 0; padding-bottom: 28px; }
.ml-dark-section .ml-ticker  { margin-bottom: 0; padding-bottom: 0; }
/* Reduce padding-top on galleries that follow a ticker */
.of-main-section + .gallery  { padding-top: 8px; }
.ml-dark-section + .gallery  { padding-top: 0; }

/* ──────────────────────────────────────────────
   INNER PAGES — RESPONSIVE
   768px  iPad / tablet portrait
   640px  large phone landscape
   480px  standard mobile
   430px  iPhone 14 Plus / 16 Plus / Pro Max
   390px  iPhone 14/15/16 / Galaxy S24
   375px  iPhone SE / Galaxy S23
   320px  Galaxy Fold closed
   ────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Pill buttons stay, regular links hidden — same as main page */
  .inner-page .tn-links a:not(.tn-inner) { display: none; }

  /* Hero */
  .ih-hero             { min-height: 92vh; }
  .ih-content          { padding: 60px 20px 36px; }
  .ih-title-en         { font-size: clamp(32px, 7.5vw, 58px); }
  .ih-title-offices    { font-size: clamp(38px, 9vw, 70px); }
  .ih-hebrew-sub       { font-size: 26px; }
  .ih-hero-logo        { height: 73px; margin-bottom: 20px; }

  /* AMENITIES */
  .ih-amenities        { padding: 60px 20px 72px; }
  .iha-title           { font-size: clamp(16px, 4vw, 28px); line-height: 1.55; }
  .iha-body            { font-size: 14px; }

  /* Residence bubble */
  .ml-residence-bubble { margin: -32px 4vw 48px; padding: 40px 24px 36px; }
  .mlr-title           { font-size: clamp(15px, 4vw, 24px); }
  .mlr-body            { font-size: 14px; }
  .ml-dark-section     { background: linear-gradient(to bottom, #ffffff 0px, #ffffff 110px, #5c525e 170px, #5c525e 100%); }

  /* Offices bubble */
  .of-bubble           { margin: -32px 4vw 48px; padding: 40px 24px 36px; }
  .ofb-body            { font-size: 14px; }

  /* Ticker */
  .ml-ticker           { padding: 28px 0 32px; }

  /* Final section */
  .ml-final-section    { padding: 64px 24px 80px; gap: 18px; }
  .ml-final-btn-primary  { padding: 15px 44px; font-size: 15px; }
  .ml-final-btn-secondary { padding: 10px 30px; }

  /* Modal */
  .ihm-box             { padding: 36px 24px 28px; }
  .ihm-title           { font-size: 28px; }
}

@media (max-width: 640px) {
  .ih-title-en         { font-size: clamp(28px, 7.5vw, 50px); letter-spacing: .14em; }
  .ih-title-offices    { font-size: clamp(34px, 8.5vw, 60px); }
  .ml-residence-bubble { margin: -32px 3vw 40px; }
  .of-bubble           { margin: -32px 3vw 40px; }
}

@media (max-width: 480px) {
  .inner-page .topnav  { padding: 0 12px; }

  .ih-hero             { min-height: 88vh; }
  .ih-content          { padding: 52px 16px 30px; }
  .ih-hero-logo        { height: 62px; margin-bottom: 16px; }
  .ih-title-en         { font-size: clamp(24px, 7.5vw, 36px); letter-spacing: .12em; }
  .ih-title-offices    { font-size: clamp(29px, 9vw, 43px); }
  .ih-hebrew-sub       { font-size: 23px; }

  .ih-amenities        { padding: 48px 16px 60px; }
  .iha-title           { font-size: clamp(14px, 3.5vw, 22px); }
  .iha-body            { font-size: 13px; }

  .ml-residence-bubble { margin: -24px 3vw 36px; padding: 32px 18px 28px; }
  .of-bubble           { margin: -24px 3vw 36px; padding: 32px 18px 28px; }
  .mlr-body            { font-size: 13px; }
  .ofb-body            { font-size: 13px; }
  .ml-dark-section     { background: linear-gradient(to bottom, #ffffff 0px, #ffffff 90px, #5c525e 140px, #5c525e 100%); }

  .ml-ticker           { padding: 22px 0 26px; margin-bottom: 44px; }

  .ml-final-section    { padding: 52px 16px 68px; }
  .ml-final-btn-primary  { padding: 14px 36px; font-size: 14px; }
}

@media (max-width: 430px) {
  .ih-title-en         { font-size: clamp(22px, 7.5vw, 33px); letter-spacing: .1em; }
  .ih-title-offices    { font-size: clamp(26px, 9vw, 40px); }
  .ih-amenities        { padding: 40px 14px 52px; }
  .iha-title           { font-size: clamp(13px, 3.2vw, 20px); line-height: 1.6; }
  .ml-residence-bubble,
  .of-bubble           { margin: -20px 2vw 32px; padding: 28px 16px 24px; }
}

@media (max-width: 390px) {
  .ih-title-en         { font-size: clamp(20px, 7.5vw, 30px); letter-spacing: .08em; }
  .ih-title-offices    { font-size: clamp(24px, 9vw, 36px); }
  .ml-final-btn-primary  { padding: 13px 30px; font-size: 13.5px; }
}

@media (max-width: 375px) {
  .ih-title-en         { font-size: clamp(18px, 7.5vw, 28px); letter-spacing: .06em; }
  .ih-title-offices    { font-size: clamp(22px, 9vw, 34px); }
}

@media (max-width: 320px) {
  .ih-title-en         { font-size: clamp(16px, 7.5vw, 25px); letter-spacing: .04em; }
  .ih-title-offices    { font-size: clamp(19px, 9vw, 30px); }
  .ml-residence-bubble,
  .of-bubble           { padding: 22px 12px 20px; }
  .ml-final-btn-primary { padding: 12px 24px; font-size: 13px; }
}

/* ── Gallery theme modifiers ──────────────────────────── */
.gallery--light {
  background: #fff;
  padding-top: 8px;
}
.gallery--light .gallery-title {
  color: rgba(24,10,33,.45);
}
.gallery--light .dot {
  background: rgba(24,10,33,.18);
}
.gallery--light .dot.active {
  background: rgba(24,10,33,.65);
}

.gallery--warm-dark {
  background: #5c525e;
  padding-top: 4px;
}
.gallery--warm-dark .dot {
  background: rgba(255,255,255,.22);
}
.gallery--warm-dark .dot.active {
  background: rgba(255,255,255,.85);
}

/* ── Micro Living — all body texts +20% ─────────────── */
.page-ml .ih-title-en        { font-size: clamp(48px, 7.5vw, 92px); white-space: normal; text-align: center; }
.page-ml .mlr-eyebrow        { font-size: 13px; }
.page-ml .mlr-title          { font-size: clamp(22px, 2.4vw, 36px); }
.page-ml .mlr-body           { font-size: 18px; }
.page-ml .iha-eyebrow        { font-size: 13px; }
.page-ml .iha-title          { font-size: clamp(24px, 3.4vw, 50px); }
.page-ml .iha-body           { font-size: 19px; }

@media (max-width: 768px) {
  .page-ml .ih-title-en      { font-size: clamp(36px, 8.5vw, 64px); }
  .page-ml .iha-title        { font-size: clamp(19px, 4.8vw, 34px); }
  .page-ml .iha-body         { font-size: 17px; }
  .page-ml .mlr-title        { font-size: clamp(18px, 4.8vw, 29px); }
  .page-ml .mlr-body         { font-size: 17px; }
}
@media (max-width: 480px) {
  .page-ml .ih-title-en      { font-size: clamp(25px, 7.5vw, 40px); }
  .page-ml .iha-title        { font-size: clamp(17px, 4.2vw, 26px); }
  .page-ml .iha-body         { font-size: 16px; }
  .page-ml .mlr-body         { font-size: 16px; }
}
@media (max-width: 430px) {
  .page-ml .ih-title-en      { font-size: clamp(22px, 6.5vw, 33px); }
  .page-ml .iha-title        { font-size: clamp(16px, 3.8vw, 24px); }
}
@media (max-width: 375px) {
  .page-ml .ih-title-en      { font-size: clamp(20px, 5.8vw, 30px); }
}
@media (max-width: 320px) {
  .page-ml .ih-title-en      { font-size: clamp(17px, 5vw, 26px); }
}
