/* COPIED-SHAPE LOCAL LAYER — middle-re web (public flyer)
   source snapshot: themiddleco/middle-media@e02fc0c34da665eae6a17add509677060284d7df:design/parts.css
   (Quiet Signal 2026-07-05); copied shape: chip/ctl/engraving,
   x- prefix per local-parts law. Dialect: white home skin (tokens-light) · Hebrew RTL.
   Drift (re/AGENTS.md allowance): faces → Frank Ruhl Libre (serif), Heebo (sans),
   system mono via --mono (LATIN/numeric labels only — Hebrew never sets in mono, and
   Hebrew never gets letter-spacing). Fonts self-hosted (tokens.css @font-face; no
   Google fetch). Accent → copper --cu (CRE's one instrument; ice --ice
   stays only for focus/interaction).
   Surfaces: full-bleed sketch-video hero on a white veil · personal desk flyer ·
   what-we-do / annotated-Israel band · wordmark
   + talk-to-us close over a second video. Motion: one quiet rise; reduced-motion wins. */

:root {
  --serif: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --sans: 'Heebo', 'Inter', -apple-system, sans-serif;
  /* the one warm metal — copper/brass, CRE's drift from the home's ice accent.
     [DIAL 2026-07-22] darkened #b06a3e → #92542c so copper TEXT/controls clear WCAG AA
     (≥4.5:1) on white, --s2 and the --cu-wash grounds; still reads copper. */
  --cu: #92542c;
  --cu-wash: rgba(146, 84, 44, .14);
  --cu-line: rgba(146, 84, 44, .3);   /* copper hairline/border — one source for tinted edges */
}

* { margin: 0; box-sizing: border-box; }
/* one continuous scroll — no vertical snap. Section-snap fought the wheel and
   "broke" mid-scroll on tall screens (and Apple etc. don't snap either); the
   horizontal card rails keep their own x-snap, which is where snapping helps. */
html { height: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body { width: 100%; max-width: 100%; overflow-x: hidden; }

.x-page {
  position: relative;
  width: 100%; max-width: 100vw;
  min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: hidden;                 /* guard: absolute map labels / wide bits never force a sideways scroll */
  background: var(--s0); color: var(--t1);
  font: 16px/1.7 var(--sans); font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* three parts: (1) hero, (2) personal flyer, (3) what-we-do + contact.
   the two video bands sit at ~3/4 height, not full screen. */

a:focus-visible {
  outline: 2px solid var(--ice); outline-offset: 2px;
}

#approach, #services, #contact,
#accessibility, #privacy, #terms {
  scroll-margin-top: 104px;
}

/* ── top strip ── */
.x-top {
  position: absolute; inset-block-start: 0; inset-inline: 0; z-index: 10;
  direction: ltr;                 /* no logo at rest — the hero photo carries the wordmark; icons pin right */
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end;
  gap: 12px; padding: 20px clamp(20px, 6vw, 72px);
}
.x-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.x-mark-svg { display: block; }
/* MIDEL wordmark: engraved serif caps — five letters wear the letterspacing the
   long name never could; margin-inline-end swallows the trailing tracking gap */
.x-mark { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: .18em; margin-inline-end: -.18em; white-space: nowrap; }
.x-engr {
  font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--te);
  font-family: var(--mono);
}
/* Hebrew never sets in mono and never gets tracking — use this on Hebrew "engraving" labels */
.x-engr-he { font-family: var(--sans); letter-spacing: normal; }

/* top bar: contact + social icons pinned to the far side, opposite the logo */
.x-top-icons { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.x-top-icons a { display: inline-flex; color: var(--t2); transition: color .2s ease; }
.x-top-icons a[hidden], .x-trio-b[hidden] { display: none !important; }
.x-top-icons a:hover { color: var(--cu); }
.x-top-icons svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.x-top-sep { width: 1px; height: 15px; background: var(--l2); }

/* top-bar anchor nav — quiet + discoverable; collapses to a menu button on phones */
.x-top { justify-content: space-between; }
.x-top-right { display: flex; align-items: center; gap: 14px; }
.x-topnav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); direction: rtl; }
.x-topnav a { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--t2); text-decoration: none; transition: color .2s ease; white-space: nowrap; }
.x-topnav a:hover { color: var(--cu); }
.x-nav-toggle { display: none; background: none; border: none; color: var(--t2); cursor: pointer; padding: 4px; }
.x-nav-toggle:hover { color: var(--cu); }
.x-nav-toggle svg { width: 24px; height: 24px; display: block; }

.x-sec-en-t { font-family: var(--serif); font-size: clamp(15px, 1.7vw, 21px); font-weight: 500; color: var(--t2); letter-spacing: normal; }
/* work columns: Hebrew title leads at the start edge, English label pushed to the far edge —
   the gap between them sets the tempo (they were crowding on the same side before) */
.x-work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; width: 100%; }
.x-work-head .x-sec-en-t { color: var(--te); }

/* slim brand bar — hidden until the hero scrolls away, then slides in */
.x-sticky {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  direction: ltr;                 /* same as the main header: logo left, icons right */
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px clamp(20px, 6vw, 72px);
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--l1);
  visibility: hidden; transform: translateY(-102%);
  transition: transform .38s cubic-bezier(.16, 1, .3, 1), visibility 0s .38s;
}
.x-sticky.is-shown { visibility: visible; transform: none; transition: transform .38s cubic-bezier(.16, 1, .3, 1); }
.x-sticky .x-brand { flex: none; }
.x-sticky .x-mark { font-size: 15px; }
.x-sticky-icons { flex: none; }
.x-sticky-icons svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) {
  .x-sticky { transition: visibility 0s; }
  .x-sticky.is-shown { transition: none; }
}

.x-access-link {
  position: fixed; inset-block-end: 16px; left: 16px; z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--l2); border-radius: 5px;
  background: rgba(255, 255, 255, .9); color: var(--t1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--sans); font-size: 18px; font-weight: 500;
  text-decoration: none;
}
.x-access-link:hover { color: var(--cu); }

/* ── hero — The White City: full-bleed sketch skyline, headline on the white ── */
.x-hero {
  position: relative; overflow: hidden; isolation: isolate;
  direction: ltr;
  /* FIXED STAGE — the video and every label share one 16:9 box and are placed as % of it,
     so they scale together and stay locked to the same spot on the image at any screen width.
     (No more drift between laptop and 27": the whole composition moves as one unit.) */
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100svh;
  background: var(--s1); border-bottom: 1px solid var(--l1);
}
.x-hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;   /* nudged to reveal a touch more of the lowest buildings' base (fine-tune via ?edit) */
  background: var(--s2); filter: contrast(1.05);   /* a touch more architectural definition */
}
.x-hero::after {           /* white veil so the headline always sits on the white part */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.9), rgba(255,255,255,0) 22%),
    linear-gradient(to left, rgba(255,255,255,.95) 0%, rgba(255,255,255,.8) 30%, rgba(255,255,255,.26) 58%, rgba(255,255,255,0) 82%),
    linear-gradient(to top, rgba(255,255,255,.28), rgba(255,255,255,0) 28%);
}
/* headline block — pinned as a % of the stage (right side, upper), so it rides with the image */
.x-hero-inner { position: absolute; z-index: 1; right: 5%; top: 15%; width: min(46%, 40rem); max-width: 40rem; }
.x-eyebrow {                       /* Hebrew → Heebo, no tracking (mono has no Hebrew glyphs) */
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--t2);
}
.x-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cu); box-shadow: 0 0 0 4px var(--cu-wash); }
/* logo-with-words that opens the hero and closes the page — shrinks to content, sits at the start edge */
.x-brand-lg { display: flex; align-items: center; gap: 11px; width: max-content; margin-bottom: 20px; }
.x-brand-lg .x-mark { font-size: 20px; font-weight: 700; white-space: nowrap; }
.x-brand-mark-only { display: none; }   /* logo stays out of the top bar; appears in the sticky bar on scroll */
/* hero wordmark: left column of the same grid, so wide screens keep one composition */
.x-hero-brand {
  position: absolute; z-index: 1; left: 6%; top: 19%; margin: 0;   /* pinned as a % of the stage — rides with the image */
  flex-direction: row; align-items: center; gap: clamp(12px, 1.1vw, 18px);   /* one clean side-by-side lockup, not a stacked mark + text */
}
.x-hero-brand .x-mark-svg { width: clamp(44px, 4.2vw, 62px); height: auto; }   /* mark balanced to the wordmark's height */
.x-hero-brand .x-mark { font-size: clamp(27px, 2.8vw, 43px); letter-spacing: .22em; margin-inline-end: -.22em; }
.x-hero-brand::before {
  content: ""; position: absolute; z-index: -1; inset: -24px -40px -22px -30px;
  background: radial-gradient(72% 78% at 26% 46%, rgba(255,255,255,.85), rgba(255,255,255,0) 74%);
}
.x-h1 {                             /* English headline — one word per line, stepped into a staircase */
  margin-top: 18px; font-family: var(--serif); font-weight: 900; color: var(--t1);
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: 0;
  display: flex; flex-direction: column; align-items: flex-start;
}
.x-h1 span { display: block; }
.x-h1 span:nth-child(1) { margin-inline-start: 0; }
.x-h1 span:nth-child(2) { margin-inline-start: .9em; margin-top: .12em; }   /* the "stairs" — each word steps in and down */
.x-h1 span:nth-child(3) { margin-inline-start: 1.8em; margin-top: .12em; }
/* Hebrew line — copper, set under the English headline with room to breathe in the photo's whitespace */
.x-h1-he { margin-top: 22px; font-family: var(--serif); font-weight: 600; font-size: clamp(17px, 1.85vw, 22px); color: var(--cu); line-height: 1.3; letter-spacing: .01em; text-align: center; }
/* one direct action in the hero — this is a flyer, not a listing interface */
.x-hero-cta {
  position: absolute; z-index: 2; left: 50%; bottom: 12%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px; border-radius: 7px;
  color: #fff; background: var(--cu); text-decoration: none;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 12px 30px -16px rgba(20, 24, 31, .6);
  transition: filter .2s ease, transform .2s ease;
}
.x-hero-cta:hover { filter: brightness(1.06); transform: translateX(-50%) translateY(-1px); }

@media (prefers-reduced-motion: no-preference) {
  .x-hero-inner > * { opacity: 0; transform: translateY(12px); animation: x-rise .7s ease forwards; }
  .x-hero-inner > :nth-child(1) { animation-delay: .06s; }
  .x-hero-inner > :nth-child(2) { animation-delay: .16s; }
  .x-hero-inner > :nth-child(3) { animation-delay: .28s; }
  .x-hero-inner > :nth-child(4) { animation-delay: .40s; }
  .x-hero-inner > :nth-child(5) { animation-delay: .50s; }
  .x-hero-inner > :nth-child(6) { animation-delay: .60s; }
}
@keyframes x-rise { to { opacity: 1; transform: none; } }

/* ── hand-maintained flyer — no live inventory, search, or database surface ── */
.x-h2 {
  font-family: var(--serif); font-size: clamp(27px, 3.6vw, 46px);
  font-weight: 700; line-height: 1.12;
}
.x-flyer {
  display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.5fr);
  gap: clamp(36px, 6vw, 96px);
  padding: clamp(64px, 10vh, 128px) clamp(20px, 7vw, 96px);
  background: var(--s1); border-bottom: 1px solid var(--l1);
}
.x-flyer-intro { max-width: 34rem; }
.x-flyer-intro > .x-engr { color: var(--cu); }
.x-flyer-intro .x-h2 { margin-top: 18px; }
.x-flyer-lead {
  margin-top: 22px; max-width: 31rem;
  color: var(--t2); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.85;
}
.x-flyer-cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  color: var(--cu); font-size: 15px; font-weight: 600; text-decoration: none;
}
.x-flyer-cta:hover { text-decoration: underline; }
.x-flyer-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start; border-top: 1px solid var(--l2);
}
.x-flyer-card {
  min-height: 250px; padding: clamp(22px, 2.7vw, 36px);
  border-inline-start: 1px solid var(--l2);
}
.x-flyer-card:first-child { border-inline-start: none; }
.x-flyer-n {
  color: var(--cu); font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; font-variant-numeric: tabular-nums;
}
.x-flyer-card h3 {
  margin-top: 54px; font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 29px); line-height: 1.2;
}
.x-flyer-card p { margin-top: 14px; color: var(--t2); font-size: 14.5px; line-height: 1.75; }

.x-band-p { margin-top: 16px; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.75; color: var(--t2); max-width: 32em; }
/* map head stays one line even in the narrow column; description + office sit at the bottom */
.x-work-head-map { flex-wrap: nowrap; align-items: baseline; }
.x-work-head-map .x-h2 { font-size: clamp(22px, 2.5vw, 33px); white-space: nowrap; }
.x-work-office { margin-top: 7px; font-size: 13.5px; color: var(--te); }
.x-work-office span { color: var(--cu); font-weight: 600; }

/* ── what we do (services) beside where we work (the map) ── */
.x-services { padding: clamp(56px, 8vh, 104px) clamp(20px, 6vw, 80px); background: var(--s0); border-bottom: 1px solid var(--l1); }
.x-work-grid {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(60px, 7.5vw, 132px); align-items: stretch;
}
/* map column: heading stays top-aligned with the services heading; the map itself
   floats to the centre of the space beneath it, so both columns feel balanced */
.x-work-map { display: flex; flex-direction: column; }
.x-work-do .x-h2, .x-work-map .x-h2 { margin-top: 10px; }
/* what we do: buy / sell / rent as three big blocks; everything else as quiet chips */
.x-do-primary {
  margin-top: clamp(28px, 4vh, 44px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.9vw, 30px);
}
.x-do {
  display: flex; flex-direction: row; align-items: center; text-align: right;
  gap: clamp(16px, 1.8vw, 26px); text-decoration: none;   /* icon beside the text — big glyph, then the name (RTL: icon at the right/start edge) */
  padding: clamp(20px, 2vw, 30px) clamp(18px, 1.8vw, 28px);
  background: var(--s1); border: 1px solid var(--l1); border-top: 2px solid var(--cu);
  border-radius: 6px;   /* no resting shadow — cards lift only on hover, so the block reads light */
  transition: transform .2s ease, box-shadow .2s ease;
}
.x-do:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(20, 24, 31, .4); }
.x-do-primary .x-do { min-height: clamp(104px, 9vw, 134px); }
.x-do-name { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }   /* flex-start hugs the right edge in RTL; open lines = lighter feel */
.x-do-ic { width: clamp(30px, 3vw, 42px); height: auto; flex: none; stroke: var(--cu); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.x-do-k { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; color: var(--te); }
.x-do-h { font-family: var(--serif); font-size: clamp(23px, 2.5vw, 33px); font-weight: 600; color: var(--t1); line-height: 1.04; }
/* the rest — three quieter cards (smaller, muted, different ground) */
.x-do-secondary {
  margin-top: clamp(14px, 1.6vw, 24px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px);
}
.x-do-sm {
  padding: clamp(15px, 1.6vw, 22px); gap: clamp(12px, 1.2vw, 16px);
  background: var(--s2); border: 1px solid var(--l1); border-top: 2px solid var(--l3); box-shadow: none;
}
.x-do-sm:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -22px rgba(20, 24, 31, .35); }
.x-do-sm .x-do-ic { width: clamp(24px, 2.3vw, 28px); height: auto; stroke: var(--t2); }
.x-do-sm .x-do-k { color: var(--t2); }
.x-do-sm .x-do-h { font-size: clamp(17px, 1.9vw, 23px); }
.x-do-sub { font-family: var(--sans); font-size: 12.5px; color: var(--te); line-height: 1.55; }

/* broker disclosure — quiet, factual, sits under the trio; copper hairline ties it to the accent */
.x-license {
  margin-top: clamp(20px, 2.4vw, 32px); padding-top: clamp(14px, 1.6vw, 20px);
  border-top: 1px solid var(--l1);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px);
}
.x-license-he { font-family: var(--sans); font-size: 12.5px; line-height: 1.6; color: var(--t2); }
.x-license-en { font-family: var(--sans); font-size: 12px; line-height: 1.55; color: var(--te); text-align: left; }

.x-map { position: relative; width: 100%; max-width: 540px; margin-block: auto; }
.x-map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.x-map-land { fill: var(--s2); stroke: var(--l3); stroke-width: 1.5; stroke-linejoin: round; }
.x-map-leaders line { stroke: var(--cu); stroke-width: .9; opacity: .34; stroke-linecap: round; }
.x-map-dots circle { fill: var(--cu); }
.x-map-halo { fill: none; stroke: var(--cu); stroke-width: 1; opacity: .3; }
.x-dot-home { fill: var(--cu); stroke: #fff; stroke-width: 2.5; }
/* two symmetric city lists flanking the map — same heights, mirrored across the centre */
.x-area { position: absolute; transform: translateY(-50%); white-space: nowrap; font-family: var(--sans); font-size: 14.5px; color: var(--t2); }
.x-area-l { inset-inline-end: 68%; text-align: end; padding-inline-end: 14px; }
.x-area-r { inset-inline-start: 68%; text-align: start; padding-inline-start: 14px; }
.x-area-home { color: var(--cu); font-weight: 600; }

/* ── the close — talk to us + the wordmark, over the video, on white ── */
.x-close {
  position: relative; overflow: hidden; isolation: isolate; color: var(--t1);
  min-height: clamp(440px, 60vh, 600px);   /* room for the figure — head + shoulders, not a floating head */
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 9vh, 104px) clamp(20px, 6vw, 76px);
  background: var(--s1);
}
.x-close-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 47% 26%; background: var(--s2);
}
.x-close::after {           /* strong white on the text side + a soft wash top-left so the wordmark reads */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to left, rgba(255,255,255,.99) 0%, rgba(255,255,255,.96) 38%, rgba(255,255,255,.56) 62%, rgba(255,255,255,0) 84%),
    linear-gradient(to right, rgba(255,255,255,.94) 0%, rgba(255,255,255,.62) 22%, rgba(255,255,255,0) 40%),
    linear-gradient(to top, rgba(255,255,255,.5), rgba(255,255,255,0) 36%);
}
/* sign-off sits high on the right, above the figure's head — raised so it clears the hair */
.x-close-inner { position: absolute; z-index: 1; right: clamp(44px, 10vw, 168px); top: clamp(24px, 12%, 92px); max-width: 40rem; text-align: right; }
/* logo + contact trio stacked together, set into the white space above the figure on the left */
/* left block sits on the same line as the right sign-off, so the two mirror each other across the figure */
.x-close-brandbox { position: absolute; z-index: 1; left: clamp(120px, 17vw, 340px); top: clamp(24px, 12%, 92px);
  display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 3vh, 28px); }
.x-close-brand { margin: 0; gap: clamp(12px, 1.1vw, 16px); align-items: center; }
.x-close-brand .x-mark-svg { width: clamp(42px, 3.4vw, 50px); height: auto; }   /* same balance as the hero lockup */
.x-close-brand .x-mark { font-size: clamp(28px, 2.4vw, 35px); letter-spacing: .22em; margin-inline-end: -.22em; }
.x-close-line {                     /* one punchy English line — the sign-off, echoes the hero */
  font-family: var(--serif); font-weight: 900; color: var(--t1);
  font-size: clamp(30px, 4vw, 54px); line-height: 1.05; letter-spacing: 0;
}
.x-close-he {                       /* short Hebrew line beneath — copper, echoing the accent */
  margin-top: 12px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(18px, 2vw, 24px); color: var(--cu); line-height: 1.3;
}

/* contact trio — one clean component: call / whatsapp / email, side by side.
   Shared by the close section and the detail modal. */
.x-trio { display: flex; flex-wrap: wrap; gap: 10px; }
.x-trio-b {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 6px; text-decoration: none;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  color: var(--t1); background: rgba(255,255,255,.86); border: 1px solid var(--l2);
  box-shadow: var(--ring); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.x-trio-b svg { width: 17px; height: 17px; color: var(--cu); display: block; }   /* sprite icons paint via currentColor */
.x-trio-b:hover { color: var(--cu); border-color: var(--cu); transform: translateY(-2px); }
.x-trio-b:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

/* ── footer ── */
.x-foot {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 28px clamp(20px, 6vw, 76px);
  border-top: 1px solid var(--l1); background: var(--s1);
}
.x-foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.x-foot-dot { color: var(--l3); }
.x-foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; }
.x-foot-a { text-decoration: none; transition: color .2s ease; }
.x-foot-a:hover { color: var(--cu); }

/* ── legal/supporting pages ── */
.x-legal-page { background: var(--s0); }
.x-legal-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(20px, 6vw, 72px);
  border-bottom: 1px solid var(--l1); background: var(--s1);
}
.x-legal-brand { color: var(--t1); text-decoration: none; }
.x-legal-back {
  color: var(--cu); font-family: var(--sans); font-size: 14px; font-weight: 500;
  text-decoration: none;
}
.x-legal-back:hover { text-decoration: underline; }
.x-legal-main {
  width: calc(100% - 40px); max-width: 860px;
  margin: clamp(34px, 7vh, 72px) auto clamp(48px, 9vh, 96px);
}
.x-legal-date { font-size: 13px; color: var(--te); }
.x-legal-slide-page .x-legal-main {
  width: calc(100% - 40px); max-width: 1180px;
  margin: clamp(24px, 4vh, 48px) auto clamp(32px, 5vh, 56px);
}
.x-legal-intro {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 10px 28px; margin-bottom: clamp(22px, 4vh, 34px);
}
.x-legal-intro .x-h2 { margin-top: 10px; }
.x-legal-intro p:last-child { color: var(--t2); max-width: 40em; }
.x-legal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.x-legal-box {
  min-height: 100%;
  background: var(--s1); border: 1px solid var(--l1); border-radius: 6px;
  padding: clamp(18px, 2vw, 24px);
  box-shadow: var(--ring);
  scroll-margin-top: 80px;
}
.x-legal-box-k { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--cu); }
.x-legal-box h2 { margin-top: 8px; font-family: var(--serif); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.12; }
.x-legal-box p { margin-top: 10px; color: var(--t2); font-size: 14px; line-height: 1.55; }
.x-legal-box ul { margin-top: 10px; padding-inline-start: 18px; color: var(--t2); font-size: 13.5px; line-height: 1.52; }
.x-legal-box li + li { margin-top: 5px; }
.x-legal-box a { color: var(--cu); text-decoration: none; }
.x-legal-box a:hover { text-decoration: underline; }
/* English parallel — quiet secondary voice under each Hebrew section, set on the opposite side */
.x-legal-en { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--l1); text-align: left; }
.x-legal-intro .x-legal-en { max-width: 40em; }
.x-legal-en p { margin-top: 8px; color: var(--te); font-size: 12.5px; line-height: 1.48; }
.x-legal-en p:first-child { margin-top: 0; }
.x-legal-en a { color: var(--cu); text-decoration: none; }
.x-legal-en a:hover { text-decoration: underline; }
.x-legal-slide-page .x-legal-date { margin-top: 18px; text-align: left; }

@media (max-width: 860px) {
  .x-hero { aspect-ratio: auto; max-height: none; min-height: 87vh; min-height: 87svh;
    display: block; direction: ltr;
    padding: clamp(88px, 15vh, 150px) clamp(20px, 6vw, 72px) clamp(44px, 8vh, 96px); }   /* phones: back to a plain stacked flow (a wide stage can't fit a portrait screen) */
  .x-hero::after { background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.9) 88%); }
  .x-hero-inner { position: static; inset: auto; width: 100%; max-width: 100%; direction: ltr; }
  .x-hero-cta { position: static; transform: none; margin-top: clamp(24px, 5vh, 38px); }
  .x-hero-cta:hover { transform: translateY(-1px); }
  .x-close { display: flex; flex-direction: column; justify-content: flex-start; direction: ltr; }
  .x-close-inner { position: static; top: auto; right: auto; max-width: 100%; direction: ltr; text-align: left; order: -1; }
  .x-close-brandbox { position: static; top: auto; left: auto; margin-top: clamp(22px, 4vh, 32px); }
  /* absolute wordmarks return to flow so they stack above the text on phones */
  .x-hero-brand { position: static; top: auto; left: auto; margin: 0 0 clamp(18px, 3.5vh, 30px); }
  .x-close-brand { margin: 0 0 clamp(14px, 2.5vh, 22px); }
  .x-hero-brand .x-mark { font-size: clamp(23px, 6.4vw, 31px); }   /* fits the narrowest phones */
  .x-close-brand .x-mark { font-size: clamp(22px, 6vw, 30px); }
  .x-hero-brand .x-mark-svg, .x-close-brand .x-mark-svg { width: clamp(36px, 10vw, 48px); height: auto; }
  .x-flyer { grid-template-columns: 1fr; }
  .x-flyer-cards { grid-column: 1; }
  .x-work-grid { grid-template-columns: 1fr; gap: 44px; }
  .x-legal-grid { grid-template-columns: 1fr; }
  .x-map { margin: clamp(24px, 4vh, 32px) auto 0; }   /* stacked: restore top gap, centre horizontally */
  .x-close::after { background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.9) 88%); }
}

@media (max-width: 620px) {
  .x-top > .x-brand, .x-sticky > .x-brand, .x-legal-brand { flex-direction: row-reverse; }
  .x-top { padding-inline: clamp(16px, 5vw, 22px); }
  .x-top-icons { gap: 11px; }        /* brand-left + icons-right still fit on the narrowest phones */
  /* phones: anchor nav collapses behind the menu button; icons + menu sit at the right */
  .x-top { justify-content: flex-end; }
  .x-nav-toggle { display: flex; }
	  .x-topnav {
	    position: absolute; inset-block-start: calc(100% - 2px); right: clamp(16px, 5vw, 22px); left: auto;
	    max-width: calc(100vw - 32px); min-width: 150px;
	    flex-direction: column; align-items: flex-end; gap: 2px; display: none;
    background: rgba(255,255,255,.98); border: 1px solid var(--l1); border-radius: 10px;
    padding: 10px 18px; box-shadow: 0 20px 50px -20px rgba(20,24,31,.4);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .x-topnav.is-open { display: flex; }
  .x-topnav a { font-size: 15px; padding: 7px 0; }
  .x-sec-en-t { font-size: 15px; }
  .x-sticky { padding-inline: clamp(16px, 5vw, 22px); gap: 12px; }
  .x-sticky .x-mark { display: none; }
  .x-sticky .x-brand { gap: 0; }
  .x-sticky-icons { gap: 10px; }
  .x-h1 { font-size: clamp(27px, 7.25vw, 38px); }
  .x-h1-he { font-size: clamp(18px, 5vw, 23px); }
  .x-hero-inner { max-width: 100%; }
	  #approach, #services, #contact,
	  #accessibility, #privacy, #terms { scroll-margin-top: 120px; }
  .x-do-primary, .x-do-secondary { grid-template-columns: 1fr; }   /* one clean stack; base card is already icon-beside-text */
  .x-do { padding: 15px 16px; }
  .x-do-primary .x-do { min-height: 0; }
  .x-do-h { font-size: clamp(19px, 6vw, 24px); }
  .x-flyer { padding: 56px 20px; gap: 34px; }
  .x-flyer-cards { grid-template-columns: 1fr; border-top: none; }
  .x-flyer-card { min-height: 0; border-inline-start: none; border-top: 1px solid var(--l2); padding: 26px 4px; }
  .x-flyer-card h3 { margin-top: 18px; }
  .x-area { font-size: 12px; }                 /* keep the flanking city lists inside narrow screens */
  .x-access-link { inset-block-end: 12px; left: 12px; width: 38px; height: 38px; }
  .x-legal-top { align-items: flex-start; flex-direction: column; }
  .x-license { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 440px) {
  /* tiny phones: keep call / chat / email opposite the logo; social trio stays in the footer */
  .x-top-sep, .x-top-sep ~ a { display: none; }
  /* the map's flanking city labels are absolutely placed and can reach past a very
     narrow viewport; smaller type keeps them in, and clip scopes any residue to the
     section so it can never widen the document and shift the RTL page */
  .x-services { overflow-x: clip; }
  .x-area { font-size: 11px; padding-inline: 8px; }
}
