/* קדם · נתניה — styles */

@font-face { font-family: 'Fb Coherenti Sans'; src: url('../fonts/fbcoherentisans-lightwebfont.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Fb Coherenti Sans'; src: url('../fonts/fbcoherentisans-regularwebfont.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fb Coherenti Sans'; src: url('../fonts/fbcoherentisans-mediumwebfont.ttf') format('truetype'); font-weight: 500; font-display: swap; }

:root {
  --cream: #F6F1EA;
  --paper: #FBF8F3;
  --sand: #ECE3D6;
  --ink: #2E2320;
  --ink-2: rgba(46, 35, 32, .74);
  --line: rgba(46, 35, 32, .14);
  --brown: #3A2A27;
  --brown-2: #523D36;
  --brown-deep: #241A17;
  --brass: #B48F55;
  --brass-l: #D2B07A;
  --on-dark: #F3ECE1;
  --on-dark-2: rgba(243, 236, 225, .74);

  --f-display: 'Frank Ruhl Libre', 'David Libre', Georgia, serif;
  --f-body: 'Fb Coherenti Sans', 'Assistant', 'Heebo', Arial, sans-serif;

  --fs-display: clamp(44px, min(5.9vw, 10.6vh), 98px);
  --fs-h2: clamp(36px, min(4.1vw, 8vh), 62px);
  --fs-h3: clamp(22px, 1.7vw, 27px);
  --fs-lead: clamp(18px, 1.35vw, 21px);
  --fs-body: clamp(17px, 1.2vw, 18px);
  --fs-small: 14px;

  --gutter: clamp(20px, 5vw, 80px);
  --max: 1360px;
  --sec: clamp(128px, 13vw, 210px);
  --head-gap: clamp(44px, 4vw, 60px);
  --hdr-h: 76px;

  --r-s: 6px;
  --r-m: var(--r-img);
  --r-l: 28px;
  --r-img: 8px; /* one radius for every photo and card on the site */
  --shadow: 0 22px 44px -22px rgba(46, 35, 32, .34), 0 4px 14px rgba(46, 35, 32, .07);
  --shadow-hi: 0 32px 60px -24px rgba(46, 35, 32, .42), 0 6px 18px rgba(46, 35, 32, .09);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-soft: cubic-bezier(.23, 1, .32, 1);
  --arch-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 1 1%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27M0,1 V0.5 C0,0.26 0.2,0.09 0.5,0 C0.8,0.09 1,0.26 1,0.5 V1 Z%27/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--f-body); font-weight: 300; font-size: var(--fs-body); line-height: 1.7; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 500; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--brown); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display, .h2, .h3 { font-family: var(--f-display); color: var(--ink); letter-spacing: -.01em; }
.display { font-size: var(--fs-display); font-weight: 400; line-height: 1.04; }
.h2 { font-size: var(--fs-h2); font-weight: 400; line-height: 1.1; }
/* headings start exactly at the letter tops, so they line up with images and other edges pixel-perfect */
.h1, .h2, .display { text-box: trim-start cap alphabetic; }
.h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.25; }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--ink-2); max-width: 40ch; }

/* ---------- elevator floor tag (section label) ---------- */
.lift { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--brass); color: var(--brown); font-family: var(--f-display); font-size: 16px; line-height: 1; flex: none; background: var(--paper); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px rgba(180, 143, 85, .35); }
.floor-tag { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 400; color: var(--ink-2); margin-bottom: 22px; }
.floor-tag--dark { color: var(--on-dark-2); }
.floor-tag--dark .lift { background: transparent; color: var(--brass-l); box-shadow: inset 0 0 0 3px var(--brown-deep), inset 0 0 0 4px rgba(210, 176, 122, .4); border-color: var(--brass-l); }

/* ---------- buttons (one system) ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
/* Buttons: on hover an arch (the logo's shape) rises from below and fills the button, like a door opening */
.btn { --h: 56px; --fill: var(--brown-deep); position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 30px; border-radius: var(--r-img); border: 1px solid transparent; font-size: 17px; font-weight: 500; text-decoration: none; line-height: 1; white-space: nowrap; transition: color .45s var(--ease-soft) .3s, border-color .55s var(--ease-soft), box-shadow .7s var(--ease-soft), transform .7s var(--ease-soft); }
.btn::before { content: ''; position: absolute; z-index: -1; inset-inline: -14%; top: 100%; height: auto; aspect-ratio: 1 / 2.4; background: var(--fill); -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat; mask: var(--arch-mask) center / 100% 100% no-repeat; transform: translateY(0); transition: transform 1.1s cubic-bezier(.55, .08, .25, 1); pointer-events: none; }
.btn::after { content: ''; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5m6-6-6 6 6 6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5m6-6-6 6 6 6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .7s var(--ease-soft), opacity .5s, margin .7s var(--ease-soft), width .7s var(--ease-soft); }
.btn svg { width: 20px; height: 20px; }
.btn--sm { --h: 46px; padding: 0 22px; font-size: 16px; }
.btn--full { width: 100%; }
.btn--primary { --fill: var(--brass-l); background: var(--brown); color: #fff; box-shadow: 0 12px 24px -12px rgba(58, 42, 39, .6); }
.btn--primary::after { width: 0; opacity: 0; margin-inline-start: -10px; }
.btn--ghost { --fill: var(--brown); border-color: rgba(46, 35, 32, .32); color: var(--ink); background: transparent; }
.btn--light { --fill: var(--brass-l); background: var(--on-dark); color: var(--brown-deep); }
.drawer .btn::after, .btn--ghost:has(svg)::after { display: none; }
@media (hover: hover) {
  .btn:hover::before { transform: translateY(calc(-30% - var(--h))); }
  .btn:hover::after { transform: translateX(-4px); }
  .btn--primary:hover { box-shadow: 0 18px 34px -14px rgba(36, 26, 23, .75), inset 0 0 0 1px rgba(210, 176, 122, .55); transform: translateY(-2px); color: var(--brown-deep); }
  .btn--primary:hover::after { width: 18px; opacity: 1; margin-inline-start: 0; transform: none; }
  .btn--ghost:hover { color: #fff; border-color: var(--brown); }
  .btn--light:hover { transform: translateY(-2px); }
}
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- cards ---------- */
.card { background: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow); }

/* ---------- arch (the motif) ---------- */
.arch { position: relative; -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat; mask: var(--arch-mask) center / 100% 100% no-repeat; }
.arch__door { position: absolute; inset: 0; overflow: hidden; }
.arch__door img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2.8s var(--ease); }
.arch .arch__door { clip-path: inset(100% 0 0 0); transition: clip-path 1.9s var(--ease); }
.arch.is-in .arch__door { clip-path: inset(0 0 0 0); }
.arch.is-in .arch__door img { transform: scale(1); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr-h); background: rgba(246, 241, 234, .97); border-bottom: 1px solid transparent; transition: border-color .4s, box-shadow .4s; }
.hdr.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(46, 35, 32, .5); }
.hdr__in { height: 100%; width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: clamp(28px, 3.4vw, 56px); }
.hdr__logo { justify-self: start; text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { height: 42px; width: auto; aspect-ratio: 665 / 605; overflow: visible; }
.mk-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.logo.is-draw .mk-draw path { animation: mkDraw 1s cubic-bezier(.6, 0, .2, 1) calc(var(--w) * .14s + .1s) both; }
@keyframes mkDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.logo__word { transition: opacity .9s var(--ease-soft) .5s, transform 1.1s var(--ease-soft) .5s; }
.logo.is-draw .logo__word { animation: wordIn .8s var(--ease-soft) .45s both; }
@keyframes wordIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.logo__word { height: 26px; width: auto; }
.nav__list { display: flex; gap: clamp(14px, 2vw, 32px); align-items: center; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 8px 2px; font-size: 16.5px; font-weight: 400; text-decoration: none; color: var(--ink); position: relative; }
.nav__link svg { width: 12px; height: 12px; transition: transform .4s var(--ease-soft); }
.nav__link::after { content: ''; position: absolute; inset-inline: 0; bottom: 2px; height: 1px; background: var(--brown); transform: scaleX(0); transition: transform .6s var(--ease-soft); }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.has-sub { position: relative; }
.nav__sub { position: absolute; top: calc(100% + 10px); inset-inline-start: -18px; min-width: 210px; background: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow-hi); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .35s var(--ease-soft), transform .45s var(--ease-soft), visibility 0s .45s; }
.nav__sub::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-sub.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__sub a { display: block; padding: 11px 14px; border-radius: 10px; text-decoration: none; font-size: 16px; }
.nav__sub a:hover { background: var(--sand); }
.nav { justify-self: center; }
.hdr__act { justify-self: end; display: flex; align-items: center; gap: 18px; }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 16px; font-weight: 400; }
.hdr__phone svg, .hdr__icon svg { width: 17px; height: 17px; color: var(--brown); }
.hdr__icon, .burger { display: none; }

/* mobile header */
@media (max-width: 1099px) {
  :root { --hdr-h: 64px; }
  .nav, .hdr__phone, .hdr__cta { display: none; }
  .hdr__in { grid-template-columns: 1fr auto; }
  .hdr__logo { justify-self: start; }
  .logo__mark { height: 36px; } .logo__word { height: 22px; }
  .hdr__act { gap: 6px; }
  .hdr__icon, .burger { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); }
  .burger { position: relative; }
  .burger span { position: absolute; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease-soft); }
  .burger span:first-child { transform: translateY(-3.5px); }
  .burger span:last-child { transform: translateY(3.5px); }
  .burger[aria-expanded=true] span:first-child { transform: rotate(45deg); }
  .burger[aria-expanded=true] span:last-child { transform: rotate(-45deg); }
}
.drawer { position: fixed; inset: var(--hdr-h) 0 0; z-index: 49; background: var(--cream); padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow-y: auto; opacity: 0; transform: translateY(-10px); transition: opacity .4s var(--ease-soft), transform .5s var(--ease-soft); }
.drawer[hidden] { display: none; }
.drawer.is-open { opacity: 1; transform: none; }
.drawer__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 26px; text-decoration: none; }
.drawer__act { display: grid; gap: 12px; }
.drawer__act .btn { width: 100%; }
.drawer__act .btn svg { color: #25a55f; }
.drawer__phone { display: inline-flex; justify-content: center; gap: 8px; align-items: center; padding: 10px; text-decoration: none; }
.drawer__phone svg { width: 18px; color: var(--brown); }
.drawer-open body { overflow: hidden; }

/* doors */
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(40px, 5vh, 64px); }
.door { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 12px 12px 22px; text-decoration: none; transition: transform .9s var(--ease-soft), box-shadow .9s var(--ease-soft); }
.door__media { display: block; aspect-ratio: 1.05; -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat; mask: var(--arch-mask) center / 100% 100% no-repeat; overflow: hidden; }
.door__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-soft); }
.door__body { display: grid; gap: 4px; padding-inline: 10px 48px; }
.door__title { font-family: var(--f-display); font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; }
.door__line { font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.door__go { position: absolute; inset-inline-end: 20px; bottom: 24px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .6s var(--ease-soft), border-color .6s; }
.door__go::before { content: ''; width: 16px; height: 16px; background: var(--brown); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5m6-6-6 6 6 6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5m6-6-6 6 6 6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (hover: hover) {
  .door:hover { transform: translateY(-6px); box-shadow: var(--shadow-hi); }
  .door:hover .door__media img { transform: scale(1.04); }
  .door:hover .door__go { background: var(--brown); border-color: var(--brown); }
  .door:hover .door__go::before { background: #fff; }
}

/* ---------- trust ---------- */
.trust { margin-top: var(--sec); }
.trust__list { display: grid; grid-template-columns: repeat(6, 1fr); border-block: 1px solid var(--line); }
.trust__list li { display: grid; gap: 6px; align-content: center; justify-items: center; text-align: center; padding: clamp(26px, 3vw, 40px) 10px; position: relative; }
.trust__list li + li::before { content: ''; position: absolute; inset-inline-start: 0; inset-block: 24%; width: 1px; background: var(--line); }
.trust__list b { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 4.4vw, 68px); line-height: 1; color: var(--brown); }
.trust__list b.w { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.25; padding-block: .26em .2em; }
.trust__list span { font-size: 15px; color: var(--ink-2); }

/* ---------- sections ---------- */
.sec { padding-top: var(--sec); }
.sec__head { margin-bottom: var(--head-gap); }
.sec__head .lead { margin-top: 22px; }
.sec__head--center { text-align: center; }
.sec__head--center .lead { margin-inline: auto; }
.sec__head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec__cta { margin-top: var(--head-gap); }
.sec__cta--center { text-align: center; }

/* floors (cross-section) */
.floors__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
@media (min-width: 900px) { .floors__media { margin-top: -24px; } }
.floors__text .lead { margin-block: 22px 40px; }
.building { position: relative; margin-bottom: 40px; padding-inline-start: 0; }
.building::before { content: ''; position: absolute; inset-inline-start: 22px; top: 40px; bottom: 40px; width: 1px; background: repeating-linear-gradient(to bottom, var(--brass) 0 4px, transparent 4px 8px); opacity: .7; }
.building::after { content: ''; position: absolute; inset-inline-start: -6px; top: calc(var(--car-y, 50px) - 28.5px); width: 57px; height: 57px; border-radius: 50%; border: 1.5px solid var(--brass); box-shadow: 0 0 0 5px rgba(180, 143, 85, .12); transition: top var(--car-t, .6s) cubic-bezier(.65, 0, .35, 1); pointer-events: none; z-index: 2; }
.building.no-anim::after { transition: none; }
.building li { position: relative; }
.building li + li { border-top: 1px solid var(--line); }
.floor-btn { width: 100%; display: flex; align-items: flex-start; gap: 22px; padding: 18px 0; background: none; border: 0; text-align: start; }
.floor-btn .lift { width: 45px; height: 45px; font-size: 19px; transition: background .5s var(--ease-soft), color .5s var(--ease-soft), border-color .5s; position: relative; z-index: 1; }
.floor-btn__t { display: grid; gap: 2px; padding-top: 6px; font-family: var(--f-display); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.3; color: var(--ink-2); transition: color .5s; }
.floor-btn__t small { font-family: var(--f-body); font-size: 15px; color: var(--ink-2); opacity: .75; transition: opacity .5s; }
.is-active .floor-btn__t { color: var(--ink); }
.is-active .floor-btn__t small { opacity: 1; }
.is-active .floor-btn .lift { background: var(--brown); color: #fff; border-color: var(--brown); }
.floor-btn:hover .floor-btn__t { color: var(--ink); }
.floor-btn:hover .lift { border-color: var(--brown); }

/* the elevator */
.floors__media { position: relative; padding-top: 24px; }
.lift-display { position: absolute; top: 0; left: 50%; translate: -50% 0; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 104px; height: 48px; padding: 0 20px; border-radius: 999px; background: var(--brown-deep); border: 1px solid rgba(210, 176, 122, .45); color: var(--brass-l); font-family: var(--f-display); font-size: 24px; box-shadow: 0 14px 28px -14px rgba(36, 26, 23, .7), inset 0 0 0 3px var(--brown-deep), inset 0 0 0 4px rgba(210, 176, 122, .18); direction: ltr; }
.lift-display__dir { width: 0; height: 0; border-inline: 6px solid transparent; opacity: 0; transition: opacity .3s; }
.lift-display[data-dir=up] .lift-display__dir { border-bottom: 9px solid var(--brass-l); opacity: 1; animation: liftBlink .9s ease-in-out infinite; }
.lift-display[data-dir=down] .lift-display__dir { border-top: 9px solid var(--brass-l); opacity: 1; animation: liftBlink .9s ease-in-out infinite; }
@keyframes liftBlink { 50% { opacity: .25; } }
.lift-display__n { min-width: 1ch; text-align: center; line-height: 1; }
.lift-car { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; border-radius: var(--r-img); background: var(--brown-deep); isolation: isolate; }
.floors__pic { position: absolute; inset: 0; visibility: hidden; }
.floors__pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 2.6s var(--ease); }
.floors__pic.is-active { visibility: visible; }
.floors__pic.is-active img { transform: scale(1); }
.floors.is-closed .floors__pic img { transform: scale(1.07); transition: none; }
.floors__pic figcaption { position: absolute; inset-inline-start: 18px; bottom: 18px; background: rgba(251, 248, 243, .94); padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 400; }
.lift-doors { position: absolute; inset: 0; z-index: 3; display: flex; pointer-events: none; direction: ltr; }
.lift-door { position: relative; flex: 1; overflow: hidden; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px), linear-gradient(90deg, #2A1E1B, #463430 55%, #2E2220); transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.lift-door--l { transform: translateX(-101%); box-shadow: inset -2px 0 0 rgba(210, 176, 122, .8); }
.lift-door--r { transform: translateX(101%); box-shadow: inset 2px 0 0 rgba(210, 176, 122, .8); }
.lift-door img { position: absolute; top: 50%; width: 62%; translate: 0 -50%; opacity: .2; max-width: none; }
.lift-door--l img { left: 69%; }
.lift-door--r img { right: 69%; }
.floors.is-closed .lift-door { transform: none; }

/* breather */
/* scroll: an arch-shaped window (the logo arch) opens until the hall fills the screen, as if walking through the door */
.breather { --bw0: 30; --bh0: 64; position: relative; height: 190vh; height: 190svh; margin-top: calc(var(--sec) - (100vh - var(--bh0) * 1vh)); margin-top: calc(var(--sec) - (100svh - var(--bh0) * 1svh)); pointer-events: none; }
.breather__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.breather__win { position: absolute; inset: 0; -webkit-mask: var(--arch-mask) center bottom / var(--bw, 30%) var(--bh, 64%) no-repeat; mask: var(--arch-mask) center bottom / var(--bw, 30%) var(--bh, 64%) no-repeat; }
.breather__win img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--sc, 1.3)); transform-origin: 50% 70%; }

/* events: inspired by Vesuvio — a split with a large photo, then a full-width row of details revealed like a curtain */
.curtain-fig[data-reveal] { opacity: 1; transform: none; }
.curtain { position: relative; width: 100%; height: 100%; overflow: hidden; transform: translateY(100%); transition: transform 2.6s cubic-bezier(.23, 1, .32, 1) var(--d, 0s); }
.curtain__in { width: 100%; height: 100%; transform: translateY(-100%); transition: transform 2.6s cubic-bezier(.23, 1, .32, 1) var(--d, 0s); }
.curtain__in > img, .curtain__in > div > img { width: 100%; height: 100%; object-fit: cover; }
.curtain-fig.is-in .curtain, .curtain-fig.is-in .curtain__in { transform: none; }
.curtain-fig img { transition: transform 3.2s cubic-bezier(.23, 1, .32, 1) var(--d, 0s); transform: scale(1.12); }
.curtain-fig.is-in img { transform: scale(1); }

.events { padding-top: var(--sec); }
.ev-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; }
.ev-split__text { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(48px, 6vw, 96px); padding-inline: var(--gutter) clamp(32px, 5vw, 96px); padding-block: 0; }
.ev-split__copy .lead { margin-top: 22px; }
.ev-list { margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); max-width: 520px; }
.ev-list li { border-bottom: 1px solid var(--line); }
.ev-list a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 20px; padding: 18px 0; text-decoration: none; position: relative; }
.ev-list a::after { content: ''; grid-column: 2; grid-row: 1 / 3; align-self: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--brown); -webkit-mask: none; transition: background-color .6s var(--ease-soft), border-color .6s; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5m6-6-6 6 6 6' fill='none' stroke='%233A2A27' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ev-list__t { font-family: var(--f-display); font-size: clamp(26px, 2.3vw, 34px); line-height: 1.15; transition: transform .7s var(--ease-soft), color .5s; }
.ev-list__l { font-size: 15.5px; color: var(--ink-2); transition: transform .7s var(--ease-soft) .04s; }
@media (hover: hover) {
  .ev-list a:hover .ev-list__t, .ev-list a:hover .ev-list__l { transform: translateX(-10px); }
  .ev-list a:hover::after { background-color: var(--brass-l); border-color: var(--brass-l); }
}
.ev-split__pics { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ev-pic { position: relative; margin: 0; box-shadow: var(--shadow); border-radius: var(--r-img); overflow: hidden; }
.ev-pic--a { width: 54%; aspect-ratio: 3 / 4; }
.ev-pic--b { width: 38%; aspect-ratio: 14 / 15; }
.ev-split__big { margin: 0; min-height: min(100svh, 940px); position: relative; border-radius: var(--r-img); overflow: hidden; }
.ev-split__big .curtain { position: absolute; inset: 0; }
.ev-split__plx { position: relative; width: 100%; height: 100%; overflow: hidden; }
.ev-split__plx img { position: absolute; left: 0; top: -7%; width: 100%; height: 114% !important; object-fit: cover; }

.ev-quote { margin: clamp(96px, 10vw, 170px) auto clamp(48px, 5vw, 80px); max-width: 44ch; text-align: center; font-family: var(--f-display); font-weight: 300; text-wrap: balance; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.5; color: var(--ink); padding-inline: var(--gutter); }
.ev-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.3vw, 20px); }
.ev-row figure { margin: 0; aspect-ratio: 3 / 4; border-radius: var(--r-img); overflow: hidden; }
.events .sec__cta { margin-top: var(--head-gap); padding-inline: var(--gutter); }

/* shabbat (sand band) */
.shabbat { background: var(--sand); color: var(--ink); margin-top: var(--sec); padding-block: var(--sec); position: relative; overflow: hidden; isolation: isolate; }
.shabbat::before { content: ''; position: absolute; inset-inline-end: -8vw; top: -10%; width: 46vw; aspect-ratio: .8; background: url('../assets/img/mark.png') center/contain no-repeat; opacity: .05; z-index: -1; }
.shabbat .h2, .shabbat .h3 { color: var(--ink); }
.shabbat .lead { color: var(--ink-2); margin-block: 22px 30px; }
.shabbat__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.arch--wide { aspect-ratio: .86; width: 100%; }
.ticks { display: grid; gap: 16px; margin-bottom: 40px; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .42em; width: 12px; height: 15px; background: var(--brass); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M2 30V15C2 8 7 3.5 12 1c5 2.5 10 7 10 14v15' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M2 30V15C2 8 7 3.5 12 1c5 2.5 10 7 10 14v15' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.ticks b { color: var(--ink); font-weight: 400; }

/* stay: same editorial language as the events section — photos without frames, text below, a staggered offset */
/* decoration in the empty space beside the heading: the logo's three interlaced arches as a brass line drawing, with a faint script behind */
.stay__wrap { position: relative; }
.stay__deco { position: absolute; top: calc(var(--sec) * -0.35); inset-inline-end: 0; width: min(40%, 480px); height: clamp(260px, 26vw, 400px); pointer-events: none; opacity: 1 !important; transform: none !important; }
.stay__deco svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stay__deco path { fill: none; stroke: var(--brass); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .75; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s cubic-bezier(.6, 0, .2, 1) calc(var(--k) * .12s + .2s); }
.stay__deco.is-in path { stroke-dashoffset: 0; }
.stay__script { position: absolute; left: 50%; bottom: 8%; translate: -50% 0; white-space: nowrap; direction: ltr; font-family: 'Pinyon Script', cursive; font-size: clamp(64px, 7.4vw, 120px); line-height: 1; color: var(--brown); opacity: 0; transform: rotate(-6deg); transition: opacity 2s var(--ease) .9s; }
.stay__deco.is-in .stay__script { opacity: .09; }
@media (max-width: 899px) { .stay__deco { display: none; } }
html.a11y-still .stay__deco path { stroke-dashoffset: 0; transition: none; }
html.a11y-still .stay__script { opacity: .09; transition: none; }
.stay__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 96px); align-items: start; }
.stay__item--low { margin-top: clamp(60px, 9vw, 160px); }
.stay__media { margin: 0; aspect-ratio: 4 / 3.3; border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow); }
.stay__body { padding-top: 28px; display: grid; gap: 12px; justify-items: start; max-width: 520px; }
.stay__body p { color: var(--ink-2); max-width: 46ch; margin-bottom: 12px; }

/* process: a stack of pinned cards — each step lands on the previous one, which shrinks and darkens slightly */
.deck { display: grid; gap: 0; }
.deck__card { position: sticky; top: calc(var(--hdr-h) + 28px + var(--i) * 18px); min-height: min(calc(100svh - var(--hdr-h) - 120px), 600px); margin-bottom: 22vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); border-radius: var(--r-img); overflow: hidden; background: var(--paper); box-shadow: 0 -10px 40px -18px rgba(46, 35, 32, .35), var(--shadow); transform-origin: 50% 0; transform: scale(var(--s, 1)); filter: brightness(var(--b, 1)); will-change: transform; }
.deck__card:last-child { margin-bottom: 0; }
.deck__card:nth-child(2) { background: var(--sand); }
.deck__card:nth-child(3) { background: #E6DBCB; }
.deck__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: clamp(24px, min(4.5vw, 7vh), 72px) clamp(28px, 4.5vw, 72px); position: relative; }
.deck__n { font-family: 'Cormorant Garamond', var(--f-display); font-weight: 300; font-size: clamp(84px, min(10vw, 17vh), 170px); line-height: .8; color: var(--brass); margin-bottom: clamp(10px, 2vh, 22px); direction: ltr; }
.deck__of { font-size: 13px; letter-spacing: .08em; color: var(--ink-2); }
.deck__t { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, min(3.4vw, 6vh), 52px); line-height: 1.1; margin: 4px 0 10px; }
.deck__text > p:not(.deck__of) { color: var(--ink-2); font-size: var(--fs-lead); max-width: 34ch; }
.deck__text .btn { margin-top: 26px; }
.deck__media { margin: 0; min-height: 0; position: relative; }
.deck__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deck__card--dark { background: var(--brown-deep); color: var(--on-dark); }
.deck__card--dark .deck__t { color: var(--on-dark); }
.deck__card--dark .deck__of, .deck__card--dark .deck__text > p:not(.deck__of) { color: var(--on-dark-2); }
.deck__card--dark .deck__n { color: var(--brass-l); }
@media (max-width: 899px) {
  .deck { gap: 28px; }
  .deck__card { position: relative; top: auto; height: auto; min-height: 0; margin-bottom: 0; grid-template-columns: 1fr; transform: none; filter: none; }
  .deck__media { order: -1; aspect-ratio: 4 / 3; }
  .deck__n { font-size: 72px; }
  .deck__text .btn { width: 100%; }
}
html.a11y-still .deck__card { transform: none; filter: none; }
/* gallery */
.gal__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 11vw, 170px); gap: clamp(10px, 1.2vw, 18px); }
.gal__item { display: block; padding: 0; border: 0; border-radius: var(--r-img); overflow: hidden; background: var(--sand); box-shadow: var(--shadow); cursor: pointer; }
.gal__item .curtain, .gal__item .curtain__in { display: block; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-soft); }
@media (hover: hover) { .gal__item:hover img { transform: scale(1.04); } }
.g1 { grid-column: span 7; grid-row: span 3; }
.g2 { grid-column: span 5; grid-row: span 3; }
.g3 { grid-column: span 4; grid-row: span 2; }
.g4 { grid-column: span 3; grid-row: span 2; }
.g5 { grid-column: span 5; grid-row: span 2; }
.g6 { display: none; }
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: rgba(36, 26, 23, .96); color: var(--on-dark); }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(36, 26, 23, .7); }
.lb img { max-width: min(92vw, 1400px); max-height: 80dvh; width: auto; height: auto; border-radius: var(--r-img); }
.lb__cap { position: absolute; bottom: 24px; inset-inline: 0; text-align: center; color: var(--on-dark-2); font-size: 15px; }
.lb button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(243, 236, 225, .35); background: rgba(243, 236, 225, .08); color: var(--on-dark); display: grid; place-items: center; font-size: 20px; }
.lb button svg { width: 24px; height: 24px; }
.lb__close { top: 20px; inset-inline-end: 20px; }
.lb__prev { inset-inline-start: 20px; top: 50%; translate: 0 -50%; }
.lb__next { inset-inline-end: 20px; top: 50%; translate: 0 -50%; }
.lb button:hover { background: rgba(243, 236, 225, .2); }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.quote { padding: 34px; }
.quote blockquote { margin: 0 0 18px; font-family: var(--f-display); font-size: 22px; line-height: 1.5; }
.quote figcaption { font-weight: 500; display: grid; } .quote figcaption span { font-weight: 300; color: var(--ink-2); font-size: 15px; }

/* faq */
.faq-sec__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.faq-sec .sec__head .btn { margin-top: 34px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-family: var(--f-display); font-size: clamp(20px, 1.6vw, 24px); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: linear-gradient(var(--brown), var(--brown)) center/12px 1.5px no-repeat, linear-gradient(var(--brown), var(--brown)) center/1.5px 12px no-repeat; transition: transform .5s var(--ease-soft), background-color .5s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 26px; color: var(--ink-2); max-width: 60ch; }

/* final cta */
.final { padding-bottom: var(--sec); }
.final__card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 90px); padding: clamp(28px, 5vw, 80px); background: var(--sand); position: relative; overflow: hidden; isolation: isolate; }
.final__card::after { content: ''; position: absolute; inset-inline-start: -60px; bottom: -80px; width: 340px; aspect-ratio: 1.1; background: url('../assets/img/mark.png') center/contain no-repeat; opacity: .05; z-index: -1; }
.final__text .lead { margin-block: 22px; }
.final__or { color: var(--ink-2); }
.final__or a { color: var(--brown); font-weight: 500; }
.final__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.final__form .btn, .final__form .form-msg { grid-column: 1 / -1; }

/* fields */
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 15px; font-weight: 400; }
.field input, .field select { width: 100%; min-width: 0; height: 54px; padding: 0 16px; border: 1px solid rgba(46, 35, 32, .22); border-radius: var(--r-s); background: var(--paper); font-size: 17px; transition: border-color .3s, box-shadow .3s; }
.field input[dir=ltr] { text-align: right; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(58, 42, 39, .14); }
.field.is-bad input, .field.is-bad select { border-color: #A2342B; box-shadow: 0 0 0 3px rgba(162, 52, 43, .12); }
.form-msg { font-size: 15.5px; min-height: 1.4em; }
.form-msg[data-state=err] { color: #A2342B; }
.form-msg[data-state=ok] { color: var(--brown); font-weight: 400; }
.form-msg a { color: inherit; font-weight: 500; }

/* ---------- footer ---------- */
.ftr { background: var(--brown-deep); color: var(--on-dark); padding-top: clamp(64px, 7vw, 110px); }
.ftr a { color: var(--on-dark); text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ftr__top { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(32px, 5vw, 90px); align-items: end; padding-bottom: clamp(48px, 5vw, 72px); border-bottom: 1px solid rgba(243, 236, 225, .14); }
.ftr .logo__mark { height: 58px; } .ftr .logo__word { height: 36px; }
.ftr__line { margin-top: 22px; font-family: var(--f-display); font-size: clamp(22px, 2vw, 30px); line-height: 1.3; }
.ftr__form-title { font-family: var(--f-display); font-size: 22px; margin-bottom: 14px; }
.ftr__fields { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; }
.field--dark > span { color: var(--on-dark-2); }
.field--dark input, .field--dark select { background: rgba(243, 236, 225, .06); border-color: rgba(243, 236, 225, .25); color: var(--on-dark); }
.field--dark select option { color: var(--ink); }
.field--dark input:focus, .field--dark select:focus { border-color: var(--brass-l); box-shadow: 0 0 0 3px rgba(210, 176, 122, .2); }
.ftr .btn--light { min-height: 54px; }
.ftr .form-msg[data-state=ok] { color: var(--brass-l); }
.ftr .form-msg[data-state=err] { color: #F0A097; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 32px; padding-block: clamp(44px, 5vw, 64px); }
.ftr__h { font-family: var(--f-display); font-weight: 400; font-size: 19px; color: var(--brass-l); margin-bottom: 16px; }
.ftr__cols li { padding-block: 5px; color: var(--on-dark-2); }
.ftr__links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(243, 236, 225, .3); border-radius: var(--r-img); font-size: 15px; }
.ftr__soc { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(243, 236, 225, .3); }
.ftr__soc svg { width: 19px; height: 19px; }
.ftr__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px 28px; border-top: 1px solid rgba(243, 236, 225, .14); font-size: 14px; color: var(--on-dark-2); }
.ftr__legal a { color: var(--on-dark-2); }
.ftr__legal { padding-inline: 70px; } /* room for the floating buttons */

/* ---------- floating ---------- */
.fab { position: fixed; z-index: 40; bottom: calc(20px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 0; box-shadow: 0 14px 30px -12px rgba(36, 26, 23, .5); transition: transform .5s var(--ease-soft); }
.fab:hover { transform: translateY(-3px); }
.fab svg { width: 28px; height: 28px; }
.fab--wa { inset-inline-start: 20px; background: #25A55F; color: #fff; }
.fab--a11y { inset-inline-end: 20px; width: 48px; height: 48px; background: var(--brown); color: #fff; }
.fab--a11y svg { width: 24px; height: 24px; }
.a11y { position: fixed; z-index: 41; inset-inline-end: 20px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 240px; padding: 16px; background: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow-hi); display: grid; gap: 8px; }
.a11y[hidden] { display: none; }
.a11y__title { font-family: var(--f-display); font-size: 20px; }
.a11y button { min-height: 44px; border-radius: var(--r-img); border: 1px solid var(--line); background: var(--cream); text-align: start; padding: 0 14px; }
.a11y button[aria-pressed=true] { background: var(--brown); color: #fff; border-color: var(--brown); }
.a11y a { font-size: 15px; color: var(--brown); padding-top: 4px; }
html.a11y-big { font-size: 112%; } html.a11y-big body { --fs-body: 20px; --fs-lead: 22px; }
html.a11y-contrast body { --ink-2: #2E2320; --line: rgba(46, 35, 32, .5); --on-dark-2: #F3ECE1; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(42px); transition: opacity 1.4s var(--ease) var(--d, 0s), transform 1.8s var(--ease) var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.arch[data-reveal] { transform: none; opacity: 1; }
html.a11y-still [data-reveal], html.a11y-still .arch__door { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
html.a11y-still .arch__door img, html.a11y-still .breather img { transform: none !important; }
html.a11y-still .breather { height: 100svh; margin-top: var(--sec); } html.a11y-still .breather__win { -webkit-mask: none; mask: none; }
html.a11y-still .mk-draw path { stroke-dashoffset: 0 !important; animation: none !important; } html.a11y-still .logo__word { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .arch .arch__door { clip-path: none; }
  .arch__door img, .floors__pic img, .stay__media img { transform: none !important; }
  .mk-draw path { stroke-dashoffset: 0 !important; animation: none !important; }
  .logo__word { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .doors { grid-template-columns: repeat(2, 1fr); }
  .trust__list { grid-template-columns: repeat(3, 1fr); }
  .trust__list li:nth-child(4)::before { display: none; }
  .trust__list li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .ftr__top { grid-template-columns: 1fr; align-items: start; }
  .ftr__cols { grid-template-columns: repeat(3, 1fr); }
  .ftr__contact { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .floors__grid, .shabbat__grid, .faq-sec__grid, .final__card { grid-template-columns: 1fr; }
  .floors__text { display: contents; }
  .floors__grid { gap: 0; }
  .floors__media { order: 3; margin-bottom: 28px; }
  .lift-car { aspect-ratio: 4 / 3.5; }
  #h-floors { order: 1; } .floors__text .lead { order: 2; } .building { order: 4; } .floors__text > .btn { order: 5; }
  .floors__text .lead { margin-bottom: 28px; }
  .ev-split { grid-template-columns: 1fr; }
  .ev-split__text { display: contents; }
  .ev-split__copy { order: 1; padding-inline: var(--gutter); }
  .ev-split__big { order: 2; min-height: 0; aspect-ratio: 4 / 4.4; margin: 40px var(--gutter) 0; border-radius: var(--r-img); overflow: hidden; }
  .ev-split__pics { order: 3; padding: 16px var(--gutter) 0; }
  .ev-row { grid-template-columns: repeat(2, 1fr); padding-inline: 0; }
  .stay__grid { grid-template-columns: 1fr; gap: 64px; }
  .stay__item--low { margin-top: 0; }
  .gal__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .g1 { grid-column: span 2; grid-row: span 1; }
  .g2, .g3, .g4, .g5, .g6 { grid-column: span 1; grid-row: span 1; display: block; }
  .g2 { grid-row: span 2; }
  .g5 { display: none; }
  .breather { --bw0: 62; --bh0: 70; height: 160svh; }
}
@media (max-width: 599px) {
  .btns .btn, .sec__cta .btn, .stay__body .btn, .faq-sec .btn, .floors__text > .btn, .shabbat .btn, .sec__head--row .btn { width: 100%; }
  .doors { gap: 10px; }
  .door { padding: 8px 8px 16px; gap: 12px; }
  .door__body { padding-inline: 6px; }
  .door__title { font-size: 21px; }
  .door__line { font-size: 14.5px; }
  .door__go { display: none; }
  .trust__list b { font-size: 40px; }
  .trust__list b.w { font-size: 22px; }
  .trust__list span { font-size: 13.5px; }
  .trust__list li { padding: 22px 4px; }
  .final__form { grid-template-columns: 1fr; }
  .ftr__fields { grid-template-columns: 1fr; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .ftr__legal { flex-direction: column; padding-inline: 0; padding-bottom: 96px; }
  .fab--wa { width: 54px; height: 54px; }
}

.doors-sec { padding-top: var(--sec); }
.doors-sec .doors { margin-top: 0; }

/* ---------- hero: luxury and clean — the hall video, KEDEM and a button ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hx-lux { position: relative; height: 100vh; height: 100svh; min-height: 560px; margin-top: calc(-1 * var(--hdr-h)); overflow: hidden; background: var(--brown-deep); color: var(--on-dark); }
.hx-lux__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-lux::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(36, 26, 23, .7) 0, rgba(36, 26, 23, .35) 12%, rgba(36, 26, 23, 0) 30%), linear-gradient(to top, rgba(36, 26, 23, .72) 0, rgba(36, 26, 23, .18) 38%, rgba(36, 26, 23, 0) 60%); }
.hx-lux__bar { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(26px, 5vh, 56px); display: flex; direction: ltr; align-items: flex-end; gap: clamp(16px, 1.7vw, 30px); }
.hx-lux__word { margin: 0; flex: none; font-family: 'Cormorant Garamond', 'Frank Ruhl Libre', Georgia, serif; font-weight: 300; font-size: clamp(88px, min(15.4vw, 28vh), 300px); line-height: .74; letter-spacing: .045em; color: var(--on-dark); display: flex; margin-bottom: -.035em; }
.hx-lux__word span { display: inline-block; clip-path: inset(0 0 100% 0); transform: translateY(18%); transition: clip-path 1.6s var(--ease), transform 1.9s var(--ease); }
.hx-lux.is-on .hx-lux__word span { clip-path: inset(-10% 0 -10% 0); transform: none; }
.hx-lux__word span:nth-child(2) { transition-delay: .08s; } .hx-lux__word span:nth-child(3) { transition-delay: .16s; } .hx-lux__word span:nth-child(4) { transition-delay: .24s; } .hx-lux__word span:nth-child(5) { transition-delay: .32s; }
.hx-lux__side { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; column-gap: 18px; row-gap: 14px; padding-bottom: calc(clamp(88px, min(15.4vw, 28vh), 300px) * .021); }
.btn--lux { --fill: var(--brass-l); grid-row: 1; grid-column: 2; background: #FBF8F3; color: var(--brown-deep); border-color: #FBF8F3; box-shadow: 0 14px 30px -14px rgba(20, 14, 12, .55); min-height: 52px; padding: 0 28px; letter-spacing: .01em; opacity: 0; transform: translateY(14px); transition: opacity 1.2s var(--ease) .7s, transform 1.4s var(--ease) .7s, color .45s var(--ease-soft) .3s, border-color .55s; }
.hx-lux.is-on .btn--lux { opacity: 1; transform: none; }
@media (hover: hover) { .btn--lux:hover { color: var(--brown-deep); border-color: var(--brass-l); } }
.btn--lux::after { display: none; }
/* thin ornament: a hairline running to the edge, ending in a small double arch from the logo */
.hx-lux__rule { grid-row: 1; grid-column: 1; align-self: end; display: flex; align-items: flex-end; gap: 12px; height: 26px; } /* the arch and the line stand on the KEDEM baseline, like the button */
.hx-lux__rule::before { content: ""; flex: 1; height: 1px; background: linear-gradient(to left, rgba(251, 248, 243, .85), rgba(251, 248, 243, .45)); transform-origin: right; transform: scaleX(0); transition: transform 2.2s var(--ease) .9s; }
.hx-lux__rule svg { order: -1; width: 22px; height: 26px; flex: none; fill: none; stroke: #FBF8F3; stroke-width: 1.1; opacity: 0; transition: opacity 1.2s var(--ease) 1.8s; }
.hx-lux.is-on .hx-lux__rule::before { transform: scaleX(1); }
.hx-lux.is-on .hx-lux__rule svg { opacity: 1; }
.hx-lux__tag { grid-row: 1; grid-column: 1; align-self: end; justify-self: end; margin-bottom: 7px; white-space: nowrap; line-height: 1; direction: rtl; text-align: right; font-size: clamp(14px, 1.05vw, 17px); letter-spacing: .02em; /* sits above the line, beside the top of the button */ color: var(--on-dark-2); opacity: 0; transition: opacity 1.4s var(--ease) 1.3s; }
.hx-lux.is-on .hx-lux__tag { opacity: 1; }
.fab--wa { transition: transform .5s var(--ease-soft), opacity .5s var(--ease-soft), visibility .5s; }
html.at-top .fab--wa { opacity: 0; visibility: hidden; transform: translateY(12px); }
.fab--a11y { transition: transform .5s var(--ease-soft), background-color .4s var(--ease-soft), color .4s var(--ease-soft); }
html.fab-clear .fab--a11y { background: #FBF8F3; color: var(--brown-deep); }
.hx-lux__pause { position: absolute; z-index: 2; top: calc(var(--hdr-h) + 20px); inset-inline-end: var(--gutter); width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(243, 236, 225, .45); background: rgba(36, 26, 23, .3); display: grid; place-items: center; opacity: .75; }
.hx-lux__pause span { width: 10px; height: 12px; border-inline: 3px solid var(--on-dark); }
.hx-lux__pause[aria-pressed=true] span { width: 0; height: 0; border-inline: 0; border-block: 7px solid transparent; border-left: 11px solid var(--on-dark); margin-left: 3px; }

/* clear header over the video */
.hdr { transition: background-color .5s var(--ease-soft), border-color .4s, box-shadow .4s; }
html.hdr-clear .hdr { background: transparent; border-color: transparent; box-shadow: none; }
html.hdr-clear .hdr .logo { filter: brightness(0) invert(1) drop-shadow(0 1px 10px rgba(20, 14, 12, .55)); opacity: .97; }
html.hdr-clear .hdr .nav__link { color: var(--on-dark); text-shadow: 0 1px 12px rgba(20, 14, 12, .6); }
html.hdr-clear .hdr .nav__link::after { background: var(--brass-l); }
html.hdr-clear .hdr .hdr__cta { --fill: var(--on-dark); background: rgba(243, 236, 225, .12); border-color: rgba(243, 236, 225, .55); color: var(--on-dark); box-shadow: none; }
@media (hover: hover) { html.hdr-clear .hdr .hdr__cta:hover { color: var(--brown-deep); } }
html.hdr-clear .hdr .burger { background: rgba(243, 236, 225, .12); border-color: rgba(243, 236, 225, .4); }
html.hdr-clear .hdr .burger span { background: var(--on-dark); }
html.hdr-clear.drawer-open .hdr { background: var(--cream); }
html.hdr-clear.drawer-open .hdr .logo { filter: none; }
html.hdr-clear.drawer-open .hdr .burger span { background: var(--ink); }

@media (max-width: 899px) {
  .hx-lux__bar { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hx-lux__word { font-size: clamp(76px, 25vw, 160px); }
  .hx-lux__side { width: 100%; grid-template-columns: 1fr; }
  .btn--lux { width: 100%; grid-column: 1 / -1; }
  .hx-lux__rule { display: none; }
  .hx-lux__tag { display: none; }
  .hx-lux__bar { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
html.a11y-still .hx-lux__word span, html.a11y-still .btn--lux, html.a11y-still .hx-lux__tag, html.a11y-still .hx-lux__rule svg { clip-path: none !important; transform: none !important; opacity: 1 !important; transition: none !important; }
html.a11y-still .hx-lux__rule::before { transform: none !important; }

/* ---------- the journey: the full package, moment after moment ---------- */
/* a pinned section: the days' clock on the side, one large photo that changes with the scroll (structure inspired by Tzuk's "a day with us", in Kedem's language: floors, arches, brass) */
.journey { --n: 11; --jpad: clamp(18px, 3.6vh, 44px); position: relative; margin-top: calc(var(--sec) - var(--jpad)); margin-bottom: calc(-1 * var(--jpad)); height: calc(var(--n) * 58vh + 100vh); }
.journey__pin { position: sticky; top: var(--hdr-h); height: calc(100vh - var(--hdr-h)); height: calc(100svh - var(--hdr-h)); display: flex; align-items: center; }
.journey__inner { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); gap: clamp(40px, 5.5vw, 104px); height: calc(100% - 2 * var(--jpad)); }
.journey__side { display: flex; flex-direction: column; gap: clamp(14px, 2.6vh, 30px); min-height: 0; }
.journey .h2 { font-size: clamp(30px, min(3.3vw, 5.8vh), 52px); }
.journey__clock { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: safe center; }
.jc-day { font-size: 12.5px; letter-spacing: .05em; color: var(--brass); margin: clamp(4px, 1.1vh, 12px) 0 1px; }
.jc-day:first-child { margin-top: 0; }
.journey__clock button { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: clamp(0px, .3vh, 4px) 0; line-height: 1.45; background: none; border: 0; text-align: start; opacity: .38; transition: opacity .45s cubic-bezier(.22, 1, .36, 1); }
.journey__clock button::before { content: ""; align-self: center; width: 0; height: 1px; background: var(--brass); transition: width .6s var(--ease-soft); }
.journey__clock button:hover { opacity: .7; }
.journey__clock button[aria-current=step] { opacity: 1; }
.journey__clock button[aria-current=step]::before { width: 22px; }
.journey__clock time { font-family: 'Cormorant Garamond', var(--f-display); font-size: clamp(16px, 2.3vh, 19px); direction: ltr; min-width: 3.1em; }
.journey__clock span { font-size: clamp(14px, 2vh, 16px); }
.journey__stage { position: relative; min-height: 0; }
.j-step { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(12px, 2vh, 22px); opacity: 0; visibility: hidden; transition: opacity .7s cubic-bezier(.22, 1, .36, 1), visibility .7s; }
.j-step.is-active { opacity: 1; visibility: visible; }
.j-step figure { position: relative; margin: 0; min-height: 0; border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow); }
.j-step img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s cubic-bezier(.22, 1, .36, 1); }
.j-step.is-active img { transform: scale(1); }
.j-step figcaption { position: absolute; top: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: 999px; background: rgba(251, 248, 243, .94); font-size: 14px; box-shadow: var(--shadow); }
.j-step figcaption .lift { width: 26px; height: 26px; font-size: 13px; }
.j-card { background: var(--brown-deep); display: grid; place-items: center; }
.j-card svg { width: 22%; height: auto; fill: none; stroke: var(--brass-l); stroke-width: .5; }
.j-text { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.j-text .h3 { margin-bottom: 4px; }
.j-text p { color: var(--ink-2); max-width: 46ch; font-size: 16.5px; line-height: 1.55; }
.j-time { order: 2; flex: none; font-family: 'Cormorant Garamond', var(--f-display); font-weight: 300; font-size: clamp(48px, min(5vw, 8.5vh), 78px); line-height: .82; color: var(--brass); direction: ltr; }

@media (min-width: 900px) and (max-height: 780px) { .journey__cta { display: none; } }

/* mobile and reduced motion: all the moments one under the other, no pin */
@media (max-width: 899px) {
  .journey { height: auto; margin-top: var(--sec); margin-bottom: 0; }
  .journey__pin { position: static; height: auto; display: block; }
  .journey__inner { display: block; height: auto; }
  .journey__clock { display: none; }
  .journey__side { display: block; margin-bottom: 40px; }
  .journey__cta { margin-top: 22px; }
  .journey__stage { display: grid; gap: 52px; }
  .j-step { position: static; opacity: 1; visibility: visible; }
  .j-step figure { aspect-ratio: 4 / 4.5; }
  .j-step img { transform: none; }
  .j-time { font-size: 46px; }
}
.journey--static { height: auto; margin-top: var(--sec); margin-bottom: 0; }
.journey--static .journey__pin { position: static; height: auto; display: block; }
.journey--static .journey__inner { display: block; height: auto; }
.journey--static .journey__clock { display: none; }
.journey--static .journey__stage { display: grid; gap: 52px; }
.journey--static .j-step { position: static; opacity: 1; visibility: visible; }
.journey--static .j-step figure { aspect-ratio: 16 / 10; }
.journey--static .j-step img { transform: none; }

/* door cards: tilt toward the cursor, the photo moves the other way inside the arch (like looking through a doorway), and a soft brass glare follows the cursor.
   Based on CodePen thebabydino/YPpqaWM (Pure CSS parallax card) + React Bits GlareHover, rewritten for Kedem */
@media (hover: hover) and (pointer: fine) {
  .doors { perspective: 1400px; }
  .door { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; --px: 0px; --py: 0px; overflow: hidden; transform-style: preserve-3d; }
  .door.is-in:hover { transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .9s var(--ease-soft); }
  .door:hover .door__media img { transform: translate3d(var(--px), var(--py), 0) scale(1.09); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
  .door::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(210, 176, 122, .26), rgba(251, 248, 243, .12) 35%, transparent 65%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .6s var(--ease-soft); }
  .door:hover::after { opacity: 1; }
}
html.a11y-still .door.is-in:hover { transform: translateY(-6px); }
html.a11y-still .door::after { display: none; }
