/* ==========================================================================
   הרב יהודה ישכר שטרן — design system
   ========================================================================== */
@font-face { font-family: "TA Brutalist"; src: url("../fonts/telaviv-brutalistlight.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "TA Brutalist"; src: url("../fonts/telaviv-brutalistregular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "TA Brutalist"; src: url("../fonts/telaviv-brutalistbold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "TA Modernist"; src: url("../fonts/telaviv-modernistregular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "TA Modernist"; src: url("../fonts/telaviv-modernistbold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0b1d33;
  --navy: #133a60;
  --navy-2: #1b4a78;
  --gold: #c18f2e;
  --gold-2: #d9b067;
  --gold-3: #f0dcae;
  --paper: #f7f2e8;
  --paper-2: #efe7d7;
  --white: #fffdf8;
  --text: #1a2638;
  --muted: #5d6878;
  --line: rgba(19, 58, 96, .14);
  --line-light: rgba(255, 253, 248, .14);

  --f-display: "TA Brutalist", "Assistant", system-ui, sans-serif;
  --f-ui: "TA Modernist", "Assistant", system-ui, sans-serif;
  --f-serif: "Frank Ruhl Libre", "David Libre", Georgia, serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--f-ui); font-size: 17px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 999; background: var(--gold); color: var(--ink); padding: 10px 18px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grain overlay for dark surfaces */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-display); font-weight: 400; font-size: 14px; letter-spacing: .14em; color: var(--gold);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(34px, 5vw, 68px); color: var(--navy); }
.section-title .thin { font-weight: 300; }
.on-dark .section-title { color: var(--white); }
.gold { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--gold); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: .02em;
  overflow: hidden; isolation: isolate; transition: color .4s var(--ease), transform .4s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white);
  transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn .arrow { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(-5px); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost::before { background: var(--gold); }
.btn--ghost:hover { color: var(--ink); }
.btn--navy { --bg: var(--navy); --fg: var(--white); }
.btn--navy::before { background: var(--gold); }
.btn--navy:hover { color: var(--ink); }

.link-u { position: relative; display: inline-flex; gap: 8px; align-items: center; font-family: var(--f-display); font-weight: 700; color: var(--navy); }
.link-u::after { content: ""; position: absolute; bottom: -3px; inset-inline: 0; height: 1px; background: var(--gold); transform: scaleX(.25); transform-origin: right; transition: transform .5s var(--ease); }
.link-u:hover::after { transform: scaleX(1); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; color: var(--white);
  transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s, transform .5s var(--ease), height .4s var(--ease);
}
.header.is-solid { background: rgba(247, 242, 232, .9); color: var(--navy); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); --header-h: 72px; }
.header.is-hidden { transform: translateY(-100%); }
.page--light .header { color: var(--navy); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
/* logo lockup: line sizes are derived from --bw so every line has the same width, like the original logo */
.brand { --bw: 166px; display: flex; align-items: center; gap: calc(var(--bw) * .085); flex-shrink: 0; color: var(--white); }
.brand__mark { position: relative; display: block; flex-shrink: 0; height: calc(var(--bw) * .4); aspect-ratio: 1; transition: transform .6s var(--ease); }
.brand__mark .em { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .45s var(--ease); }
.em--onLight { opacity: 0; }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__txt { display: flex; flex-direction: column; width: var(--bw); font-family: var(--f-display); }
.bl { display: block; white-space: nowrap; line-height: 1; }
.bl1 { font-weight: 700; font-size: calc(var(--bw) * .1186); }
.bl-bar { display: block; width: 50%; align-self: flex-end; height: max(2px, calc(var(--bw) * .024)); border-radius: 99px; background: var(--gold); margin: calc(var(--bw) * .032) 0 calc(var(--bw) * .04); }
.bl2 { font-weight: 400; font-size: calc(var(--bw) * .0876); margin-bottom: calc(var(--bw) * .016); }
.bl3 { font-weight: 700; font-size: calc(var(--bw) * .0852); color: var(--gold); }
.header.is-solid .brand { color: var(--navy); }
.header.is-solid .em--onDark { opacity: 0; }
.header.is-solid .em--onLight { opacity: 1; }
.menu-open .header .em--onDark { opacity: 1; }
.menu-open .header .em--onLight { opacity: 0; }
.menu-open .header .brand { color: var(--white); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link { position: relative; padding: 10px 14px; font-family: var(--f-display); font-size: 16px; font-weight: 400; border-radius: 999px; transition: background .3s; }
.nav__link::after { content: ""; position: absolute; bottom: 4px; inset-inline: 14px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .45s var(--ease); transform-origin: right; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-inline-start: 10px; padding: 12px 22px; font-size: 15px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; direction: ltr; }
.header__phone svg { width: 16px; color: var(--gold); }

.burger { display: none; width: 48px; height: 48px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px currentColor; }
.burger span { position: absolute; inset-inline: 14px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 19px; } .burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--white);
  padding: calc(var(--header-h) + 30px) var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px;
  clip-path: circle(0% at 10% 4%); transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at 10% 4%); visibility: visible; }
.menu-open .header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; }
.mobile-menu a.m-link { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 8vw, 44px); padding: 6px 0; border-bottom: 1px solid var(--line-light); display: flex; justify-content: space-between; align-items: baseline; }
.mobile-menu a.m-link small { font-weight: 300; font-size: 14px; color: var(--gold); }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 10px; font-family: var(--f-display); }
.mobile-menu__foot a { color: var(--gold-2); }

@media (max-width: 1080px) {
  .nav, .header__phone { display: none; }
  .burger { display: block; }
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--ink); display: grid; place-items: center; }
.preloader__mark { position: relative; width: 120px; height: 136px; }
.preloader__half { position: absolute; top: 0; width: 50%; height: 100%; }
.preloader__half--r { right: 0; background: var(--navy-2); border-radius: 0 22px 22px 0; transform-origin: left; }
.preloader__half--l { left: 0; background: var(--gold); border-radius: 22px 0 0 22px; }
.preloader__half--r { border-radius: 22px 0 0 22px; right: 50%; left: auto; }
.preloader__half--l { border-radius: 0 22px 22px 0; left: 50%; }
.preloader__line { position: absolute; bottom: -34px; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); }
.preloader__txt { position: absolute; top: calc(100% + 54px); left: 50%; transform: translateX(-50%); white-space: nowrap; color: var(--gold-2); font-family: var(--f-display); font-weight: 300; letter-spacing: .2em; font-size: 14px; opacity: 0; }
html:not(.js) .preloader, .no-preload .preloader { display: none; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; background: var(--ink); color: var(--white);
  display: flex; align-items: stretch; overflow: hidden;
  padding-top: var(--header-h);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg::before {
  content: ""; position: absolute; width: 1100px; height: 1100px; border-radius: 50%;
  left: -340px; top: -280px; background: radial-gradient(circle, rgba(27, 74, 120, .9), transparent 62%);
}
.hero__bg::after {
  content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%;
  right: -200px; bottom: -380px; background: radial-gradient(circle, rgba(193, 143, 46, .22), transparent 65%);
}
.hero__lines { position: absolute; inset: 0; z-index: -1; opacity: .5; }
.hero__lines line { stroke: rgba(255, 253, 248, .06); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 80px); align-items: center; width: 100%; padding-block: clamp(40px, 6vw, 80px) clamp(80px, 9vw, 120px); }
.hero__kicker { margin-bottom: 28px; }
.hero__title { font-size: clamp(46px, 7.6vw, 118px); line-height: .98; letter-spacing: -.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; }
.hero__title .thin { font-weight: 300; }
.hero__title em { font-style: normal; color: var(--gold); position: relative; }
.hero__lead { margin-top: 32px; max-width: 540px; font-size: clamp(17px, 1.4vw, 20px); color: rgba(255, 253, 248, .74); line-height: 1.8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__actions .btn--ghost { color: var(--white); }

.hero__visual { position: relative; justify-self: center; width: min(100%, 470px); }
.arch {
  position: relative; aspect-ratio: 4/5; border-radius: 999px 999px 26px 26px; overflow: hidden;
  background: var(--navy); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .65);
}
.arch img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 20%; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 29, 51, .55)); pointer-events: none; }
.arch-frame { position: absolute; inset: -16px; border: 1px solid rgba(217, 176, 103, .55); border-radius: 999px 999px 34px 34px; pointer-events: none; }
.arch-frame--2 { inset: -32px; border-color: rgba(217, 176, 103, .18); border-radius: 999px 999px 42px 42px; }
.hero__chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 22px;
  background: rgba(255, 253, 248, .08); border: 1px solid rgba(255, 253, 248, .16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 16px; font-family: var(--f-display); font-size: 15px; white-space: nowrap;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5);
}
.hero__chip b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.hero__chip b svg { width: 17px; }
.hero__chip--1 { top: 14%; right: -16%; }
.hero__chip--2 { top: 50%; left: -18%; }
.hero__chip--3 { bottom: 9%; right: -10%; }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 12px; letter-spacing: .25em; color: rgba(255, 253, 248, .55); }
.hero__scroll i { width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: start; }
  .hero__visual { width: min(78%, 360px); margin-top: 30px; }
  .hero__chip { font-size: 13px; padding: 9px 14px; }
  .hero__chip b { width: 28px; height: 28px; }
  .hero__chip--1 { right: -12%; top: 10%; }
  .hero__chip--2 { left: -14%; }
  .hero__chip--3 { right: -8%; }
  .hero__scroll { display: none; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--gold); color: var(--ink); overflow: hidden; padding: 22px 0; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; gap: 0; will-change: transform; }
.marquee__item { display: flex; align-items: center; gap: 36px; padding-inline-end: 36px; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 32px); white-space: nowrap; }
.marquee__item svg { width: 22px; height: 22px; flex-shrink: 0; opacity: .7; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(80px, 11vw, 160px); position: relative; }
.section--dark { background: var(--ink); color: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--paper2 { background: var(--paper-2); }
.section__head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); max-width: 860px; }
.section__head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.section__head p { color: var(--muted); font-size: 19px; max-width: 620px; margin: 0; }
.on-dark .section__head p, .section--dark .section__head p, .section--navy .section__head p { color: rgba(255, 253, 248, .68); }
@media (max-width: 760px) { .section__head--split { grid-template-columns: 1fr; } }

/* ---------- intro / manifesto ---------- */
.intro { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 6vw, 100px); }
.intro__aside { position: sticky; top: 130px; align-self: start; }
.intro__q { font-family: var(--f-display); font-weight: 300; font-size: 22px; color: var(--navy); line-height: 1.4; margin-top: 22px; }
.manifesto { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 3.3vw, 46px); line-height: 1.32; color: var(--navy); letter-spacing: -.01em; }
.manifesto .w { opacity: .14; transition: opacity .2s; }
html:not(.js) .manifesto .w, .reduced .manifesto .w { opacity: 1; }
.manifesto strong { color: var(--gold); font-weight: 700; }
.intro__more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--line); }
.intro__more p { color: var(--muted); font-size: 17.5px; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro__aside { position: static; } .intro__more { grid-template-columns: 1fr; } }

/* ---------- pillars ---------- */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.pillar {
  position: relative; display: grid; grid-template-columns: 90px 1.1fr 1.4fr 60px; gap: 30px; align-items: center;
  padding: 38px 10px; border-bottom: 1px solid var(--line-light); overflow: hidden; isolation: isolate;
}
.pillar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(193, 143, 46, .0), rgba(193, 143, 46, .12)); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.pillar:hover::before { transform: scaleY(1); }
.pillar__num { font-family: var(--f-display); font-weight: 300; font-size: 18px; color: var(--gold); letter-spacing: .1em; }
.pillar__title { font-size: clamp(26px, 3vw, 42px); transition: transform .6s var(--ease); }
.pillar:hover .pillar__title { transform: translateX(-12px); }
.pillar__lead { color: rgba(255, 253, 248, .66); margin: 0 0 14px; font-size: 16.5px; }
.pillar__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pillar__tags a { font-size: 14px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-light); color: rgba(255, 253, 248, .85); transition: background .3s, color .3s, border-color .3s; }
.pillar__tags a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pillar__go { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); transition: background .4s, transform .5s var(--ease), border-color .4s; }
.pillar__go svg { width: 20px; }
.pillar:hover .pillar__go { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: rotate(-45deg); }
@media (max-width: 900px) {
  .pillar { grid-template-columns: 50px 1fr; gap: 10px 18px; padding: 30px 0; }
  .pillar__body { grid-column: 2; }
  .pillar__go { display: none; }
}

/* ---------- quote ---------- */
.quote { position: relative; text-align: center; max-width: 1060px; margin-inline: auto; }
.quote__mark { font-family: var(--f-serif); font-size: clamp(120px, 16vw, 220px); line-height: .6; color: var(--gold); height: .55em; display: block; }
.quote blockquote { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(23px, 2.9vw, 40px); line-height: 1.5; color: var(--navy); }
.quote blockquote .hl { background: linear-gradient(transparent 62%, rgba(193, 143, 46, .32) 62%); background-size: 0% 100%; background-repeat: no-repeat; background-position: right; }
html:not(.js) .quote blockquote .hl, .reduced .quote blockquote .hl { background-size: 100% 100%; }
.quote figcaption { margin-top: 34px; font-family: var(--f-display); color: var(--muted); letter-spacing: .06em; }
.quote figcaption::before { content: ""; display: block; width: 60px; height: 1px; background: var(--gold); margin: 0 auto 18px; }

/* ---------- process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; }
.process__line { position: absolute; top: 34px; inset-inline: 34px; height: 1px; background: var(--line); }
.process__line i { position: absolute; inset: 0; background: var(--gold); transform-origin: right; transform: scaleX(0); }
html:not(.js) .process__line i, .reduced .process__line i { transform: scaleX(1); }
.step { position: relative; }
.step__dot { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--gold); font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--navy); transition: background .5s, color .5s; }
.step.is-on .step__dot { background: var(--gold); color: var(--ink); }
.step h3 { font-size: 24px; color: var(--navy); margin: 26px 0 12px; }
.step p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 34px; }
  .process__line { top: 34px; bottom: 34px; inset-inline: auto; right: 34px; width: 1px; height: auto; }
  .process__line i { transform-origin: top; transform: scaleY(0); }
  .step { display: grid; grid-template-columns: 68px 1fr; gap: 22px; }
  .step h3 { margin-top: 14px; }
}

/* ---------- cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  position: relative; padding: 38px 34px 34px; border-radius: var(--radius); background: rgba(255, 253, 248, .04);
  border: 1px solid var(--line-light); overflow: hidden; display: flex; flex-direction: column; min-height: 400px;
  transition: transform .6s var(--ease), border-color .5s, background .5s;
}
.case:hover { transform: translateY(-8px); border-color: rgba(217, 176, 103, .5); background: rgba(255, 253, 248, .07); }
.case__glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(193, 143, 46, .25), transparent 65%); pointer-events: none; transform: translate(-50%, -50%); left: var(--mx, 50%); top: var(--my, 0%); opacity: 0; transition: opacity .4s; }
.case:hover .case__glow { opacity: 1; }
.case__tag { font-family: var(--f-display); font-size: 13px; letter-spacing: .14em; color: var(--gold-2); }
.case .case__big { font-family: var(--f-serif); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.25; margin: 22px 0 18px; color: var(--white); }
.case p:not(.case__big) { color: rgba(255, 253, 248, .66); font-size: 16px; margin-top: auto; }
.case__court { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-light); font-size: 14px; color: rgba(255, 253, 248, .55); }
.case__court svg { width: 18px; color: var(--gold); }
@media (max-width: 980px) { .cases { grid-template-columns: 1fr; } .case { min-height: 0; } }

/* ---------- credentials ---------- */
.cred { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.cred__doc { position: relative; perspective: 1200px; }
.cred__paper { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(11, 29, 51, .55), 0 0 0 1px rgba(19, 58, 96, .08); transform: rotate(-3deg); transform-style: preserve-3d; background: #fff; transition: transform .2s ease-out; }
.cred__paper img { width: 100%; }
.cred__seal { position: absolute; width: 130px; height: 130px; inset-inline-start: -40px; bottom: -40px; }
.cred__seal svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cred__list { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.cred__item { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cred__item b { font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--navy); display: block; margin-bottom: 4px; }
.cred__item span { color: var(--muted); font-size: 16px; }
.cred__ico { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; }
.cred__ico svg { width: 22px; }
@media (max-width: 900px) { .cred { grid-template-columns: 1fr; } .cred__doc { max-width: 440px; margin-inline: auto; } }

/* ---------- library teaser ---------- */
.lib { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.lib__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 46px; border-top: 1px solid var(--line-light); }
.lib__stat { padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.lib__stat:nth-child(odd) { border-inline-end: 1px solid var(--line-light); }
.lib__stat:nth-child(even) { padding-inline-start: 26px; }
.lib__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 5vw, 72px); line-height: 1; color: var(--gold); }
.lib__label { color: rgba(255, 253, 248, .66); font-size: 15px; margin-top: 8px; }
.lib__cats { display: grid; gap: 0; }
.lib__cat { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 6px; border-bottom: 1px solid var(--line-light); font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px); transition: padding .5s var(--ease), color .3s; }
.lib__cat:first-child { border-top: 1px solid var(--line-light); }
.lib__cat small { font-family: var(--f-ui); font-size: 14px; color: rgba(255, 253, 248, .5); display: flex; align-items: center; gap: 14px; }
.lib__cat small svg { width: 18px; opacity: 0; transform: translateX(10px); transition: .4s var(--ease); color: var(--gold); }
.lib__cat:hover { padding-inline-start: 18px; color: var(--gold-2); }
.lib__cat:hover small svg { opacity: 1; transform: none; }
@media (max-width: 900px) { .lib { grid-template-columns: 1fr; } }

/* ---------- CTA / contact ---------- */
.cta { position: relative; overflow: hidden; background: var(--navy); color: var(--white); border-radius: calc(var(--radius) * 1.6); padding: clamp(40px, 6vw, 90px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.cta::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; left: -260px; top: -300px; background: radial-gradient(circle, rgba(193, 143, 46, .28), transparent 65%); }
.cta > * { position: relative; }
.cta__title { font-size: clamp(32px, 3.7vw, 54px); }
.cta__title .thin { font-weight: 300; display: block; }
.cta__lines { display: grid; gap: 14px; margin-top: 34px; }
.cta__line { display: flex; align-items: center; gap: 16px; font-family: var(--f-display); font-size: 20px; }
.cta__line i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 253, 248, .08); border: 1px solid var(--line-light); color: var(--gold-2); flex-shrink: 0; transition: background .3s, color .3s; }
.cta__line i svg { width: 19px; }
.cta__line:hover i { background: var(--gold); color: var(--ink); }
.cta__line span[dir="ltr"] { unicode-bidi: isolate; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } }

.form { display: grid; gap: 14px; background: rgba(255, 253, 248, .06); border: 1px solid var(--line-light); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); backdrop-filter: blur(10px); }
.form h3 { font-size: 24px; margin-bottom: 6px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 22px 18px 10px; border-radius: 14px; border: 1px solid var(--line-light);
  background: rgba(11, 29, 51, .35); color: var(--white); font: inherit; font-size: 16px; outline: none;
  transition: border-color .3s, background .3s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field label { position: absolute; top: 16px; inset-inline-start: 18px; font-size: 15px; color: rgba(255, 253, 248, .55); pointer-events: none; transition: .25s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--gold); background: rgba(11, 29, 51, .55); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; font-size: 12px; color: var(--gold-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__note { font-size: 13px; color: rgba(255, 253, 248, .5); margin: 0; }
.form .btn { justify-content: center; }
.form__ok { display: none; padding: 14px; border-radius: 12px; background: rgba(193, 143, 46, .18); color: var(--gold-3); font-size: 15px; }
.form.is-sent .form__ok { display: block; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
/* light variant */
.form--light { background: var(--white); border-color: var(--line); color: var(--text); box-shadow: 0 30px 70px -40px rgba(11, 29, 51, .35); }
.form--light .field input, .form--light .field textarea { background: var(--paper); border-color: var(--line); color: var(--text); }
.form--light .field label { color: var(--muted); }
.form--light .field input:focus, .form--light .field textarea:focus { background: #fff; }
.form--light .field input:focus + label, .form--light .field input:not(:placeholder-shown) + label,
.form--light .field textarea:focus + label, .form--light .field textarea:not(:placeholder-shown) + label { color: var(--gold); }
.form--light .form__note { color: var(--muted); }
.form--light h3 { color: var(--navy); }
.form--light .form__ok { color: var(--navy); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: rgba(255, 253, 248, .75); padding-top: clamp(70px, 9vw, 120px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer h4 { font-size: 15px; letter-spacing: .14em; color: var(--gold-2); font-weight: 400; margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { transition: color .3s; }
.footer a:hover { color: var(--gold-2); }
.footer__logo { --bw: 230px; margin-bottom: 26px; }
.footer__brand p { max-width: 330px; font-size: 15px; }
.footer__giant { font-family: var(--f-display); font-weight: 700; font-size: calc((min(100vw, var(--wrap)) - 2 * var(--gutter) - 20px) * .108); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(217, 176, 103, .28); white-space: nowrap; text-align: center; margin-bottom: -.12em; user-select: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 26px 0; border-top: 1px solid var(--line-light); font-size: 14px; color: rgba(255, 253, 248, .5); }
.footer__bottom nav { display: flex; gap: 20px; }
.footer__credit { text-align: center; padding: 0 0 26px; margin-top: -6px; }
.footer__credit a { display: inline-block; font-size: 13px; line-height: 1; color: rgba(255, 253, 248, .5); }
.footer__credit a:hover { color: rgba(255, 253, 248, .9); }
.footer__credit svg { display: inline-block; height: 1.4em; width: auto; vertical-align: -.36em; }
.footer__credit .ascr-cur { stroke: var(--ink); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* floating action */
.fab { position: fixed; z-index: 80; inset-inline-start: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; }
.fab a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); box-shadow: 0 14px 30px -10px rgba(11, 29, 51, .55); transition: transform .4s var(--ease); }
.fab a:hover { transform: scale(1.08); }
.fab a svg { width: 24px; }
.fab a.fab__wa { background: #1f9d55; color: #fff; }
.fab { transform: translateY(140%); transition: transform .6s var(--ease); }
.fab.is-on { transform: none; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.phero { position: relative; background: var(--ink); color: var(--white); padding: calc(var(--header-h) + clamp(60px, 9vw, 120px)) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.phero::before { content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; left: -300px; top: -360px; background: radial-gradient(circle, rgba(27, 74, 120, .85), transparent 62%); }
.phero::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -140px; bottom: -320px; background: radial-gradient(circle, rgba(193, 143, 46, .2), transparent 65%); }
.phero > .wrap { position: relative; z-index: 1; }
.phero__title { font-size: clamp(40px, 6.4vw, 96px); margin-top: 22px; max-width: 15ch; }
.phero__title .thin { font-weight: 300; }
.phero__lead { max-width: 640px; margin-top: 26px; font-size: 19px; color: rgba(255, 253, 248, .72); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: rgba(255, 253, 248, .55); font-family: var(--f-display); }
.crumbs a:hover { color: var(--gold-2); }
.crumbs span[aria-hidden] { color: var(--gold); }

/* about */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about-photo { position: sticky; top: 120px; }
.about-photo .arch { box-shadow: 0 40px 80px -40px rgba(11, 29, 51, .6); }
.about-photo .arch-frame { border-color: rgba(193, 143, 46, .55); }
.about-photo .arch-frame--2 { border-color: rgba(193, 143, 46, .2); }
.prose { font-size: 18.5px; line-height: 1.9; }
.prose p { margin-bottom: 1.2em; }
.prose .lead-p { font-family: var(--f-display); font-weight: 300; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.45; color: var(--navy); }
.prose h2 { font-size: clamp(28px, 3vw, 40px); color: var(--navy); margin: 1.6em 0 .6em; }
.prose h3 { font-size: 24px; color: var(--navy); margin: 1.6em 0 .5em; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value { padding: 40px 28px; border-inline-start: 1px solid var(--line); }
.value:first-child { border-inline-start: 0; }
.value__n { font-family: var(--f-display); font-weight: 300; color: var(--gold); font-size: 15px; letter-spacing: .14em; }
.value h3 { font-size: 30px; color: var(--navy); margin: 18px 0 12px; }
.value p { color: var(--muted); font-size: 16px; margin: 0; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-photo { position: static; max-width: 380px; } .values { grid-template-columns: 1fr 1fr; } .value:nth-child(3) { border-inline-start: 0; } .value { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } .value { border-inline-start: 0; } }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.tier { padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.tier b { font-family: var(--f-display); font-size: 22px; color: var(--navy); display: block; margin-bottom: 8px; }
.tier span { color: var(--muted); font-size: 16px; }
@media (max-width: 700px) { .tiers { grid-template-columns: 1fr; } }

/* services index */
.svc-group { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px, 6vw, 90px); padding-block: clamp(50px, 7vw, 90px); border-top: 1px solid var(--line); }
.svc-group:first-child { border-top: 0; padding-top: 0; }
.svc-group__head { position: sticky; top: 120px; align-self: start; }
.svc-group__num { font-family: var(--f-display); font-weight: 300; color: var(--gold); letter-spacing: .14em; }
.svc-group__head h2 { font-size: clamp(32px, 3.4vw, 46px); color: var(--navy); margin: 14px 0 16px; }
.svc-group__head p { color: var(--muted); }
.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; min-height: 220px; }
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); clip-path: circle(0 at 0 100%); transition: clip-path .8s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11, 29, 51, .45); border-color: transparent; }
.svc-card:hover::before { clip-path: circle(150% at 0 100%); }
.svc-card h3 { font-size: 25px; color: var(--navy); transition: color .4s; }
.svc-card p { color: var(--muted); font-size: 15.5px; margin: 0; transition: color .4s; }
.svc-card .more { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; font-family: var(--f-display); font-size: 15px; color: var(--gold); }
.svc-card .more svg { width: 16px; transition: transform .4s var(--ease); }
.svc-card:hover h3 { color: var(--white); }
.svc-card:hover p { color: rgba(255, 253, 248, .7); }
.svc-card:hover .more svg { transform: translateX(-6px); }
@media (max-width: 1000px) { .svc-group { grid-template-columns: 1fr; } .svc-group__head { position: static; } }
@media (max-width: 640px) { .svc-cards { grid-template-columns: 1fr; } }

/* service page */
.svc-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(40px, 6vw, 90px); align-items: start; }
.svc-body .prose p:first-of-type::first-letter { font-family: var(--f-display); font-weight: 700; float: right; font-size: 3.6em; line-height: .9; margin: .08em 0 0 .12em; color: var(--gold); }
.callout { position: relative; margin: 40px 0; padding: 36px 40px; border-radius: var(--radius); background: var(--navy); color: var(--white); font-size: 19px; line-height: 1.8; overflow: hidden; }
.callout::before { content: "״"; position: absolute; inset-inline-end: 24px; top: -40px; font-family: var(--f-serif); font-size: 200px; color: rgba(217, 176, 103, .18); line-height: 1; }
.callout__label { display: block; font-family: var(--f-display); font-size: 13px; letter-spacing: .16em; color: var(--gold-2); margin-bottom: 12px; }
.side { position: sticky; top: 110px; display: grid; gap: 18px; }
.side-box { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.side-box h4 { font-size: 15px; letter-spacing: .12em; color: var(--gold); font-weight: 400; margin-bottom: 14px; }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; transition: color .3s, padding .4s var(--ease); }
.side-nav li:last-child a { border-bottom: 0; }
.side-nav a:hover, .side-nav a[aria-current] { color: var(--gold); padding-inline-start: 8px; }
.side-nav a[aria-current] { font-weight: 700; }
.side-cta { background: var(--ink); color: var(--white); border: 0; }
.side-cta h4 { color: var(--gold-2); }
.side-cta p { color: rgba(255, 253, 248, .7); font-size: 15px; }
.side-cta .btn { width: 100%; justify-content: center; margin-top: 6px; }
.side-cta .btn + .btn { margin-top: 10px; }
@media (max-width: 1000px) { .svc-layout { grid-template-columns: 1fr; } .side { position: static; } }

.rel { margin-top: 60px; }
.rel h3 { font-size: 26px; color: var(--navy); margin-bottom: 20px; }

/* ==========================================================================
   Rulings library
   ========================================================================== */
.lib-tools { position: sticky; top: 72px; z-index: 20; background: rgba(247, 242, 232, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 18px 0; border-bottom: 1px solid var(--line); }
.search { position: relative; }
.search input { width: 100%; padding: 18px 56px 18px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: inherit; font-size: 17px; color: var(--text); outline: none; transition: border-color .3s, box-shadow .3s; }
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(193, 143, 46, .15); }
.search svg { position: absolute; top: 50%; right: 22px; width: 20px; transform: translateY(-50%); color: var(--gold); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 15px; font-family: var(--f-display); color: var(--navy); transition: .3s; display: inline-flex; gap: 8px; align-items: center; }
.chip small { font-family: var(--f-ui); font-size: 12px; color: var(--muted); }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip[aria-pressed="true"] small { color: var(--gold-2); }
.results-meta { display: flex; justify-content: space-between; align-items: center; margin: 34px 0 18px; color: var(--muted); font-size: 15px; }
.rlist { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ritem { display: grid; grid-template-columns: 130px 1fr 40px; gap: 26px; align-items: center; padding: 26px 8px; border-bottom: 1px solid var(--line); transition: background .4s, padding .5s var(--ease); }
.ritem:hover { background: var(--white); padding-inline-start: 20px; }
.ritem__cat { font-family: var(--f-display); font-size: 13px; color: var(--gold); letter-spacing: .06em; }
.ritem h3 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(19px, 1.7vw, 23px); color: var(--navy); line-height: 1.4; }
.ritem__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.ritem__meta span { display: inline-flex; gap: 6px; align-items: center; }
.ritem__go { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .4s var(--ease); color: var(--navy); }
.ritem__go svg { width: 16px; }
.ritem:hover .ritem__go { background: var(--gold); border-color: var(--gold); transform: rotate(-45deg); }
.ritem mark { background: rgba(193, 143, 46, .3); color: inherit; border-radius: 3px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); display: none; }
@media (max-width: 760px) { .ritem { grid-template-columns: 1fr 36px; gap: 8px 14px; } .ritem__cat { grid-column: 1 / -1; } }
.disclaimer { margin-top: 50px; padding: 22px 26px; border-radius: 16px; background: var(--paper-2); color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ruling / article reading */
.read-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 120; background: var(--gold); transform-origin: right; transform: scaleX(0); }
.doc-hero .phero__title { font-family: var(--f-serif); font-weight: 500; font-size: clamp(30px, 4.2vw, 58px); max-width: 24ch; line-height: 1.25; letter-spacing: 0; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.doc-meta span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-light); font-size: 14px; color: rgba(255, 253, 248, .8); }
.doc-meta svg { width: 15px; color: var(--gold-2); }
.reader { display: grid; grid-template-columns: 1fr 320px; gap: clamp(40px, 6vw, 90px); align-items: start; }
.doc {
  font-family: var(--f-serif); font-size: clamp(18px, 1.25vw, 20px); line-height: 2; color: #18202c;
  max-width: 74ch;
}
.doc p { margin: 0 0 1.05em; text-align: justify; text-justify: inter-word; }
.doc h2 { font-family: var(--f-display); font-size: clamp(22px, 2vw, 28px); color: var(--navy); margin: 2em 0 .7em; line-height: 1.35; display: flex; gap: 14px; align-items: baseline; }
.doc h2::before { content: ""; flex-shrink: 0; width: 22px; height: 2px; background: var(--gold); transform: translateY(-6px); }
.doc .doc-quote { border-inline-start: 3px solid var(--gold); padding: 6px 22px; background: rgba(193, 143, 46, .06); border-radius: 0 10px 10px 0; color: #2a3446; }
.doc-card { padding: 26px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); margin-bottom: 40px; font-family: var(--f-ui); font-size: 15.5px; line-height: 1.7; display: grid; gap: 12px; }
.doc-card div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; }
.doc-card dt, .doc-card b { color: var(--gold); font-family: var(--f-display); font-weight: 400; font-size: 14px; letter-spacing: .04em; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; max-height: 46vh; overflow: auto; }
.toc a { display: block; padding: 8px 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); border-inline-start: 2px solid transparent; padding-inline-start: 12px; transition: .3s; }
.toc a:hover, .toc a.is-active { color: var(--navy); border-color: var(--gold); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 70px; }
.pn a { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); display: grid; gap: 8px; transition: border-color .3s, transform .4s var(--ease); }
.pn a:hover { border-color: var(--gold); transform: translateY(-4px); }
.pn small { color: var(--gold); font-family: var(--f-display); letter-spacing: .08em; }
.pn b { font-family: var(--f-serif); font-weight: 500; color: var(--navy); font-size: 18px; line-height: 1.4; }
.pn a:last-child { text-align: left; }
@media (max-width: 1000px) { .reader { grid-template-columns: 1fr; } .reader .side { position: static; } .toc-box { display: none; } }
@media (max-width: 640px) { .pn { grid-template-columns: 1fr; } .doc p { text-align: start; } .doc-card div { grid-template-columns: 1fr; gap: 2px; } }

/* articles */
.acards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.acard { position: relative; padding: 40px; border-radius: var(--radius); background: var(--navy); color: var(--white); display: grid; gap: 16px; overflow: hidden; min-height: 320px; transition: transform .5s var(--ease); }
.acard:hover { transform: translateY(-6px); }
.acard::after { content: "א"; position: absolute; inset-inline-start: 20px; bottom: -60px; font-family: var(--f-serif); font-size: 260px; line-height: 1; color: rgba(217, 176, 103, .1); }
.acard h3 { font-family: var(--f-serif); font-weight: 500; font-size: 30px; line-height: 1.3; }
.acard p { color: rgba(255, 253, 248, .7); }
.acard small { color: var(--gold-2); font-family: var(--f-display); letter-spacing: .12em; }
@media (max-width: 800px) { .acards { grid-template-columns: 1fr; } }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.cinfo { display: grid; gap: 14px; }
.cinfo a { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.cinfo a:hover { border-color: var(--gold); transform: translateX(-6px); }
.cinfo i { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; }
.cinfo i svg { width: 24px; }
.cinfo small { display: block; color: var(--muted); font-size: 14px; }
.cinfo b { font-family: var(--f-display); font-size: 22px; color: var(--navy); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--white); padding: 120px var(--gutter) 60px; }
.nf h1 { font-size: clamp(120px, 22vw, 300px); color: transparent; -webkit-text-stroke: 1.5px var(--gold); line-height: .9; }

/* ==========================================================================
   Motion helpers (only when JS is active and motion allowed)
   ========================================================================== */
.js:not(.reduced) [data-reveal] { opacity: 0; transform: translateY(40px); }
.js:not(.reduced) [data-reveal="fade"] { transform: none; }
.js:not(.reduced) [data-reveal="scale"] { transform: scale(.94); }
.js:not(.reduced) .split-line > span { display: inline-block; transform: translateY(110%); }
.split-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.js:not(.reduced) .hero__title .line > span { transform: translateY(110%); }
.js:not(.reduced) .hero [data-hero], .js:not(.reduced) .phero [data-hero] { opacity: 0; }
.js:not(.reduced) .arch-mask { clip-path: inset(100% 0 0 0 round 999px 999px 26px 26px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* latin text (emails) — the Tel Aviv families set Latin in caps */
a[href^="mailto:"], a[href^="mailto:"] span, a[href^="mailto:"] b, .latin { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* mobile hardening */
html, body { overflow-x: clip; }
@media (max-width: 520px) {
  .header .brand { --bw: 138px; }
  .footer__logo { --bw: 200px; }
  .burger { width: 44px; height: 44px; flex-shrink: 0; }
  .burger span { inset-inline: 12px; }
  .burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
  .hero__title { font-size: clamp(44px, 13vw, 64px); }
  .section-title { font-size: clamp(32px, 9vw, 44px); }
  .fab { inset-inline-start: 14px; bottom: 14px; }
  .fab a { width: 50px; height: 50px; }
  .lib__stat:nth-child(even) { padding-inline-start: 16px; }
  .cta { padding: 34px 20px; }
}
.section__head--split > .btn { justify-self: start; }

/* ---------- hero v2: atmosphere image ---------- */
.hero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: var(--ink); }
.hero__img { width: 100%; height: 100% !important; object-fit: cover; object-position: 30% 55%; transform-origin: 30% 60%; }
.hero__shade { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(270deg, rgba(11,29,51,.96) 0%, rgba(11,29,51,.88) 34%, rgba(11,29,51,.45) 66%, rgba(11,29,51,.2) 100%),
    linear-gradient(0deg, rgba(11,29,51,.9) 0%, rgba(11,29,51,0) 32%),
    linear-gradient(180deg, rgba(11,29,51,.65) 0%, rgba(11,29,51,0) 22%); }
.hero__lines { z-index: -1; opacity: .35; }
.hero__grid { grid-template-columns: minmax(0, 760px); justify-content: start; }
.hero__badges { list-style: none; margin: 46px 0 0; padding: 26px 0 0; display: flex; flex-wrap: wrap; gap: 14px 30px; border-top: 1px solid var(--line-light); }
.hero__badges li { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 16px; color: rgba(255,253,248,.88); }
.hero__badges b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(217,176,103,.6); color: var(--gold-2); }
.hero__badges svg { width: 17px; }
@media (max-width: 960px) {
  .hero__shade { background: linear-gradient(180deg, rgba(11,29,51,.82) 0%, rgba(11,29,51,.78) 55%, rgba(11,29,51,.95) 100%); }
  .hero__img { object-position: 22% 50%; }
}

/* ---------- intro with portrait ---------- */
.intro { grid-template-columns: minmax(0, 380px) 1fr; align-items: start; }
.intro__aside { top: 110px; }
.intro__photo { position: relative; margin: 34px 34px 0; }
.intro__photo .arch-frame { border-color: rgba(193,143,46,.55); }
.intro__photo .arch-frame--2 { border-color: rgba(193,143,46,.2); }
.intro__photo .hero__chip { background: var(--ink); color: var(--white); border-color: rgba(217,176,103,.35); backdrop-filter: none; }
.intro__photo .hero__chip--1 { top: auto; bottom: 26%; right: auto; left: -54px; }
.intro__photo .hero__chip--3 { bottom: 6%; right: -40px; left: auto; }
.intro__sig { margin: 44px 0 0; text-align: center; display: grid; gap: 4px; }
.intro__sig b { font-family: var(--f-display); font-size: 22px; color: var(--navy); }
.intro__sig span { font-family: var(--f-display); font-weight: 300; color: var(--gold); }
.intro .intro__q { font-size: clamp(22px, 2.2vw, 28px); margin: 18px 0 30px; }
@media (max-width: 860px) {
  .intro__photo { max-width: 320px; margin-inline: auto; }
  .intro__photo .hero__chip--1 { left: -26px; } .intro__photo .hero__chip--3 { right: -22px; }
}
.js:not(.reduced) .page--home .hero__img { opacity: 0; }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .intro__aside { position: static; }
  .intro__sig { margin-top: 30px; }
}

@media (min-width: 1081px) {
  :root { --header-h: 104px; }
  .header.is-solid { --header-h: 84px; }
  .header.is-solid .brand { --bw: 150px; }
}
.brand { transition: --bw .4s; }
/* arrows inside text links */
.link-u svg, svg.arrow { width: 16px; height: 16px; flex-shrink: 0; }

/* living hero */
.hero__media { will-change: transform; inset: -30px; }
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mix-blend-mode: screen; }
.hero__glint { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; mix-blend-mode: soft-light; }
.hero__glint::before { content: ""; position: absolute; top: -20%; bottom: -20%; width: 28%; left: -40%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 190, .55) 50%, transparent); transform: skewX(-18deg);
  animation: glint 9s var(--ease) infinite 3s; }
@keyframes glint { 0% { left: -40%; } 45%, 100% { left: 120%; } }
.reduced .hero__glint, .reduced .hero__dust { display: none; }
@media (min-width: 1081px) { .lib-tools { top: 84px; } }
/* the sticky search bar follows the header: flush to the top when the header slides away */
.lib-tools { transition: top .5s var(--ease); }
.header.is-hidden ~ main .lib-tools { top: 0; }

/* ============ hero v3: fits the viewport height + floating copy objects ============ */
.hero__media { inset: 0; will-change: auto; }
.hero__glint, .hero__dust, .hero__badges { display: none !important; }
.hero { min-height: 100svh; }
.hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); justify-content: stretch; align-items: center;
  min-height: calc(100svh - var(--header-h)); padding-block: clamp(20px, 4vh, 64px) clamp(56px, 9vh, 110px); }
.hero__title { font-size: clamp(42px, min(7vw, 10.5vh), 112px); }
.hero__kicker { margin-bottom: clamp(14px, 2.6vh, 28px); }
.hero__lead { margin-top: clamp(16px, 3vh, 32px); font-size: clamp(16px, min(1.3vw, 2.2vh), 20px); }
.hero__actions { margin-top: clamp(20px, 4vh, 40px); }

.hero__float { position: relative; height: min(64vh, 560px); width: 100%; max-width: 560px; justify-self: center; }
.fl { position: absolute; display: block; }
.fl__in { display: flex; align-items: center; gap: 12px; animation: float 7s ease-in-out infinite; will-change: transform; }
.fl:nth-child(2) .fl__in { animation-duration: 6s; animation-delay: -2s; }
.fl:nth-child(3) .fl__in { animation-duration: 8.5s; animation-delay: -4s; }
.fl:nth-child(4) .fl__in { animation-duration: 7.5s; animation-delay: -1s; }
.fl:nth-child(5) .fl__in { animation-duration: 9s; animation-delay: -3s; }
.fl:nth-child(n+6) .fl__in { animation-duration: 11s; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, -14px, 0) rotate(-1.2deg); } }

.fl--quote .fl__in, .fl--chip .fl__in, .fl--stat .fl__in {
  background: rgba(11, 29, 51, .55); border: 1px solid rgba(217, 176, 103, .28); border-radius: 18px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); color: var(--white);
}
.fl--quote { top: 2%; left: 0; width: 330px; }
.fl--quote .fl__in { flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 26px 20px; }
.fl__mark { font-family: var(--f-serif); font-size: 72px; line-height: .5; height: 30px; color: var(--gold); }
.fl--quote p { margin: 0; font-family: var(--f-serif); font-size: 27px; line-height: 1.3; }
.fl--quote small { font-family: var(--f-display); font-size: 13px; color: var(--gold-2); letter-spacing: .02em; }
.fl--chip .fl__in { padding: 11px 20px 11px 14px; font-family: var(--f-display); font-size: 16px; white-space: nowrap; border-radius: 999px; }
.fl--chip b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--ink); flex-shrink: 0; }
.fl--chip b svg { width: 17px; }
.fl--a { top: 44%; right: 2%; }
.fl--b { top: 60%; left: 0; }
.fl--c { bottom: 4%; left: 34%; }
.fl--stat { top: 12%; right: 0; }
.fl--stat .fl__in { padding: 16px 20px; gap: 14px; }
.fl--stat strong { font-family: var(--f-display); font-size: 52px; line-height: .9; color: var(--gold); }
.fl--stat span { font-family: var(--f-display); font-size: 14px; line-height: 1.35; color: rgba(255, 253, 248, .82); }
.fl--dot .fl__in { width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); display: block; animation-name: float-dot; }
@keyframes float-dot { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(-18px) rotate(135deg); } }
.fl--d1 { top: 36%; left: 44%; }
.fl--d2 { bottom: 26%; right: 12%; opacity: .7; }
.fl--ring .fl__in { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(217, 176, 103, .55); display: block; }
.fl--ring { top: 76%; right: 30%; }
.reduced .fl__in { animation: none; }

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-block: 36px 70px; }
  .hero__title { font-size: clamp(42px, 11vw, 80px); }
  .hero__float { height: auto; max-width: none; justify-self: stretch; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
  .fl { position: static; }
  .fl--stat, .fl--dot, .fl--ring { display: none; }
  .fl--quote { width: 100%; max-width: 420px; margin-bottom: 6px; }
  .fl--quote p { font-size: 22px; }
  .fl--chip .fl__in { font-size: 14px; padding: 8px 14px 8px 10px; }
  .fl--chip b { width: 28px; height: 28px; }
}

/* hamburger without the circle */
.burger { box-shadow: none; border-radius: 0; }
@media (min-width: 1081px) {
  .fl--quote { top: 0; left: 0; width: 350px; }
  .fl--stat { top: 31%; right: 0; }
  .fl--a { top: 50%; right: 20%; }
  .fl--b { top: 64%; left: 0; }
  .fl--c { bottom: 5%; right: 4%; left: auto; }
  .fl--d1 { top: 36%; left: 22%; }
  .fl--d2 { bottom: 22%; left: 48%; right: auto; }
  .fl--ring { top: 82%; left: 12%; right: auto; }
}

/* article extras: bullet lists with bold leads, Q&A paragraphs, closing note */
.doc strong { font-weight: 700; color: var(--navy); }
.doc-list { list-style: none; margin: .4em 0 1.4em; padding: 0; display: grid; gap: .55em; }
.doc-list li { position: relative; padding-inline-start: 26px; }
.doc-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .9em; width: 9px; height: 9px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.doc .doc-qa { padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-align: start; }
.doc .doc-qa strong { display: block; margin-bottom: 4px; font-family: var(--f-display); font-weight: 400; font-size: 1.02em; }
.doc .doc-note { margin-top: 2.4em; padding-top: 1em; border-top: 1px solid var(--line); font-family: var(--f-ui); font-size: 14px; line-height: 1.7; color: var(--muted); text-align: start; }
.acards > .acard:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }

/* credentials: two certificates side by side */
.cred__docs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 34px); align-items: start; padding-bottom: 10px; }
.cred__docs { perspective: 1400px; }
.cred__docs .cred__doc { margin: 0; perspective: 1200px; will-change: transform; }
.cred__docs .cred__paper { display: block; cursor: zoom-in; }
.cred__doc--1 .cred__paper { transform: rotate(-2.5deg); }
.cred__doc--2 { margin-top: clamp(30px, 4vw, 60px); }
.cred__doc--2 .cred__paper { transform: rotate(2deg); }
.cred__docs .cred__paper img { display: block; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; }
.cred__zoom { position: absolute; inset-inline-end: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 29, 51, .82); color: var(--gold-2); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease); }
.cred__zoom svg { width: 18px; }
.cred__paper:hover .cred__zoom, .cred__paper:focus-visible .cred__zoom { opacity: 1; transform: none; }
.cred__doc figcaption { margin-top: 18px; text-align: center; display: grid; gap: 2px; }
.cred__doc figcaption b { font-family: var(--f-display); font-weight: 700; font-size: 17px; color: var(--navy); }
.cred__doc figcaption span { font-size: 13.5px; color: var(--muted); }
.cred__docs .cred__seal { inset-inline-start: auto; left: 50%; bottom: auto; top: 80%; width: 104px; height: 104px; transform: translate(-50%, -50%); z-index: 2; }
@media (min-width: 901px) { .cred { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .cred__docs { max-width: 560px; margin-inline: auto; width: 100%; } }
@media (max-width: 760px) {
  .cred__docs { gap: 14px; }
  .cred__docs .cred__doc { max-width: none; }
  .cred__doc figcaption { margin-top: 12px; }
  .cred__doc figcaption b { font-size: 14.5px; }
  .cred__doc figcaption span { font-size: 12px; }
  .cred__docs .cred__seal { display: none; }
  .cred__zoom { opacity: 1; transform: none; width: 30px; height: 30px; }
}
