/* =============================================================
   HLZ — Haim & Lior Zoref Law Office
   Dark Editorial · RTL Hebrew · Ink / Gold / Ivory
   Reference language: full dark canvas, oversized light-weight
   Hebrew display type, Latin serif section labels, 90vw layout.
   ============================================================= */

/* ---- FUP Begin — self-hosted Hebrew body font (6 weights) ---- */
@font-face {
  font-family: 'FUP Begin';
  src: url('../fonts/FUP Begin - Light.woff2') format('woff2'),
       url('../fonts/FUP Begin - Light.woff')  format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FUP Begin';
  src: url('../fonts/FUP Begin - Regular.woff2') format('woff2'),
       url('../fonts/FUP Begin - Regular.woff')  format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FUP Begin';
  src: url('../fonts/FUP Begin - Medium.woff2') format('woff2'),
       url('../fonts/FUP Begin - Medium.woff')  format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FUP Begin';
  src: url('../fonts/FUP Begin - SemiBold.woff2') format('woff2'),
       url('../fonts/FUP Begin - SemiBold.woff')  format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FUP Begin';
  src: url('../fonts/FUP Begin - Bold.woff2') format('woff2'),
       url('../fonts/FUP Begin - Bold.woff')  format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'FUP Begin';
  src: url('../fonts/FUP Begin - ExtraBold.woff2') format('woff2'),
       url('../fonts/FUP Begin - ExtraBold.woff')  format('woff');
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --ink: #0a0a0a;   /* near-black: text on light, buttons, overlays */
  --ink-2: #050505; /* deeper black */
  --ink-3: #2a2a2a; /* raised dark surfaces */
  --bg: #222222;    /* soft charcoal — page canvas */
  --bg-2: #1c1c1c;  /* slightly deeper charcoal (raised/contact areas) */
  --paper: #ffffff; /* white text / items */
  --muted: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.42);
  --gold: #ffffff;   /* accent → white for the mono black/white theme */
  --gold-2: #e8e8e8;
  --gold-real: #c09a32; /* the actual brand gold — used sparingly for live accents */
  --line: rgba(255, 255, 255, 0.20);
  --line-soft: rgba(255, 255, 255, 0.10);

  --font-sans: 'FUP Begin', 'Assistant', 'Heebo', sans-serif;
  --font-display: 'FUP Begin', 'Assistant', 'Heebo', sans-serif;
  --font-latin: 'Marcellus', serif;

  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; } /* clip: sideways overflow can never shift/scroll the page */

/* ---- Lenis smooth-scroll (inertial scrolling, drives all ScrollTrigger motion) ----
   when Lenis is active it manages scroll itself, so native smooth-behavior must be
   off; .lenis-stopped locks the page (used during the preloader). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--paper);
  direction: rtl;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip (not hidden): keeps the viewport the scroll root so Lenis drives it cleanly */
}

body.is-loading { overflow: hidden; height: 100dvh; }

/* =========== INNER-PAGE DOORS (emerald-style open) ===========
   two ink panels cover the page and part to the sides on load;
   the content never moves — only the doors do */
.page-doors { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
.page-doors__panel {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background: var(--bg);
}
.page-doors__panel--l { left: 0; }
.page-doors__panel--r { right: 0; }
html.gsap-off .page-doors { display: none; }

img { max-width: 100%; display: block; }
/* iOS Safari sizes iframes to their CONTENT and ignores width:100%. An embed
   wider than the screen inflates iOS' layout viewport; position:fixed overlays
   then size to THAT (they escape html/body overflow clipping, since their
   containing block is the viewport) and the page scrolls side to side. Cap
   every embed so that loop can never start. */
iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; }

/* film grain */
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* near-full-bleed canvas, like the reference's 90vw containers */
.container { width: min(91vw, 1800px); margin-inline: auto; }

/* =========================== PRELOADER =========================== */
/* the container is TRANSPARENT — all the ink lives on the two door panels,
   which part to the sides at the end (no opaque layer left behind them) */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
}
/* returning visitor (flag set pre-paint in header.php): no preloader at all,
   and no scroll-lock flash while main.js boots */
html.hlz-seen .preloader { display: none !important; }
html.hlz-seen body.is-loading { overflow: visible; height: auto; }
/* thin vertical pinstripes in the logo gold, on the loading doors */
.preloader__panel {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(90deg,
    rgba(192, 154, 50, 0.18) 0, rgba(192, 154, 50, 0.18) 1px,
    transparent 1px, transparent 8.33%);
}
.preloader__panel--l { left: 0; }
.preloader__panel--r { right: 0; }
.preloader__inner { position: relative; z-index: 2; text-align: center; }
.preloader__logo { width: clamp(90px, 12vw, 150px); margin-inline: auto; overflow: visible; }
.preloader .preloader__logo-img {
  height: clamp(70px, 9vw, 120px); width: auto; margin-inline: auto;
  opacity: 0; transform: translateY(24px);
}
.preloader__logo .mark { opacity: 0; transform: translateY(24px); }
.preloader__word {
  margin-top: 28px;
  font-family: 'Poppins', var(--font-sans);
  font-weight: 500;
  font-size: clamp(17px, 1.8vw, 24px);
  letter-spacing: 0.08em;
  color: var(--paper);
  opacity: 0;
}
.preloader__sub {
  margin-top: 8px;
  font-size: 11.5px; letter-spacing: 0.22em;
  color: rgba(246, 243, 236, 0.5);
  opacity: 0;
}
.preloader__sub i { font-style: normal; color: var(--gold); }
.preloader__count {
  position: absolute; bottom: clamp(24px, 5vh, 56px); inset-inline-start: clamp(24px, 5vw, 64px);
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 110px);
  line-height: 1; color: var(--gold);
  font-weight: 300;
  z-index: 2;
}
.preloader__bar {
  position: absolute; bottom: 0; inset-inline-start: 0; height: 2px; width: 100%;
  transform-origin: right center; transform: scaleX(0);
  background: var(--gold); z-index: 2;
}

/* =========================== NAV =========================== */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding: clamp(18px, 2.5vh, 30px) 4.5vw 18px;
  pointer-events: none;
  transition: padding 0.5s var(--ease-out);
}
.nav::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.98), rgba(10, 10, 10, 0.9));
  border-bottom: 1px solid rgba(246, 243, 236, 0.07);
  opacity: 0; transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
body.nav-scrolled .nav { padding-block: 14px 12px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.nav-scrolled .nav::before { opacity: 1; }
.nav__pill {
  position: relative;
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
}
.nav__logo {
  display: flex; align-items: center; gap: 14px; direction: ltr;
  transform: scale(0.86); transform-origin: right center; /* gentle first-look bump-down */
  transition: transform 0.5s var(--ease-out);
}
body.nav-scrolled .nav__logo { transform: scale(0.94); } /* grows slightly once the bar is up */
.nav__logo svg { height: 38px; width: auto; }

/* real logo file (assets/img/logo.png) — used when present */
.site-logo { height: 56px; width: auto; display: block; }
.nav__logo .site-logo { height: clamp(58px, 5.4vw, 76px); }
.footer__logo .site-logo { height: 55px; }
/* Dual logo: --light (dark text + gold L) over the light hero,
   --dark (ivory text + gold L) on every dark surface.
   Swapping real assets keeps the gold L — unlike a CSS invert filter. */
.site-logo--dark { display: none; }
/* nav: light by default, swap to dark version when the scrolled bar or menu is up */
body.nav-scrolled .nav__logo .site-logo--light,
body.menu-open .nav__logo .site-logo--light { display: none; }
body.nav-scrolled .nav__logo .site-logo--dark,
body.menu-open .nav__logo .site-logo--dark { display: block; }
/* footer is always dark */
.footer__logo .site-logo--light { display: block; }
.footer__logo .site-logo--dark { display: none; }

/* brand lockup — "Haim & Lior Zoref / Law Office | חיים וליאור צורף" */
.logo-lockup { display: flex; flex-direction: column; line-height: 1.15; direction: ltr; text-align: left; }
.logo-lockup b {
  font-family: 'Poppins', var(--font-sans); font-weight: 500;
  font-size: 16.5px; letter-spacing: 0.015em; white-space: nowrap;
}
.logo-lockup small {
  display: flex; align-items: center; gap: 7px; margin-top: 3px;
  font-size: 9px; letter-spacing: 0.28em; font-weight: 400; opacity: 0.85;
  white-space: nowrap;
}
.logo-lockup small i { font-style: normal; color: var(--gold); opacity: 1; }
.logo-lockup small span { direction: rtl; unicode-bidi: isolate; letter-spacing: 0.12em; font-size: 10.5px; }
/* absolutely centered on the bar so side widths (logo vs CTA) don't shift it */
.nav__links {
  display: flex; gap: clamp(14px, 2.4vw, 36px);
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav__links a {
  font-size: clamp(17px, 1.3vw, 20px); font-weight: 500; letter-spacing: 0.03em; color: var(--muted);
  position: relative; padding-block: 4px;
  transition: color 0.5s var(--ease-out);
}
.nav__links a::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.6s var(--ease-expo);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: right center; }

/* burger */
.nav__burger {
  position: relative; width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid var(--line);
  display: none; align-items: center; justify-content: center;
  transition: transform 0.5s var(--ease-out), background 0.5s;
}
.nav__burger:active { transform: scale(0.94); }
.nav__burger span {
  position: absolute; width: 18px; height: 1.5px; background: var(--paper);
  transition: transform 0.55s var(--ease-expo), opacity 0.3s;
}
.nav__burger span:nth-child(1) { transform: translateY(-4px); }
.nav__burger span:nth-child(2) { transform: translateY(4px); }
body.menu-open .nav__burger span:nth-child(1) { transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { transform: rotate(-45deg); }

/* fullscreen menu */
.menu-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  /* column: the links list plus the CTA below it, together centred vertically */
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.menu-overlay__links { padding-inline: clamp(24px, 8vw, 120px); }
.menu-overlay__links li { overflow: hidden; }
.menu-overlay__links a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(38px, 7.5vw, 88px);
  font-weight: 300; color: var(--paper); line-height: 1.3;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-expo), color 0.4s;
}
body.menu-open .menu-overlay__links a { transform: translateY(0); }
.menu-overlay__links li:nth-child(1) a { transition-delay: 0.10s; }
.menu-overlay__links li:nth-child(2) a { transition-delay: 0.16s; }
.menu-overlay__links li:nth-child(3) a { transition-delay: 0.22s; }
.menu-overlay__links li:nth-child(4) a { transition-delay: 0.28s; }
.menu-overlay__links li:nth-child(5) a { transition-delay: 0.34s; }
.menu-overlay__links a:hover { color: var(--gold); }
/* CTA below the links — same slide-up reveal, one beat after the last item.
   Selector carries 3 classes so it outranks the fill-sweep block's
   `.btn:not(.nav__cta) { transition: color ... }` further down the file,
   which would otherwise wipe out the transform transition. */
.menu-overlay__cta {
  padding-inline: clamp(24px, 8vw, 120px);
  margin-top: clamp(30px, 5vh, 52px);
  overflow: hidden;
}
.menu-overlay__cta .btn.btn--ghost {
  transform: translateY(115%);
  transition: transform 0.9s var(--ease-expo) 0.40s, color 0.5s var(--ease-out) 0.12s;
}
body.menu-open .menu-overlay__cta .btn.btn--ghost { transform: translateY(0); }
/* mobile: a touch more air between the category links (+15%) */
@media (max-width: 640px) {
  .menu-overlay__links a { line-height: 1.5; }
}

/* =========================== BUTTONS =========================== */
.btn {
  display: inline-flex; align-items: center; gap: clamp(20px, 2.8vw, 48px);
  padding: 16px 24px;
  background: #ffffff; color: var(--ink);
  border: 1px solid var(--ink);
  border-bottom-width: 4px;
  border-radius: 0;
  font-family: var(--font-label); font-weight: 800;
  font-size: clamp(13px, 1.1vw, 16px); letter-spacing: 0.2em; text-transform: uppercase;
  position: relative; overflow: hidden;
  transition: color 0.5s var(--ease-out), background 0.5s var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(0.98); }

/* ---- shared "+" icon for every CTA button/link on the site ----
   Drawn as two bars, not a font glyph — a literal "+" character picks up
   whatever font/weight/letter-spacing the host button has, which renders
   inconsistently (thick, off-center, different per button). One fixed
   clamp() size, independent of each button's own font-size, keeps every
   instance pixel-identical wherever it appears. */
.btn__icon, .btn-cut__arrow, .pa-card__link span, .ab-form__send b {
  position: relative; flex: none; display: inline-block;
  width: clamp(12px, 0.95vw, 15px); height: clamp(12px, 0.95vw, 15px);
  font-size: 0; line-height: 1; font-weight: 400; letter-spacing: normal;
  color: inherit;
  transition: transform 0.5s var(--ease-out);
}
.btn__icon svg { display: none; }
.btn__icon::before, .btn__icon::after,
.btn-cut__arrow::before, .btn-cut__arrow::after,
.pa-card__link span::before, .pa-card__link span::after,
.ab-form__send b::before, .ab-form__send b::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: currentColor; transform: translate(-50%, -50%);
}
.btn__icon::before, .btn-cut__arrow::before,
.pa-card__link span::before, .ab-form__send b::before { width: 72%; height: 12%; }
.btn__icon::after, .btn-cut__arrow::after,
.pa-card__link span::after, .ab-form__send b::after { width: 12%; height: 72%; }
.btn:hover .btn__icon { transform: rotate(90deg); color: var(--ink); }
.ab-form__send:hover b { transform: rotate(90deg); }

/* gold variant */
.btn--gold { border-color: var(--gold); }
.btn--gold:hover { background: var(--ink); color: var(--paper); }

/* ghost — for dark backgrounds; hover keeps a light border so the chip
   never melts into a dark page (on-hero / nav-scrolled override this) */
.btn--ghost { background: #ffffff; border-color: var(--ink); color: var(--ink); }
.btn--ghost .btn__icon { color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--paper); color: var(--paper); }
.btn--ghost:hover .btn__icon { color: var(--paper); }

/* =========================== LABELS / HEADINGS =========================== */

/* Latin serif section label — the reference's "Our vision / What We Do" device */
.section-label {
  display: inline-block;      /* sits at the line's start (right in RTL), centers when parent is centered */
  direction: ltr;             /* keep Latin letters L→R after the per-char animation split */
  unicode-bidi: isolate;
  font-family: var(--font-latin);
  text-transform: uppercase;
  font-size: clamp(22px, 2.7vw, 46px);
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--gold);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.35em;
  color: var(--muted);
}
.eyebrow::before { content: ''; width: 38px; height: 1px; background: var(--gold); }
.eyebrow--light { color: var(--muted); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.12; text-wrap: balance; }

.h-display { font-size: clamp(52px, 10.5vw, 190px); letter-spacing: -0.02em; line-height: 1; }
.h-xl { font-size: clamp(38px, 5.8vw, 100px); line-height: 1.06; }
.h-lg { font-size: clamp(26px, 3vw, 44px); }

.accent { color: var(--gold); font-style: normal; font-weight: 700; }

/* char-cascade helpers (headlines split by JS into words/chars) */
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; will-change: transform, opacity; }

/* =========================== HERO ===========================
   Full-bleed photo, dark type over the sky (Emerald-style fold 1).
   The bottom ink panel with the angled notch covers the photo edge
   and hands the eye off to the dark page below. */
.hero {
  position: relative;
  min-height: 100vh; /* the framed photo fits the first viewport whole */
  display: flex; align-items: center;
  padding-top: 120px;
  --panel-h: clamp(70px, 13vh, 160px);
}

/* photo layer — full bleed rectangle */
.hero__media {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(176deg, #a3b3de 0%, #c6badf 48%, #eeccd3 100%);
}
.hero__media-shell { position: static; }
.hero__media-core { position: absolute; inset: 0; }
/* the photo itself covers the WHOLE hero (Emerald-style full-bleed) —
   no mask, no painted sky: one continuous photograph edge to edge */
.hero__media-core img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* pushed toward the right of the frame so the partners sit left-of-centre,
     leaving open sky in the upper-right where the title + ornament live (so
     the diamond/line clear the faces, like the reference) */
  object-fit: cover; object-position: 82% 18%;
}
.hero__media-veil {
  position: absolute; inset: 0; background: var(--ink); z-index: 3;
  transform-origin: top center;
}
.hero__panel {
  position: absolute; bottom: -1px; inset-inline: 0; z-index: 2;
  height: var(--panel-h);
  background: var(--bg);
  /* high outer corners sloping down to a flat center, like the reference */
  clip-path: polygon(0 0, 6% 42%, 94% 42%, 100% 0, 100% 100%, 0 100%);
}
/* thin light hairline tracing the fold edge, inset a few px */
.hero__panel::before, .hero__panel::after {
  content: ''; position: absolute; inset: 0;
  clip-path: polygon(0 0, 6% 42%, 94% 42%, 100% 0, 100% 100%, 0 100%);
}
.hero__panel::before { background: rgba(246, 243, 236, 0.35); transform: translateY(9px); }
.hero__panel::after { background: var(--bg); transform: translateY(12px); }

/* text block — sits over the open sky (start side in RTL) */
.hero__content {
  position: relative; z-index: 4;
  padding-bottom: calc(var(--panel-h) + 5vh);
  padding-inline-start: clamp(24px, 4.5vw, 110px);
}
/* Emerald-style immersive fold: on desktop the photo runs PAST the first
   viewport, so fold 1 is pure full-bleed photo — the angled cut edge is met
   only as you scroll, with the photo still behind it. The text column
   centres itself within the FIRST viewport, not within the taller hero. */
@media (min-width: 1025px) {
  .hero { min-height: 134vh; align-items: flex-start; }
  .hero__content {
    min-height: calc(100vh - 120px);
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    padding-bottom: 0;
  }
}
.hero__title {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(38px, 5.6vw, 110px);
  line-height: 1.08; letter-spacing: -0.01em;
  font-weight: 300;
  max-width: 68%;
  margin-bottom: clamp(24px, 4vh, 48px);
}
.hero__title em { font-style: normal; font-weight: 800; font-size: 1.15em; }
.hero__orn {
  display: inline-flex; align-items: center; gap: clamp(10px, 1.2vw, 18px);
  margin-inline-start: clamp(12px, 1.6vw, 26px);
  vertical-align: middle;
}
/* line — sits on the RIGHT of the star (nearest the text); kept short so the
   ornament breathes in the sky and never reaches the partners' faces */
.hero__orn::before {
  content: ''; flex: none;
  width: clamp(28px, 3vw, 60px); height: 2px; background: var(--ink);
}
/* star (diamond) — on the LEFT, toward the photo, in the logo gold */
.hero__orn::after {
  content: ''; flex: none;
  width: clamp(10px, 1vw, 16px); height: clamp(10px, 1vw, 16px);
  background: #c09a32; transform: rotate(45deg);
}
/* trailing period of the headline, in the logo gold (like the reference) */
.hero__dot { color: #c09a32; }
.hero__lede {
  max-width: min(46ch, 38vw); font-size: clamp(17.5px, 1.45vw, 23px);
  color: rgba(10, 10, 10, 0.82); font-weight: 400; line-height: 1.8;
}
.hero__lede strong { font-weight: 700; color: var(--ink); }

/* angular-cut CTA — in the text column, flush with the lede's right edge */
.hero__cta {
  display: inline-flex;
  margin-top: clamp(40px, 9vh, 110px);
}
.btn-cut {
  display: inline-flex; align-items: center; gap: clamp(28px, 3vw, 52px);
  background: #ffffff; color: var(--ink);
  border: 1px solid var(--ink); border-bottom-width: 4px;
  font-family: var(--font-label); font-weight: 800;
  font-size: clamp(13px, 1.1vw, 16px); letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 24px;
  transition: background 0.5s var(--ease-out), color 0.5s;
}
/* sizing/bars for .btn-cut__arrow now live in the shared "+" icon rule above */
.btn-cut:hover { background: var(--ink); color: var(--paper); }
.btn-cut:hover .btn-cut__arrow { transform: rotate(90deg); }
.btn-cut:active { transform: scale(0.98); }

/* =============================================================
   HERO — VARIANT B (subduxion-style editorial, one fold) · ?hero=b
   Same structure as the client-approved layout: monumental
   headline + small offset accent photo on top, then the framed
   partners photo beside the lede / CTAs / trust row — but the
   section is bounded to the viewport, and the bottom block
   flexes into whatever height the fold leaves.
   ============================================================= */
.hero-b {
  position: relative;
  min-height: 100vh; min-height: 100svh; /* grows with its content, so nothing is clipped on short screens */
  display: flex;
  background: var(--bg); color: var(--paper);
  padding-top: clamp(119px, 15.3vh, 176px);   /* clears the fixed header + breathing room before the title */
  padding-bottom: clamp(22px, 3vh, 40px);
  overflow: hidden;
}
/* Variant-B first fold only — zinkadesigns-style backdrop: a fine white dot grid
   plus two soft halos lifting the charcoal. Lives on a ::before behind the content
   (which is raised to z-index 1 below), so nothing else on the page is touched. */
.hero-b::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1.6px),
    radial-gradient(58% 55% at 28% 20%, rgba(255, 255, 255, 0.07), transparent 72%);
  background-size: 24px 24px, 100% 100%;
  background-repeat: repeat, no-repeat;
  /* let the grid melt away toward the fold's bottom edge */
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 96%);
          mask-image: linear-gradient(to bottom, #000 52%, transparent 96%);
}
/* warm halo that eases toward the cursor — main.js updates --hx/--hy on mousemove
   (rAF-lerped for a gentle trailing feel). Falls back to a tasteful fixed spot
   where there's no pointer (touch), so the look holds on phones too. */
/* cursor-following gold halo removed per client request */
.hero-b::after { content: none; }
.hero-b__inner { position: relative; z-index: 1; }
.hero-b__inner {
  display: flex; flex-direction: column;
  min-height: 0; width: min(91vw, 1800px);
}
/* --- top: headline + small accent photo (offset, subduxion-style) --- */
.hero-b__top {
  flex: none;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: clamp(24px, 3vw, 60px);
  margin-bottom: clamp(19px, 3.2vh, 43px);
}
.hero-b__title {
  font-family: var(--font-sans); font-weight: 300; color: var(--paper);
  font-size: clamp(38px, 5vw, 96px); line-height: 1.05; letter-spacing: -0.01em;
}
.hero-b__title em { font-style: normal; font-weight: 800; font-size: min(1.1em, 8.5vw); white-space: nowrap; }
/* FUP Begin draws the Hebrew gershayim low; nudge it up to sit at the top of the letters. */
.hero-b__title .gersh { position: relative; top: -0.22em; }
/* keep a gershayim abbreviation (עו״ד) from ever breaking across lines */
.hero-b__title .hlz-nb { white-space: nowrap; }

/* ornament: light rule + gold diamond, the site's mark */
.hero-b__orn {
  display: inline-flex; align-items: center;
  margin-inline-start: clamp(12px, 1.6vw, 26px); vertical-align: middle;
}
.hero-b__orn::before {
  content: ''; flex: none; width: clamp(24px, 2.6vw, 52px); height: 2px;
  background: rgba(255, 255, 255, 0.85);
}
.hero-b__orn::after {
  content: ''; flex: none; margin-inline-start: clamp(10px, 1.2vw, 18px);
  width: clamp(9px, 0.9vw, 15px); height: clamp(9px, 0.9vw, 15px);
  background: var(--gold-real); transform: rotate(45deg);
}
/* decorative serrated seal beside the headline (not an official notarial seal) */
.hero-b__since { flex: none; }
.hero-b__seal { display: block; width: clamp(150px, 13vw, 230px); height: auto; overflow: visible; }
.hero-b__seal circle { fill: none; stroke: var(--gold-real); }
/* 80 teeth: the dash pair is exactly 1/80 of the r=92 circumference, so the ring closes evenly */
.hero-b__seal-teeth { stroke-width: 10; stroke-dasharray: 3.613 3.613; }
.hero-b__seal-line { stroke-width: 1; }
.hero-b__seal-line--thin { stroke-width: 0.5; }
.hero-b__seal text { font-family: var(--font-sans); }
.hero-b__seal-ring { fill: var(--gold-real); font-size: 13px; }
.hero-b__seal-mark { fill: var(--gold-real); }
.hero-b__seal-label { fill: var(--gold-real); font-size: 14px; }
.hero-b__seal-year { fill: var(--paper); font-size: 33px; font-weight: 300; }

/* entrance: pressed down like a stamp once the preloader has cleared; the ring settles
   with a slow turn and a faint gold ripple marks the moment of impact */
.hero-b__seal { pointer-events: none; }
.hero-b__seal-hit { stroke: none !important; pointer-events: all; }
.hero-b__seal-ripple { stroke-width: 1.5; opacity: 0; }
.hero-b__seal-spin, .hero-b__seal-enter, .hero-b__seal-ripple, .hero-b__seal-center {
  transform-box: view-box; transform-origin: 100px 100px;
}
body.is-loading .hero-b__seal { opacity: 0; }
.no-js body.is-loading .hero-b__seal { opacity: 1; }
body:not(.is-loading) .hero-b__seal { animation: hlz-seal-press 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards; }
body:not(.is-loading) .hero-b__seal-enter { animation: hlz-seal-turn 1.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards; }
body:not(.is-loading) .hero-b__seal-ripple { animation: hlz-seal-ripple 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards; }
body:not(.is-loading) .hero-b__seal-center { animation: hlz-seal-center 1s ease-out 0.7s backwards; }
@keyframes hlz-seal-press {
  0% { opacity: 0; transform: scale(1.32); }
  45% { opacity: 1; }
  62% { transform: scale(0.975); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes hlz-seal-turn { from { transform: rotate(-110deg); } to { transform: rotate(0); } }
@keyframes hlz-seal-ripple {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.3); }
}
@keyframes hlz-seal-center {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
/* hover: the outer ring makes one slow turn while "מאז 1971" stays still and readable */
@media (hover: hover) and (pointer: fine) {
  .hero-b__seal-spin { transition: transform 2.8s cubic-bezier(0.33, 0.05, 0.25, 1); }
  .hero-b__seal:hover .hero-b__seal-spin { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.is-loading) .hero-b__seal,
  body:not(.is-loading) .hero-b__seal-enter,
  body:not(.is-loading) .hero-b__seal-ripple,
  body:not(.is-loading) .hero-b__seal-center { animation: none; }
  .hero-b__seal-spin { transition: none !important; transform: none !important; }
}
/* --- bottom: framed photo | lede + actions + trust — absorbs the leftover fold height --- */
.hero-b__grid {
  flex: 1 0 auto;
  display: grid; grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(48px, 7vw, 140px); align-items: stretch;
}
.hero-b__frame {
  position: relative; overflow: hidden; min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-b__frame::after {
  content: ''; position: absolute; inset: 10px; z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.14); pointer-events: none;
}
/* absolute: the photo fills the row's height without adding to it */
.hero-b__frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  transition: transform 1.2s var(--ease-out);
}
.hero-b__frame:hover img { transform: scale(1.03); }
/* text column: starts a touch below the photo's top edge, like the reference.
   min-width:0 is load-bearing — without it the nowrap loop track's intrinsic
   width becomes the column's min-width and crushes the photo column to 0. */
.hero-b__text {
  display: flex; flex-direction: column; min-width: 0;
  padding-top: clamp(8px, 4.5vh, 52px);
}
.hero-b__lede {
  max-width: 46ch; color: var(--muted);
  font-size: clamp(15.5px, 1.2vw, 20px); line-height: 1.75; font-weight: 300;
}
.hero-b__lede strong { color: var(--paper); font-weight: 700; }
.hero-b__actions {
  display: flex; flex-wrap: wrap; gap: clamp(14px, 1.6vw, 24px);
  margin-top: clamp(18px, 2.6vh, 36px);
}
/* light hairline edge so the chips read against the dark canvas (like .hpj-cta) */
.hero-b__actions .btn-cut,
.hero-b__actions .btn--ghost { border-color: rgba(255, 255, 255, 0.55); }
/* tighten the label→icon gap so the "+" reads as part of the button, not adrift */
.hero-b__actions .btn-cut { gap: clamp(16px, 1.5vw, 24px); }
/* expertise loop — moving strip closing the fold (subduxion "/TRUSTED BY" style).
   Flows just under the CTAs (not pinned to the bottom) so the text block hugs
   the top like the reference. */
.hero-b__loop { margin-top: clamp(42px, 6.5vh, 84px); }
.hero-b__loop-label {
  display: block; margin-bottom: clamp(16px, 2.4vh, 28px);
  padding-top: clamp(14px, 1.8vh, 22px);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-latin); font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.3em; color: var(--gold-real); direction: ltr; text-align: right;
}
.hero-b__loop-strip {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.hero-b__loop-track {
  display: flex; gap: clamp(28px, 3vw, 52px); width: max-content; will-change: transform;
}
.hero-b__loop-track span {
  display: flex; align-items: center; gap: clamp(28px, 3vw, 52px); white-space: nowrap;
  color: var(--muted); font-size: clamp(15px, 1.2vw, 19px); font-weight: 400;
}
.hero-b__loop-track span::after { content: '◆'; font-size: 7px; color: var(--gold-real); }
@media (max-width: 1024px) {
  /* small screens scroll naturally — a hard 100vh fold isn't realistic there */
  .hero-b { height: auto; padding-top: clamp(88px, 12vh, 122px); }
  .hero-b__top { margin-bottom: clamp(28px, 5vw, 44px); }
  .hero-b__since { display: none; } /* headline gets the full width on tablet/mobile */
  .hero-b__grid { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  /* WebKit collapses a stretched aspect-ratio box with no in-flow content, so size it explicitly */
  .hero-b__frame { aspect-ratio: 16 / 11; align-self: start; width: 100%; }
  .hero-b__frame img { position: static; display: block; }
  .hero-b__loop { margin-top: clamp(24px, 4vw, 38px); }
  .hero-b__actions .btn-cut, .hero-b__actions .btn--ghost { width: 100%; justify-content: space-between; }
  /* the top-padding on .hero-b__text exists only to drop the paragraph below
     the photo's top edge in the desktop side-by-side grid — on the stacked
     mobile layout it's just dead air between the photo and the paragraph. */
  .hero-b__text { padding-top: 0; }
}
/* --- variant-B is a dark hero: show the ivory logo + drop the duplicate marquee --- */
body.hlz-hero-b:not(.nav-scrolled) .nav__logo .site-logo--light { display: none; }
body.hlz-hero-b:not(.nav-scrolled) .nav__logo .site-logo--dark { display: block; }
body.hlz-hero-b .marquee { display: none; } /* the in-hero expertise loop replaces it */

.hero__scroll {
  position: absolute; bottom: clamp(28px, 4vh, 52px); inset-inline-start: 4.5vw; z-index: 4;
  display: flex; align-items: center; gap: 18px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.3em; color: var(--ink);
}
.hero__scroll-arrow {
  width: 42px; height: 42px; border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  animation: scrollbounce 1.8s ease-in-out infinite;
}
.hero__scroll-arrow svg { width: 14px; height: 14px; stroke: var(--ink); stroke-width: 2; }
@keyframes scrollbounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}
.hero__scroll-line { width: 80px; height: 1.5px; background: rgba(14,13,11,.18); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  animation: scrollline 2.2s var(--ease-expo) infinite;
}
@keyframes scrollline {
  0% { transform: translateX(100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* nav recolors to ink while the light hero is on screen (body.on-hero, toggled by JS) */
body.on-hero .nav__logo { color: var(--ink); }
body.on-hero .nav__links a { color: rgba(10, 10, 10, 0.72); }
body.on-hero .nav__links a:hover { color: var(--ink); }
body.on-hero .nav__burger { border-color: rgba(10, 10, 10, 0.35); }
body.on-hero .nav__burger span { background: var(--ink); }
body.on-hero .nav__cta.btn--ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
body.on-hero .nav__cta.btn--ghost .btn__icon { background: none; color: var(--ink); }
body.on-hero .nav__cta.btn--ghost:hover { background: var(--ink); color: var(--paper); }
body.on-hero .nav__cta.btn--ghost:hover .btn__icon { background: none; color: var(--paper); }
body.menu-open.on-hero .nav__burger { border-color: var(--line); }
body.menu-open.on-hero .nav__burger span { background: var(--paper); }
body.menu-open.on-hero .nav__logo { color: var(--paper); }

/* once scrolled, the dark gradient is behind the nav — force ivory regardless of hero */
body.nav-scrolled .nav__logo { color: var(--paper); }
body.nav-scrolled .nav__links a { color: rgba(246, 243, 236, 0.78); }
body.nav-scrolled .nav__links a:hover { color: #fff; }
body.nav-scrolled .nav__burger { border-color: var(--line); }
body.nav-scrolled .nav__burger span { background: var(--paper); }

/* =========== header: transparent at top → WHITE bar (black bottom border) on scroll =========== */
/* the bar face — hidden at top (opacity 0 from the base rule), fades in via body.nav-scrolled */
.nav::before { background: #fff; border-bottom: 1px solid var(--ink); }

/* hide on scroll-down past the first fold, slide back in on scroll-up */
.nav { transition: padding 0.5s var(--ease-out), transform 0.7s var(--ease-expo); }
body.nav-hidden:not(.menu-open) .nav { transform: translateY(-110%); }

/* scrolled bar is white → black content (overrides the ivory-on-dark rules above) */
body.nav-scrolled .nav__logo { color: var(--ink); }
body.nav-scrolled .nav__links a { color: rgba(10, 10, 10, 0.62); }
body.nav-scrolled .nav__links a:hover { color: var(--ink); }
body.nav-scrolled .nav__links a::after { background: var(--ink); }
body.nav-scrolled .nav__burger { border-color: rgba(10, 10, 10, 0.28); }
body.nav-scrolled .nav__burger span { background: var(--ink); }

/* white bar keeps the dark-text logo (menu-open still swaps to the light-text one) */
body.nav-scrolled:not(.menu-open) .nav__logo .site-logo--light { display: block; }
body.nav-scrolled:not(.menu-open) .nav__logo .site-logo--dark { display: none; }

/* menu open: the dark full-screen overlay is the backdrop, so the white scrolled
   bar face must NOT show — otherwise scrolling up with the menu open reveals the
   ivory (dark-surface) logo sitting on the white bar → washed out. Force the bar
   transparent and keep the burger/X light, regardless of scroll position. */
body.menu-open .nav::before { opacity: 0; }
body.menu-open .nav__burger span { background: var(--paper); }

/* CTA reads as a solid black chip on the white bar; hover inverts to white */
body.nav-scrolled .nav__cta.btn--ghost { background: var(--ink); color: var(--paper); border-color: var(--ink); }
body.nav-scrolled .nav__cta.btn--ghost .btn__icon { background: none; color: var(--paper); }
body.nav-scrolled .nav__cta.btn--ghost:hover { background: #fff; color: var(--ink); }
body.nav-scrolled .nav__cta.btn--ghost:hover .btn__icon { background: none; color: var(--ink); }

/* ============ EXPERTISE STRIP (auto drift + scroll speed & direction) ============
   the practice-area strip drifts continuously on its own so every area comes
   around, speeds up with the reader's scroll velocity, and REVERSES when they
   scroll back up (gsap.ticker drive in main.js). The track carries TWO copies
   of the list — the JS wraps it at half its width for a seamless loop in both
   directions, so both copies must stay in the markup. Edges dissolve into the
   background instead of hard-clipping, diamonds pick up the logo gold. */
.marquee {
  border-block: 1px solid var(--line-soft);
  padding-block: clamp(22px, 2.8vw, 38px); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.marquee__track {
  display: flex; gap: clamp(56px, 6vw, 110px); width: max-content;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display); font-size: clamp(21px, 2.08vw, 37px); font-weight: 300;
  letter-spacing: 0.01em;
  display: flex; align-items: center; gap: clamp(56px, 6vw, 110px); white-space: nowrap;
  color: rgba(255, 255, 255, 0.38);
}
.marquee__track span::after { content: '◆'; font-size: 10px; color: var(--gold-real); }

/* =========================== SECTIONS =========================== */
.section { padding-block: clamp(110px, 14vw, 220px); }
.section-head {
  margin-bottom: clamp(56px, 7vw, 110px);
  display: flex; flex-direction: column; gap: clamp(18px, 2vw, 30px); align-items: flex-start;
}

/* about */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(48px, 7vw, 150px); align-items: start; }
.about__body p { color: var(--muted); font-size: clamp(17px, 1.35vw, 21px); margin-bottom: 24px; font-weight: 300; }
.about__body p strong { color: var(--paper); font-weight: 600; }
.about__stats {
  margin-top: clamp(48px, 5vw, 80px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 56px);
}
.about__stat { padding-top: 26px; border-top: 1px solid var(--line); }
.about__stat strong {
  font-family: var(--font-display); font-size: clamp(44px, 4.8vw, 92px);
  font-weight: 300; display: block; line-height: 1; color: var(--gold);
}
.about__stat strong em { color: var(--paper); font-style: normal; font-size: 0.55em; }
.about__stat span { font-size: 13.5px; color: var(--muted); letter-spacing: 0.1em; display: block; margin-top: 14px; }

.about__media-shell { position: sticky; top: 110px; }
.about__media-core { overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--line-soft); }
.about__media-core img {
  width: 100%; height: 115%; object-fit: cover;
  filter: grayscale(0.85) contrast(1.05) brightness(0.82);
}

/* =========================== PRACTICE AREAS =========================== */
.practice { color: var(--paper); }
.practice__list { border-top: 1px solid var(--line); }
.practice__row {
  display: grid; grid-template-columns: clamp(64px, 7vw, 130px) 1fr auto; align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(30px, 3.8vw, 54px);
  border-bottom: 1px solid var(--line);
  position: relative; cursor: pointer;
}
.practice__num {
  font-family: var(--font-latin); font-size: clamp(14px, 1.2vw, 19px); color: var(--gold);
  letter-spacing: 0.3em;
}
.practice__name {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 4.8vw, 78px); line-height: 1.15;
  transition: transform 0.7s var(--ease-out), color 0.5s;
}
.practice__desc {
  grid-column: 2; max-width: 64ch;
  color: var(--muted); font-size: clamp(15px, 1.1vw, 17.5px); font-weight: 300;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.7s var(--ease-out), opacity 0.6s, margin 0.6s;
}
.practice__row:hover .practice__name { transform: translateX(-16px); color: var(--gold-2); }
.practice__row:hover .practice__desc { max-height: 120px; opacity: 1; margin-top: 12px; }
.practice__arrow {
  width: clamp(48px, 4vw, 64px); height: clamp(48px, 4vw, 64px); border-radius: 999px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  grid-row: 1;
  grid-column: 3;
}
.practice__arrow svg { width: 17px; height: 17px; stroke: var(--paper); transition: stroke 0.5s; }
.practice__row:hover .practice__arrow { background: var(--gold); border-color: var(--gold); transform: rotate(-45deg); }
.practice__row:hover .practice__arrow svg { stroke: var(--ink); }

/* floating hover image */
.practice__img {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 320px; aspect-ratio: 4/3; overflow: hidden;
  pointer-events: none; opacity: 0; transform: scale(0.9);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.practice__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- section head, ario-style: everything centered ---------- */
.practice { padding-top: clamp(32px, 3.85vw, 58px); padding-bottom: clamp(56px, 7vw, 110px); }
.practice__head {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    'label'
    'title'
    'note';
  gap: 0;
  justify-items: center; text-align: center;
  margin-bottom: clamp(16px, 2.5vw, 32px);
  align-content: start;
}
.practice__head .section-label { grid-area: label; justify-self: center; margin-bottom: clamp(20px, 2.5vw, 36px); }
.practice__title {
  grid-area: title; justify-self: center;
  font-size: clamp(42px, 5.6vw, 88px); line-height: 1.15;
}
.practice__note {
  grid-area: note; justify-self: center; align-self: end;
  max-width: 42ch;
  margin-top: clamp(28px, 4vh, 60px);
  font-size: clamp(17px, 1.5vw, 22px); line-height: 1.7;
  color: rgba(246, 243, 236, 0.85);
}
.practice__note strong { font-weight: 700; color: var(--paper); }

/* ---------- 3D flip deck (ario.law style) ---------- */
.pa-flip { height: 100vh; position: relative; }
/* "scroll down" cue — vertical label + a line with a light travelling down it,
   so it reads as "keep going" rather than a static mark. Shared by the hero and
   the pinned deck; colours come from the per-surface vars below.
   Physical `left` on purpose: the page is RTL, but the reference (also RTL) keeps
   this cue on the left gutter, clear of the text column. */
.scroll-cue {
  position: absolute; z-index: 5; pointer-events: none;
  left: clamp(10px, 2.6vw, 44px);
  top: 50%; transform: translateY(-50%);
  --cue-text: rgba(255, 255, 255, 0.74);
  --cue-track: rgba(255, 255, 255, 0.28);
  --cue-light: var(--gold-real);
}
.scroll-cue__svg { display: block; height: clamp(260px, 38vh, 430px); width: auto; }
.scroll-cue__track,
.scroll-cue__run {
  fill: none; stroke-width: 2; stroke-linecap: round;
  vector-effect: non-scaling-stroke; /* keep the rail hairline-crisp at any height */
}
.scroll-cue__track { stroke: var(--cue-track); }
/* a short gold segment glides slowly from top to bottom, following the bend.
   dasharray is one segment + one gap summing to the whole path (pathLength=1),
   so shifting the offset by exactly one period loops seamlessly — no restart
   flicker. linear keeps the glide even; an eased curve would visibly hitch at
   the loop seam. */
.scroll-cue__run {
  stroke: var(--cue-light); opacity: 0.85;
  stroke-dasharray: 0.14 0.86;
  animation: scrollCueRun 5s linear infinite;
}
@keyframes scrollCueRun {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
/* the label nests inside the bend, between the rail's two vertical runs */
.scroll-cue__text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: clamp(10px, 0.78vw, 11.5px); font-weight: 500;
  letter-spacing: 0.18em; white-space: nowrap;
  color: var(--cue-text);
}
/* direction flip: scrolling back UP through the pinned deck turns the cue round
   so it points the way the reader is actually going. Both labels are stacked in
   the same spot and cross-faded — swapping textContent mid-scroll would reflow
   the vertical text on every direction change.
   The rail itself needs no new geometry: the gold segment is a dash travelling
   along the path, so running the same animation in reverse sends it up instead
   of down. */
.scroll-cue__text--up { opacity: 0; }
.scroll-cue__text--down,
.scroll-cue__text--up { transition: opacity 0.35s var(--ease-out); }
.scroll-cue.is-up .scroll-cue__text--down { opacity: 0; }
.scroll-cue.is-up .scroll-cue__text--up { opacity: 1; }
.scroll-cue.is-up .scroll-cue__run { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) {
  .scroll-cue__run { animation: none; stroke-dashoffset: 0.55; }
}
/* hero A: the cue used to live in the right-hand gutter, but that gutter is only
   ~120px wide between the text column and the screen edge — no amount of nudging
   buys it real breathing room there. The whole LEFT half of the fold is photo with
   no text over it, so the cue moves to the bottom-left corner: ~500px clear of the
   nearest content instead of ~23px.
   Anchored to the FIRST VIEWPORT, not to .hero — the hero is min-height:100vh and
   grows taller than the fold on short screens, so a plain `bottom` would drop the
   cue below the fold exactly where it stops being a scroll cue.
   Light palette, not the ink used in the old right-gutter spot: that gutter sat
   on bright sky (~169/255) where ink was the only readable choice, while this
   corner is dominated by the suits. See the scrim note below for the catch. */
.hero .scroll-cue {
  left: clamp(20px, 4vw, 64px); right: auto;
  top: calc(min(100vh, 100%) - clamp(30px, 5vh, 64px));
  transform: translateY(-100%);
  --cue-text: #fff;
  --cue-track: rgba(255, 255, 255, 0.62);
}
/* The cue cannot depend on the photo under it. Sampling every candidate corridor
   on this side, at every height, the 95th-percentile luminance is 177–208: the
   left man's white shirt runs through all of them, so there is no dark lane to
   move into, and shortening the rail isn't available either (the vertical label
   needs the whole bend to sit inside without touching the curves).
   Darkening the photo enough to fix it would need ~0.65 opacity over the rail's
   full height — a visible black column on the artwork. So the contrast goes on
   the STROKE instead: a tight dark drop-shadow outlines the hairline, which is
   what makes white read over white. It costs nothing on the dark suits (the
   shadow is invisible there) and it survives the client swapping in a brighter
   hero photo. The faint oval underneath just adds body behind the label. */
.hero .scroll-cue__svg {
  filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.95))
          drop-shadow(0 0 5px rgba(0, 0, 0, 0.55));
}
.hero .scroll-cue::before {
  content: ''; position: absolute; z-index: -1;
  inset: -6% -150%;
  background: radial-gradient(closest-side ellipse,
              rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.24) 48%, transparent 78%);
}
/* a touch more weight than the shared hairline: this one sits on a photo, not
   on the deck's flat charcoal */
.hero .scroll-cue__track,
.hero .scroll-cue__run { stroke-width: 2.4; }
.hero .scroll-cue__run { opacity: 1; }
.hero .scroll-cue__text {
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.95), 0 1px 9px rgba(0, 0, 0, 0.75);
}
.pa-flip__stage {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: center;
  perspective: 2000px;
  overflow: hidden;
}
.pa-card {
  position: absolute;
  width: min(1120px, 90vw);
  height: min(72vh, 640px);
  display: grid; grid-template-columns: 1fr 1.15fr;
  will-change: transform;
  backface-visibility: hidden;
}
.pa-card__info {
  background: var(--paper); color: var(--ink);
  padding: clamp(28px, 3.2vw, 52px);
  display: flex; flex-direction: column; align-items: flex-start; text-align: start;
}
.pa-card__top {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  padding-bottom: clamp(12px, 1.4vw, 20px);
  border-bottom: 1px solid var(--ink);
}
.pa-card__num {
  font-size: clamp(64px, 7.2vw, 128px);
  font-weight: 800; line-height: 0.9; letter-spacing: -0.03em;
  color: var(--ink); /* black number on the white card (mono theme) */
}
.pa-card__count { font-size: clamp(15px, 1.2vw, 19px); font-weight: 600; color: rgba(14,13,11,.45); }
.pa-card__title {
  font-size: clamp(26px, 2.8vw, 46px); font-weight: 800; line-height: 1.2;
  margin-top: clamp(20px, 2.4vw, 40px);
}
.pa-card__desc {
  margin-top: clamp(14px, 1.6vw, 24px);
  font-size: clamp(14.5px, 1.15vw, 17px); line-height: 1.75; color: var(--ink-soft, #4a463f);
  max-width: 42ch;
}
.pa-card__link {
  margin-top: auto; padding-top: clamp(14px, 1.6vw, 22px);
  width: 100%;
  border-top: 1px solid rgba(14,13,11,.25);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 800; font-size: clamp(14px, 1.1vw, 16px); letter-spacing: 0.08em;
  transition: color 0.4s var(--ease-out);
}
/* sizing/bars for the "+" now live in the shared icon rule near the top */
.pa-card__link:hover { color: #555; } /* stays visible on the white card */
.pa-card__link:hover span { transform: rotate(90deg); }
.pa-card__media { overflow: hidden; position: relative; display: block; }
.pa-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
  transition: transform 0.8s var(--ease-out);
}
/* hover: gradient face with MORE+ slides in, like the reference */
.pa-card__more {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(160deg, var(--paper) 0%, #aa7b2c 85%);
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 50px); letter-spacing: 0.02em;
  opacity: 0; transform: translateY(12%);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.pa-card__more b { font-weight: 800; transition: transform 0.55s var(--ease-out); }
.pa-card__media:hover .pa-card__more { opacity: 1; transform: translateY(0); }
.pa-card__media:hover .pa-card__more b { transform: rotate(90deg); }
.pa-card__media:hover img { transform: scale(1.04); }

/* crosshair frame + tap-through face — mobile only (hidden on desktop) */
.pa-card__frame,
.pa-card__tap { display: none; }

/* mobile: single flipping info box, no photo (like the reference) */
@media (max-width: 1024px) {
  .practice__head {
    grid-template-columns: 1fr;
    grid-template-areas: 'label' 'title' 'note';
    min-height: 0;
  }
  .practice__note { margin-top: 28px; }

  /* compact stage: only a touch taller than the square card, so the pin
     centres it in the viewport instead of burying it in a 100vh void.
     JS pins it at 'center center' and lifts the heading away as you scroll. */
  .pa-flip { height: calc(min(440px, 88vw) + 18vh); }
  /* mobile fills the width — no side gutter left for the cue */
  .scroll-cue { display: none; }
  .pa-flip__stage { align-items: center; }
  /* trim the section spacing to the neighbouring sections by ~15% (90px → 76px) */
  section.practice { padding-block: 76px; }
  /* square card → the cube depth (½ side) makes the faces meet with no gap */
  .pa-card {
    width: min(440px, 88vw);
    height: min(440px, 88vw);
    grid-template-columns: 1fr;
  }
  .pa-card__media { display: none; }

  /* centered, enlarged content like the reference */
  .pa-card__info {
    position: relative; z-index: 2;
    padding: clamp(30px, 8vw, 48px);
    align-items: center; justify-content: center; text-align: center;
  }
  .pa-card__top { justify-content: center; border-bottom: none; padding-bottom: 0; }
  .pa-card__count,
  .pa-card__desc,
  .pa-card__link { display: none; }
  .pa-card__num { font-size: clamp(72px, 22vw, 108px); }
  .pa-card__title {
    margin-top: clamp(14px, 4vw, 22px);
    font-size: clamp(27px, 7.5vw, 42px); line-height: 1.15;
  }

  /* thin frame with centre ticks, inset from the card edge */
  .pa-card__frame {
    display: block; position: absolute; z-index: 4; pointer-events: none;
    inset: clamp(18px, 5vw, 26px);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
  }
  .pa-card__frame::before,
  .pa-card__frame::after {
    content: ''; position: absolute; left: 50%;
    width: 1px; height: 12px; background: var(--ink);
    transform: translateX(-50%);
  }
  .pa-card__frame::before { top: 0; }
  .pa-card__frame::after { bottom: 0; }

  /* whole card taps through to the inner page; press reveals the MORE face */
  .pa-card__tap {
    display: flex; position: absolute; inset: 0; z-index: 3;
    align-items: center; justify-content: center;
  }
  .pa-card__tap-face {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(160deg, var(--paper) 0%, #aa7b2c 85%);
    color: var(--ink); font-weight: 800;
    font-size: clamp(30px, 9vw, 46px);
    opacity: 0; transition: opacity 0.3s var(--ease-out);
  }
  .pa-card__tap-face b { font-weight: 800; }
  .pa-card__tap:active .pa-card__tap-face { opacity: 1; }
}

/* ---------- practice single (Expertise inner page, emerald-style) ----------
   fold 1: two full-bleed photos flush under the header; fold 2: cut-corner
   framed title (sticky) beside rich content with bold highlights */
.pa-page { background: var(--bg); color: var(--paper); }

.pa-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding-top: clamp(88px, 11vh, 118px);            /* clears the fixed header */
  height: clamp(380px, 66vh, 700px);
}
.pa-band--one { grid-template-columns: 1fr; }
.pa-band__img { margin: 0; overflow: hidden; }
.pa-band__img img { width: 100%; height: 100%; object-fit: cover; }

.pa-body { padding-block: clamp(64px, 8vw, 130px); }
.pa-body__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(44px, 6vw, 110px); align-items: start;
}

/* ornamental framed title — gold hairline octagon, like the reference box */
.pa-body__aside { position: sticky; top: clamp(110px, 15vh, 150px); }
.pa-frame {
  position: relative; text-align: center;
  padding: clamp(34px, 3.6vw, 54px) clamp(24px, 2.6vw, 44px);
}
.pa-frame::before,
.pa-frame::after {
  content: ''; position: absolute;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px),
    calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}
.pa-frame::before { inset: 0; background: rgba(192, 154, 50, 0.75); }
.pa-frame::after  { inset: 1.5px; background: var(--bg); }
.pa-frame__latin,
.pa-frame__title { position: relative; z-index: 1; }
.pa-frame__latin {
  display: block; margin-bottom: 14px;
  font-family: var(--font-latin); font-size: clamp(11.5px, 0.9vw, 13.5px);
  letter-spacing: 0.3em; color: var(--gold-real); direction: ltr;
}
.pa-frame__title {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 1.4vw, 20px);
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 2.6vw, 42px); line-height: 1.15;
  color: var(--paper); margin: 0;
}
.pa-frame__title .ab-orn::after { width: clamp(18px, 2vw, 40px); }

/* content column */
.pa-body__lede {
  font-size: clamp(19px, 1.7vw, 26px); font-weight: 600; line-height: 1.55;
  color: var(--paper); text-wrap: balance;
  margin-bottom: clamp(22px, 2.4vw, 34px);
}
.pa-body__content p {
  font-size: clamp(17.5px, 1.4vw, 21px); line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: clamp(12px, 1.3vw, 17px);
}
.pa-body__content strong { color: var(--paper); font-weight: 700; }
.pa-body__cta { margin-top: clamp(30px, 3.4vw, 50px); }

@media (max-width: 900px) {
  .pa-band {
    grid-template-columns: 1fr; height: auto;
    padding-top: clamp(76px, 10vh, 100px);
  }
  .pa-band__img { aspect-ratio: 16 / 10; }
  .pa-band__img:last-child:not(:only-child) { display: none; }  /* one strong photo on mobile */
  .pa-body__grid { grid-template-columns: 1fr; gap: 40px; }
  .pa-body__aside { position: static; }
}

/* =========================== TEAM =========================== */
.team__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.4vw, 64px);
  align-items: start;
}
.team-card { display: block; position: relative; }
.team-card:nth-child(2) { margin-top: clamp(28px, 5vw, 88px); }
.team-card__media { overflow: hidden; aspect-ratio: 3/4; position: relative; }
.team-card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.35), transparent 40%);
  pointer-events: none;
}
.team-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.88);
  transform: scale(1.02);
  transition: filter 0.9s var(--ease-out), transform 1.1s var(--ease-out);
}
.team-card:hover .team-card__media img { filter: grayscale(0) brightness(0.95); transform: scale(1.06); }
.team-card__meta {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-top: 22px;
}
.team-card__meta h3 { font-size: clamp(22px, 1.9vw, 32px); font-weight: 600; }
.team-card__meta span { display: block; font-size: 13.5px; letter-spacing: 0.08em; color: var(--muted); margin-top: 6px; }
.team-card__arrow {
  width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.6s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.6s;
}
.team-card__arrow svg { width: 14px; height: 14px; stroke: var(--paper); transition: stroke 0.5s; }
.team-card:hover .team-card__arrow { background: var(--gold); border-color: var(--gold); transform: rotate(-45deg); }
.team-card:hover .team-card__arrow svg { stroke: var(--ink); }

/* =========== TEAM — homepage (hafnialaw-style): sticky intro + scrolling portraits =========== */
.team-h { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }
.team-h__grid {
  display: grid; grid-template-columns: minmax(300px, 0.72fr) 1fr;
  gap: clamp(48px, 7vw, 120px); align-items: start;
}
/* CSS sticky (not ScrollTrigger.pin): the folds above change height while
   scrolling (about-video growth, deck pin), which makes precomputed pin
   positions drift — sticky is resolved live by the browser, so the intro
   always locks exactly when its top meets the first portrait's line */
@media (min-width: 1025px) {
  .team-h__intro { position: sticky; top: clamp(90px, 13vh, 130px); }
}
.team-h__intro .h-xl { margin-block: 26px 24px; }
.team-h__lede {
  color: var(--muted); max-width: 42ch;
  font-size: clamp(16.5px, 1.4vw, 21px); line-height: 1.8;
}
.team-h__lede strong { font-weight: 700; color: var(--paper); }
/* partner index — clicking a name glides the page to their portrait */
.team-h__index { list-style: none; margin: clamp(30px, 3.2vw, 52px) 0 0; padding: 0; }
.team-h__index li + li { border-top: 1px solid var(--line-soft); }
.team-h__index button {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding-block: 14px; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; letter-spacing: 0.05em; color: var(--muted);
  transition: color 0.5s var(--ease-out);
}
.team-h__index button::before {
  content: ''; width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0;
  border: 1px solid var(--gold); transition: background 0.4s;
}
.team-h__index button:hover,
.team-h__index button.is-active { color: var(--paper); }
.team-h__index button.is-active::before { background: var(--gold); }

.team-h__list { display: flex; flex-direction: column; gap: clamp(44px, 5.5vw, 84px); }
.team-h__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
/* desktop: shrink the whole card (photo + meta row) together so the "קרא עוד"
   CTA stays aligned under the photo instead of jutting past its edge, and centre
   it in its column so the empty space is balanced and the gap to the text grows */
@media (min-width: 1025px) { .team-h__card { max-width: 80%; align-self: center; } }
.team-h__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-out);
}
.team-h__card:hover .team-h__media img { transform: scale(1.05); }
.team-h__meta {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: clamp(18px, 2.5vw, 40px); padding-top: 18px;
}
.team-h__who h3 { font-size: clamp(20px, 1.7vw, 28px); font-weight: 600; }
.team-h__who h3 a { color: inherit; }
.team-h__who span { display: block; font-size: clamp(15px, 1.2vw, 18px); letter-spacing: 0.06em; color: var(--muted); margin-top: 6px; }
.team-h__contact { display: flex; flex-direction: column; gap: 7px; font-size: clamp(15px, 1.2vw, 18px); }
.team-h__contact a { color: var(--muted); transition: color 0.4s; }
.team-h__contact a:hover { color: var(--gold); }
.team-h__more {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
  font-size: 13.5px; letter-spacing: 0.08em; color: var(--paper);
}
/* the site's circled-arrow motif (same language as the buttons / old team cards):
   fills gold and rotates toward the link on card hover */
.team-h__more-icon {
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.6s var(--ease-out), border-color 0.6s, transform 0.6s var(--ease-out);
}
.team-h__more-icon svg { width: 14px; height: 14px; stroke: var(--paper); fill: none; transition: stroke 0.5s; }
.team-h__card:hover .team-h__more-icon { background: var(--gold-real); border-color: var(--gold-real); transform: rotate(-45deg); }
.team-h__card:hover .team-h__more-icon svg { stroke: var(--ink); }
@media (max-width: 1024px) {
  .team-h__grid { grid-template-columns: 1fr; gap: 44px; }
  .team-h__index { display: none; }
  .lawyer-profile__grid { grid-template-columns: 1fr; gap: 40px; }
  .lawyer-profile__photo { max-width: 420px; }
}
@media (max-width: 640px) {
  .team-h__meta { flex-wrap: wrap; }
  .team-h__contact { order: 3; width: 100%; }
}

/* =========================== QUOTE =========================== */
.quote {
  text-align: center; border-block: 1px solid var(--line-soft);
  padding-block: clamp(100px, 14vw, 200px);
}
.quote blockquote {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 4.8vw, 80px); line-height: 1.3;
  max-width: 24ch; margin-inline: auto;
}
.quote blockquote .accent { display: inline; }
.quote figcaption { margin-top: 44px; font-size: 13px; letter-spacing: 0.3em; color: var(--muted); }
.quote__mark { font-family: var(--font-latin); font-size: clamp(70px, 7vw, 120px); line-height: 0.4; color: var(--gold); display: block; margin-bottom: 48px; }

/* ============== CONTACT + FOOTER — solid mint block (casacom-style) ============== */
.footer-block {
  position: relative; overflow: hidden;
  color: var(--ink);
  background: #BDD9D7;                          /* solid mint, no gradient */
  border-top: 1px solid rgba(10, 10, 10, 0.12);
}

/* --- big centred call-to-action (title + button), like casacom --- */
.fb-contact {
  position: relative; text-align: center;
  padding-block: clamp(96px, 13vw, 200px) clamp(64px, 8vw, 140px);
}
.fb-contact__title {
  font-size: clamp(48px, 8vw, 118px);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.01em;
  margin-bottom: clamp(34px, 4vw, 64px);
}
.fb-contact__cta { margin-inline: auto; }
.fb-form__row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 70px);
}
.fb-form input {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid rgba(10, 10, 10, 0.30);
  border-radius: 0;
  color: var(--ink); font-family: inherit; font-weight: 400;
  font-size: clamp(17px, 1.4vw, 21px);
  padding-block: 14px; margin-bottom: clamp(28px, 3.4vw, 54px);
  outline: none; transition: border-color 0.4s;
}
.fb-form input::placeholder { color: rgba(10, 10, 10, 0.5); }
/* Chrome forces LTR on tel/email inputs — keep the text hugging the right edge */
.fb-form input { text-align: right; }
.fb-form input:focus { border-color: var(--ink); }
.fb-send {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 8px;
  color: var(--ink); font-weight: 800;
  font-size: clamp(17px, 1.4vw, 21px); letter-spacing: 0.06em;
}
.fb-send b { font-weight: 800; font-size: 1.25em; line-height: 1; transition: transform 0.45s var(--ease-out); }
.fb-send:hover b { transform: rotate(90deg); }
/* Spam honeypot — must be invisible to humans but still present/fillable for
   bots. The classic `left:-9999px` trick is SAFE in LTR (browsers don't scroll
   to negative-left content) but breaks RTL: here the scroll origin is on the
   right, so anything pushed left becomes real scrollable overflow — it made
   the whole site scroll ~10000px side to side on mobile. The clip-path
   "visually hidden" pattern hides it without ever leaving the layout box. */
.fb-hp {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
}
.fb-form__ok { margin-top: 22px; font-weight: 600; color: #1c7a55; }
.fb-form__err { margin-top: 22px; font-weight: 600; color: #c0392b; }
.fb-consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin-block: 4px clamp(24px, 3vw, 40px);
  font-size: clamp(13.5px, 1vw, 15.5px); color: rgba(10, 10, 10, 0.72); line-height: 1.6;
  cursor: pointer;
}
.fb-consent input { width: 17px; height: 17px; flex: none; margin-top: 3px; accent-color: #c09a32; cursor: pointer; }
.fb-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* same reason as .fb-credit:hover — gold is invisible on the mint footer */
.fb-consent a:hover { color: var(--ink); }

/* --- link columns --- */
.fb-footer { position: relative; padding-block: clamp(50px, 7vw, 110px) clamp(36px, 4vw, 60px); }
.fb-footer__grid {
  display: grid; grid-template-columns: 1fr 1fr 1.4fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
/* two columns when the social links are empty (hidden) */
.fb-footer__grid--2 { grid-template-columns: 1fr 1.4fr; }
/* column headings: full-ink display type with a short gold rule, so they read
   as proper section headers against the link lists rather than slightly-bolder
   body text (reference emeraldltd.co.il) */
.fb-col h4 {
  position: relative;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 1.9vw, 28px);
  letter-spacing: 0.01em; line-height: 1.2;
  padding-bottom: clamp(10px, 1.1vw, 14px);
  margin-bottom: clamp(18px, 2.2vw, 30px);
}
.fb-col h4::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 0;
  width: clamp(28px, 3vw, 40px); height: 2px;
  background: var(--gold-real);
}
.fb-col li { list-style: none; margin: 0; padding: 0; }
.fb-col a, .fb-col p { display: block; font-size: clamp(16px, 1.2vw, 18px); font-weight: 400; margin-bottom: 16px; }
.fb-col a { transition: opacity 0.4s; }
.fb-col a:hover { opacity: 0.65; }

/* --- bottom bar --- */
.fb-bottom {
  margin-top: clamp(60px, 8vw, 120px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 14px; color: rgba(10, 10, 10, 0.6);
  border-top: 1px solid rgba(10, 10, 10, 0.10); padding-top: clamp(28px, 3vw, 44px);
}
.footer__logo { display: flex; align-items: center; gap: 14px; color: var(--ink); direction: ltr; }
.footer__logo a { display: inline-flex; align-items: center; gap: 14px; }
.footer__logo svg { height: 30px; width: auto; }
/* legal links (privacy / accessibility) in the bottom bar */
.fb-legal { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); flex-wrap: wrap; }
.fb-legal a {
  font-size: 14px; color: rgba(10, 10, 10, 0.7);
  text-decoration: underline; text-underline-offset: 3px; transition: color 0.4s;
}
.fb-legal a:hover { color: var(--ink); }
/* build credit — Latin text inside an RTL document, so it needs its own
   direction to render in the right order */
.fb-credit {
  direction: ltr; unicode-bidi: isolate;
  font-size: 13.5px; letter-spacing: 0.06em;
  color: rgba(10, 10, 10, 0.55);
  transition: color 0.4s var(--ease-out);
  white-space: nowrap;
}
.fb-credit b { font-weight: 700; }
/* hover goes DARKER, not gold: the footer is mint (#BDD9D7), and gold
   (#c09a32) on mint measures ~1.8:1 contrast — below the 4.5:1 minimum and
   effectively invisible. Ink on mint is ~13:1 and reads instantly. */
.fb-credit:hover { color: var(--ink); }

@media (max-width: 768px) {
  .fb-contact__inner { grid-template-columns: 1fr; }
  .fb-contact__col { grid-column: 1; }
  .fb-form__row { grid-template-columns: 1fr; gap: 0; }
  /* two columns side by side (reference emeraldltd.co.il). Only the 3-column
     variant needs its last column to span the full row — with social links
     hidden the grid is .fb-footer__grid--2 and both columns sit together. */
  .fb-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .fb-footer__grid:not(.fb-footer__grid--2) .fb-col:last-child { grid-column: 1 / -1; }
  /* min-width:0 lets a long address/email wrap instead of blowing the track
     out past the screen; grid items default to min-width:auto */
  .fb-col { min-width: 0; }
  .fb-col a, .fb-col p { overflow-wrap: break-word; font-size: 15px; margin-bottom: 13px; }
}

/* =========================== LAWYERS ARCHIVE (kümmerlein-style editorial) ===========================
   fold 1: gold /THE TEAM label + big dimmed statement with white highlights;
   fold 2: three oversized portraits — gold glass bar (name/role), personal
   quote reveals on hover, matching the projects-grid motion language */
.lw-page { background: var(--bg); color: var(--paper); }

.lw-hero { padding-top: clamp(150px, 19vh, 210px); padding-bottom: clamp(48px, 6vw, 90px); }
.lw-hero__latin {
  display: inline-block; margin-bottom: clamp(18px, 2.2vw, 30px);
  font-family: var(--font-latin); font-size: clamp(12px, 1vw, 15px);
  letter-spacing: 0.3em; color: var(--gold-real); direction: ltr;
}
.lw-hero__statement {
  max-width: 30ch;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(27px, 3.3vw, 52px); line-height: 1.35;
  color: rgba(255, 255, 255, 0.45);
}
.lw-hero__statement strong { color: var(--paper); font-weight: 500; }

.lw-grid-sec { padding-bottom: clamp(80px, 10vw, 160px); }
.lw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 30px); }

.lw-card { display: block; }
.lw-card__media { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #101010; }
.lw-card__media > img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: grayscale(0.35);
  transition: transform 0.9s var(--ease-out), filter 0.7s var(--ease-out);
}
.lw-card:hover .lw-card__media > img { transform: scale(1.05); filter: grayscale(0); }
/* small gold index box, echoing the FAQ number boxes */
.lw-card__num {
  position: absolute; top: 0; inset-inline-start: 0; z-index: 2;
  display: grid; place-items: center;
  width: clamp(38px, 3.4vw, 48px); height: clamp(38px, 3.4vw, 48px);
  background: var(--gold-real); color: var(--bg);
  font-family: var(--font-latin); font-weight: 500;
  font-size: clamp(13px, 1.05vw, 16px); letter-spacing: 0.04em; direction: ltr;
}
.lw-card-wrap { position: relative; }
/* liquid-glass info panel — hidden below the frame, springs up on hover/focus
   (reference style: name / divider / ROLE + EDUCATION columns) */
.lw-card__bar {
  position: absolute; inset-inline: clamp(12px, 1.4vw, 18px); bottom: clamp(12px, 1.4vw, 18px); z-index: 3;
  display: flex; flex-direction: column;
  padding: clamp(16px, 1.7vw, 26px) clamp(16px, 1.8vw, 26px);
  background: linear-gradient(160deg, rgba(40, 40, 40, 0.38), rgba(10, 10, 10, 0.44));
  backdrop-filter: blur(28px) saturate(175%); -webkit-backdrop-filter: blur(28px) saturate(175%);
  /* square corners — matches the site's 0-radius design language */
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 44px rgba(0, 0, 0, 0.3);
  color: var(--paper);
  opacity: 0; transform: translateY(28px) scale(0.96);
  /* springy overshoot — the "liquid" settle */
  transition: opacity 0.5s var(--ease-out), transform 0.65s cubic-bezier(0.34, 1.35, 0.32, 1);
}
.lw-card:hover .lw-card__bar,
.lw-card:focus-visible .lw-card__bar,
.lw-card-wrap.is-open .lw-card__bar { opacity: 1; transform: translateY(0) scale(1); }
/* ⊕ toggle — touch devices only (no hover to reveal the panel) */
.lw-card__toggle {
  position: absolute; inset-inline-end: clamp(18px, 2vw, 26px); bottom: clamp(18px, 2vw, 26px); z-index: 5;
  display: none; place-items: center;
  width: 46px; height: 46px;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 18px rgba(0, 0, 0, 0.28);
  cursor: pointer; padding: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.35, 0.32, 1);
}
.lw-card__toggle span {
  grid-area: 1 / 1;
  width: 18px; height: 2px; background: #fff; border-radius: 1px;
  transition: transform 0.45s var(--ease-out);
}
.lw-card__toggle span:last-child { transform: rotate(90deg); }
/* open state: the plus becomes an ✕ */
.lw-card-wrap.is-open .lw-card__toggle { transform: rotate(45deg); }
.lw-card__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: clamp(12px, 1.3vw, 18px); margin-bottom: clamp(12px, 1.3vw, 18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.lw-card__row b { font-size: clamp(17px, 1.5vw, 23px); font-weight: 700; line-height: 1.25; }
.lw-card__arrow { flex: none; display: inline-flex; transition: transform 0.5s var(--ease-out); }
.lw-card__arrow svg { width: 20px; height: 20px; }
.lw-card:hover .lw-card__arrow { transform: translateX(-6px); }
.lw-card__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 30px);
}
.lw-card__cell small {
  display: block; margin-bottom: 6px;
  font-size: clamp(10.5px, 0.85vw, 12px); font-weight: 600;
  letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.55);
}
.lw-card__cell b { font-size: clamp(13px, 1.05vw, 15.5px); font-weight: 600; line-height: 1.45; }

/* reduced motion: reveal without the slide */
@media (prefers-reduced-motion: reduce) {
  .lw-card__bar { transition: opacity 0.3s; transform: none; }
}

@media (max-width: 1024px) {
  .lw-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lw-grid { grid-template-columns: 1fr; }
}
/* touch devices: no hover — show the ⊕ toggle; the panel opens on tap */
@media (hover: none) {
  .lw-card__toggle { display: grid; }
  /* reserve a bottom strip inside the panel so the ✕ sits in its own corner
     and never covers the role/education text (reference behaviour) */
  .lw-card__bar { padding-bottom: 70px; }
}

/* =========================== LAWYER SINGLE (ario-style: sticky portrait + scrolling bio) =========================== */
/* padding-bottom is tightened well below the base .section value: the body column
   ends here and the "Let's Talk" CTA follows, so the two stacked paddings were
   leaving an oversized gap. This trims the profile side of that gap. */
.lawyer-profile { padding-top: clamp(120px, 16vh, 180px); padding-bottom: clamp(64px, 8.5vw, 120px); }
/* back to the team archive — thin editorial arrow, gold on hover */
/* "back to the index" link — shared by the lawyer profile and the practice-area
   inner page, so both read identically */
.lawyer-back,
.pa-back {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: clamp(30px, 4vw, 54px);
  font-size: clamp(14px, 1.05vw, 16px); font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.45s var(--ease-out);
}
.lawyer-back__arrow,
.pa-back__arrow {
  width: clamp(30px, 2.6vw, 44px); height: 16px; flex: none;
  transition: transform 0.5s var(--ease-out);
}
.lawyer-back:hover,
.pa-back:hover { color: var(--gold-real); }
/* the arrow points right = "back" in RTL; nudge it toward the archive on hover */
.lawyer-back:hover .lawyer-back__arrow,
.pa-back:hover .pa-back__arrow { transform: translateX(7px); }
.lawyer-back:focus-visible,
.pa-back:focus-visible { color: var(--gold-real); }
/* the practice page's back link sits in its own container above the grid, so
   the grid's own top spacing would double up — pull it tight to the content */
.pa-back { margin-bottom: clamp(22px, 3vw, 40px); }
.lawyer-profile__grid {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(44px, 6vw, 100px); align-items: start;
}
/* CSS sticky (works now that body is overflow-x:clip) keeps the photo + name
   fixed on the right while the bio/experience column scrolls past on the left.
   On desktop the name sits ABOVE the photo so it is visible without scrolling,
   while the DOM order (photo first) still works for mobile. */
@media (min-width: 1025px) {
  .lawyer-profile__aside { position: sticky; top: clamp(128px, 16vh, 172px); display: flex; flex-direction: column; }
  .lawyer-profile__aside .lawyer-profile__name { order: 0; margin-top: 0; margin-bottom: clamp(10px, 1vw, 16px); }
  .lawyer-profile__aside .lawyer-profile__role { order: 1; margin-top: 0; margin-bottom: clamp(18px, 2vw, 28px); }
  .lawyer-profile__aside .lawyer-profile__photo { order: 2; max-width: min(100%, 420px); }
}
.lawyer-profile__photo { overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--line-soft); }
.lawyer-profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.lawyer-profile__name { font-size: clamp(30px, 3.2vw, 50px); line-height: 1.06; margin-top: clamp(22px, 2.4vw, 34px); }
.lawyer-profile__role { display: block; font-size: clamp(16px, 1.35vw, 20px); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-real); margin-top: 16px; }
.lawyer-profile__areas { color: var(--muted); font-size: clamp(16px, 1.25vw, 18.5px); margin-top: 10px; }
/* Contacts block — label/value rows spread apart, like the reference */
.lawyer-profile__crow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-block: 15px; border-bottom: 1px solid var(--line-soft);
}
.lawyer-profile__crow:last-child { border-bottom: 0; padding-bottom: 0; }
.lawyer-profile__crow > span { color: var(--muted); font-size: clamp(15.5px, 1.25vw, 18px); letter-spacing: 0.02em; }
.lawyer-profile__crow a { color: var(--paper); font-size: clamp(17px, 1.4vw, 20px); transition: color 0.4s var(--ease-out); }
.lawyer-profile__crow a:hover { color: var(--gold-real); }
/* scrolling side: each block opens with a gold-tipped hairline like the reference */
.lawyer-profile__body > * { border-top: 1px solid var(--line); padding-top: clamp(26px, 3vw, 44px); position: relative; }
.lawyer-profile__body > * + * { margin-top: clamp(40px, 5vw, 74px); }
.lawyer-profile__body > *::before { content: ''; position: absolute; top: -1px; inset-inline-start: 0; width: 46px; height: 1px; background: var(--gold-real); }
.lawyer-profile__bio p { color: var(--muted); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.8; font-weight: 300; margin-bottom: 24px; }
.lawyer-profile__bio p:last-child { margin-bottom: 0; }
.lawyer-profile__sec h2 { font-size: clamp(24px, 2.3vw, 34px); font-weight: 600; margin-bottom: clamp(18px, 1.8vw, 28px); }
.lawyer-profile__list li { padding-block: 18px; border-bottom: 1px solid var(--line-soft); }
.lawyer-profile__list li:first-child { padding-top: 0; }
.lawyer-profile__list li b { display: block; color: var(--paper); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); }
.lawyer-profile__list li span { display: block; color: var(--muted); font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.7; margin-top: 6px; }
.lawyer-profile__langs { display: flex; flex-wrap: wrap; gap: 10px 14px; list-style: none; padding: 0; margin: 0; }
.lawyer-profile__langs li { font-size: clamp(16px, 1.3vw, 19px); color: var(--paper); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; line-height: 1; }
.lawyer-profile__quote { text-align: start; display: flex; align-items: flex-start; gap: 14px; }
.lawyer-profile__quote .quote__mark { color: var(--gold-real); font-size: clamp(40px, 4vw, 60px); line-height: 0.9; margin-bottom: 0; flex-shrink: 0; }
.lawyer-profile__quote blockquote { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 34px); font-weight: 300; line-height: 1.4; margin-top: 0; }

/* lawyer single — tighter CTA section below the profile */
.lawyer-profile + .section.contact {
  padding-block: clamp(56px, 7vw, 96px) clamp(70px, 9vw, 130px);
}
.lawyer-profile + .section.contact .contact__lede {
  margin-bottom: clamp(20px, 2.5vw, 36px);
}
/* breathing room between the "Let's Talk" label and the headline */
.lawyer-profile + .section.contact .section-label {
  display: block;
  margin-bottom: clamp(28px, 4vw, 60px);
}
.lawyer-profile + .section.contact .h-xl {
  margin-bottom: clamp(10px, 1.2vw, 18px);
}

/* legacy (kept for any old refs) */
.lawyer-hero { padding-top: clamp(140px, 18vh, 190px); padding-bottom: clamp(60px, 8vw, 120px); }
.lawyer-hero__grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 6vw, 110px); align-items: start;
}
.lawyer-hero__media-shell { position: sticky; top: 110px; }
.lawyer-hero__media { overflow: hidden; aspect-ratio: 3/4; border: 1px solid var(--line-soft); }
.lawyer-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.8) brightness(0.88); }
.lawyer-hero__name { font-size: clamp(46px, 8vw, 140px); line-height: 1; margin-block: clamp(18px, 2.4vw, 32px) 14px; }
.lawyer-hero__role {
  font-size: 14px; letter-spacing: 0.3em; color: var(--gold);
  font-weight: 400; margin-bottom: clamp(28px, 4vw, 48px);
}
.lawyer-hero__bio p { color: var(--muted); margin-bottom: 22px; font-size: clamp(16.5px, 1.3vw, 20px); font-weight: 300; }
.lawyer-hero__contact { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

.lawyer-info { border-top: 1px solid var(--line-soft); }
.lawyer-info__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 6vw, 110px); }
.lawyer-info__block h3 {
  font-size: clamp(22px, 2vw, 30px); font-weight: 600; margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.lawyer-info__block h3::before { content: ''; width: 26px; height: 1px; background: var(--gold); }
.lawyer-info__block li {
  padding-block: 16px; border-bottom: 1px solid var(--line-soft);
  color: var(--muted); font-size: 16px;
  display: flex; justify-content: space-between; gap: 16px;
}
.lawyer-info__block li b { color: var(--paper); font-weight: 600; }

/* team archive header */
.page-hero { padding-top: clamp(160px, 22vh, 220px); padding-bottom: clamp(40px, 6vw, 90px); }
.page-hero .h-display { margin-top: 24px; }

/* =========================== REVEAL DEFAULTS =========================== */
[data-reveal] { opacity: 0; transform: translateY(60px); filter: blur(6px); }
.no-js [data-reveal], .gsap-off [data-reveal] { opacity: 1; transform: none; filter: none; }
/* Phones: drop the blur from the resting state. A blur filter forces the
   element to be re-rasterised as it animates, and phone GPUs flash rather
   than de-blur smoothly. main.js likewise omits the filter tween below
   900px, so the reveal is a pure (compositor-only) fade + rise. */
@media (max-width: 900px) {
  [data-reveal] { filter: none; }
}
/* gsap-stalled: main.js flags the <html> element when GSAP/ScrollTrigger is
   loaded but its animations never fire (throttled tab, DevTools emulation) —
   without this every reveal/char stays parked invisible and the page looks
   like it never loaded. Force everything visible; motion is lost, content wins. */
html.gsap-stalled [data-reveal],
html.gsap-stalled .char,
html.gsap-stalled .word,
html.gsap-stalled .hpj-card,
html.gsap-stalled .hero__content,
html.gsap-stalled .hero__title .char,
html.gsap-stalled .hero__lede,
html.gsap-stalled .hero__cta,
html.gsap-stalled .hero__scroll,
html.gsap-stalled .nav__pill {
  opacity: 1 !important; transform: none !important;
  filter: none !important; visibility: visible !important;
}
/* The hero veil is an opaque ink sheet over the photo that ONLY GSAP lifts
   (heroIntro animates it to scaleY:0). If GSAP is missing or its ticker never
   runs, it stays put and the whole homepage is a black screen. Collapse it in
   both failure modes so the hero is always visible. */
html.gsap-off .hero__media-veil,
html.gsap-stalled .hero__media-veil { transform: scaleY(0) !important; }
html.gsap-off .hero__title .char,
html.gsap-off .hero__content,
html.gsap-off .hero__orn,
html.gsap-off .hero__dot,
html.gsap-stalled .hero__orn,
html.gsap-stalled .hero__dot,
html.gsap-off [data-reveal] {
  opacity: 1 !important; transform: none !important; filter: none !important;
}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .team-card:nth-child(2) { margin-top: 0; }

  /* hero switches to full-bleed photo with a light scrim for readable text */
  .hero { display: block; padding-top: 130px; --panel-h: 100px; }
  /* The source photo is 1448x806 landscape; a portrait phone frame shows only
     ~26% of its width. The partners occupy the left ~59% and the rest is empty
     sunset, so the old 68% landed almost entirely in that empty zone and
     clipped one shoulder — it read as a smudge rather than a photograph.
     25% centres the window on the two faces so both partners are in frame. */
  .hero__media-core img {
    width: 100%; height: 100%; max-width: none;
    object-position: 25% 25%;
    -webkit-mask-image: none; mask-image: none;
  }
  /* Scrim strengthened through the middle band: with the (dark navy) suits now
     in frame instead of pale sky, the ink-coloured lede would otherwise sit
     dark-on-dark. Top stays heaviest for the headline, and the base still
     clears enough for the photograph to read. */
  .hero__media::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to bottom,
      rgba(236, 223, 226, 0.93) 8%,
      rgba(236, 223, 226, 0.80) 46%,
      rgba(236, 223, 226, 0.38) 76%,
      rgba(236, 223, 226, 0.14) 100%);
  }
  .hero__content { padding-bottom: 32px; padding-inline-start: 0; }
  .hero__title { max-width: 100%; }
  .hero__lede { max-width: 100%; }
  .hero__cta { margin-top: 30px; }
  .hero__scroll { display: none; }
}

@media (max-width: 768px) {
  /* Hebrew display type needs more air between lines on small screens —
     one consistent bump for every heading site-wide */
  h1, h2, h3 { line-height: 1.28; }
  .h-xl { line-height: 1.22; }
  .hero { padding-top: 110px; --panel-h: 90px; }
  .hero__title { max-width: 100%; font-size: clamp(46px, 14vw, 72px); }
  .hero__orn::before { width: 40px; }
  .hero__grid, .about__grid, .contact__grid, .lawyer-hero__grid, .lawyer-info__grid, .lawyer-profile__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr; gap: 20px; }
  .about__media-shell, .lawyer-hero__media-shell { position: static; max-width: 440px; }
  .lawyer-profile__photo { max-width: 420px; }
  .team__grid { grid-template-columns: 1fr; }
  .practice__row { grid-template-columns: 44px 1fr auto; gap: 14px; }
  .practice__img { display: none; }
  .practice__desc { max-height: none; opacity: 1; margin-top: 8px; grid-column: 1 / -1; }
  .section { padding-block: 90px; }
  /* keep the profile→"Let's Talk" gap tight on mobile too (base .section = 90px) */
  .lawyer-profile { padding-bottom: clamp(56px, 14vw, 76px); }
  /* padding-top here is the space BELOW the OUR CLIENTS strip (the partners
     section follows it directly) — it must match .hpc-band's margin-top so
     the strip sits evenly between the portfolio above and the partners below */
  .team-h { padding-top: clamp(88px, 15vw, 120px); padding-bottom: clamp(40px, 5vw, 64px); }
  .quote { padding-block: clamp(60px, 9vw, 100px); }
  /* the expertise marquee sat flush against the hero photo (0px) while having
     ~90px below it — give it matching air above so it floats evenly between
     the photo and THE FIRM title (kept tight: 90px each side was too airy) */
  .marquee { margin-top: clamp(52px, 9vw, 76px); }
  /* the ” glyph has line-height 0.4 so its box is collapsed — the measured
     gap runs ~30px tighter than the margin suggests. 48px left an 18px gap;
     30px closes it to ~0 without letting the text overlap the glyph. */
  .quote__mark { margin-bottom: 30px; }
  .preloader__count { font-size: 44px; }

  /* slim mobile header: shorter bar, content stretched nearly edge-to-edge */
  .nav { padding: 10px 16px; }
  body.nav-scrolled .nav { padding-block: 8px; }
  .nav__logo, body.nav-scrolled .nav__logo { transform: none; }
  .nav__logo .site-logo { height: 48px; }
}

/* =========== ABOUT (ario-style): centered intro + angled stat boxes =========== */
#about { padding-top: clamp(88px, 11.2vw, 176px); }
.about__intro { text-align: center; }
.about__title { margin-block: 26px 30px; }
.about__lede { max-width: 52ch; margin-inline: auto; color: var(--muted); font-size: clamp(18px, 1.6vw, 23px); line-height: 1.75; }
.about__lede strong { font-weight: 700; color: var(--paper); }
/* row 1: the two stat boxes at the screen edges; row 2: the "more" box on the left */
.about__stats3d {
  margin-top: clamp(70px, 9vw, 150px);
  display: grid; grid-template-columns: 1fr 1fr;
  row-gap: clamp(32px, 4.5vw, 90px);
}
.stat3d {
  position: relative;
  /* sized against the square itself, so the figure inside can be capped to the
     box rather than to the viewport (the two diverge once width hits its max
     and again under the mobile override) */
  container-type: inline-size;
  width: min(620px, 31vw); aspect-ratio: 1;
  background: #fff; color: var(--ink);
  display: flex; flex-direction: column;
  padding: clamp(22px, 3vw, 56px);
  will-change: transform;
}
/* top hairline + long centre tick, like the reference */
.stat3d::before {
  content: ''; position: absolute; top: clamp(24px, 2.6vw, 44px); left: 4%; right: 4%;
  border-top: 1px solid var(--ink);
}
.stat3d::after {
  content: ''; position: absolute; top: clamp(12px, 1.4vw, 22px); left: 50%;
  width: 1px; height: clamp(42px, 4.6vw, 78px); background: var(--ink);
}
.stat3d strong {
  margin-block: auto; max-width: 100%;
  /* the cqw term is the guard: whatever the viewport does, the figure is never
     wider than the square's inner box */
  font-size: min(clamp(110px, 12.5vw, 300px), 37cqw);
  font-weight: 800; line-height: 0.85; letter-spacing: -0.04em;
  direction: ltr;
}
/* caption pinned to the bottom under a full-width hairline */
.stat3d span {
  padding-top: 14px; border-top: 1px solid var(--ink);
  font-weight: 600; font-size: clamp(14px, 1.3vw, 21px);
}
/* door hinges: at the screen edge (JS animates rotateY from ~75° to flat) */
.stat3d--r { transform-origin: right center; grid-area: 1 / 1; justify-self: start; } /* RTL: right edge */
.stat3d--l { transform-origin: left center; grid-area: 1 / 2; justify-self: end; }    /* RTL: left edge */
/* third square → about page, second row on the left */
.stat3d--more {
  grid-area: 2 / 2; justify-self: end;
  position: relative; z-index: 3; /* sits ABOVE the expanding video so it stays visible */
  transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
/* "אודות המשרד" is a full label, not a numeral — sized to fit in one line
   inside the square without wrapping */
.stat3d--more strong {
  direction: rtl; letter-spacing: 0;
  font-size: clamp(38px, 5vw, 89px);
  line-height: 1.05;
}
/* both anchor-boxes (about + projects) get the same reversed-fill hover;
   the plain divs stay uninteractive */
a.stat3d { cursor: pointer; transition: background 0.5s var(--ease-out), color 0.5s var(--ease-out); }
a.stat3d:hover { background: var(--ink); color: var(--paper); }
a.stat3d:hover span { border-color: var(--paper); }
a.stat3d:hover::before { border-color: var(--paper); }
a.stat3d:hover::after { background: var(--paper); }
/* centre the big text in these two boxes, like the reference */
.stat3d--l strong, .stat3d--more strong { text-align: center; }
.stat3d--more:hover { background: var(--ink); color: var(--paper); }
.stat3d--more:hover span { border-color: var(--paper); }
.stat3d--more:hover::before { border-color: var(--paper); }
.stat3d--more:hover::after { background: var(--paper); }
/* video square — row 2 right, beside the "more" box; grows in real layout
   size (width/height, not scale) so it pushes the next fold down instead of
   covering it. In RTL it's anchored to the right edge and grows leftward. */
.about-video {
  grid-area: 2 / 1; justify-self: start; align-self: start;
  width: min(620px, 31vw); height: min(620px, 31vw);
  overflow: hidden; background: var(--ink);
  position: relative; z-index: 2; /* paints above the "more" box while expanding over its column */
}
.about-video video,
.about-video img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
@media (max-width: 768px) {
  .about__stats3d { grid-template-columns: 1fr; }
  .stat3d { width: min(440px, 86vw); }
  .stat3d--r, .stat3d--l, .stat3d--more, .about-video { grid-area: auto; justify-self: center; }
  .about-video { width: min(440px, 86vw); height: min(440px, 86vw); }
  /* stacked on mobile the boxes read as one column, so every figure is
     centred — 1971 (.stat3d--r) was the only one still start-aligned */
  .stat3d strong { text-align: center; }
  /* the video square and the expertise fold below it had ~166px between them
     (90px of #about bottom padding + 76px of .practice top padding) — halve
     each so the two folds sit closer without crowding */
  /* padding-top is the space BELOW the expertise strip (THE FIRM label follows
     it) — must track .marquee's margin-top so the strip stays evenly spaced */
  #about { padding-top: clamp(52px, 9vw, 76px); padding-bottom: clamp(56px, 9vw, 80px); }
  .practice { padding-top: clamp(56px, 9vw, 80px); }
  /* "אודות המשרד" pushed as large as it can go while staying on ONE line.
     Measured: the label renders 6.661px wide per 1px of font-size, and the
     box's inner width is (min(440px,86vw) - 44px of padding) — so the ceiling
     is ~43px at 390px, ~39px at 360px. 10.6vw tracks just under that curve at
     every width. NOTE: this rule must live AFTER the base .stat3d--more
     strong declaration, not in the earlier 768 block — equal specificity
     means source order decides, and the base rule sits further down. */
  .stat3d--more strong { font-size: clamp(41px, 12.72vw, 68px); }
}

/* =========== PROJECTS PAGE (emerald-style) =========== */
/* the hero itself carries tall, soft shade gradients top + bottom (like the
   reference) — the fixed header sits over the top one, so no hard band needed */
body.hlz-projects .nav__logo .site-logo--light { display: none; }
body.hlz-projects .nav__logo .site-logo--dark { display: block; }
.projects-hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: grid;
  grid-template-columns: clamp(180px, 22vw, 440px) 1fr clamp(180px, 22vw, 440px);
  align-items: center; column-gap: clamp(28px, 4vw, 80px);
}
/* endless photo strips hugging the screen edges; the track is doubled in the
   markup so a -50% loop is seamless */
.projects-hero::before,
.projects-hero::after {
  content: ''; position: absolute; inset-inline: 0; z-index: 2; pointer-events: none;
}
.projects-hero::before {
  top: 0; height: clamp(160px, 28vh, 300px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.55) 45%, transparent);
}
.projects-hero::after {
  bottom: 0; height: clamp(140px, 24vh, 260px);
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0.5) 55%, transparent);
}
.ph-strip { align-self: stretch; max-height: 100vh; overflow: hidden; }
.ph-strip__track { display: flex; flex-direction: column; gap: 16px; will-change: transform; }
.ph-strip__track img { width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover; display: block; }
.projects-hero__center { position: relative; z-index: 3; text-align: center; padding: clamp(140px, 18vh, 200px) 20px 60px; }
.projects-hero__title { font-size: clamp(55px, 8.05vw, 140px); line-height: 1.04; }
.projects-hero__t1, .projects-hero__t2 { display: block; }
/* diamonds flank line 1 only, like the reference */
.projects-hero__t1::before,
.projects-hero__t1::after { content: '◆'; font-size: 0.16em; vertical-align: middle; margin-inline: 0.7em; }
/* line 2: 20% bigger and heavier */
.projects-hero__t2 { font-size: 1.2em; font-weight: 800; }
.projects-hero__lede {
  max-width: 56ch; margin: clamp(28px, 4vh, 52px) auto 0;
  color: var(--muted); font-size: clamp(16px, 1.35vw, 21px); line-height: 1.8;
}
.projects-hero__lede p + p { margin-top: 1em; }
.projects-hero__lede strong { color: var(--paper); }

/* ---- fold 2: projects grid ---- */
.projects-sec { padding-block: clamp(70px, 9vw, 140px); }
.projects-sec__head {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(22px, 3vw, 48px);
  margin-bottom: clamp(28px, 3.5vw, 52px);
}
/* hairline running from the title to the button, like the reference */
.projects-sec__head::before { content: ''; order: 2; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.28); }
.projects-sec__head .h-xl { order: 1; font-size: clamp(30px, 3.4vw, 54px); }
.projects-sec__head .btn { order: 3; }
/* hover: transparent with a white border instead of the solid invert */
.projects-sec__head .btn--ghost:hover { background: transparent; color: var(--paper); border-color: #fff; }
.projects-sec__head .btn--ghost:hover .btn__icon { color: var(--paper); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 30px); }
/* aspect-ratio reserves the card's height before the lazy photo arrives, so a
   late-loading image can never reflow the grid underneath the scroll position */
/* Project-card hover: photo eases into a slow zoom and a liquid-glass caption
   springs up from under the frame. Adopted from the WHAT WE DO panels that used
   to sit below this grid (that section has since been removed from the page —
   the .pp-panel rules further down are what it left behind). It replaced the
   older treatment: blur the photo, fade a centred brand logo over it, and pin a
   gold strip to the bottom edge. */
.proj-card { position: relative; display: block; aspect-ratio: 1 / 1.05; overflow: hidden; background: #101010; }
.proj-card > img { width: 100%; height: 100%; object-fit: cover; }
/* Hover affordances are POINTER-ONLY: on a touch screen the browser fires
   :hover on tap and while a finger drags past a card, so this would run
   mid-scroll. Gated here so phones never do the work. */
@media (hover: hover) {
  .proj-card > img { transition: transform 1.1s var(--ease-out); }
  .proj-card:hover > img { transform: scale(1.05); }
}
/* liquid-glass info panel — the device .pp-panel__cap also uses */
.proj-card__cap {
  position: absolute; inset-inline: clamp(12px, 1.4vw, 18px); bottom: clamp(12px, 1.4vw, 18px); z-index: 3;
  display: flex; flex-direction: column;
  padding: clamp(16px, 1.7vw, 24px) clamp(16px, 1.8vw, 24px);
  background: linear-gradient(160deg, rgba(40, 40, 40, 0.38), rgba(10, 10, 10, 0.44));
  backdrop-filter: blur(28px) saturate(175%); -webkit-backdrop-filter: blur(28px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 44px rgba(0, 0, 0, 0.3);
  color: var(--paper);
  opacity: 0; transform: translateY(28px) scale(0.96);
  transition: opacity 0.5s var(--ease-out), transform 0.65s cubic-bezier(0.34, 1.35, 0.32, 1);
}
.proj-card:hover .proj-card__cap,
.proj-card:focus-within .proj-card__cap { opacity: 1; transform: translateY(0) scale(1); }
.proj-card__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: clamp(10px, 1.1vw, 15px); margin-bottom: clamp(10px, 1.1vw, 15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.proj-card__row b { font-size: clamp(16px, 1.35vw, 21px); font-weight: 700; line-height: 1.25; }
.proj-card__pin { flex: none; display: inline-flex; color: var(--gold-real); }
.proj-card__pin svg { width: 18px; height: 18px; }
.proj-card__desc { color: rgba(255, 255, 255, 0.86); font-size: clamp(13.5px, 1.05vw, 15.5px); line-height: 1.6; }
/* No hover on touch, so the panel would never appear and the project name and
   location would be lost entirely. Show it outright there, and drop the live
   blur — backdrop-filter re-samples everything behind it on every scroll frame,
   on every card in the grid. A more opaque fill reads the same for free. */
@media (hover: none) {
  .proj-card__cap {
    opacity: 1; transform: none; transition: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: linear-gradient(160deg, rgba(32, 32, 32, 0.88), rgba(10, 10, 10, 0.92));
  }
}

/* ---- fold 3: "WHAT WE DO" head row + slanted full-width photo panels ---- */
.projects-practice { padding-block: clamp(60px, 8vw, 120px) 0; }
.pp-head {
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  margin-bottom: clamp(36px, 5vw, 70px);
}
.pp-title-latin {
  font-family: var(--font-latin); font-weight: 400;
  font-size: clamp(38px, 4.6vw, 80px); letter-spacing: 0.04em;
  direction: ltr; white-space: nowrap;
}
.pp-divider { flex: 1; display: flex; align-items: center; gap: 16px; min-width: 80px; }
.pp-divider::before, .pp-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pp-divider i { width: 9px; height: 9px; background: var(--paper); transform: rotate(45deg); flex: none; }
.pp-note { max-width: 34ch; color: var(--muted); font-size: clamp(15px, 1.2vw, 19px); line-height: 1.7; }

/* straight, clean tiles (casacom-style): natural photos in a simple grid;
   hovering slides a light caption bar up from the tile's bottom edge */
.pp-panels {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 28px);
}
.pp-row { display: contents; }
.pp-panel { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1.05; }
.pp-panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.pp-panel:hover img { transform: scale(1.05); }
.pp-panel-wrap { position: relative; }
/* liquid-glass info panel — hidden below the frame, springs up on hover/focus
   (same device as the lawyers grid: square corners, heavy blur, light rim) */
.pp-panel__cap {
  position: absolute; inset-inline: clamp(12px, 1.4vw, 18px); bottom: clamp(12px, 1.4vw, 18px); z-index: 2;
  display: flex; flex-direction: column;
  padding: clamp(16px, 1.7vw, 24px) clamp(16px, 1.8vw, 24px);
  background: linear-gradient(160deg, rgba(40, 40, 40, 0.38), rgba(10, 10, 10, 0.44));
  backdrop-filter: blur(28px) saturate(175%); -webkit-backdrop-filter: blur(28px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 44px rgba(0, 0, 0, 0.3);
  color: var(--paper);
  opacity: 0; transform: translateY(28px) scale(0.96);
  transition: opacity 0.5s var(--ease-out), transform 0.65s cubic-bezier(0.34, 1.35, 0.32, 1);
}
.pp-panel:hover .pp-panel__cap,
.pp-panel:focus-visible .pp-panel__cap,
.pp-panel-wrap.is-open .pp-panel__cap { opacity: 1; transform: translateY(0) scale(1); }
.pp-panel__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: clamp(10px, 1.1vw, 15px); margin-bottom: clamp(10px, 1.1vw, 15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.pp-panel__row b { font-size: clamp(16px, 1.35vw, 21px); font-weight: 700; line-height: 1.25; }
.pp-panel__arrow { flex: none; display: inline-flex; transition: transform 0.5s var(--ease-out); }
.pp-panel__arrow svg { width: 20px; height: 20px; }
.pp-panel:hover .pp-panel__arrow { transform: translateX(-6px); }
.pp-panel__desc { color: rgba(255, 255, 255, 0.86); font-size: clamp(13.5px, 1.05vw, 15.5px); line-height: 1.6; }
/* ⊕ toggle — touch devices only (no hover to reveal the panel) */
.pp-panel__toggle {
  position: absolute; inset-inline-end: clamp(18px, 2vw, 26px); bottom: clamp(18px, 2vw, 26px); z-index: 5;
  display: none; place-items: center;
  width: 46px; height: 46px;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 18px rgba(0, 0, 0, 0.28);
  cursor: pointer; padding: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.35, 0.32, 1);
}
.pp-panel__toggle span {
  grid-area: 1 / 1;
  width: 18px; height: 2px; background: #fff; border-radius: 1px;
  transition: transform 0.45s var(--ease-out);
}
.pp-panel__toggle span:last-child { transform: rotate(90deg); }
.pp-panel-wrap.is-open .pp-panel__toggle { transform: rotate(45deg); }

/* reduced motion: reveal without the spring/slide */
@media (prefers-reduced-motion: reduce) {
  .pp-panel__cap { transition: opacity 0.3s; transform: none; }
}

@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  /* full-bleed wall gets the container's side margins + roomier gaps (casacom mobile) */
  .pp-panels {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 3.5vw, 32px);
    padding-inline: 4.5vw;
  }
}
/* touch devices: no hover — show the ⊕ toggle; the panel opens on tap */
@media (hover: none) {
  .pp-panel__toggle { display: grid; }
  /* reserve a bottom strip inside the panel so the ✕ never covers the text */
  .pp-panel__cap { padding-bottom: 70px; }
}
@media (max-width: 900px) {
  .projects-hero { grid-template-columns: 1fr; min-height: auto; }
  /* one tilted horizontal photo band at the top, like the reference mobile */
  .ph-strip--l { display: none; }
  /* the band shows the photos clean: shrink the top shade to the header area only */
  .projects-hero::before { height: 90px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent); }
  .projects-hero::after { display: none; }
  /* Tilted photo band: the emerald reference floats it with generous, roughly
     even air above (from the header) and below (to the title), on a gentler
     angle than the original -7deg. scale trimmed to 1.16 to match the softer
     tilt — a steeper rotate needs more scale to keep the corners covered. */
  .ph-strip--r {
    align-self: auto; height: clamp(143px, 22.1vh, 208px); max-height: none;
    transform: rotate(-4.5deg) scale(1.16);
    margin-top: 118px;
  }
  .ph-strip--r .ph-strip__track { flex-direction: row; width: max-content; height: 100%; gap: 10px; }
  .ph-strip--r .ph-strip__track img { height: 100%; width: auto; aspect-ratio: 1 / 1; }
  /* padding-top = the air between the band and the title (matches the space
     above the band); padding-bottom trimmed 20% (52 -> 42) as part of closing
     the gap from the lede down to the first project card */
  /* padding-top 86px -> a ~54px visible gap to the title (20% down from 67px).
     Not 77px: the band is rotated, so its bounding box already reaches into
     this padding and the visible gap shrinks faster than the padding value. */
  .projects-hero__center { padding: 86px 20px 42px; }
  /* the other 20% of that gap comes from the grid section's own top padding */
  .projects-sec { padding-top: clamp(56px, 7vw, 112px); }
  /* WHAT WE DO sits right under the clients marquee — pull it up closer */
  .projects-practice { padding-top: clamp(34px, 5vw, 60px); }
  /* fold 2: photos first, then the title + full-width button below them */
  .projects-sec .container { display: flex; flex-direction: column; }
  .projects-grid { order: 1; }
  .projects-sec__head { order: 2; flex-direction: column; align-items: stretch; gap: 18px; margin: 26px 0 0; }
  .projects-sec__head .btn { width: 100%; justify-content: space-between; }
  /* the caption is open on touch (see the hover:none block), so trim its
     padding here — at this width the desktop inset eats the photo */
  .proj-card { aspect-ratio: 1 / 1.05; }
  .proj-card__cap { inset-inline: 8px; bottom: 8px; padding: 12px 14px; }
  .proj-card__row { padding-bottom: 8px; margin-bottom: 8px; }
  .pp-head { flex-direction: column; text-align: center; }
  .pp-divider { width: 60%; min-width: 0; }
  .pp-note { max-width: 56ch; }
}
@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; }
  .pp-panels { grid-template-columns: 1fr; gap: clamp(28px, 8vw, 44px); }
}


/* =========== ABOUT PAGE (המשרד) — emerald-style =========== */
body.hlz-about .nav__logo .site-logo--light { display: none; }
body.hlz-about .nav__logo .site-logo--dark { display: block; }

/* shared ornament: gold diamond + short line */
.ab-orn { display: inline-flex; align-items: center; gap: 12px; vertical-align: middle; }
.ab-orn::before { content: ''; width: clamp(8px, 0.8vw, 12px); height: clamp(8px, 0.8vw, 12px); background: #c09a32; transform: rotate(45deg); }
.ab-orn::after { content: ''; width: clamp(28px, 3.4vw, 70px); height: 1px; background: rgba(255, 255, 255, 0.6); }
.ab-orn--flip { flex-direction: row-reverse; }

/* ---- fold 1: tilted framed collage (left) + big title (right) ---- */
.ab-hero {
  position: relative; min-height: 100vh; overflow: hidden;
  background: var(--bg); color: var(--paper);
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center;
  column-gap: clamp(40px, 5vw, 90px); /* keeps rotated collage photos clear of the text */
  /* bottom padding is the ONLY gap between the lowest collage frame and the
     next section: photo 4 sits flush with the collage box (measured 3–6px
     inside it at both 1280×720 and 1920×1080), so the frame was landing almost
     on the section edge — very visible now that what follows is a light band. */
  padding: clamp(120px, 15vh, 170px) clamp(20px, 4vw, 70px) clamp(100px, 13vh, 180px);
}
.ab-hero__text { grid-area: 1 / 1; text-align: start; min-width: 0; }
/* overflow-x:clip keeps the rotated/hover-drifted photos in this column (top and bottom stay free), so
   their bounding boxes never cross into the text column at any viewport width. */
.ab-hero__collage { grid-area: 1 / 2; position: relative; height: min(78vh, 860px); min-width: 0; overflow-x: clip; overflow-y: visible; }
.ab-ph {
  position: absolute; display: block;
  border: 1px solid rgba(255, 255, 255, 0.55); padding: 6px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  --ab-r: 0deg; --ab-tx: 0px; --ab-ty: 0px;
  transform: rotate(var(--ab-r));
  transition: transform 0.9s var(--ease-out), box-shadow 0.9s var(--ease-out);
}
/* each frame drifts a little in its own direction — gentle, not a big lift */
.ab-ph:hover {
  transform: rotate(var(--ab-r)) translate(var(--ab-tx), var(--ab-ty)) scale(1.03);
  z-index: 3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.ab-ph img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: filter 0.7s ease, transform 1.1s var(--ease-out);
}
.ab-ph:hover img { filter: grayscale(1); transform: scale(1.05); }
.ab-ph--1 { width: 34%; aspect-ratio: 3/4;   top: 2%;  inset-inline-start: 22%; --ab-r: 8deg;  --ab-ty: -16px; }              /* drifts up */
.ab-ph--2 { width: 40%; aspect-ratio: 4/3;   top: 8%;  inset-inline-start: 58%; --ab-r: -4deg; --ab-tx: 16px; }              /* drifts right */
.ab-ph--3 { width: 26%; aspect-ratio: 3/4;   top: 30%; inset-inline-start: 0;   --ab-r: -9deg; --ab-tx: -16px; }             /* drifts left */
.ab-ph--4 { width: 34%; aspect-ratio: 3/3.6; top: 52%; inset-inline-start: 16%; --ab-r: 6deg;  --ab-ty: 16px; }              /* drifts down */
.ab-ph--5 { width: 30%; aspect-ratio: 3/3.4; top: 46%; inset-inline-start: 56%; --ab-r: -7deg; --ab-tx: -12px; --ab-ty: -12px; } /* drifts up-left */
.ab-hero__title { line-height: 1.02; }
.ab-hero__t1 {
  display: block; font-weight: 300; font-size: clamp(38px, 4.8vw, 88px);
  letter-spacing: 0.01em; white-space: nowrap;
}
.ab-hero__orn { display: inline-flex; align-items: center; gap: 14px; margin-inline-start: clamp(14px, 1.8vw, 32px); vertical-align: middle; }
.ab-hero__orn::before { content: ''; width: clamp(36px, 4.4vw, 100px); height: 2px; background: rgba(255, 255, 255, 0.75); }
.ab-hero__orn::after { content: ''; width: clamp(9px, 0.9vw, 14px); height: clamp(9px, 0.9vw, 14px); background: #c09a32; transform: rotate(45deg); }
.ab-hero__t2 { display: block; font-weight: 800; font-size: clamp(66px, 9vw, 170px); letter-spacing: -0.01em; }
.ab-hero__lede {
  margin-top: clamp(28px, 4vh, 54px); max-width: min(48ch, 100%);
  font-size: clamp(15.5px, 1.25vw, 20px); line-height: 1.85; color: rgba(255, 255, 255, 0.82);
}
.ab-hero__lede strong { color: var(--paper); }

/* ---- fold 2: OUR VISION ---- */
.ab-vision { background: var(--bg); color: var(--paper); padding-block: clamp(70px, 10vw, 150px); }
.ab-vision__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(36px, 5vw, 90px); align-items: center; }
.ab-vision__head { text-align: center; }
.ab-vision__latin { font-family: var(--font-latin); font-weight: 400; letter-spacing: 0.1em; font-size: clamp(34px, 3.8vw, 64px); direction: ltr; }
.ab-vision__sub {
  margin-top: 12px; font-size: clamp(19px, 1.8vw, 30px); font-weight: 300;
  display: inline-flex; align-items: center; gap: clamp(12px, 1.4vw, 22px);
}
.ab-vision__body { border-inline-start: 1px solid rgba(255, 255, 255, 0.25); padding-inline-start: clamp(24px, 3vw, 56px); }
.ab-vision__body p { font-size: clamp(15.5px, 1.2vw, 19.5px); line-height: 1.9; color: rgba(255, 255, 255, 0.82); }
.ab-vision__body p + p { margin-top: 1.1em; }
.ab-vision__body strong { color: var(--paper); }

/* ---- the founder ----
   The one LIGHT band on the site. Every other section on this page is the same
   charcoal, so the founder's section was disappearing into its neighbours; an
   ivory ground sets it apart as a different kind of page — a memorial card
   rather than another marketing block — and it is the quietest way to do that,
   since it needs no extra rules, badges or dividers to announce itself.
   Warm off-white on purpose: it is nobody else's colour. The flip-card panels
   are pure #fff, the page is #222, so this reads as its own surface rather
   than as a card that has escaped, and it takes the brand gold better than a
   cold white would.
   NOTE: everything inside therefore runs INK-on-light and has to override the
   shared white-on-dark rules — including .ab-orn, whose rule paints its hairline
   white and would otherwise vanish here. */
.ab-mem {
  --mem-ink: #14110d;                       /* warm near-black, not the flat #0a0a0a */
  background: #f4f1ea; color: var(--mem-ink);
  padding-block: clamp(64px, 8.5vw, 130px);
}
.ab-mem__grid {
  display: grid; grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(34px, 5vw, 88px); align-items: center;
}
/* isolate: the frame sits at z-index -1 so the portrait overlaps it; without a
   stacking context here that would drop it behind the section background */
.ab-mem__portrait { position: relative; isolation: isolate; }
/* the frame is an offset gold outline rather than a border on the photo, so the
   portrait keeps a plain edge and the gold reads as a mount around it */
.ab-mem__portrait img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  filter: grayscale(1) contrast(1.02);
}
/* entrance wipe. Parked at scaleY(0) — i.e. INVISIBLE — on purpose: main.js
   raises it and then wipes it away. If the script never runs (or the visitor
   prefers reduced motion) the portrait is simply there, never stranded behind
   a veil that nothing removes. Origin at the bottom, so collapsing it uncovers
   the portrait from the top down — the face first. */
.ab-mem__veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: #f4f1ea;
  transform: scaleY(0); transform-origin: 50% 100%;
}
.ab-mem__frame {
  position: absolute; inset: 0;
  transform: translate(clamp(-20px, -1.6vw, -10px), clamp(10px, 1.6vw, 20px));
  border: 1px solid rgba(192, 154, 50, 0.75); pointer-events: none; z-index: -1;
}
/* placeholder while no photograph has been supplied: the frame still holds the
   layout so the section can go live before the family sends a picture */
.ab-mem__initials {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; background: rgba(20, 17, 13, 0.04);
  border: 1px solid rgba(20, 17, 13, 0.14);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(48px, 6vw, 96px); color: rgba(192, 154, 50, 0.6);
  letter-spacing: 0.06em;
}
.ab-mem__head { margin-bottom: clamp(18px, 2vw, 30px); }
.ab-mem__latin {
  font-family: var(--font-latin); font-weight: 400; letter-spacing: 0.12em;
  font-size: clamp(22px, 2.3vw, 36px); direction: ltr;
  display: inline-flex; align-items: center; gap: clamp(12px, 1.5vw, 24px);
}
/* the shared ornament hairline is white — repaint it for the light ground */
.ab-mem .ab-orn::after { background: rgba(20, 17, 13, 0.45); }
.ab-mem__sub { margin-top: 10px; font-size: clamp(16px, 1.4vw, 22px); font-weight: 300; color: rgba(20, 17, 13, 0.64); }
.ab-mem__name {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 3.1vw, 50px); line-height: 1.25; color: var(--mem-ink);
}
.ab-mem__meta {
  margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(10px, 1vw, 16px);
  font-size: clamp(13px, 1vw, 15.5px); letter-spacing: 0.06em;
  color: rgba(20, 17, 13, 0.62); /* 0.55 measured 3.9:1 on the ivory — under AA */
}
.ab-mem__dot { width: 5px; height: 5px; background: var(--gold-real); transform: rotate(45deg); }
.ab-mem__years { direction: ltr; unicode-bidi: isolate; } /* keep 1938–2025 in LTR order inside RTL text */
.ab-mem__text {
  margin-top: clamp(20px, 2.4vw, 34px);
  border-inline-start: 1px solid rgba(20, 17, 13, 0.18);
  padding-inline-start: clamp(20px, 2.6vw, 44px);
}
.ab-mem__text p { font-size: clamp(15px, 1.15vw, 18.5px); line-height: 1.95; color: rgba(20, 17, 13, 0.76); }
.ab-mem__text p + p { margin-top: 1.05em; }
.ab-mem__text strong { color: var(--mem-ink); }
.ab-mem__quote { position: relative; margin-top: clamp(24px, 3vw, 44px); padding-inline-start: clamp(34px, 3.4vw, 58px); }
.ab-mem__mark {
  position: absolute; inset-inline-start: 0; top: -0.16em;
  font-family: var(--font-display); font-size: clamp(44px, 4.4vw, 74px);
  line-height: 1; color: rgba(192, 154, 50, 0.8);
}
.ab-mem__quote blockquote {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(18px, 1.7vw, 27px); line-height: 1.65; color: rgba(20, 17, 13, 0.92);
}

/* ---- fold 3: CORE VALUES (octagon cards over photo) ---- */
.ab-values {
  position: relative; padding: clamp(80px, 10vw, 150px) clamp(16px, 4vw, 60px) clamp(90px, 11vw, 170px);
  background: var(--ink) center / cover no-repeat; background-attachment: fixed;
}
.ab-values::before { content: ''; position: absolute; inset: 0; background: rgba(6, 8, 8, 0.6); }
.ab-values__head { position: relative; z-index: 2; text-align: center; color: var(--paper); margin-bottom: clamp(64px, 7.5vw, 120px); }
.ab-values__latin {
  font-family: var(--font-latin); font-weight: 400; letter-spacing: 0.12em;
  font-size: clamp(36px, 4.6vw, 76px);
  display: inline-flex; align-items: center; gap: clamp(16px, 2vw, 34px); direction: ltr;
}
.ab-values__sub { margin-top: 14px; font-size: clamp(20px, 2vw, 32px); font-weight: 300; }
.ab-values__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 1.6vw, 26px);
  max-width: 1720px; margin-inline: auto;
}
.ab-card {
  position: relative;
  padding: clamp(52px, 4.6vw, 78px) clamp(18px, 1.8vw, 30px) clamp(28px, 2.8vw, 44px);
  text-align: center; color: var(--paper);
  transition: transform 0.6s var(--ease-out);
}
.ab-card:hover { transform: translateY(-8px); }
/* thin gold line layer (full octagon) */
.ab-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgba(192, 154, 50, 0.65);
  clip-path: polygon(10% 0, 90% 0, 100% 9%, 100% 91%, 90% 100%, 10% 100%, 0 91%, 0 9%);
  transition: background 0.6s var(--ease-out);
}
.ab-card:hover::before { background: rgba(192, 154, 50, 1); }
/* dark glass fill, inset ~1.5px so the gold shows through as a hairline.
   Kept NEUTRAL here: on desktop the backdrop photo sits behind the card and the
   blur is what gives the panel its material. Adding a gold tint on top of that
   already-warm blurred photo turned the cards olive — the texture below is
   therefore scoped to the phone breakpoint, where there is no photo behind. */
.ab-card::after {
  content: ""; position: absolute; inset: 1.5px; z-index: 1;
  background-color: rgba(8, 8, 8, 0.62);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  clip-path: polygon(10% 0, 90% 0, 100% 9%, 100% 91%, 90% 100%, 10% 100%, 0 91%, 0 9%);
  transition: background-color 0.6s var(--ease-out);
}
/* hovering already lifts the card and brightens its gold edge — let the glass
   lighten a touch with it so the whole panel responds, not just the outline */
.ab-card:hover::after { background-color: rgba(8, 8, 8, 0.5); }
.ab-card > * { position: relative; z-index: 2; }
.ab-card__diamond {
  position: absolute; top: 0; inset-inline: 0; margin-inline: auto;
  width: clamp(52px, 4.4vw, 72px); height: clamp(52px, 4.4vw, 72px);
  background: var(--paper); transform: translateY(-46%) rotate(45deg);
  display: grid; place-items: center;
}
/* thin gold inner outline — jewel-like double diamond */
.ab-card__diamond::after {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(192, 154, 50, 0.8);
  pointer-events: none;
}
/* editorial numeral instead of a stock icon */
.ab-card__diamond b {
  transform: rotate(-45deg);
  font-family: var(--font-latin); font-weight: 400;
  font-size: clamp(17px, 1.5vw, 24px); letter-spacing: 0.06em;
  color: var(--ink); direction: ltr;
}
.ab-card h3 { font-size: clamp(18px, 1.5vw, 26px); font-weight: 700; margin-bottom: 12px; color: #fff; }
/* small gold diamond between the title and the text — the page's jewel motif */
.ab-card h3::after {
  content: ""; display: block; width: 6px; height: 6px;
  margin: 14px auto 0; background: #c09a32; transform: rotate(45deg);
}
.ab-card p { font-size: clamp(13.5px, 1.02vw, 16.5px); line-height: 1.75; color: rgba(246, 243, 236, 0.8); }

/* ---- fold 4: serif stats + LET'S TALK frame (halston-fine treatment) ---- */
.ab-stats { background: var(--bg); color: var(--paper); padding: clamp(80px, 10vw, 150px) clamp(20px, 4vw, 70px); }
.ab-stats__row {
  /* the count comes from the template (--ab-stats-cols), so removing or adding
     a figure re-centres the row instead of leaving an empty third column; the
     max-width tracks it too, keeping two figures a pair rather than stranding
     them at opposite ends of a 1400px line */
  --ab-stats-cols: 3;
  display: grid; grid-template-columns: repeat(var(--ab-stats-cols), 1fr);
  max-width: min(1400px, calc(var(--ab-stats-cols) * 460px));
  margin-inline: auto; text-align: center;
}
.ab-stats__row > div { position: relative; padding: clamp(10px, 1.5vw, 24px) clamp(20px, 3vw, 56px); }
/* soft vertical hairlines between the numbers, fading at both ends */
.ab-stats__row > div + div::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 8%; bottom: 8%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(246, 243, 236, 0.35), transparent);
}
.ab-stats__row strong {
  display: block; font-family: var(--font-latin); font-weight: 400;
  font-size: clamp(56px, 6.5vw, 120px); line-height: 1; direction: ltr;
}
/* small gold diamond between the numeral and its label */
.ab-stats__row strong::after {
  content: ""; display: block; width: 7px; height: 7px;
  margin: clamp(16px, 1.8vw, 26px) auto 0;
  background: #c09a32; transform: rotate(45deg);
}
.ab-stats__row span {
  display: block; margin-top: clamp(12px, 1.4vw, 20px);
  font-size: clamp(12.5px, 1vw, 15px); letter-spacing: 0.18em;
  color: rgba(246, 243, 236, 0.62); line-height: 1.7;
}
.ab-talk {
  position: relative; max-width: 1500px; margin: clamp(70px, 9vw, 140px) auto 0;
  padding: clamp(56px, 6.5vw, 110px) clamp(24px, 4vw, 80px);
  border: 1px solid rgba(255, 255, 255, 0.4); text-align: center;
}
.ab-talk::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(255, 255, 255, 0.25); pointer-events: none; }
.ab-talk__latin {
  font-family: var(--font-latin); font-weight: 400; letter-spacing: 0.12em;
  font-size: clamp(32px, 4vw, 64px);
  display: inline-flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); direction: ltr;
}
.ab-talk__sub { margin-top: clamp(28px, 4vw, 60px); font-size: clamp(19px, 1.9vw, 30px); font-weight: 300; }
.ab-talk__note { margin: clamp(22px, 3vw, 40px) 0 clamp(26px, 3vw, 44px); color: rgba(255, 255, 255, 0.7); font-size: clamp(14.5px, 1.15vw, 18px); }

@media (max-width: 1024px) {
  .ab-values__grid { grid-template-columns: repeat(2, 1fr); row-gap: 54px; }
  .ab-values { background-attachment: scroll; }
}
@media (max-width: 900px) {
  /* row-gap is the space between the stacked collage and the title —
     bump it so the title has breathing room from the photos */
  .ab-hero { grid-template-columns: 1fr; padding-top: 110px; row-gap: clamp(70px, 12vw, 110px);
    /* the desktop bottom padding is sized against viewport HEIGHT, which on a
       tall phone overshoots — scale it to width here instead */
    padding-bottom: clamp(60px, 13vw, 96px); }
  .ab-hero__text, .ab-hero__collage { grid-area: auto; }
  .ab-hero__collage { height: 62vw; overflow: visible; }
  .ab-hero__t1 { white-space: normal; }
  .ab-vision__grid { grid-template-columns: 1fr; }
  .ab-vision__body { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 28px; }
  /* OUR VISION sits directly under the hero — shrink its OWN top padding
     so the section-title snaps closer to the content above (the current
     100–150px was designed for desktop where columns share vertical space) */
  .ab-vision { padding-block: clamp(28px, 6vw, 50px) clamp(60px, 9vw, 120px); }
  /* memoriam: stack, and cap the portrait so it doesn't eat a whole phone
     screen before the text it belongs to. The offset gold mount is a desktop
     flourish — at this width it just collides with the section edges. */
  .ab-mem__grid { grid-template-columns: 1fr; gap: clamp(26px, 7vw, 40px); }
  /* A grid item with `margin-inline: auto` is sized to its CONTENT, not
     stretched — so the portrait was collapsing to the intrinsic width of the
     initials glyphs (measured 73px in a 341px column) instead of the 300px
     max-width. An explicit width is what actually sizes it here. Same bug
     would have hit the real photograph, whose img is width:100% of this box. */
  .ab-mem__portrait { width: min(255px, 70%); max-width: none; margin-inline: auto; }
  /* stacked layout: the heading block centres over the centred portrait, while
     the paragraphs stay start-aligned so Hebrew still reads off a clean edge */
  .ab-mem__head, .ab-mem__name, .ab-mem__meta { text-align: center; }
  .ab-mem__meta { justify-content: center; }
  .ab-mem__frame { transform: none; inset: -10px; }
  .ab-mem__text { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid rgba(20,17,13,0.18); padding-top: 24px; }
  .ab-mem { padding-block: clamp(48px, 11vw, 80px); }
  /* stats section: equal top/bottom air on mobile (the desktop 80–150px is
     asymmetric with the surrounding sections' mobile spacing) */
  .ab-stats { padding-block: clamp(48px, 7vw, 80px); }
  .ab-stats__row { grid-template-columns: 1fr; gap: 44px; }
  /* stacked: the divider hairline runs horizontally above each item */
  .ab-stats__row > div + div::before {
    inset-inline: 25%; top: -22px; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(246, 243, 236, 0.35), transparent);
  }
}
@media (max-width: 640px) {
  .ab-values__grid { grid-template-columns: 1fr; row-gap: 56px; }
  /* The backdrop photo was being asked to `cover` a 375 × 1511 box — an aspect
     of 0.25 against the photo's 1.5. To cover that, the browser scales a 2000px
     landscape shot up to ~2267px wide and shows a 375px vertical sliver of it:
     about 16% of the frame, magnified ~3.4× once device pixels are counted.
     Hence both complaints at once — it looks soft AND badly cropped, because
     you are seeing a narrow strip of a wide photograph blown up.
     So on phones the photo stops trying to fill the section. It sits at its own
     proportions as a band behind the heading (380px tall, which is a DOWNSCALE
     of the source even at 3× DPR, so it is sharp), and the overlay is graded to
     dissolve it into the flat ink the cards sit on — no seam, no stretch. */
  .ab-values {
    background-attachment: scroll;
    background-size: auto 380px;
    background-position: center top;
  }
  .ab-values::before {
    background: linear-gradient(to bottom,
                rgba(6, 8, 8, 0.55) 0,
                rgba(6, 8, 8, 0.74) 180px,
                rgba(10, 10, 10, 0.95) 320px,
                var(--ink) 400px);
  }
}

/* LET'S TALK inline contact form (posts to the same hlz_lead handler) */
.ab-form { max-width: 1100px; margin: clamp(30px, 4vw, 60px) auto 0; }
.ab-form__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 60px); text-align: start; }
.ab-form label { display: flex; flex-direction: column; gap: 10px; font-size: clamp(13px, 1vw, 15.5px); color: rgba(255, 255, 255, 0.7); }
.ab-form input {
  background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--paper); padding: 10px 2px; font-size: clamp(15px, 1.15vw, 18px);
  font-family: inherit; border-radius: 0;
  transition: border-color 0.4s ease;
}
.ab-form input:focus { outline: none; border-color: #c09a32; }
.ab-form__send {
  margin-top: clamp(34px, 4vw, 56px);
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--paper); cursor: pointer;
  padding: 15px clamp(34px, 3.6vw, 60px);
  font-family: inherit; font-weight: 700; font-size: clamp(14px, 1.1vw, 17px); letter-spacing: 0.14em;
  transition: background 0.4s ease, color 0.4s ease;
}
.ab-form__send:hover { background: transparent; color: var(--paper); }
.ab-form__ok { margin-top: 18px; color: #c09a32; font-size: clamp(14px, 1.1vw, 17px); }
.ab-form__err { margin-top: 18px; color: #f2a4a4; font-size: clamp(14px, 1.1vw, 17px); }
/* .ab-form label sets flex-direction:column for the text fields above;
   this consent row must stay a row (checkbox beside its text, not stacked) —
   needs the extra .ab-form prefix so it out-specifies that generic rule */
.ab-form .ab-consent {
  display: flex; flex-direction: row; align-items: flex-start; justify-content: center; gap: 10px;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: clamp(13px, 1vw, 15px); color: rgba(255, 255, 255, 0.7); line-height: 1.6;
  text-align: start; cursor: pointer;
}
.ab-consent input { width: 16px; height: 16px; flex: none; margin-top: 3px; accent-color: #c09a32; cursor: pointer; }
.ab-consent a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.ab-consent a:hover { color: #c09a32; }
@media (max-width: 768px) {
  .ab-form__row { grid-template-columns: 1fr; gap: 22px; }
}

/* =========== PRIVACY POLICY — emerald-style framed title + pinstriped page =========== */
body.hlz-privacy .nav__logo .site-logo--light,
body.hlz-accessibility .nav__logo .site-logo--light,
body.hlz-journal:not(.nav-scrolled) .nav__logo .site-logo--light { display: none; }
body.hlz-privacy .nav__logo .site-logo--dark,
body.hlz-accessibility .nav__logo .site-logo--dark,
body.hlz-journal:not(.nav-scrolled) .nav__logo .site-logo--dark { display: block; }
.priv-page {
  background: var(--bg); color: var(--paper);
  background-image: repeating-linear-gradient(90deg,
    rgba(192, 154, 50, 0.14) 0, rgba(192, 154, 50, 0.14) 1px,
    transparent 1px, transparent 8.33%);
}
.priv-hero {
  display: grid; place-items: center; text-align: center;
  padding: clamp(140px, 17vh, 200px) clamp(16px, 4vw, 60px) clamp(50px, 7vw, 90px);
}
.priv-frame {
  position: relative; max-width: 1200px; width: 100%;
  padding: clamp(40px, 5vw, 70px) clamp(24px, 4vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.priv-frame::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(255, 255, 255, 0.25); pointer-events: none; }
.priv-frame__latin {
  font-family: var(--font-latin); font-weight: 400; letter-spacing: 0.12em;
  font-size: clamp(30px, 3.8vw, 60px);
  display: inline-flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); direction: ltr;
}
.priv-frame__sub { margin-top: 14px; font-size: clamp(19px, 1.9vw, 30px); font-weight: 300; }

.priv-body { padding: 0 clamp(16px, 4vw, 60px) clamp(90px, 11vw, 160px); }
.priv-body__inner { max-width: 980px; margin-inline: auto; }
/* the fallback title inside the_content() is redundant — the frame above already carries it */
.priv-body__inner > h2:first-child { display: none; }
.priv-body__inner > p:first-of-type { color: #c09a32; font-size: 14px; margin-bottom: clamp(30px, 4vw, 54px); }
.priv-body__inner h3 {
  margin-top: clamp(38px, 4.6vw, 64px); margin-bottom: 14px;
  font-size: clamp(19px, 1.7vw, 26px); font-weight: 700; color: var(--paper);
}
.priv-body__inner h3:first-of-type { margin-top: 0; }
.priv-body__inner p, .priv-body__inner li {
  font-size: clamp(15px, 1.1vw, 18px); line-height: 1.9; color: rgba(255, 255, 255, 0.78);
}
.priv-body__inner p { margin-bottom: 1em; }
.priv-body__inner ul { margin: 0 0 1.2em; padding: 0; list-style: none; }
.priv-body__inner li { position: relative; padding-inline-start: 22px; margin-bottom: 0.6em; }
/* diamond marker on the RTL start side (the right) */
.priv-body__inner li::before {
  content: ''; position: absolute; top: 0.7em; inset-inline-start: 2px;
  width: 7px; height: 7px; background: #c09a32; transform: rotate(45deg);
}
.priv-body__inner a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.priv-body__inner a:hover { color: #c09a32; }

/* =========== BUTTON FILL-SWEEP HOVER (halston-style, two-step) =========== */
/* Two ink halves rise from below on hover — desktop only (hover: hover).
   Touch devices get a simple instant color swap instead. */
.btn:not(.nav__cta),
.btn-cut,
.ab-form__send {
  position: relative; overflow: hidden; z-index: 0;
}
.btn:not(.nav__cta), .btn:not(.nav__cta):hover,
.btn-cut, .btn-cut:hover { background: #fff; }
.ab-form__send, .ab-form__send:hover { background: var(--paper); }
.btn:not(.nav__cta), .btn-cut, .ab-form__send,
.btn:not(.nav__cta):hover, .btn-cut:hover, .ab-form__send:hover { -webkit-text-fill-color: currentColor; }

@media (hover: hover) {
  .btn:not(.nav__cta),
  .btn-cut,
  .ab-form__send { transition: color 0.5s var(--ease-out) 0.12s; }
  .btn:not(.nav__cta):hover,
  .btn-cut:hover,
  .ab-form__send:hover { color: var(--paper); }
  .btn:not(.nav__cta)::before, .btn:not(.nav__cta)::after,
  .btn-cut::before, .btn-cut::after,
  .ab-form__send::before, .ab-form__send::after {
    content: ""; position: absolute; top: -1px; bottom: -1px; width: 51%;
    z-index: -1; background: var(--ink);
    transform: translateY(102%);
    transition: transform 0.6s var(--ease-out);
  }
  .btn:not(.nav__cta)::before,
  .btn-cut::before,
  .ab-form__send::before { inset-inline-start: 0; }
  .btn:not(.nav__cta)::after,
  .btn-cut::after,
  .ab-form__send::after { inset-inline-end: 0; transition-delay: 0.19s; }
  .btn:not(.nav__cta):hover::before, .btn:not(.nav__cta):hover::after,
  .btn-cut:hover::before, .btn-cut:hover::after,
  .ab-form__send:hover::before, .ab-form__send:hover::after { transform: translateY(0); }
  .btn:not(.nav__cta):hover .btn__icon,
  .btn-cut:hover .btn-cut__arrow,
  .ab-form__send:hover b { transform: rotate(90deg) scale(0.86); }
  .btn:not(.nav__cta):hover .btn__icon { color: var(--paper); }
}
@media (hover: none) {
  .btn:not(.nav__cta):active,
  .btn-cut:active,
  .ab-form__send:active { background: var(--ink); color: var(--paper); }
  .btn:not(.nav__cta):active .btn__icon { color: var(--paper); }
  .btn-cut:active .btn-cut__arrow { transform: rotate(90deg); }
}
/* portfolio CTA sits on the dark section — a hairline keeps its edge visible
   even at the instant the dark fill matches the charcoal canvas */
.hpj-cta { border-color: rgba(255, 255, 255, 0.55); }

/* =========== EXPERTISE PAGE (ario practice-index style) =========== */
/* dark inner pages: white logo from the first paint (same treatment as
   hlz-projects / hlz-about / hlz-privacy; nav-scrolled still wins) */
body.hlz-expertise .nav__logo .site-logo--light,
body.single-practice-area .nav__logo .site-logo--light,
body.single-lawyer .nav__logo .site-logo--light,
body.post-type-archive-lawyer .nav__logo .site-logo--light,
body.hlz-contact .nav__logo .site-logo--light { display: none; }
body.hlz-expertise .nav__logo .site-logo--dark,
body.single-practice-area .nav__logo .site-logo--dark,
body.single-lawyer .nav__logo .site-logo--dark,
body.post-type-archive-lawyer .nav__logo .site-logo--dark,
body.hlz-contact .nav__logo .site-logo--dark { display: block; }

.exp-hero__word {
  font-size: clamp(54px, 10vw, 172px);
  line-height: 1.05; letter-spacing: -0.02em;
  text-align: center;
}
/* generous air between the hero title and the list/card fold */
.exp-sec { padding-top: clamp(70px, 12vh, 150px); }
/* big statement on white under the list (ario-style) */
.exp-statement {
  background: var(--paper); color: var(--ink);
  padding-block: clamp(90px, 13vw, 200px);
}
.exp-statement__text {
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 64px);
  line-height: 1.35; letter-spacing: -0.01em;
  max-width: 30ch;
}
.exp-grid {
  display: grid; grid-template-columns: 1fr 0.94fr; /* RTL: list right, card left — card column trimmed to match the smaller box */
  gap: clamp(56px, 7.5vw, 130px);
  align-items: start; /* the card sticks (below) so it stays in view through the whole list */
}
.exp-list { display: flex; flex-direction: column; }
.exp-list__item {
  /* tight responsive gap: the plus hugs each title at the SAME distance (a fixed
     250px used to shove it toward — and onto — the white card for longer titles) */
  display: flex; align-items: center; justify-content: flex-start; gap: clamp(28px, 3vw, 56px);
  padding-block: clamp(10px, 1.5vw, 20px);
  font-weight: 800; line-height: 1.15;
  font-size: clamp(26px, 2.9vw, 50px); letter-spacing: -0.01em;
  color: rgba(246, 243, 236, 0.22);
  transition: color 0.6s var(--ease-out);
}
.exp-list__item.is-active,
.exp-list__item:hover { color: var(--paper); }
/* big thin cross at the row edge, like the reference */
.exp-list__plus {
  font-weight: 200; font-size: 1.5em; line-height: 1;
  opacity: 0; transform: scale(0.4);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.exp-list__item.is-active .exp-list__plus { opacity: 1; transform: scale(1); }
/* the card stack — same pa-card as the homepage deck, swung by the list.
   NOT position:sticky — this page's ancestors (html/body use overflow-x:clip
   /hidden for the no-sideways-scroll guarantee) stop native sticky from ever
   engaging, so it's pinned with GSAP ScrollTrigger instead (main.js), the
   same technique the homepage's .pa-flip deck already relies on.
   15% smaller than before, with more air around it (see .exp-grid gap). */
.exp-stage {
  position: sticky; top: clamp(104px, 15vh, 168px); align-self: start;
  height: min(52.7vh, 476px);
  perspective: 2000px;
}
.exp-stage .pa-card { width: 100%; height: 100%; inset: 0; }
/* =========== ABOUT — FAQ (halston-style accordion rows) =========== */
.ab-faq { background: var(--bg); padding: clamp(80px, 10vw, 150px) clamp(20px, 4vw, 70px) clamp(36px, 4vw, 64px); }
.ab-faq__head { text-align: center; }
.ab-faq__latin {
  display: inline-flex; align-items: center; gap: clamp(14px, 2vw, 26px);
  font-family: var(--font-latin); font-weight: 400;
  font-size: clamp(28px, 3.2vw, 48px); letter-spacing: 0.12em;
  color: var(--paper); direction: ltr;
}
.ab-faq__sub { margin-top: 12px; font-size: clamp(16px, 1.3vw, 20px); color: rgba(246, 243, 236, 0.8); }
.ab-faq__list { max-width: 1100px; margin: clamp(36px, 4.5vw, 72px) auto 0; }
.ab-faq__item {
  background: rgba(246, 243, 236, 0.045);
  border: 1px solid rgba(246, 243, 236, 0.12);
  margin-bottom: 12px;
  transition: background 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.ab-faq__item:hover, .ab-faq__item[open] { background: rgba(246, 243, 236, 0.08); border-color: rgba(192, 154, 50, 0.45); }
.ab-faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: stretch; gap: 0;
  padding: 0; min-height: clamp(58px, 5.5vw, 78px);
}
.ab-faq__item summary::-webkit-details-marker { display: none; }
/* halston-style filled number box at the row's start (right edge in RTL) */
.ab-faq__num {
  flex: none; align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  width: clamp(48px, 4.5vw, 64px);
  background: var(--gold-real); color: var(--bg);
  font-family: var(--font-latin); font-weight: 500;
  font-size: clamp(15px, 1.25vw, 19px); letter-spacing: 0.04em; direction: ltr;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.ab-faq__q {
  flex: 1; align-self: center;
  padding-block: clamp(14px, 1.5vw, 20px);
  padding-inline-end: clamp(16px, 2vw, 30px);
  padding-inline-start: clamp(48px, 6vw, 88px);
  font-weight: 700; font-size: clamp(15.5px, 1.4vw, 21px); color: var(--paper);
}
.ab-faq__plus {
  align-self: center; padding-inline-end: clamp(16px, 2.4vw, 34px);
  font-weight: 200; font-size: clamp(22px, 2vw, 30px); line-height: 1;
  color: var(--paper); transition: transform 0.45s var(--ease-out);
}
.ab-faq__item[open] .ab-faq__plus { transform: rotate(45deg); }
.ab-faq__a {
  margin: 0;
  padding-block-start: clamp(4px, 0.5vw, 8px);
  padding-block-end: clamp(20px, 2.2vw, 30px);
  padding-inline-end: clamp(18px, 2.4vw, 36px);
  padding-inline-start: calc(clamp(48px, 4.5vw, 64px) + clamp(48px, 6vw, 88px));
  max-width: 78ch; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.8;
  color: rgba(246, 243, 236, 0.78);
}
.ab-faq__item[open] .ab-faq__a { animation: faq-open 0.55s var(--ease-out); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .exp-hero__word { font-size: clamp(64px, 19vw, 160px); }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-stage { display: none; }
  .exp-list__item {
    border-bottom: 1px solid rgba(246, 243, 236, 0.14);
    color: rgba(246, 243, 236, 0.8);
    font-size: clamp(24px, 6.4vw, 34px);
    padding-block: 18px;
  }
  .exp-list__plus { opacity: 1; transform: none; }
}

/* =========================== CONTACT PAGE ===========================
   casacom-style: intro + quick-action cards alongside a prominent lead
   form, all in the first fold, then a /כתובת · /פרטי התקשרות · /הגעה
   strip and a full-bleed map. Buttons are the homepage's default .btn-cut
   (white → ink swap on hover), no per-page override needed on a dark page. */

/* same pinstriped-dark canvas as .priv-page — sections below have no
   explicit background, so this shows through the whole page */
.ct-page {
  background: var(--bg); color: var(--paper);
  background-image: repeating-linear-gradient(90deg,
    rgba(192, 154, 50, 0.14) 0, rgba(192, 154, 50, 0.14) 1px,
    transparent 1px, transparent 8.33%);
}

/* fold 1 — title + cards | form, together in one viewport */
.ct-hero {
  padding-top: clamp(140px, 18vh, 190px);
  padding-bottom: clamp(70px, 9vw, 130px);
}
.ct-hero__title { margin-top: 18px; }
.ct-hero__lede {
  margin-top: clamp(18px, 2vw, 26px);
  font-size: clamp(16.5px, 1.3vw, 19.5px); line-height: 1.75;
  color: rgba(255, 255, 255, 0.88); font-weight: 400;
}
.ct-hero__lede strong { color: var(--paper); font-weight: 700; }

.ct-main__grid {
  display: grid; grid-template-columns: 0.92fr 1.18fr;
  gap: clamp(40px, 6vw, 110px); align-items: start;
}

/* --- header + direct-contact cards --- */
.ct-intro { display: flex; flex-direction: column; gap: clamp(12px, 1.4vw, 18px); }
.ct-cards {
  margin-top: clamp(30px, 3.6vw, 52px);
  display: flex; flex-direction: column; gap: clamp(16px, 1.8vw, 24px);
}
.ct-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(22px, 2.8vw, 36px);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.5s var(--ease-out), border-color 0.5s;
}
.ct-card:hover { background: rgba(184, 247, 228, 0.07); border-color: rgba(184, 247, 228, 0.4); }
.ct-card__body { flex: 1; min-width: 0; }
.ct-card__body h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(19px, 1.7vw, 25px); line-height: 1.2;
  color: var(--paper);
  margin-bottom: 8px;
}
.ct-card__body p {
  color: rgba(255, 255, 255, 0.75); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6;
  margin: 0;
}
.ct-card__btn { flex: none; }

/* --- prominent form column: dark panel with a faint hairline so its
   edges read against the near-identical page background --- */
.ct-form-wrap {
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(36px, 4.4vw, 68px) clamp(32px, 4vw, 64px);
}
.ct-form-wrap__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(30px, 3.4vw, 52px); line-height: 1.15;
  color: var(--paper);
  margin-bottom: clamp(30px, 3.5vw, 52px);
  text-wrap: balance;
}
.ct-form { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 30px); }
.ct-form__row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 30px);
}
.ct-field { display: flex; flex-direction: column; gap: 8px; }
.ct-field__label {
  font-size: 12.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72); font-weight: 500;
}
.ct-field input,
.ct-field textarea {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  color: var(--paper); font-family: inherit; font-weight: 400;
  font-size: clamp(16.5px, 1.35vw, 20px);
  padding-block: 10px;
  outline: none;
  transition: border-color 0.4s var(--ease-out);
  resize: none;
}
.ct-field input:focus,
.ct-field textarea:focus { border-color: var(--gold-real); }
.ct-consent {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: clamp(13.5px, 1vw, 15px); color: rgba(255, 255, 255, 0.75); line-height: 1.6;
  cursor: pointer;
  margin-top: 8px;
}
.ct-consent input {
  width: 17px; height: 17px; flex: none; margin-top: 3px;
  accent-color: var(--gold-real); cursor: pointer;
}
.ct-consent a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.ct-consent a:hover { color: var(--gold-real); }
.ct-form__send { align-self: flex-start; cursor: pointer; }
.ct-form__ok  { margin-top: 4px; font-weight: 600; color: #7cd6a8; }
.ct-form__err { margin-top: 4px; font-weight: 600; color: #ff9c8f; }

/* fold 3 — info strip (subduxion-style 4-col row: address · phones · hours · directions) */
.ct-info {
  padding-block: clamp(60px, 7vw, 110px);
  border-top: 1px solid var(--line);
}
.ct-info__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(26px, 3.4vw, 64px);
  align-items: start;
}
.ct-info__col { display: flex; flex-direction: column; gap: 20px; }
.ct-info__label {
  font-family: var(--font-display);
  font-size: clamp(13.5px, 1.05vw, 16px); letter-spacing: 0.1em;
  color: var(--gold-real); font-weight: 600;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.ct-info__body {
  font-size: clamp(16.5px, 1.3vw, 20px); line-height: 1.75;
  color: var(--paper); font-weight: 400;
}
.ct-info__body a { color: var(--paper); transition: color 0.4s; }
.ct-info__body a:hover { color: var(--gold-real); }
.ct-info__quiet { color: rgba(255, 255, 255, 0.72); font-size: 0.92em; }

.ct-directions { display: flex; flex-direction: column; gap: 14px; }
.ct-dir { width: 100%; justify-content: space-between; }

/* Contact buttons sit on the dark charcoal canvas. Like the homepage portfolio
   CTA (.hpj-cta), give them a light hairline edge so that when the ink two-step
   fill rises on hover the button's outline stays visible against the dark
   section (a dark border would merge into the canvas → black-on-black). */
.ct-card__btn, .ct-form__send, .ct-dir { border-color: rgba(255, 255, 255, 0.55); }

/* fold 4 — map: container-width, unfiltered so streets and the pin stay legible */
.ct-map {
  border-top: 1px solid var(--line);
  padding-block: clamp(50px, 6vw, 90px);
}
/* iOS Safari sizes an iframe to its CONTENT and ignores width:100%, so the
   Google-Maps embed stretches the page far wider than the screen. iOS then
   inflates the layout viewport to match, the fixed full-screen overlays
   (.grain / .nav / .menu-overlay, all inset:0) size to that inflated viewport
   instead of the screen, and the whole page scrolls side to side. The
   width:1px + min-width:100% pair is the standard workaround that forces
   iOS to shrink the iframe back to its container. */
.ct-map { overflow: hidden; }
.ct-map iframe {
  display: block;
  width: 1px; min-width: 100%; max-width: 100%;
  height: clamp(360px, 52vh, 560px);
  border: 1px solid var(--line);
}

/* ============ CONTACT PAGE — MOBILE HORIZONTAL-OVERFLOW GUARD ============
   Root cause: .ct-main__grid / .ct-info__grid / .ct-form__row are CSS Grids,
   and a grid item's default `min-width: auto` refuses to shrink below its
   content's intrinsic width. Any content wider than its column (a long Hebrew
   string, an <input>'s intrinsic size, the form panel) therefore pushes the
   column past the screen edge. `min-width: 0` lets grid/flex children actually
   shrink — this is the structural fix, not a band-aid.
   Note: overflow-x:clip on html/body cannot rescue this, and position:fixed
   overlays escape that clipping entirely, so the overflow must be prevented
   at the source. */
@media (max-width: 768px) {
  /* 1. let every grid/flex child shrink instead of blowing out its track */
  .ct-main__grid, .ct-info__grid, .ct-form__row, .ct-cards, .ct-directions { min-width: 0; }
  .ct-main__grid > *, .ct-info__grid > *, .ct-form__row > *,
  .ct-intro, .ct-form-wrap, .ct-card, .ct-card__body, .ct-info__col, .ct-field { min-width: 0; }

  /* 2. nothing inside the page may exceed its parent */
  .ct-page, .ct-page .container { max-width: 100%; }
  .ct-page * { max-width: 100%; }

  /* 3. form controls: honour the border-box sizing so padding never adds width */
  .ct-field input, .ct-field textarea,
  .ct-form__send, .ct-card__btn, .ct-dir {
    box-sizing: border-box; max-width: 100%;
  }
  .ct-field textarea { resize: vertical; }

  /* 4. long unbreakable strings (emails, URLs) must wrap, not extend the box */
  .ct-hero__title, .ct-hero__lede, .ct-form-wrap__title,
  .ct-card__body, .ct-info__body, .ct-consent {
    overflow-wrap: break-word; word-break: break-word;
  }
}

/* footer-block--slim: the contact page has its OWN form/info, so the footer's
   inline lead block is skipped in footer.php — trim the gap that would remain */
.footer-block--slim .fb-footer { padding-top: clamp(60px, 8vw, 110px); }

@media (max-width: 1024px) {
  .ct-main__grid { grid-template-columns: 1fr; gap: 44px; }
  .ct-info__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .ct-card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ct-card__btn { width: 100%; justify-content: space-between; }
}
@media (max-width: 640px) {
  .ct-info__grid { grid-template-columns: 1fr; gap: 36px; }
  .ct-form__row { grid-template-columns: 1fr; gap: 20px; }
  .ct-form-wrap { padding: 28px 22px; }
}

/* =========================== HOMEPAGE — SELECTED PROJECTS + CLIENTS STRIP ===========================
   oic-style editorial portfolio: sticky side title (right, RTL) + two staggered
   card columns; the offset column drifts against the scroll (main.js). The
   clients close the section as a slow continuous moving strip. */
/* tighten the seam between the expertise deck and the portfolio */
.practice { padding-bottom: clamp(24px, 3vw, 48px); }
.hp-projects { color: var(--paper); padding-block: clamp(24px, 3vw, 48px) 0; }

.hpj-layout {
  display: grid; grid-template-columns: minmax(280px, 0.75fr) 1.55fr;
  gap: clamp(40px, 6vw, 110px); align-items: start;
}
.hpj-side { position: sticky; top: clamp(90px, 12vh, 130px); }
.hpj-side .h-xl { margin-top: clamp(10px, 1.2vw, 18px); }
.hpj-note {
  max-width: 34ch; margin-top: clamp(14px, 1.8vw, 24px);
  color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.85;
}
.hpj-cta { margin-top: clamp(24px, 3vw, 42px); }

.hpj-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.2vw, 60px); }
.hpj-col { display: flex; flex-direction: column; gap: clamp(44px, 5.5vw, 88px); }
/* the second column starts lower — the oic offset; main.js drifts it on scroll */
.hpj-col--off { margin-top: clamp(64px, 9vw, 160px); }

.hpj-card { display: block; }
.hpj-card__media {
  display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #1a1a1a;
  position: relative; /* hosts the imk-style gold sweep veil */
}
/* gold veil (injected by main.js) — wipes across a random card every few seconds */
.hpj-veil {
  position: absolute; inset: 0; z-index: 3;
  background: var(--gold-real);
  transform: scaleX(0);
  pointer-events: none; will-change: transform;
}
.hpj-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.5);
  transition: transform 1.1s var(--ease-out), filter 0.7s var(--ease-out);
}
.hpj-card:hover .hpj-card__media img { transform: scale(1.05); filter: grayscale(0); }
.hpj-card__title {
  position: relative; display: block; width: max-content; max-width: 100%;
  margin-top: clamp(16px, 1.8vw, 26px); padding-bottom: 8px; overflow: hidden;
  font-size: clamp(20px, 1.9vw, 30px); font-weight: 700; line-height: 1.22;
}
/* oic-style underline — parked past the start edge, wipes in under the
   title on hover with a soft fade (RTL: enters from the right) */
.hpj-card__title::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 100%; height: 2px; background: var(--gold-real);
  transform: translateX(101%); opacity: 0;
  transition: transform 0.55s var(--ease-out), opacity 0.25s var(--ease-out);
}
.hpj-card:hover .hpj-card__title::after { transform: translateX(0); opacity: 1; }
.hpj-card__loc {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; color: var(--muted); font-size: clamp(13.5px, 1.05vw, 16px);
}
.hpj-card__loc svg { width: 15px; height: 15px; flex: none; color: var(--gold-real); }
.hpj-card__desc {
  display: block; margin-top: 12px; max-width: 42ch;
  color: rgba(255, 255, 255, 0.55); font-size: clamp(14px, 1.1vw, 16.5px); line-height: 1.75;
}

/* --- clients: slow continuous strip closing the portfolio story --- */
.hpc-band { margin-top: clamp(56px, 7vw, 110px); padding-bottom: clamp(64px, 8vw, 120px); }
/* on the projects page the band sits inside .projects-sec, whose own bottom
   padding (plus WHAT WE DO's top padding) already provides the space below */
.projects-sec .hpc-band { padding-bottom: 0; }
.hpc-band__label {
  display: block; width: max-content; margin: 0 auto clamp(18px, 2.2vw, 30px);
}
.hpc-strip {
  border-block: 1px solid var(--line-soft);
  padding-block: clamp(18px, 2.2vw, 30px); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.hpc-track {
  display: flex; gap: clamp(44px, 5vw, 90px); width: max-content;
  will-change: transform;
}
.hpc-track span {
  display: flex; align-items: center; gap: clamp(44px, 5vw, 90px); white-space: nowrap;
  color: rgba(255, 255, 255, 0.46); font-size: clamp(15px, 1.25vw, 19px); font-weight: 400;
}
.hpc-track span::after { content: '◆'; font-size: 8px; color: var(--gold-real); }

@media (max-width: 1024px) {
  .hpj-layout { grid-template-columns: 1fr; gap: 40px; }
  .hpj-side { position: static; }
}
@media (max-width: 640px) {
  /* single column — and the grid row-gap (between the two stacked .hpj-col
     blocks) must match the gap BETWEEN cards inside a column, else the seam
     where the columns meet looks cramped versus the rest */
  .hpj-cards { grid-template-columns: 1fr; gap: clamp(52px, 8vw, 72px); }
  /* min-width: 0 — a long max-content title must not stretch the column past
     the container (RTL: the overflow spills out the LEFT edge) */
  .hpj-col, .hpj-card { min-width: 0; }
  .hpj-col { gap: clamp(52px, 8vw, 72px); }
  .hpj-col--off { margin-top: 0; }
  .hpj-cta { margin-bottom: clamp(20px, 4vw, 36px); }
  /* let long titles wrap instead of forcing the card wider than the screen */
  .hpj-card__title { width: 100%; margin-top: clamp(14px, 2.5vw, 22px); line-height: 1.4; padding-bottom: 4px; }
  /* OUR CLIENTS strip: the space below it comes from .team-h's padding-top
     (the partners section follows immediately, .hp-projects has no bottom
     padding), so zero the strip's own bottom padding and let margin-top carry
     the space above — the two then match exactly. Previously ~36px above vs
     ~130px below, which read as the strip being glued to the portfolio. */
  .hpc-band { margin-top: clamp(88px, 15vw, 120px); padding-bottom: 0; }
}

/* =============================================================
   MOBILE: LEAN CARDS + GENTLE ENTRANCE
   Appended last so it wins the cascade on specificity ties.

   The original flash was a ScrollTrigger.batch in main.js that hid each
   card (autoAlpha:0, y:70) AT THE MOMENT it entered — so the card painted
   visible, snapped invisible, then faded back. That animation is now
   desktop-only.

   The mobile entrance below is flash-free BY CONSTRUCTION: the hidden
   state is applied from the very first paint (gated by html.reveal-on,
   set in <head> before the body renders), so a card is NEVER shown and
   then hidden. It animates only opacity + translateY — both run purely on
   the compositor, zero layout, zero repaint. No layer promotion, no
   will-change, no containment: nothing that costs memory.
   ============================================================= */
@media (max-width: 768px) {

  /* ── perf wins (these only ever REMOVE work) ───────────────── */

  /* the project cards' brand-logo overlay and expanding developer line are gone
     — they now use the same liquid-glass caption as .pp-panel (see .proj-card__cap),
     which the (hover: none) block above already opens and de-blurs on touch. */

  /* solid backgrounds instead of live blur — backdrop-filter re-samples the
     pixels behind it every frame; these alphas look identical for free */
  .pp-panel__cap  { background: linear-gradient(160deg, rgba(32, 32, 32, 0.88), rgba(10, 10, 10, 0.92)); }
  .pp-panel__toggle { background: rgba(20, 20, 20, 0.88); }

  /* .grain is a fixed, viewport-sized SVG-noise layer (z-index 80). A fixed
     full-screen layer defeats scroll-blitting, forcing the compositor to
     re-render the whole viewport every frame. Invisible at opacity .05 on a
     phone — removing it is the single biggest scroll-speed win here. The
     nav / menu / card blurs are the same story. */
  .grain { display: none !important; }
  body.nav-scrolled .nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .menu-overlay { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(10, 10, 10, 0.985); }
  /* Blur off on phones for scroll speed, and the fill goes near-opaque to
     compensate — which means the backdrop photo never showed through these
     cards on mobile at all. That is the real reason they read as flat brown.
     background-COLOR, not the `background` shorthand: the shorthand resets
     background-image and was silently wiping the texture below. */
  .ab-card::after {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    background-color: rgba(8, 8, 8, 0.9);
    /* the panel's own material, since there is no photo behind it here: fine
       gold pinstripes (the site's texture, see .priv-page) and a warm sheen at
       the top edge so it reads as lit from the numbered diamond. Desktop keeps
       plain glass — over the blurred bookshelf this tint would go olive. */
    background-image:
      repeating-linear-gradient(90deg,
        rgba(192, 154, 50, 0.14) 0, rgba(192, 154, 50, 0.14) 1px,
        transparent 1px, transparent 15px),
      radial-gradient(125% 80% at 50% -10%,
        rgba(192, 154, 50, 0.20), rgba(192, 154, 50, 0.06) 44%, transparent 78%),
      linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 58%);
  }

  /* ── gentle entrance (compositor-only) ─────────────────────── */

  /* hidden from the first paint (html.reveal-on is set in <head>). If JS is
     absent the class is never added → cards are visible by default. */
  html.reveal-on .proj-card,
  html.reveal-on .pp-panel-wrap {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  html.reveal-on .proj-card.is-revealed,
  html.reveal-on .pp-panel-wrap.is-revealed {
    opacity: 1;
    transform: none;
  }
  /* fallback (set 2.8s after load by the head script) and reduced-motion:
     show everything with no motion, in case the observer never fired */
  html.reveal-fallback .proj-card,
  html.reveal-fallback .pp-panel-wrap {
    opacity: 1 !important; transform: none !important;
  }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  html.reveal-on .proj-card,
  html.reveal-on .pp-panel-wrap {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ─── DIAGNOSTIC: append ?noanim=1 to any URL ───────────────────
   Strips every transition/animation/transform/filter site-wide, for
   isolating a rendering problem on a real device. Inert otherwise. */
html.hlz-noanim *,
html.hlz-noanim *::before,
html.hlz-noanim *::after {
  transition: none !important;
  animation: none !important;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
  opacity: 1 !important;
}
html.hlz-noanim .grain,
html.hlz-noanim .preloader,
html.hlz-noanim .page-doors { display: none !important; }

/* clock ranges inside RTL lines — see hlz_time_range() in functions.php */
.hlz-ltr { direction: ltr; unicode-bidi: isolate; }

/* =========================== BLOG / JOURNAL ===========================
   Listing and article pages, built on the site's existing vocabulary rather
   than a new one: the Latin-overline + Hebrew-sub masthead of .ab-vision, the
   diamond .ab-orn rules, and the liquid-glass caption of .pp-panel__cap. */

/* ---- listing: masthead ---- */
.blog-hero {
  background: var(--bg); color: var(--paper);
  padding: clamp(130px, 17vh, 190px) 0 clamp(30px, 4vw, 52px);
  text-align: center;
}
.blog-hero__latin {
  font-family: var(--font-latin); font-weight: 400; letter-spacing: 0.12em;
  font-size: clamp(38px, 5.4vw, 88px); direction: ltr;
  display: inline-flex; align-items: center; gap: clamp(16px, 2.2vw, 38px);
}
.blog-hero__sub { margin-top: 12px; font-size: clamp(19px, 1.9vw, 30px); font-weight: 300; }
.blog-hero__lede {
  margin: clamp(16px, 2vw, 26px) auto 0; max-width: 62ch;
  font-size: clamp(15px, 1.15vw, 18px); line-height: 1.85; color: var(--muted);
}

/* ---- listing: category filter row ---- */
.blog-filter {
  margin-top: clamp(34px, 4.5vw, 62px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  padding-top: clamp(18px, 2vw, 26px); border-top: 1px solid var(--line-soft);
}
.blog-filter__list { display: flex; flex-wrap: wrap; gap: clamp(14px, 1.8vw, 30px); }
.blog-filter__item {
  position: relative; color: var(--faint);
  font-size: clamp(13px, 1vw, 15px); letter-spacing: 0.04em;
  display: inline-flex; align-items: baseline; gap: 6px;
  transition: color 0.4s var(--ease-out);
}
.blog-filter__item b { font-size: 0.72em; color: var(--gold-real); font-weight: 500; }
/* the underline grows from the reading edge rather than fading in, the same
   gesture the nav links use, so the filter feels native to the site */
.blog-filter__item::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--gold-real);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.5s var(--ease-out);
}
[dir="rtl"] .blog-filter__item::after { transform-origin: right center; }
.blog-filter__item:hover, .blog-filter__item.is-active { color: var(--paper); }
.blog-filter__item:hover::after, .blog-filter__item.is-active::after { transform: scaleX(1); }

/* ---- listing: article cards ---- */
.blog-list {
  background: var(--bg);
  padding-bottom: clamp(60px, 8vw, 120px);
  display: flex; flex-direction: column; gap: clamp(28px, 4vw, 70px);
}
.bl-card { position: relative; }
.bl-card__media {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; background: #101010;
}
.bl-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.06); /* settles to 1 as the card scrolls in (main.js) */
  transition: transform 1.2s var(--ease-out);
}
/* liquid glass, the same device as .pp-panel__cap, inset from the frame so the
   photograph reads as the surface the panel is resting on */
.bl-card__cap {
  position: absolute; z-index: 2;
  bottom: clamp(16px, 2.4vw, 44px);
  inset-inline-start: clamp(16px, 2.6vw, 52px);
  width: min(440px, 74%);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(8px, 0.9vw, 13px);
  padding: clamp(20px, 2.2vw, 34px);
  background: linear-gradient(160deg, rgba(40, 40, 40, 0.42), rgba(10, 10, 10, 0.5));
  backdrop-filter: blur(28px) saturate(175%); -webkit-backdrop-filter: blur(28px) saturate(175%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 44px rgba(0, 0, 0, 0.32);
  color: var(--paper);
}
/* every second card flips the panel to the other edge, so the column has a
   rhythm instead of reading as one repeated block */
.bl-card--end .bl-card__cap { inset-inline-start: auto; inset-inline-end: clamp(16px, 2.6vw, 52px); }
.bl-card__cat {
  font-family: var(--font-latin); font-size: clamp(11px, 0.8vw, 12.5px);
  letter-spacing: 0.22em; color: var(--gold-real); text-transform: uppercase;
}
.bl-card__title { font-size: clamp(20px, 2vw, 34px); font-weight: 400; line-height: 1.25; }
.bl-card__title a { color: inherit; }
.bl-card__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(12px, 0.9vw, 13.5px); color: rgba(255, 255, 255, 0.6);
}
.bl-card__meta i { width: 4px; height: 4px; background: var(--gold-real); transform: rotate(45deg); }
.bl-card__read {
  margin-top: 4px; display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(12.5px, 0.95vw, 14px); letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
}
.bl-card__read b {
  display: grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.4); font-weight: 400;
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.bl-card:hover .bl-card__read b {
  background: var(--gold-real); border-color: var(--gold-real);
  color: var(--ink); transform: rotate(90deg);
}

.blog-pager {
  display: flex; justify-content: space-between; gap: 20px;
  padding-block: clamp(30px, 4vw, 60px); border-top: 1px solid var(--line-soft);
}
.blog-pager a { color: var(--paper); font-size: clamp(14px, 1.05vw, 16.5px); }
.blog-pager a:hover { color: var(--gold-real); }
.blog-empty__note { color: var(--muted); font-size: clamp(16px, 1.3vw, 20px); text-align: center; }

/* ---- article: split hero ---- */
.post-hero {
  background: var(--bg); color: var(--paper);
  padding: clamp(120px, 15vh, 175px) 0 clamp(40px, 5vw, 80px);
}
.post-hero__grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(30px, 4.5vw, 80px); align-items: center;
}
.post-hero__back {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(16px, 2vw, 26px);
  font-size: clamp(12.5px, 0.95vw, 14px); letter-spacing: 0.06em; color: var(--faint);
  transition: color 0.4s var(--ease-out);
}
.post-hero__back:hover { color: var(--paper); }
.post-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(16px, 2vw, 26px); }
.post-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px clamp(11px, 1vw, 15px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: clamp(11.5px, 0.85vw, 13px); letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.82);
  transition: border-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.post-badge::before { content: ""; width: 5px; height: 5px; background: var(--gold-real); transform: rotate(45deg); }
a.post-badge:hover { border-color: var(--gold-real); color: var(--paper); }
.post-hero__title { font-size: clamp(30px, 3.9vw, 66px); font-weight: 300; line-height: 1.14; }
.post-hero__lede {
  margin-top: clamp(16px, 2vw, 26px); max-width: 52ch;
  font-size: clamp(15px, 1.15vw, 18.5px); line-height: 1.85; color: var(--muted);
}
.post-hero__media { position: relative; overflow: hidden; isolation: isolate; }
.post-hero__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* parked INVISIBLE: main.js raises it and wipes it away, so a failed script
   leaves the photo on show rather than hidden behind a veil nothing removes */
.post-hero__veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--bg); transform: scaleY(0); transform-origin: 50% 100%;
}

/* ---- article: body ---- */
.post-body { background: var(--bg); color: var(--paper); padding-bottom: clamp(60px, 8vw, 120px); }
.post-body__grid { display: grid; grid-template-columns: 0.34fr 1fr; gap: clamp(28px, 4.5vw, 90px); align-items: start; }
.post-aside { position: sticky; top: clamp(110px, 14vh, 150px); }
.post-author { display: flex; align-items: center; gap: 14px; }
.post-author__avatar { flex: none; width: 54px; height: 54px; overflow: hidden; border-radius: 50%; }
.post-author__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-author__meta { display: flex; flex-direction: column; gap: 3px; }
.post-author__meta b { font-size: clamp(14.5px, 1.1vw, 17px); font-weight: 500; }
.post-author__meta b a { color: inherit; }
.post-author__meta b a:hover { color: var(--gold-real); }
.post-author__meta span {
  font-family: var(--font-latin); font-size: clamp(11px, 0.8vw, 12.5px);
  letter-spacing: 0.16em; color: var(--faint);
}
.post-share {
  margin-top: clamp(22px, 2.6vw, 36px); padding-top: clamp(16px, 1.8vw, 24px);
  border-top: 1px solid var(--line-soft);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.post-share__label {
  font-family: var(--font-latin); font-size: 11px; letter-spacing: 0.2em;
  color: var(--gold-real); margin-bottom: 2px;
}
.post-share a { color: var(--muted); font-size: clamp(13px, 1vw, 15px); transition: color 0.4s var(--ease-out); }
.post-share a:hover { color: var(--paper); }

/* ---- article: the prose itself ---- */
.post-content { max-width: 74ch; }
.post-content > * + * { margin-top: 1.15em; }
.post-content p { font-size: clamp(15.5px, 1.2vw, 19px); line-height: 1.95; color: rgba(255, 255, 255, 0.82); }
/* the opening paragraph carries the article, so it is set heavier and lighter
   in colour, as the reference does */
.post-content > p:first-child { font-size: clamp(17px, 1.35vw, 21px); font-weight: 500; color: var(--paper); line-height: 1.75; }
.post-content strong, .post-content b { color: var(--paper); font-weight: 700; }
.post-content a { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(192, 154, 50, 0.7); }
.post-content a:hover { color: var(--gold-real); }
.post-content h2, .post-content h3, .post-content h4 {
  margin-top: clamp(34px, 4vw, 62px); font-weight: 400; line-height: 1.25; color: var(--paper);
}
.post-content h2 { font-size: clamp(23px, 2.2vw, 36px); }
.post-content h3 { font-size: clamp(19px, 1.7vw, 27px); }
.post-content h4 { font-size: clamp(17px, 1.4vw, 22px); }
.post-content ul, .post-content ol { padding-inline-start: 0; list-style: none; }
.post-content ul li, .post-content ol li {
  position: relative; padding-inline-start: 34px; margin-top: 0.85em;
  font-size: clamp(15px, 1.15vw, 18px); line-height: 1.8; color: rgba(255, 255, 255, 0.78);
}
/* gold diamond for bullets and a gold numeral for ordered lists, matching the
   ornaments used elsewhere rather than a browser default disc */
.post-content ul li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.55em;
  width: 9px; height: 9px; background: var(--gold-real); transform: rotate(45deg);
}
.post-content ol { counter-reset: hlzol; }
.post-content ol li { counter-increment: hlzol; }
.post-content ol li::before {
  content: counter(hlzol, decimal-leading-zero);
  position: absolute; inset-inline-start: 0; top: 0.1em;
  font-family: var(--font-latin); font-size: 0.85em; color: var(--gold-real);
  /* NOT direction:ltr — that would make inset-inline-start resolve against the
     pseudo-element's own direction and throw the numeral to the left margin in
     Hebrew. Digits already form their own LTR run; isolate is enough. */
  unicode-bidi: isolate;
}
.post-content blockquote {
  margin-block: clamp(28px, 3.4vw, 52px);
  padding-inline-start: clamp(20px, 2.4vw, 38px);
  border-inline-start: 2px solid var(--gold-real);
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(18px, 1.65vw, 27px); line-height: 1.6; color: rgba(255, 255, 255, 0.92);
}
.post-content blockquote p { font-size: inherit; line-height: inherit; color: inherit; }
.post-content img, .post-content figure img { width: 100%; height: auto; display: block; }
.post-content figure { margin-block: clamp(26px, 3.2vw, 50px); }
.post-content figcaption {
  margin-top: 12px; text-align: center;
  font-size: clamp(12.5px, 0.95vw, 14px); color: var(--faint);
}
.post-content hr { border: 0; border-top: 1px solid var(--line-soft); margin-block: clamp(30px, 3.6vw, 56px); }

/* ---- article: related ---- */
.post-more { background: var(--bg-2); color: var(--paper); padding-block: clamp(60px, 8vw, 120px); }
.post-more__head { text-align: center; margin-bottom: clamp(38px, 4.6vw, 72px); }
.post-more__latin {
  font-family: var(--font-latin); font-weight: 400; letter-spacing: 0.12em;
  font-size: clamp(24px, 2.8vw, 46px); direction: ltr;
  display: inline-flex; align-items: center; gap: clamp(14px, 1.8vw, 30px);
}
.post-more__sub { margin-top: 10px; font-size: clamp(16px, 1.4vw, 23px); font-weight: 300; color: var(--muted); }
.post-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 40px); }
.pm-card { display: flex; flex-direction: column; gap: 12px; color: var(--paper); }
.pm-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #101010; }
.pm-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease-out); }
.pm-card:hover .pm-card__media img { transform: scale(1.05); }
.pm-card__cat {
  font-family: var(--font-latin); font-size: 11px; letter-spacing: 0.2em;
  color: var(--gold-real); text-transform: uppercase;
}
.pm-card__title { font-size: clamp(16px, 1.3vw, 21px); font-weight: 400; line-height: 1.35; transition: color 0.4s var(--ease-out); }
.pm-card:hover .pm-card__title { color: var(--gold-real); }
.pm-card__meta { font-size: clamp(12px, 0.9vw, 13.5px); color: var(--faint); }

@media (max-width: 1024px) {
  .post-hero__grid { grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); }
  .post-body__grid { grid-template-columns: 1fr; gap: clamp(26px, 4vw, 40px); }
  /* the byline stops being a sidebar and becomes a header row above the prose */
  .post-aside { position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
  .post-share { margin-top: 0; padding-top: 0; border-top: 0; flex-direction: row; align-items: center; gap: 14px; }
  .post-share__label { margin-bottom: 0; }
  .post-more__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-hero { padding-top: clamp(105px, 14vh, 130px); }
  .bl-card__media { aspect-ratio: 4 / 5; }
  /* the glass panel stops floating over the photo and sits under it: at this
     width an inset overlay covers most of the image and the title runs out of
     room. The live blur goes too, since it would run on every card. */
  .bl-card__cap {
    position: static; width: auto; inset: auto;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: linear-gradient(160deg, rgba(32, 32, 32, 0.94), rgba(10, 10, 10, 0.96));
  }
  .bl-card--end .bl-card__cap { inset-inline-end: auto; }
  .blog-list { gap: clamp(34px, 9vw, 52px); }
  .post-content { max-width: none; }
  .post-more__grid { grid-template-columns: 1fr; }
}

/* reading-progress rail on the article's sticky byline column. Injected by
   main.js (desktop only), so it never exists for a reader who would only see a
   dead line — and it inherits the gold used for every other accent. */
.post-progress {
  display: block; margin-top: clamp(22px, 2.6vw, 34px);
  width: 1px; height: clamp(90px, 12vh, 150px);
  background: rgba(255, 255, 255, 0.16);
}
.post-progress i {
  display: block; width: 100%; height: 100%;
  background: var(--gold-real);
  transform: scaleY(0); transform-origin: 50% 0%;
}

/* filter-row CTA: a chip sized to the row it lives in, not the site's full
   .btn-cut — at button size it out-shouted the JOURNAL masthead above it */
.blog-filter__cta {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 9px clamp(13px, 1.1vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: clamp(12.5px, 0.95vw, 14px); letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.86);
  transition: border-color 0.45s var(--ease-out), color 0.45s var(--ease-out), background 0.45s var(--ease-out);
}
.blog-filter__cta b {
  display: grid; place-items: center; width: 18px; height: 18px;
  color: var(--gold-real); font-weight: 400; font-size: 15px; line-height: 1;
  transition: transform 0.45s var(--ease-out);
}
.blog-filter__cta:hover { border-color: var(--gold-real); color: var(--paper); background: rgba(192, 154, 50, 0.1); }
.blog-filter__cta:hover b { transform: rotate(90deg); }

/* Between the burger breakpoint and a roomy desktop the nav ran out of room and
   individual links broke onto a second line ("צור קשר" over two rows). Two
   fixes: never wrap INSIDE a link, and tighten the type and gaps through that
   band so the row still fits on one line. */
.nav__links a { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1340px) {
  .nav__links { gap: clamp(10px, 1.5vw, 22px); }
  .nav__links a { font-size: clamp(14px, 1.2vw, 17px); }
}

/* ---- listing cards, v2 ----------------------------------------------------
   Replaces the full-bleed photo with a glass overlay. That version gave each
   post most of a screen, so two articles filled the whole page and the list
   stopped reading as a list. The reference instead splits each row in two —
   photo on one side, a flat text panel on the other — and alternates which
   side the photo takes. Far more compact, and the alternation is what supplies
   the rhythm, so the caption no longer needs to float over the image.
   Overrides the v1 rules above rather than editing them, so the earlier block
   stays readable as the thing this replaced. */
.blog-list { gap: 0; }
.bl-card {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-top: 1px solid var(--line-soft);
}
.blog-list .bl-card:last-child { border-bottom: 1px solid var(--line-soft); }
/* odd rows put the photo on the left, even rows on the right. Physical `order`
   on purpose: this is a visual alternation, not a reading-order one, and the
   text panel must stay second in the DOM for screen readers either way. */
.bl-card--start .bl-card__media { order: 2; }
.bl-card--start .bl-card__cap    { order: 1; }
.bl-card__media {
  aspect-ratio: auto; min-height: clamp(240px, 30vw, 420px);
  align-self: stretch;
}
.bl-card__media img { transform: none; }

/* the caption is now a panel in the grid, not an overlay: no glass, no blur,
   no absolute positioning */
.bl-card__cap {
  position: static; width: auto; inset: auto;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center;
  gap: clamp(10px, 1.1vw, 16px);
  padding: clamp(28px, 4vw, 74px) clamp(24px, 4vw, 70px);
  background: none; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.bl-card__title { font-size: clamp(21px, 1.9vw, 33px); }
.bl-card__title a { transition: color 0.45s var(--ease-out); }
.bl-card:hover .bl-card__title a { color: var(--gold-real); }
.bl-card__excerpt {
  max-width: 46ch; color: var(--muted);
  font-size: clamp(14.5px, 1.05vw, 17px); line-height: 1.8;
}
/* the READ control is a real link now, not decoration, so it gets a hit area */
.bl-card__read {
  margin-top: clamp(4px, 0.6vw, 10px);
  padding: 9px clamp(13px, 1.1vw, 17px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.9);
  transition: border-color 0.45s var(--ease-out), background 0.45s var(--ease-out), color 0.45s var(--ease-out);
}
.bl-card__read b { border: 0; width: auto; height: auto; color: var(--gold-real); font-size: 15px; }
.bl-card:hover .bl-card__read { border-color: var(--gold-real); background: rgba(192, 154, 50, 0.1); color: var(--paper); }
.bl-card:hover .bl-card__read b { background: none; border: 0; color: var(--gold-real); transform: rotate(90deg); }

@media (max-width: 860px) {
  /* stacked: photo above, text below, and the alternation is dropped — at this
     width it only shuffles the order of two full-width blocks, which reads as
     inconsistency rather than rhythm */
  .bl-card { grid-template-columns: 1fr; }
  .bl-card--start .bl-card__media,
  .bl-card--start .bl-card__cap { order: 0; }
  .bl-card__media { min-height: 0; aspect-ratio: 16 / 10; }
  .bl-card__cap { padding: clamp(22px, 6vw, 34px) clamp(18px, 5vw, 28px) clamp(30px, 8vw, 44px); }
}

/* The image cell was taking its height from the photo's own proportions: with
   `height: 100%` inside a container that has only a min-height, the percentage
   has nothing to resolve against and falls back to auto, so a tall portrait
   shot made its whole row twice the height of the next one. Absolute-positioning
   the photo makes it fill whatever the cell turns out to be, and aspect-ratio
   sets that cell's height when the text panel beside it is the shorter one — so
   every row crops to the same shape no matter what is uploaded. */
.bl-card__media { position: relative; aspect-ratio: 4 / 3; min-height: 0; }
.bl-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Card proportions matched to the reference rather than guessed: its journal
   rows measure 682×392 at a 1424px viewport, i.e. 1.74:1. The 4/3 used here
   first (1.33:1) made every row noticeably taller and squarer than the source. */
.bl-card__media { aspect-ratio: 7 / 4; }

/* =========================== ARTICLE CTA ===========================
   Contextual box: names the practice area the article belongs to and the
   lawyer who wrote it (see hlz_article_cta in functions.php). Two placements —
   inline, mid-article, and at the foot — so it is styled to sit inside prose
   without breaking the column, and to close the page without shouting. */
.art-cta {
  position: relative;
  display: flex; gap: clamp(16px, 2vw, 30px);
  padding: clamp(24px, 2.8vw, 44px) clamp(22px, 2.6vw, 40px);
  background: linear-gradient(160deg, rgba(46, 46, 46, 0.72), rgba(16, 16, 16, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
/* a gold rule down the reading edge, the same marker the pull-quotes use, so
   the box reads as an aside of the article rather than an advert dropped in */
.art-cta__label {
  flex: none; width: 2px; align-self: stretch;
  background: linear-gradient(to bottom, var(--gold-real), rgba(192, 154, 50, 0.15));
}
.art-cta__body { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(8px, 0.9vw, 13px); }
.art-cta__title { font-size: clamp(19px, 1.7vw, 28px); font-weight: 400; line-height: 1.3; color: var(--paper); }
.art-cta__desc { font-size: clamp(14.5px, 1.05vw, 17px); line-height: 1.75; color: rgba(255, 255, 255, 0.78); max-width: 54ch; }
.art-cta__note { font-size: clamp(12.5px, 0.95vw, 14px); color: var(--faint); }
.art-cta__actions { margin-top: clamp(6px, 0.8vw, 12px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 1.4vw, 22px); }
.art-cta__link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: clamp(13px, 1vw, 15px); color: rgba(255, 255, 255, 0.8);
  transition: color 0.45s var(--ease-out);
}
.art-cta__link b { color: var(--gold-real); font-weight: 400; transition: transform 0.45s var(--ease-out); }
.art-cta__link:hover { color: var(--paper); }
.art-cta__link:hover b { transform: rotate(90deg); }

/* inline copy sits INSIDE .post-content, whose `> * + *` rule would otherwise
   give it the same rhythm as a paragraph — it needs more air than that */
.art-cta--inline { margin-block: clamp(32px, 4vw, 58px) !important; }
.post-cta-wrap { background: var(--bg); padding-bottom: clamp(70px, 9vw, 130px); }
.art-cta--end { max-width: 820px; margin-inline: auto; }

@media (max-width: 640px) {
  .art-cta { flex-direction: column; gap: 14px; }
  .art-cta__label { width: auto; height: 2px; align-self: flex-start; min-width: 56px;
    background: linear-gradient(to left, var(--gold-real), rgba(192, 154, 50, 0.15)); }
  .art-cta__actions .btn { width: 100%; justify-content: space-between; }
}

/* The inline CTA sits inside .post-content, whose prose-link rules (white text,
   gold underline) were repainting the gold button's label — white on a white
   button, with the underline the only thing left visible. Reassert the button's
   own colours inside the article, and stop the prose underline reaching either
   control. */
.post-content .art-cta a { text-decoration: none; }
.post-content .art-cta .btn { color: var(--ink); }
.post-content .art-cta .btn:hover { color: var(--paper); }
.post-content .art-cta__link { color: rgba(255, 255, 255, 0.8); }
.post-content .art-cta__link:hover { color: var(--paper); }

@media (max-width: 640px) {
  /* the row wraps at this width, so `gap` becomes the space between the filter
     list and the button that drops beneath it — at 18px the two read as one
     block. Stacking explicitly and opening the gap separates them. */
  .blog-filter { flex-direction: column; align-items: stretch; gap: clamp(26px, 7vw, 38px); }
  .blog-filter__list { justify-content: flex-start; }
  .blog-filter__cta { align-self: flex-start; }
}

/* ---- card image box: Safari-proof height -------------------------------
   The image area collapsed to ZERO height on iOS Safari while rendering fine
   in Chrome. Cause: this box combined `align-self: stretch` with
   `aspect-ratio`, and its only child is absolutely positioned. On mobile the
   card is a ONE-column grid, so the row auto-sizes to its content — and out-of-
   flow content measures 0. Blink falls back to aspect-ratio and paints a box;
   WebKit honours the stretch against a zero-height row and paints nothing.

   The fix is an in-flow spacer whose height comes from its own width, which
   every engine has resolved correctly for a decade. aspect-ratio stays off this
   element so the two cannot disagree again; the absolute image still fills the
   box, so a taller row on desktop is covered exactly as before. */
.bl-card__media {
  aspect-ratio: auto;
  min-height: 0;
}
.bl-card__media::before {
  content: "";
  display: block;
  padding-top: 57.14%; /* 4 / 7 — the listing's 1.75:1 crop */
}
.bl-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (max-width: 860px) {
  /* stacked cards get a slightly taller crop so the photo still has presence
     when it spans the full width of a phone */
  .bl-card__media::before { padding-top: 62%; }
}

/* =========================== FLOATING CONSULTATION CTA =========================== */
/* A persistent booking button so a consultation is always one tap away once the
   visitor is past the first fold — the nav bar itself hides on scroll-down, so it
   cannot be relied on for this. The nav CTA and this button are mutually exclusive
   (rules below), so "תיאום ייעוץ" never shows twice in one view. */
.fab-cta {
  position: fixed; z-index: 90;
  bottom: clamp(18px, 3vh, 30px); inset-inline-end: clamp(18px, 3vw, 34px);
  display: inline-flex; align-items: center; gap: clamp(20px, 2vw, 34px);
  padding: 16px 24px; border-radius: 0;
  background: #ffffff; color: var(--ink);
  border: 1px solid var(--ink); border-bottom-width: 4px;
  font-family: var(--font-label); font-weight: 800;
  font-size: clamp(13px, 1.1vw, 16px); letter-spacing: 0.2em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-expo),
              background 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
.fab-cta:hover { background: var(--ink); color: var(--paper); }
.fab-cta .btn__icon { transition: transform 0.5s var(--ease-out); }
.fab-cta:hover .btn__icon { transform: rotate(90deg); }
.fab-cta:active { transform: scale(0.98); }

/* reveal once past the first fold; never during the hero-b first fold or with the menu open */
body.nav-scrolled:not(.in-hero-b):not(.menu-open) .fab-cta {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}

/* hide the floating CTA once the footer is in view, so it never covers the credit */
body.nav-scrolled:not(.in-hero-b):not(.menu-open).footer-visible .fab-cta {
  opacity: 0; pointer-events: none;
}

/* nav CTA ↔ fab are mutually exclusive: hide the nav CTA in the hero-b first fold
   (the hero carries the primary CTA there) and whenever the fab is showing. */
body.in-hero-b .nav__cta,
body.nav-scrolled:not(.in-hero-b) .nav__cta { display: none; }

@media (prefers-reduced-motion: reduce) {
  .fab-cta { transition: opacity 0.3s linear; transform: none; }
  body.nav-scrolled:not(.in-hero-b):not(.menu-open) .fab-cta { transform: none; }
}


/* -------------------------------------------------
   Lawyer role line — a year range gets its own line
   A founder's role reads "מייסד המשרד · 1942-2025". Left inline in an RTL
   line it can wrap between the years and bidi can throw the dash to the wrong
   side, so the range is isolated LTR, kept unbreakable and dropped one line
   down, on every screen size.
   ------------------------------------------------- */
.hlz-role-title { display: block; }
.hlz-years {
  display: block;
  white-space: nowrap; font-variant-numeric: lining-nums tabular-nums;
}

/* -------------------------------------------------
   Cookie / privacy consent bar
   ------------------------------------------------- */
.hlz-consent {
  position: fixed; inset: auto 0 0 0; z-index: 9000;
  background: var(--bg-2); color: var(--paper);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45);
  transform: translateY(100%); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}
/* the brand hairline that runs across the top of the bar */
.hlz-consent::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-real), transparent);
}
.hlz-consent.is-in { transform: translateY(0); opacity: 1; }
.hlz-consent.is-out { transform: translateY(100%); opacity: 0; }
.hlz-consent__inner {
  width: min(1320px, 92vw); margin: 0 auto;
  display: flex; align-items: center; gap: clamp(20px, 4vw, 64px);
  padding: clamp(18px, 2.2vw, 28px) 0;
}
.hlz-consent__text { flex: 1 1 auto; text-align: start; }
.hlz-consent__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(16px, 1.5vw, 20px); line-height: 1.2; margin-bottom: 6px;
}
.hlz-consent__text p {
  font-size: clamp(13px, 1.05vw, 15px); line-height: 1.65; color: var(--muted);
  max-width: 78ch;
}
.hlz-consent__text b { color: var(--paper); font-weight: 700; }
.hlz-consent__text a {
  color: var(--gold-real); text-decoration: underline;
  text-underline-offset: 3px; transition: color 0.3s;
}
.hlz-consent__text a:hover { color: var(--paper); }
.hlz-consent__actions { flex: 0 0 auto; display: flex; gap: 12px; }
.hlz-consent__btn {
  cursor: pointer; white-space: nowrap;
  font-family: inherit; font-weight: 800;
  font-size: clamp(12px, 0.95vw, 14px); letter-spacing: 0.14em;
  padding: 14px clamp(18px, 1.8vw, 30px);
  border: 1px solid var(--paper); border-bottom-width: 3px;
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s;
}
.hlz-consent__btn--solid { background: var(--paper); color: var(--ink); }
.hlz-consent__btn--solid:hover { background: var(--gold-real); border-color: var(--gold-real); color: var(--ink); }
.hlz-consent__btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.hlz-consent__btn--ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.08); }
.hlz-consent__btn:active { transform: scale(0.98); }
.hlz-consent__btn:focus-visible { outline: 2px solid var(--gold-real); outline-offset: 3px; }
@media (max-width: 860px) {
  .hlz-consent__inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .hlz-consent__actions { gap: 10px; }
  .hlz-consent__btn { flex: 1 1 0; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hlz-consent { transition: none; }
}
