/* Zahav Estates — direction "The name as a monument" (seed 1865237627), brand palette and type kept. */
:root {
  --navy: #0B1626;
  --navy-2: #0F1D31;
  --cream: #F1F0EC;
  --cream-2: #E5E3DD;
  --gold: #C9A15A;
  --gold-ink: #0B1626;

  --bg: var(--cream);
  --surface: var(--cream-2);
  --ink: var(--navy);
  --muted: #4B5566;
  --accent: var(--gold);
  --accent-ink: var(--navy);

  /* tinted stages, darkest to lightest of the brand navy */
  --t1: #0B1626; --t2: #16273F; --t3: #243A57; --t4: #3B5272; --t5: #5C7391; --t6: #8B9BB2;

  --font-display: "Bodoni Moda", Didot, "Bodoni 72", serif;
  --font-text: "Jost", "Avenir Next", Avenir, system-ui, sans-serif;

  --step-small: 0.875rem;                                   /* 14px */
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);      /* 16–18px */
  --step-lead: clamp(1.25rem, 1.05rem + 0.75vw, 1.625rem);  /* 20–26px */
  --step-head: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem);     /* 36–60px */
  --step-display: clamp(110px, 15vw, 230px);

  --margin: clamp(1rem, 2.8vw, 2.5rem);
  --section: clamp(6rem, 13vw, 13rem);
  --radius: 0px;
}

body { background: var(--bg); color: var(--ink); }
.soft { color: var(--muted); }
.h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.02em; font-weight: 500; }
.h3 { font-family: var(--font-display); font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; }
strong { font-weight: 600; }

/* ---------- controls ---------- */
.button { font-weight: 500; letter-spacing: 0.01em; min-height: 3rem; }
.button-gold { background: var(--gold); color: var(--gold-ink); }
.button-ink { background: var(--navy); color: var(--cream); }
@media (hover: hover) and (pointer: fine) {
  .button-gold:hover { background: var(--cream); color: var(--navy); }
  .button-ink:hover { background: var(--gold); color: var(--navy); }
}
.link-plain { text-underline-offset: 0.25em; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link-plain:hover { color: var(--gold); } }

/* ---------- top bar ---------- */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding-top: 1.25rem; color: var(--cream); font-size: var(--step-small); }
.mono { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--gold); }
.mono svg { width: 1.55rem; height: auto; }
.mono span { color: var(--cream); font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; letter-spacing: 0.01em; }
.topnav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.topnav .link { text-decoration-color: transparent; }
.topnav .button { min-height: 2.75rem; padding: 0 1.1rem; }
.only-wide-inline { display: none; }
@media (min-width: 56em) { .only-wide-inline { display: inline; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; background: var(--navy); color: var(--cream); padding-inline: var(--margin); overflow: clip; }
.hero-name { position: absolute; inset-inline-start: var(--margin); top: 14svh; z-index: 1; font-family: "Bodoni Moda", Didot, serif !important; font-family: var(--font-display); font-weight: 700; font-size: var(--step-display); line-height: 0.82; letter-spacing: -0.04em; text-transform: uppercase; font-optical-sizing: auto; }
.hero-name .l1 { color: var(--gold); }
.hero-name .l2 { color: var(--cream); }
/* the arch: the logo's window, holding the towers */
.arch { margin: 0; overflow: clip; border-radius: 999px 999px 0 0; background: var(--navy-2); }
.arch video, .arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch { position: absolute; top: calc(14svh + 0.02 * var(--step-display)); inset-inline-end: var(--margin); width: clamp(180px, 24vw, 380px); aspect-ratio: 3 / 4.4; }
.hero-foot { position: absolute; inset-inline-end: var(--margin); bottom: 40px; width: min(30rem, 42vw); text-align: end; z-index: 3; }
.hero-foot p { font-size: 1.125rem; line-height: 1.45; margin-inline-start: auto; max-width: 30ch; }
.hero-actions { margin-top: 1.5rem; display: flex; gap: 1.25rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.hero-actions .link-plain { font-size: var(--step-small); }

@media (max-width: 47.99em) {
  .hero-name { top: 15svh; font-size: 21vw; }
  .hero-arch { top: auto; bottom: calc(40px + 13.5rem); inset-inline-end: var(--margin); width: 38vw; }
  .hero-foot { inset-inline: var(--margin); bottom: 24px; width: auto; text-align: start; }
  .hero-foot p { margin-inline-start: 0; font-size: 1.125rem; max-width: 34ch; }
  .hero-actions { justify-content: flex-start; }
}

/* ---------- about ---------- */
.about { padding-top: calc(var(--section) * 0.75); }
.about-row { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; font-size: 0.875rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0.15rem 0 0; }
.about-text .h2 { margin-bottom: 1.5rem; }
.statement { font-size: var(--step-lead); line-height: 1.38; max-width: 44ch; }
.about-record { margin-top: 4rem; }
.record-word { font-weight: 500; }
.record { display: grid; gap: 0.8rem; font-size: var(--step-body); }
.record li { display: flex; justify-content: space-between; gap: 1rem; }
@media (min-width: 48em) {
  .about-row { grid-template-columns: calc(34vw - var(--margin)) 1fr; gap: 0; }
  .facts { grid-template-columns: 1fr; width: 13rem; grid-row: 1; grid-column: 1; }
  .about-text { grid-row: 1; grid-column: 2; }
  .about-text { padding-right: 10vw; }
  .about-record { margin-top: 6rem; }
}
@media (min-width: 48em) and (max-width: 63.99em) { .about-record { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; } .about-record .record-word { grid-column: 1 / -1; } }
@media (min-width: 64em) { .about-record { grid-template-columns: calc(34vw - var(--margin)) 1fr 1fr; column-gap: 4rem; } .about-record .record-word { grid-column: auto; } }

/* ---------- showcase band ---------- */
.showcase { background: var(--cream); }
.showcase-title { grid-column: 1 / -1; margin-bottom: 3.5rem; }
@media (min-width: 48em) { .showcase-title { grid-column: 3 / 12; } }
.band { display: flex; height: 68svh; min-height: 420px; }
.panel { position: relative; margin: 0; overflow: clip; transition: flex-grow 500ms var(--ease-in-out); background: var(--navy-2); }
.panel video, .panel img { width: 100%; height: 100%; object-fit: cover; }
.p1 { flex: 5 1 0; } .p2 { flex: 2 1 0; } .p3 { flex: 3 1 0; } .p4 { flex: 2 1 0; }
@media (hover: hover) and (pointer: fine) { .band:hover .panel:hover { flex-grow: 6; } }
.panel-title { position: absolute; left: 0; top: 0; padding: 1.25rem 1.5rem; font-family: var(--font-display); font-size: var(--step-lead); line-height: 1.15; color: var(--cream); background: rgba(11,22,38,.55); }
.showcase-facts { display: grid; gap: 1rem; margin-top: 1.5rem; }
.showcase-facts p { max-width: 52ch; }
@media (min-width: 48em) { .showcase-facts { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); } }
@media (max-width: 47.99em) {
  .band { display: grid; grid-template-columns: 64fr 36fr; grid-template-rows: 1fr 1fr; height: 84svh; }
  .p3 { order: 4; } .p4 { order: 3; }
  .band { grid-template-areas: none; }
  .panel:nth-child(3) { grid-column: 2; grid-row: 2; }
  .panel:nth-child(4) { grid-column: 1; grid-row: 2; }
  .panel-title { font-size: 1.25rem; }
}

/* ---------- selection (list) + elevator ---------- */
.h-list { font-size: var(--step-head); line-height: 0.98; letter-spacing: -0.025em; font-weight: 500; }
.h-list { text-indent: 3vw; }
.selection-grid { display: grid; gap: 3.5rem; margin-top: 6rem; }
.elevator { background: var(--navy); color: var(--cream); padding: 2rem; align-self: start; }
.elevator .h3 { color: var(--gold); }
.elev-body { margin-top: 2.5rem; }
.elev-figure { display: flex; align-items: baseline; gap: 0.35rem; font-family: var(--font-display); }
.elev-num { font-size: clamp(6rem, 4rem + 6vw, 9rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; min-width: 2ch; }
.elev-unit { font-size: var(--step-lead); }
.elev-unit sup { font-size: 0.6em; }
.elev-range { width: 100%; margin-top: 1.25rem; accent-color: var(--gold); height: 2.75rem; cursor: pointer; }
.elev-scale { display: flex; justify-content: space-between; color: #9AA6B8; }
.elev-out { margin-top: 1.5rem; font-size: var(--step-body); line-height: 1.5; }
.elev-note { margin-top: 0.75rem; color: #B9C2D0; }
.table-word { color: var(--muted); margin-bottom: 1rem; }
.lots { display: grid; }
.lot { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1rem; padding: 0.8rem min(1rem, var(--margin)); margin-inline: calc(-1 * min(1rem, var(--margin))); align-items: baseline; transition: background-color var(--t-ui) var(--ease-out), color var(--t-ui) ease; }
.lot.gap { margin-top: 1.4rem; }
.lot .k { color: var(--muted); }
.lot .what { font-size: var(--step-body); }
.lot .what .soft { font-size: var(--step-small); }
.lot .v { color: var(--muted); font-size: var(--step-small); }
.lot.is-lit { background: var(--navy); color: var(--cream); }
.lot.is-lit .k, .lot.is-lit .soft, .lot.is-lit .v { color: #C9D1DD; }
.lot.is-lit .v { color: var(--gold); }
.table-wrap .button { margin-top: 2rem; }
.plans { margin: 6rem 0 0; display: grid; gap: 2rem; }
.plans img { background: #fff; width: 100%; height: auto; padding: 2rem; }
.plans figcaption { grid-column: 1 / -1; }
@media (min-width: 48em) {
  .selection-grid { grid-template-columns: 4fr 1fr 6fr; }
  .elevator { grid-column: 1; }
  .table-wrap { grid-column: 3; }
  .plans { grid-template-columns: 5fr 7fr; align-items: end; }
}
@media (max-width: 47.99em) {
  .h-list { text-indent: 0; font-size: 9.5vw; }
  .lot { grid-template-columns: 1fr auto; }
  .lot .k { grid-column: 1; }
  .lot .what { grid-column: 1 / -1; grid-row: 2; }
  .lot .v { grid-column: 2; grid-row: 1; }
}

/* ---------- how it works: accordion of tinted panels ---------- */
.how-intro { display: grid; gap: 1.5rem; }
@media (min-width: 48em) { .how-intro { grid-template-columns: 5fr 1fr 5fr 1fr; } .how-intro p { grid-column: 3; align-self: end; } }
.how-intro p { font-size: 1.125rem; }
.accordion { display: flex; margin-top: 4rem; height: 520px; color: var(--cream); }
.stage { position: relative; flex: 1 1 0; min-width: 0; background: var(--tone); overflow: clip; transition: flex-grow 450ms var(--ease-in-out); }
.stage.is-open { flex-grow: 7; }
.stage-tab { position: absolute; inset-inline-start: 0; bottom: 0; width: 100%; height: 100%; text-align: left; color: inherit; font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); padding: 1.25rem; display: flex; align-items: flex-end; }
.stage:not(.is-open) .stage-tab span, .stage:not(.is-open) .stage-tab { writing-mode: vertical-rl; transform: rotate(180deg); align-items: flex-start; justify-content: flex-start; }
.stage.is-open .stage-tab { font-size: var(--step-head); align-items: flex-start; height: auto; top: 0; padding: 2rem; font-weight: 500; letter-spacing: -0.02em; cursor: default; }
.stage-body { position: absolute; inset-inline-start: 2rem; bottom: 2rem; width: min(36ch, 80%); font-size: 1.125rem; line-height: 1.5; opacity: 0; visibility: hidden; transition: opacity 300ms ease 150ms, visibility 0s linear 450ms; pointer-events: none; }
.stage.is-open .stage-body { opacity: 1; visibility: visible; transition-delay: 150ms, 0s; pointer-events: auto; }
.stage:nth-child(n+5) { color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .stage:not(.is-open):hover { flex-grow: 1.4; } }
@media (max-width: 47.99em) {
  .accordion { flex-direction: column; height: auto; }
  .stage { flex: none; }
  .stage-tab, .stage:not(.is-open) .stage-tab, .stage.is-open .stage-tab { position: static; writing-mode: horizontal-tb; transform: none; height: 64px; padding: 0 1.25rem; align-items: center; font-size: 1.125rem; }
  .stage-body { position: static; width: auto; padding: 0 1.25rem 1.5rem; display: none; font-size: 1.0625rem; }
  .stage.is-open .stage-body { display: block; }
}

/* ---------- faq ---------- */
.h-faq { font-size: clamp(2.5rem, 0.8rem + 4.6vw, 5.4rem); line-height: 1; letter-spacing: -0.03em; font-weight: 500; }
.qs { margin-top: 5rem; display: grid; gap: 0.5rem; }
@media (min-width: 48em) { .qs { margin-inline-start: calc((100% + var(--gutter)) / 3); } }
.qs details { padding: 0.9rem min(1.5rem, var(--margin)); margin-inline: calc(-1 * min(1.5rem, var(--margin))); transition: background-color var(--t-ui) ease; }
.qs details[open] { background: var(--cream-2); }
.qs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; font-size: var(--step-lead); line-height: 1.3; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ""; flex: none; width: 0.6em; height: 0.6em; margin-top: 0.3em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--t-ui) var(--ease-out); }
.qs details[open] summary::after { transform: rotate(-135deg); margin-top: 0.55em; }
.qs details p { margin-top: 1rem; font-size: var(--step-body); max-width: 52ch; }
@media (hover: hover) and (pointer: fine) { .qs summary:hover { color: #6B5530; } }

/* ---------- contact ---------- */
.contact { position: relative; z-index: 2; min-height: 72svh; background: var(--navy); color: var(--cream); display: grid; grid-template-rows: auto 1fr auto; padding-block: 2.5rem; }
.contact-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.contact-say { font-family: var(--font-text); font-size: var(--step-lead); font-weight: 400; line-height: 1.4; max-width: 30ch; letter-spacing: 0; }
.contact-mail { align-self: end; margin-bottom: 8svh; display: flex; flex-wrap: wrap; row-gap: 0.15em; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 6vw, 7rem); letter-spacing: -0.03em; line-height: 1; text-decoration: none; transition: color var(--t-ui) ease; }
@media (hover: hover) and (pointer: fine) { .contact-mail:hover { color: var(--gold); } }
.contact-foot { display: flex; justify-content: space-between; gap: 1rem; color: #B9C2D0; }
.contact-foot .social a { margin-inline-start: 1.25rem; }
@media (max-width: 47.99em) {
  .contact { min-height: 86svh; }
  .contact-mail { flex-direction: column; font-size: 11.5vw; }
  .contact-foot { flex-direction: column; }
  .contact-foot .social a { margin: 0; margin-inline-end: 1.25rem; }
}

/* ---------- footer ---------- */
.footer { background: #070F1A; color: var(--cream); display: grid; gap: clamp(4rem, 10vw, 9rem); padding-top: 3rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; font-size: var(--step-small); color: #9AA6B8; }
.footer-cols .f-head { color: var(--cream); margin-bottom: 0.35rem; }
@media (min-width: 48em) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-mark { color: var(--gold); }
.footer-mark svg { width: 100%; height: auto; fill: currentColor; }
.legal { color: #7F8BA0; padding-block: 1.25rem; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transition-delay: calc(var(--d, 0) * 80ms); }
  .hero-arch video { animation: drift 18s var(--ease-soft) infinite alternate; }
  .lot.is-lit { animation: lit 600ms var(--ease-out); }
}
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translateY(-2%); } }
@keyframes lit { from { transform: translateX(-6px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .panel, .stage, .lot { transition: none; }
}

/* accordion pictures: right half of the open stage */
.stage-img { position: absolute; top: 0; inset-inline-end: 0; width: 46%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transition: opacity 400ms ease 120ms, visibility 0s linear 520ms; }
.stage.is-open .stage-img { opacity: 1; visibility: visible; transition-delay: 120ms, 0s; }
@media (max-width: 47.99em) { .stage-img { position: static; width: 100%; height: 200px; display: none; } .stage.is-open .stage-img { display: block; } }
@media (min-width: 48em) { .stage-body { width: min(36ch, 46%); } .stage.is-open .stage-tab { width: 54%; } }

/* round 2 — plans lighter, phone top bar on one line */
.plans img { max-height: 440px; object-fit: contain; }
@media (min-width: 48em) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 47.99em) { .mono span { display: none; } }


/* ================= v4 — cinematic scenes, languages ================= */

/* language flags */
.lang { display: inline-flex; align-items: center; gap: 0.55rem; }
.lang-flag { display: block; opacity: 0.5; transition: opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.lang-flag svg { width: 24px; height: 16px; display: block; }
.lang-flag.is-current { opacity: 1; transform: scale(1.12); }
@media (hover: hover) and (pointer: fine) { .lang-flag:hover { opacity: 1; } }
.lang-flag:active { transform: scale(0.94); }

/* scene 1 — the arch opens */
.hero-scene { background: var(--navy); }
.hero-scene .scene-stage { min-height: 100svh; }
.ho-over { display: none; }
.scroll-cue { display: none; }
.hero-scene.is-live .ho-media { position: absolute; inset: 0; width: auto; height: auto; aspect-ratio: auto; border-radius: 0; z-index: 2; }
.hero-scene.is-live .ho-media::after { content: ""; position: absolute; inset: 0; background: rgba(8, 15, 26, 0.42); opacity: clamp(0, calc(var(--p, 0) * 2.2 - 0.9), 1); pointer-events: none; }
.hero-scene.is-live .ho-media video { animation: none; transform-origin: 50% 40%; }
.hero-scene.is-live .ho-over { display: block; position: absolute; z-index: 3; inset-inline: var(--margin); bottom: 14svh; color: var(--cream); visibility: hidden; }
.ho-statement { font-family: var(--font-display); font-size: clamp(2.5rem, 1.2rem + 4.6vw, 6.5rem); line-height: 0.98; letter-spacing: -0.03em; font-weight: 500; max-width: none; }
.hero-scene.is-live .scroll-cue { display: block; position: absolute; z-index: 3; inset-inline-start: var(--margin); bottom: 40px; color: #9AA6B8; }
@media (prefers-reduced-motion: no-preference) {
  .hero-scene.is-live .scroll-cue { animation: cue 2.4s var(--ease-in-out) infinite; }
}
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(8px); opacity: 1; } }

/* scene 2 — chapters */
.chapters { background: var(--navy); color: var(--cream); }
.ch { position: relative; height: 100svh; overflow: clip; }
.ch-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.ch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,15,26,.78) 0%, rgba(8,15,26,.25) 45%, rgba(8,15,26,0) 70%); pointer-events: none; } /* taste-skill-ignore: neutral scrim under text over moving pictures */
.ch-text { position: absolute; z-index: 1; inset-inline: 0; bottom: 10svh; }
.ch-title { font-family: var(--font-display); font-size: clamp(2.75rem, 1rem + 6vw, 7.25rem); line-height: 0.96; letter-spacing: -0.03em; font-weight: 500; max-width: 16ch; }
.ch-sub { margin-top: 1.5rem; font-size: var(--step-lead); line-height: 1.4; max-width: 38ch; color: #E3E7ED; }
.chapters.is-live .ch { position: absolute; inset: 0; height: auto; }
.chapters.is-live .ch + .ch { clip-path: inset(100% 0 0 0); }
@media (max-width: 47.99em) { .ch-text { bottom: 8svh; } .ch-title { font-size: 11vw; } .ch-sub { font-size: 1.0625rem; } }

/* elevator — the tower */
.elev-body { display: grid; grid-template-columns: 1fr auto; column-gap: 1.5rem; align-items: end; }
.elev-figure { grid-column: 1; }
.elev-range, .elev-scale { grid-column: 1; }
.tower { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column-reverse; gap: 2px; width: 46px; height: 240px; }
.tower button { flex: 1; background: rgba(244, 239, 230, 0.14); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.tower button.has-pick { background: rgba(201, 161, 90, 0.38); }
.tower button.is-on { background: var(--gold); transform: scaleX(1.25); }
@media (hover: hover) and (pointer: fine) { .tower button:hover { background: var(--cream); } }

/* Hebrew */
html[lang="he"] { --font-display: "Frank Ruhl Libre", "Bodoni Moda", serif; --font-text: "Heebo", system-ui, sans-serif; }
html[lang="he"] .mono span, html[lang="he"] .footer-mark text { font-family: "Bodoni Moda", Didot, serif; }
html[lang="he"] .h2, html[lang="he"] .h-list, html[lang="he"] .h-faq, html[lang="he"] .ch-title, html[lang="he"] .ho-statement { letter-spacing: 0; }
html[dir="rtl"] .stage:not(.is-open) .stage-tab { transform: none; }
