/* OFFISMART · יגאל אלון 134 — דף נחיתה */
@font-face {
  font-family: "Plinko";
  src: url("../fonts/Plinko_Fs-VF.woff2") format("woff2-variations"), url("../fonts/Plinko_Fs-VF.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --cream: #f4efe7;
  --cream-2: #ebe3d6;
  --sand: #e3cfae;
  --wood: #84562b;
  --ink: #141c26;
  --ink-2: #222d3a;
  --muted: #5f6672;
  --line: rgba(20, 28, 38, .16);
  --line-light: rgba(244, 239, 231, .2);
  --gut: clamp(20px, 4vw, 64px);
  --header: 76px;
  --ease: cubic-bezier(.22, .61, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plinko", "Heebo", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 200; line-height: 1; letter-spacing: -.025em; }
h1 strong, h2 strong, h3 strong { font-weight: 700; display: block; }
p { margin: 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.label { font-size: 13px; font-weight: 500; letter-spacing: .16em; color: var(--wood); margin-bottom: 28px; }
.label--light { color: rgba(244, 239, 231, .78); }

.caption {
  position: absolute; left: 20px; bottom: 16px; z-index: 2;
  font-size: 12px; letter-spacing: .14em; color: var(--muted);
}
.caption--light { color: rgba(255, 255, 255, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 36px; border: 0; border-radius: 2px;
  font: 600 17px/1 "Plinko", sans-serif; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--wood); }
.btn--lg { height: 62px; padding: 0 48px; font-size: 18px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header); background: var(--cream); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
html { scroll-padding-top: var(--header); }
.site-header__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--gut); }
.site-header__logo img { width: 168px; height: auto; }
.site-header__meta { font-size: 20px; font-weight: 600; color: var(--ink); }
.site-header__phones { justify-self: end; display: flex; gap: 20px; }
.site-header__phone { direction: ltr; font-weight: 600; font-size: 17px; text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid var(--ink); }
.site-header__phone:hover { color: var(--wood); border-color: var(--wood); }

/* ---------- hero ---------- */
/* tall section + sticky viewport: scrolling opens the framed image to full bleed, scrolling back closes it */
.hero { position: relative; height: 130svh; }
.hero__sticky { position: sticky; top: 0; height: 100svh; min-height: 640px; display: flex; flex-direction: column; padding-top: var(--header); }
.hero__stage {
  --it: 6px; --is: var(--gut); --ib: 6px; --r: 4px;
  position: relative; flex: 1; overflow: hidden; background: var(--ink);
  clip-path: inset(var(--it) var(--is) var(--ib) var(--is) round var(--r));
  animation: frame-open 1.6s var(--ease) .1s backwards;
}
@keyframes frame-open { from { clip-path: inset(30% 38% 30% 38% round 4px); } }
.hero__slides { position: absolute; inset: 0; transform: scale(calc(1.06 - var(--open, 0) * .06)); }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide.is-active { opacity: 1; animation: kenburns 7.5s linear both; }
.hero__slide.is-leaving { opacity: 0; animation: kenburns-out 7.5s linear both; }
@keyframes kenburns { from { transform: scale(1.06) translateX(1%); } to { transform: scale(1) translateX(0); } }
@keyframes kenburns-out { from { transform: scale(1); } to { transform: scale(1); } }
.hero__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(14, 18, 24, .8) 0%, rgba(14, 18, 24, .38) 45%, rgba(14, 18, 24, .05) 72%), linear-gradient(to left, rgba(14, 18, 24, .55) 0%, rgba(14, 18, 24, 0) 62%); }
.hero__copy { position: absolute; z-index: 2; right: 0; bottom: 0; padding: 0 calc(var(--gut) + clamp(24px, 3vw, 56px)) clamp(44px, 5vw, 76px); color: #fff; max-width: 1100px; }
.hero__address { display: inline-block; margin-bottom: 18px; padding: 7px 16px; background: var(--sand); color: var(--ink); font-size: clamp(20px, 2.2vw, 32px); font-weight: 700; line-height: 1.2; border-radius: 2px; }
.hero__title { font-size: clamp(54px, min(8.4vw, 13svh), 136px); line-height: .94; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .ln > span { display: block; animation: line-rise 1.3s var(--ease) var(--d, 0s) backwards; }
.d1 { --d: .5s; } .d2 { --d: .65s; } .d3 { --d: .8s; } .d4 { --d: 1.05s; } .d5 { --d: 1.2s; } .d6 { --d: 1.35s; }
@keyframes line-rise { from { transform: translateY(105%); } }
.hero__in { animation: fade-up 1.1s var(--ease) var(--d, 0s) backwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
.hero__sub { margin-top: 26px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 300; max-width: 34em; color: rgba(255, 255, 255, .9); }

.hero__dots { position: absolute; z-index: 3; left: calc(var(--gut) + clamp(24px, 3vw, 56px)); bottom: clamp(44px, 5vw, 76px); display: flex; gap: 18px; }
.hero__dots button { display: flex; flex-direction: column; gap: 10px; width: 78px; padding: 0; border: 0; background: none; white-space: nowrap; cursor: pointer; color: rgba(255, 255, 255, .88); font: 400 13px "Plinko", sans-serif; letter-spacing: .08em; text-align: right; transition: color .3s; }
.hero__dots button.is-active, .hero__dots button:hover { color: #fff; }
.hero__dots .hero__pause { flex: none; width: 32px; height: 32px; padding: 7px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; color: #fff; align-self: flex-end; gap: 0; }
.hero__pause svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.hero__pause .i-play { display: none; }
.is-paused .hero__pause .i-pause { display: none; }
.is-paused .hero__pause .i-play { display: inline; }
.is-paused .hero__dot.is-active i::after { animation: none; transform: scaleX(1); }
.hero__dots i { position: relative; display: block; height: 2px; background: rgba(255, 255, 255, .45); overflow: hidden; }
.hero__dots i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: right; }
.hero__dots .is-active i::after { animation: dot-fill var(--slide, 6.5s) linear forwards; }
.hero__dots .is-done i::after { transform: scaleX(1); }
@keyframes dot-fill { to { transform: scaleX(1); } }

/* hero form row */
.hero__form { padding: 24px var(--gut) 26px; padding-inline-start: max(var(--gut), 96px); background: var(--ink); color: var(--cream); }
.hero__form .lead-form__title { color: #fff; }
.hero__form .field input, .hero__form .field select { background-color: rgba(255, 255, 255, .06); border-color: rgba(244, 239, 231, .22); color: #fff; }
.hero__form .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4efe7' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.hero__form .field select option { color: var(--ink); }
.hero__form .field input::placeholder, .hero__form .field select:invalid { color: rgba(244, 239, 231, .55); }
.hero__form .field input:focus, .hero__form .field select:focus { border-color: var(--sand); background-color: rgba(255, 255, 255, .1); }
.hero__form .btn--dark { background: var(--sand); color: var(--ink); }
.hero__form .btn--dark:hover { background: #fff; }
.hero__form .consent { color: rgba(244, 239, 231, .7); }
.hero__form .consent a { color: var(--sand); }
.hero__form .consent input { accent-color: var(--sand); }
.hero__form .lead-form__msg.is-error, .hero__form .consent.is-error span { color: #ff9a85; }
.hero__form .field.is-error input, .hero__form .field.is-error select { border-color: #ff9a85; }
.hero__form .lead-form.is-sent .lead-form__msg { color: var(--cream); }
.lead-form--row { display: grid; grid-template-columns: 180px 1fr; column-gap: 32px; align-items: start; }
.lead-form--row .lead-form__title { font-size: 22px; font-weight: 700; line-height: 1.15; padding-top: 4px; }
.lead-form--row .consent, .lead-form--row .lead-form__msg { grid-column: 2; }
.lead-form__fields { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > span:not(.sr-only) { font-size: 14px; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 56px; padding: 0 18px; border: 1px solid var(--line); border-radius: 2px;
  background: rgba(255, 255, 255, .55); font: 400 17px "Plinko", sans-serif; color: var(--ink); outline: none;
  transition: border-color .25s, background .25s;
}
.field input[type=tel] { direction: rtl; text-align: right; }
.field select { appearance: none; cursor: pointer;
  background: rgba(255, 255, 255, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141c26' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 16px center / 16px;
}
.field select:invalid, .field input::placeholder { color: #5f6672; opacity: 1; }
.field input:focus, .field select:focus { border-color: var(--ink); background-color: #fff; }
.field.is-error input, .field.is-error select { border-color: #b23a26; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent a { color: var(--ink); }
.consent.is-error span { color: #b23a26; }
.lead-form__msg { font-size: 15px; font-weight: 500; }
.lead-form__msg:not(:empty) { margin-top: 10px; }
.lead-form__msg.is-error { color: #b23a26; }
.lead-form.is-sent .lead-form__fields, .lead-form.is-sent .consent, .lead-form.is-sent .field, .lead-form.is-sent button { display: none; }
.lead-form.is-sent .lead-form__msg { font-size: 22px; font-weight: 600; color: var(--ink); margin: 0; }

/* ---------- intro ---------- */
.intro { padding: clamp(56px, 6vw, 96px) 0 clamp(48px, 5vw, 76px); }
.intro__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 6vw; align-items: center; }
.intro h2 { font-size: clamp(42px, 5.4vw, 88px); }
.intro__text { margin-top: 36px; font-size: 20px; font-weight: 300; color: var(--muted); max-width: 30em; }
.spec { margin: 0; }
.spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: 16px; }
.spec dd { margin: 0; font-size: 22px; font-weight: 600; text-align: left; }
.spec div.spec__total { padding: 12px 0; }
.spec__total dt { font-size: 20px; font-weight: 600; color: var(--ink); }
.spec__total dd { font-size: 34px; font-weight: 700; color: var(--wood); }
.spec div.spec__sub { padding: 9px 0; border-top-style: dashed; }
.spec__sub dd { font-size: 19px; }

/* ---------- full-bleed image ---------- */
/* scroll-driven: the frame opens and the image zooms out as it rises into view; a slow band of light sweeps across */
.bleed {
  --bp: 1;
  position: relative; height: min(94vh, 980px); overflow: hidden; background: var(--cream);
  clip-path: inset(calc((1 - var(--bp)) * 9%) calc((1 - var(--bp)) * 14%) round calc((1 - var(--bp)) * 28px));
}
.bleed img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.bleed::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(14, 18, 24, .55) 0%, rgba(14, 18, 24, 0) 45%); }
.bleed::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 228, 180, .55) 50%, transparent 65%) no-repeat;
  background-size: 260% 100%; animation: light-sweep 7s var(--ease) infinite;
}
@keyframes light-sweep { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
.bleed__text { position: absolute; z-index: 2; right: 0; bottom: 0; padding: 0 var(--gut) clamp(40px, 5vw, 80px); color: #fff; }
.bleed__text .label { display: block; margin-bottom: 16px; }
.bleed__line { display: block; font-size: clamp(34px, 4.4vw, 72px); font-weight: 200; line-height: 1; letter-spacing: -.02em;
  opacity: calc((var(--bp) - .55) * 2.2); transform: translateY(calc((1 - var(--bp)) * 60px)); }
.bleed__line strong { display: block; font-weight: 700; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); direction: ltr; }
.ticker__track { display: flex; align-items: center; width: max-content; animation: ticker 38s linear infinite; }
.ticker span { direction: rtl; padding-inline: 34px; font-size: clamp(28px, 3.4vw, 54px); font-weight: 200; letter-spacing: -.01em; white-space: nowrap; }
.ticker span:nth-of-type(even) { font-weight: 700; }
.ticker i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--wood); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- chapters ---------- */
.chapter { padding: clamp(48px, 5vw, 80px) 0; }
.chapter__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 5vw; align-items: center; }
.chapter__text { padding-top: 0; }
.chapter__text h3 { font-size: clamp(40px, 4.6vw, 74px); margin-bottom: 30px; }
.chapter__text > p:not(.label) { font-size: 19px; font-weight: 300; color: var(--muted); max-width: 26em; }
.chapter--flip .chapter__grid { grid-template-columns: 8fr 4fr; }
.chapter--flip .chapter__media { order: -1; }

.frame { position: relative; overflow: hidden; background: var(--cream-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.chapter__media--pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.chapter__media--pair .frame { height: clamp(460px, 78vh, 860px); }
.chapter__media--pair .frame:nth-child(2) { margin-top: 18%; }
.frame--hero { height: clamp(480px, 84vh, 920px); }

.list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.list li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 17px; }

/* ---------- roof ---------- */
.roof { padding-bottom: clamp(48px, 5vw, 80px); }
.roof__hero { position: relative; height: 100svh; max-height: 1040px; min-height: 560px; overflow: hidden; color: #fff; }
.roof__hero img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.roof__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 18, 24, .78) 0%, rgba(14, 18, 24, .2) 45%, rgba(14, 18, 24, 0) 70%); }
.roof__copy { position: absolute; z-index: 2; inset: auto 0 0; max-width: 1520px; margin-inline: auto; padding: 0 var(--gut) clamp(40px, 6vw, 90px); }
.roof__copy h3 { font-size: clamp(46px, 6.4vw, 108px); max-width: 12em; }
.roof__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 16px; }
.roof__row .frame { aspect-ratio: 16 / 10.5; }

/* ---------- gallery ---------- */
.gallery { padding: clamp(32px, 3vw, 48px) 0 clamp(56px, 6vw, 96px); }
.gallery__head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 36px; }
.gallery__head h3 { font-size: clamp(38px, 4.4vw, 70px); }
.gallery__nav { display: flex; align-items: center; gap: 8px; }
.gallery__count { margin-inline-end: 16px; font-size: 15px; color: var(--muted); direction: ltr; }
.gallery__count b { color: var(--ink); font-weight: 600; }
.gallery__nav button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.gallery__nav button:hover { background: var(--ink); border-color: var(--ink); }
.gallery__nav button:hover svg { stroke: var(--cream); }
.gallery__nav svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.gallery__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--gut); scroll-padding-inline: var(--gut); outline: none; cursor: grab;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track figure { flex: 0 0 auto; scroll-snap-align: start; }
.gallery__track img { height: clamp(380px, 72vh, 780px); width: auto; max-width: 88vw; object-fit: cover; }
.gallery__track figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ---------- location ---------- */
.location { background: var(--ink); color: var(--cream); padding: clamp(56px, 6vw, 96px) 0; }
.location__head h3 { font-size: clamp(42px, 5.4vw, 88px); }
.location__grid { display: grid; grid-template-columns: 7fr 4fr; gap: 4vw; margin-top: 36px; align-items: end; }
.location__grid { align-items: stretch; }
.location__map { position: relative; overflow: hidden; }
#map { isolation: isolate; height: clamp(460px, 68vh, 680px); background: #e9e5de; direction: ltr; }
#map .leaflet-tile-pane { filter: grayscale(1) sepia(.18) contrast(.92) brightness(1.04); }
.location__hint { margin-top: 14px; font-size: 14px; color: rgba(244, 239, 231, .6); }

/* list of destinations */
.places { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line-light); }
.places li { border-bottom: 1px solid var(--line-light); }
.places button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 14px; border: 0; background: none; color: var(--cream); text-align: right; cursor: pointer;
  font: inherit; transition: background .3s, padding .3s var(--ease);
}
.places button:hover { background: rgba(255, 255, 255, .05); }
.places button.is-active { background: rgba(227, 207, 174, .12); padding-inline-start: 24px; box-shadow: inset -3px 0 0 var(--sand); }
.places__name { display: flex; flex-direction: column; font-size: 19px; font-weight: 600; line-height: 1.25; }
.places__name small { font-size: 14px; font-weight: 300; color: rgba(244, 239, 231, .6); margin-top: 3px; }
.places__time { white-space: nowrap; color: rgba(244, 239, 231, .7); font-size: 15px; }
.places__time b { font-size: 30px; font-weight: 700; color: var(--sand); margin-inline-end: 4px; }

/* map markers */
.leaflet-container { font-family: "Plinko", sans-serif; }
.mk { position: relative; width: 0; height: 0; }
.mk__dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: transform .3s var(--ease), background .3s; }
.mk__label {
  position: absolute; left: 14px; top: -15px; direction: rtl; white-space: nowrap;
  padding: 5px 10px; border-radius: 2px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); transition: background .3s, color .3s;
}
.mk__t { color: var(--wood); margin-inline-start: 4px; }
.mk__t b { font-weight: 700; }
.mk.is-active .mk__dot { background: var(--wood); transform: scale(1.35); }
.mk.is-active .mk__label { background: var(--ink); color: #fff; }
.mk.is-active .mk__t { color: var(--sand); }
.mk.is-active::before { content: ""; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--wood); animation: mk-pulse 1.6s ease-out infinite; }
@keyframes mk-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

.mk-home { position: relative; width: 0; height: 0; }
.mk-home__pin {
  position: absolute; left: -24px; top: -58px; width: 48px; height: 48px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--ink); box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .5); display: grid; place-items: center;
}
.mk-home__pin span { transform: rotate(45deg); color: var(--sand); font-weight: 800; font-size: 15px; }
.mk-home__label { position: absolute; left: 30px; top: -58px; direction: rtl; white-space: nowrap; padding: 7px 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; border-radius: 2px; }
.mk-home::after { content: ""; position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; background: rgba(154, 106, 60, .35); animation: mk-pulse 2.2s ease-out infinite; z-index: -1; }

.route { stroke-dasharray: 2 10; stroke-linecap: round; animation: route-flow 1s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -12; } }
.leaflet-control-attribution { font-size: 10px; }

/* ---------- plan ---------- */
.plan { padding: clamp(56px, 6vw, 96px) 0; }
.plan__grid { display: grid; grid-template-columns: 4fr 7fr; gap: 6vw; align-items: center; }
.plan__copy h3 { font-size: clamp(40px, 4.6vw, 74px); margin-bottom: 26px; }
.plan__copy p:not(.label) { font-size: 19px; font-weight: 300; color: var(--muted); margin-bottom: 44px; max-width: 24em; }
.plan__img img { width: 100%; height: auto; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream-2); scroll-margin-top: 0; }
.contact__media { position: relative; overflow: hidden; }
.contact__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact__panel { padding: clamp(40px, 4vw, 72px) var(--gut); align-self: center; max-width: 720px; }
.contact__panel h2 { font-size: clamp(42px, 4.8vw, 78px); }
.contact__panel > p { margin: 24px 0 40px; font-size: 19px; font-weight: 300; color: var(--muted); }
.lead-form--stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form--stack .consent, .lead-form--stack .btn, .lead-form--stack .lead-form__msg { grid-column: 1 / -1; }
.lead-form--stack .consent { margin-top: 4px; }
.contact__phone { margin-top: 24px; color: var(--muted); }
.contact__phone a { color: var(--ink); direction: ltr; display: inline-block; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); }

/* ---------- footer ---------- */
.site-footer { padding: 28px 0 0; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; }
.site-footer img { width: 140px; height: auto; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--ink); }
.site-footer__note { flex-basis: 100%; font-size: 13px; }
.site-footer__credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; margin-top: 24px; padding: 10px var(--gut); background: var(--ink); color: var(--cream); font-size: 14px; }
.site-footer__credit a { display: block; padding: 4px 0; }
.site-footer__credit img { width: 42px; height: auto; display: block; }

/* ---------- floating buttons (right side) ---------- */
/* zero-height sticky bar at the end of <main>: the buttons follow the viewport and stop above the footer */
.float-bar { position: sticky; bottom: 6px; z-index: 50; height: 0; display: flex; justify-content: space-between; align-items: flex-end; padding-inline: 18px; transform: translateY(-16px); pointer-events: none; }
.float-bar > * { pointer-events: auto; }
.float-cta { display: flex; flex-direction: column; gap: 10px; }
.float-cta__btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); transition: transform .3s var(--ease); }
.float-cta__btn:hover { transform: translateY(-3px); }
.float-cta__btn svg { width: 26px; height: 26px; fill: currentColor; }
.float-cta__btn--wa { background: #25d366; }
.float-cta__btn--wa svg { width: 30px; height: 30px; }
.float-cta__btn--phone { background: var(--ink); box-shadow: 0 0 0 1.5px rgba(244, 239, 231, .6), 0 10px 24px -8px rgba(0, 0, 0, .4); }
.float-cta__label { display: none; }

/* ---------- reveal ---------- */
main:focus { outline: none !important; box-shadow: none; }
.lead-form__msg:focus { outline: none !important; box-shadow: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(6% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js .reveal-img > img { transform: scale(1.08); transition: transform 1.8s var(--ease); }
.js .reveal-img.is-in { clip-path: inset(0); }
.js .reveal-img.is-in > img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img { clip-path: none; }
  .js .reveal-img > img { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .lead-form--row { grid-template-columns: 1fr; }
  .lead-form--row .lead-form__title { margin-bottom: 14px; }
  .lead-form--row .lead-form__title br { display: none; }
  .lead-form--row .consent, .lead-form--row .lead-form__msg { grid-column: 1; }
  .lead-form__fields { grid-template-columns: repeat(4, 1fr); }
  .lead-form__fields .btn { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  body { font-size: 17px; }
  :root { --header: 64px; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-header__meta { display: none; }
  .site-header__logo img { width: 136px; }
  .site-header__phones { flex-direction: column; align-items: flex-end; gap: 2px; }
  .site-header__phone { font-size: 14px; line-height: 1.3; padding-bottom: 0; }

  .hero { height: auto; }
  .hero__sticky { position: static; height: auto; min-height: 0; }
  .hero__stage { flex: none; height: 68svh; min-height: 420px; --is: 10px; --it: 4px; --ib: 4px; }
  .hero__slide { object-position: 60% center; }
  .hero__slide:nth-child(4) { object-position: 22% center; } /* open space: the arch and plant, not the blank wall */
  .hero__copy { padding: 0 30px 74px; }
  .hero__dots { left: auto; right: 30px; bottom: 28px; gap: 12px; }
  .hero__dots button { width: 64px; font-size: 11px; letter-spacing: .02em; }
  .hero__sub { margin-top: 16px; }
  .hero__form { padding: 22px 20px 30px; }
  .lead-form__fields { grid-template-columns: 1fr 1fr; }

  .intro__grid, .chapter__grid, .chapter--flip .chapter__grid, .location__grid, .plan__grid { grid-template-columns: 1fr; gap: 28px; }
  .chapter__text { position: static; }
  .chapter--flip .chapter__media { order: 0; }
  .bleed { height: 62svh; }
  .chapter__media--pair { gap: 10px; }
  .chapter__media--pair .frame { height: 64vw; }
  .chapter__media--pair .frame:nth-child(2) { margin-top: 0; }
  .frame--hero { height: 78vw; }

  .roof__hero { height: 82svh; min-height: 460px; }
  .roof__row { grid-template-columns: 1fr; gap: 10px; padding-top: 10px; }

  .gallery__nav button { display: none; }
  .gallery__count { margin: 0; }
  .gallery__track { gap: 10px; }
  .gallery__track img { height: 62vw; min-height: 240px; }

  .location__grid { margin-top: 40px; }
  #map { height: 420px; }
  .places button { padding: 16px 6px; }
  .places button.is-active { padding-inline-start: 14px; }
  .bleed__text { padding: 0 20px 34px; }
  .plan__copy p:not(.label) { margin-bottom: 30px; }

  .contact { grid-template-columns: 1fr; min-height: 0; }
  .contact__media { height: 46svh; }
  .lead-form--stack { grid-template-columns: 1fr; }

  /* phones and tablets: a slim bar with its own height, so the buttons never sit on top of text */
  .float-bar { bottom: 0; height: 56px; padding-inline: 0; align-items: stretch; transform: none; background: var(--ink); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .35); }
  .float-cta { flex: 1; flex-direction: row; gap: 0; }
  .float-cta__btn, .float-cta__btn--wa, .float-cta__btn--phone { flex: 1; width: auto; height: auto; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 0; background: none; box-shadow: none; color: #fff; text-decoration: none; }
  .float-cta__btn:hover { transform: none; }
  .float-cta__btn--wa { border-inline-end: 1px solid rgba(255, 255, 255, .22); }
  .float-cta__btn--wa svg { width: 25px; height: 25px; color: #25d366; }
  .float-cta__btn--phone svg { width: 21px; height: 21px; }
  .float-cta__label { display: inline; font-size: 16px; font-weight: 500; }
}

@media (max-width: 520px) {
  .lead-form__fields { grid-template-columns: 1fr; }
  .list { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; }
  /* the first line of the roof title stays on one line on every phone */
  .roof__copy h3 { font-size: min(46px, calc((100vw - 2 * var(--gut)) / 8)); }
}
.js .reveal-img > img[data-parallax] { transition: none; transform: none; }
/* keep ranges like 3–4 in reading order inside RTL text */
.num, .places__time b, .mk__label b { unicode-bidi: isolate; direction: ltr; display: inline-block; }
@media (max-width: 900px) {
  .mk:not(.is-active) .mk__label { display: none; }
}
/* short laptop screens: keep the whole hero copy inside the stage */
@media (min-width: 901px) and (max-height: 760px) {
  .hero__title { font-size: clamp(54px, min(8.4vw, 11svh), 136px); }
  .hero__address { margin-bottom: 10px; padding: 5px 12px; font-size: 20px; }
  .hero__sub { margin-top: 12px; font-size: 17px; line-height: 1.45; }
  .hero__copy { padding-bottom: 28px; }
  .hero__dots { bottom: 28px; }
}
/* desktop: the whole floor plan fits under the header on any screen height */
@media (min-width: 901px) {
  /* width comes from the screen height (image ratio 850:770), so the space is reserved before the lazy image loads */
  .plan__img img { display: block; width: min(100%, calc(max(420px, 100svh - var(--header) - 48px) * 1.104)); height: auto; margin-inline: auto; }
}
/* keep hero text clear of the image buttons on small desktops */
@media (min-width: 901px) and (max-width: 1280px) {
  .hero__sub { max-width: calc(100vw - 2 * var(--gut) - 540px); }
}
/* narrow phones: the buttons share the width; labels stay available to screen readers */
@media (max-width: 400px) {
  .hero__dots { left: 30px; }
  .hero__dots .hero__dot { flex: 1; width: auto; min-width: 0; }
  .hero__dot span { display: none; }
}
/* English lines inside the Hebrew page: read left to right, still aligned to the right edge */
.hero__tagline, .roof__copy h3[dir="ltr"], .chapter__text h3[dir="ltr"] { text-align: right; }
.hero__tagline { margin-top: 18px; font-size: clamp(19px, 1.7vw, 26px); font-weight: 500; letter-spacing: .01em; line-height: 1.25; color: #fff; }
.hero__tagline + .hero__sub { margin-top: 12px; }
.roof__lead { max-width: 34em; margin-top: 22px; font-size: clamp(18px, 1.6vw, 23px); font-weight: 300; line-height: 1.5; color: rgba(255, 255, 255, .92); }
@media (max-width: 900px) {
  .hero__tagline { margin-top: 12px; font-size: 18px; }
  .hero__tagline + .hero__sub { margin-top: 8px; }
  .roof__lead { margin-top: 16px; font-size: 17px; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .hero__tagline { margin-top: 10px; font-size: 19px; }
}
