/* ============================================================
   OFIR Leadership Center — design system
   Rebuilt as one editorial system: mobile-first, tokenised,
   12-column grid, controlled type scale, restrained motion.
   Bilingual (HE-rtl default / EN-ltr) via logical properties.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root{
  /* Coastal Sage Green palette (extracted) */
  --paper:#ffffff;
  --paper-2:#e9ece5;           /* Mist-tinted soft section band */
  --sand:#d4d6cb;              /* Sand — stronger light tint (token) */
  --ink:#2b3d34;               /* deep evergreen ink */
  --ink-soft:rgba(43,61,52,.78);
  --ink-mute:rgba(43,61,52,.62);
  --deep:#344c3d;              /* Evergreen — dark surface */
  --deep-2:#2c3f34;            /* deeper evergreen — dark section floor */
  --olive:#3f5749;             /* deep sage — accessible label on white */
  --sage:#aeb4ab;              /* soft sage — light accent on dark */
  --blue:#8ea0a8;              /* French blue — cool secondary accent */
  --mistblue:#dfe8e7;          /* French-blue tint — a light band */
  --ivory:#e7e8e2;             /* mist — buttons / marks on dark */
  --ivory-2:#f1f2ee;
  --on-dark:#ebebe9;           /* Mist text on evergreen */
  --on-dark-soft:rgba(235,235,233,.80);
  --on-dark-mute:rgba(235,235,233,.58);

  /* rules / lines */
  --rule:rgba(43,61,52,.15);
  --rule-strong:rgba(43,61,52,.28);
  --rule-dark:rgba(235,235,233,.22);

  /* type families */
  --font-display:'Hammersmith One', sans-serif;
  --font-body:'Varela Round', sans-serif;
  --font-mono:'Roboto Mono', ui-monospace, monospace;

  /* type scale (clamped, controlled) */
  --fs-eyebrow:.72rem;      /* labels */
  --fs-body:1.0625rem;      /* 17px */
  --fs-body-sm:.95rem;
  --fs-h3:clamp(1.2rem, 1rem + .9vw, 1.55rem);
  --fs-h2:clamp(1.9rem, 1.2rem + 3vw, 3.2rem);
  --fs-hero:clamp(2.6rem, 1.4rem + 6.2vw, 5.4rem);
  --lh-tight:1.05;
  --lh-snug:1.16;
  --lh-body:1.7;

  /* readable measures */
  --measure:62ch;
  --measure-tight:48ch;

  /* layout */
  --page-max:1200px;
  --gutter:22px;               /* min side margin on mobile */
  --grid-gap:clamp(18px, 3vw, 32px);

  /* spacing rhythm */
  --space-section:clamp(64px, 9vw, 132px);
  --space-section-lg:clamp(84px, 12vw, 168px);
  --space-block:clamp(28px, 4vw, 52px);

  /* radius (restrained) */
  --radius:3px;
  --radius-media:4px;

  /* motion */
  --ease:cubic-bezier(.22,.61,.36,1);
  --dur:.7s;
  --dur-media:1.05s;

  --header-h:66px;
}

@media (min-width:640px){ :root{ --gutter:32px; } }
@media (min-width:1024px){ :root{ --gutter:48px; --header-h:74px; } }

/* ---------- 2. Reset / base ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:var(--fs-body);
  line-height:var(--lh-body);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img,video{display:block;max-width:100%}
h1,h2,h3,h4{margin:0;font-family:var(--font-display);font-weight:400;letter-spacing:-.015em;line-height:var(--lh-snug)}
p{margin:0}
button{font-family:inherit}
:focus-visible{outline:2px solid var(--olive);outline-offset:3px}

/* ---------- 3. Layout primitives ---------- */
.wrap{
  width:100%;
  max-width:var(--page-max);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.section{padding-block:var(--space-section)}
.section--lg{padding-block:var(--space-section-lg)}
.section--tight{padding-block:clamp(48px,7vw,92px)}
main > section{scroll-margin-top:calc(var(--header-h) + 8px)}

/* stack rhythm inside a text column */
.stack > * + *{margin-top:var(--space-block)}

/* ---------- 4. Shared typography atoms ---------- */
.eyebrow{
  font:500 var(--fs-eyebrow)/1.4 var(--font-mono);
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--olive);
}
.section-head{max-width:var(--measure)}
.section-head .eyebrow{display:block;margin-bottom:16px}
.section-head h2{font-size:var(--fs-h2);text-wrap:balance;max-width:20ch}
.lead{
  font-size:var(--fs-body);
  color:var(--ink-soft);
  max-width:var(--measure);
  line-height:var(--lh-body);
}
.lead + .lead{margin-top:1.1em}
.pre-line{white-space:pre-line}
.rule-line{height:1px;background:var(--rule);border:0;width:100%}

/* ---------- 5. Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;
  padding:14px 22px;
  font:500 .72rem/1 var(--font-mono);
  letter-spacing:.1em;text-transform:uppercase;
  border-radius:var(--radius);
  border:1px solid transparent;
  transition:background .2s var(--ease),color .2s var(--ease),border-color .2s var(--ease);
}
.btn-solid{background:var(--ink);color:var(--ivory-2)}
.btn-solid:hover{background:#323d31}
.btn-outline{border-color:var(--rule-strong);color:var(--ink)}
.btn-outline:hover{background:var(--ink);color:var(--ivory-2);border-color:var(--ink)}
/* on dark backgrounds */
.on-dark .btn-solid{background:var(--ivory);color:var(--deep)}
.on-dark .btn-solid:hover{background:#fff}
.on-dark .btn-outline{border-color:rgba(236,232,220,.5);color:var(--ivory-2)}
.on-dark .btn-outline:hover{background:var(--ivory);color:var(--deep);border-color:var(--ivory)}

/* ---------- 6. Header / navigation ---------- */
header{
  position:sticky;top:0;z-index:60;
  background:rgba(255,255,255,.88);
  backdrop-filter:saturate(1.1) blur(10px);
  border-bottom:1px solid var(--rule);
}
.nav{
  height:var(--header-h);
  width:100%;max-width:var(--page-max);margin-inline:auto;
  padding-inline:var(--gutter);
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.brand{display:inline-flex;align-items:center;min-width:0}
.brand-logo{height:30px;width:auto;object-fit:contain}
.brand-logo-en{display:none}
html[dir="ltr"] .brand-logo-en{display:block}
html[dir="ltr"] .brand-logo-he{display:none}

/* desktop nav list */
nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:26px}
nav li a{
  font:500 .7rem/1 var(--font-mono);
  letter-spacing:.08em;text-transform:uppercase;
  color:var(--ink-soft);
  transition:color .18s var(--ease);
}
nav li a:hover{color:var(--ink)}
nav .lang-switch{display:none}     /* the in-list lang switch is desktop-only fallback; use top bar */

/* top-bar language switch */
/* right-hand header group: keep lang switch + hamburger on one centred line */
.nav-right{display:flex;align-items:center;gap:8px}
.lang-bar{display:inline-flex;align-items:center;gap:8px;line-height:1}
.lang-btn{
  background:none;border:0;cursor:pointer;padding:6px 4px;
  font:500 .82rem/1 var(--font-body);letter-spacing:normal;   /* EN + עברית in the same face */
  color:var(--ink-mute);transition:color .18s var(--ease);
}
.lang-btn:hover{color:var(--ink)}
.lang-btn.active{color:var(--ink)}
.lang-bar span{color:var(--rule-strong);font-size:.82rem;line-height:1}

/* hamburger */
.nav-toggle{
  display:inline-flex;flex-direction:column;justify-content:center;gap:5px;
  width:46px;height:46px;padding:11px;
  background:none;border:0;cursor:pointer;margin-inline-start:auto;
}
.nav-toggle span{display:block;height:2px;width:100%;background:var(--ink);transition:transform .28s var(--ease),opacity .2s var(--ease)}
.nav-open .nav-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-open .nav-toggle span:nth-child(2){opacity:0}
.nav-open .nav-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ----- mobile menu (default: hidden panel) ----- */
@media (max-width:899px){
  nav{
    position:fixed;inset:var(--header-h) 0 auto 0;
    background:var(--paper);
    border-bottom:1px solid var(--rule);
    transform:translateY(-8px);
    opacity:0;visibility:hidden;pointer-events:none;
    transition:opacity .28s var(--ease),transform .28s var(--ease),visibility .28s;
    max-height:calc(100dvh - var(--header-h));
    overflow:auto;
    box-shadow:0 24px 40px -28px rgba(39,48,38,.5);
  }
  .nav-open nav{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
  nav ul{flex-direction:column;align-items:stretch;gap:0;padding:8px var(--gutter) 20px}
  nav li{border-bottom:1px solid var(--rule)}
  nav li:last-child{border-bottom:0}
  nav li a{display:block;padding:16px 2px;font-size:.82rem;letter-spacing:.06em}
  nav .lang-switch{display:none}
}
@media (min-width:900px){
  .nav-toggle{display:none}
  nav{display:flex;align-items:center}
}

/* ---------- 7. Hero ---------- */
.hero{
  position:relative;overflow:hidden;
  background:var(--deep-2);
  color:var(--on-dark);
  min-height:min(92vh,860px);
  display:flex;align-items:flex-end;
}
.hero-video{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;z-index:0;
}
.hero-video-overlay{
  position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(180deg,rgba(20,26,21,.30) 0%,rgba(20,26,21,.12) 34%,rgba(20,26,21,.62) 100%),
    linear-gradient(to left,rgba(20,26,21,.18),rgba(20,26,21,.72));
}
html[dir="ltr"] .hero-video-overlay{
  background:
    linear-gradient(180deg,rgba(20,26,21,.30) 0%,rgba(20,26,21,.12) 34%,rgba(20,26,21,.62) 100%),
    linear-gradient(to right,rgba(20,26,21,.18),rgba(20,26,21,.72));
}
.hero-content{
  position:relative;z-index:2;
  width:100%;
  padding-block:calc(var(--header-h) + 40px) clamp(48px,8vw,88px);
}
.hero-symbol-wrap{margin-bottom:clamp(24px,4vw,40px)}
.hero-full-logo{height:clamp(64px,10vw,104px);width:auto;display:none}
html[dir="rtl"] .hero-full-logo-he{display:block}
html[dir="ltr"] .hero-full-logo-en{display:block}
.hero-copy{max-width:none}
.hero-copy .eyebrow{color:var(--sage);display:block;margin-bottom:18px}
.hero-copy h1{
  font-size:var(--fs-hero);
  line-height:var(--lh-tight);
  letter-spacing:-.02em;
  text-wrap:balance;
  max-width:16ch;
}
.hero-copy p{
  margin-top:clamp(20px,3vw,28px);
  max-width:52ch;
  color:var(--on-dark-soft);
  font-size:var(--fs-body);
}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:clamp(26px,4vw,36px)}

/* mobile: logo lifted high near the top, with a clear gap before the heading */
@media (max-width:899px){
  .hero{align-items:stretch}
  .hero-content{
    display:flex;flex-direction:column;justify-content:flex-start;
    padding-block:calc(var(--header-h) + 8px) clamp(38px,7vw,64px);
  }
  .hero-symbol-wrap{margin-bottom:clamp(56px,15vw,104px)}
}

/* ---------- 8. #center — asymmetric text + image stack ---------- */
.center-grid{display:grid;gap:clamp(36px,6vw,64px)}
/* mobile-first: tall image full width, two smalls side-by-side beneath */
.center-images{display:grid;gap:12px}
.center-images .tall,.center-images .small{overflow:hidden;border-radius:var(--radius-media)}
.center-images .tall{aspect-ratio:16/10}
.center-images .small-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.center-images .small{aspect-ratio:4/3}
.center-images img{width:100%;height:100%;object-fit:cover}

@media (min-width:600px){
  /* larger phones / tablets: asymmetric tall beside two stacked smalls,
     smalls stretch to match the tall's height (no fixed ratio) */
  .center-images{grid-template-columns:1.15fr .85fr;align-items:stretch;gap:14px}
  .center-images .tall{aspect-ratio:3/4}
  .center-images .small-col{grid-template-columns:1fr;grid-template-rows:1fr 1fr;gap:14px}
  .center-images .small{aspect-ratio:auto}
}
@media (min-width:900px){
  .center-grid{grid-template-columns:minmax(0,5fr) minmax(0,6fr);align-items:center;gap:clamp(48px,5vw,84px)}
  .center-images .tall{aspect-ratio:auto;height:100%;min-height:460px}
}

/* ---------- 9. #extreme — quiet typographic definition list ---------- */
.extreme{background:var(--paper-2)}
.extreme-grid{display:grid;gap:clamp(32px,5vw,56px)}
.extreme-list{display:grid;gap:0}   /* top rule is drawn by the [data-reveal="rule"] animation */
.extreme-row{
  display:grid;gap:4px 28px;
  padding-block:20px;
  border-bottom:1px solid var(--rule);
}
.extreme-row b{
  font-family:var(--font-display);font-weight:400;
  font-size:1.12rem;letter-spacing:-.01em;color:var(--ink);
}
.extreme-row span{color:var(--ink-soft);font-size:var(--fs-body-sm);line-height:1.6}

@media (min-width:760px){
  .extreme-row{grid-template-columns:minmax(150px,.34fr) 1fr;align-items:baseline;gap:32px;padding-block:22px}
  /* the description (RTL: to the left of its title) stays dim until you rest on
     the row; the row you're on brightens, the rest fade back */
  .extreme-row span{opacity:.28;transition:opacity .35s var(--ease)}
  .extreme-list:hover .extreme-row span,
  .extreme-list:focus-within .extreme-row span{opacity:.12}
  .extreme-list:hover .extreme-row:hover span,
  .extreme-list:focus-within .extreme-row:focus-within span{opacity:1}
}
@media (prefers-reduced-motion:reduce){
  .extreme-row span{opacity:1 !important;transition:none !important}
}
@media (min-width:960px){
  .extreme-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.35fr);gap:clamp(48px,5vw,80px);align-items:start}
  .extreme-intro{position:sticky;top:calc(var(--header-h) + 32px)}
}

/* ---------- 10. #learning — numbered editorial rows (no cards) ---------- */
.learning-head{display:grid;gap:20px;margin-bottom:clamp(40px,6vw,64px);max-width:none}
.learning-head .eyebrow{display:block;margin-bottom:16px}
.learning-head h2{font-size:var(--fs-h2);margin-bottom:0;text-wrap:balance;max-width:none}
.learning-head .lead{color:var(--ink-soft);max-width:var(--measure)}
@media (min-width:900px){
  /* heading (right) and subtitle (left) share the top line; the subtitle is
     nudged down to line up with the headline itself, not the eyebrow above it */
  .learning-head{grid-template-columns:1.15fr 1fr;align-items:start;gap:clamp(36px,4vw,64px)}
  .learning-head > p:last-child{margin-top:32px}
  .learning-head h2{white-space:nowrap;text-wrap:nowrap}   /* keep "להתנסות. להבין. להטמיע." on one line */
}
.learning-grid{display:grid;gap:0}
.learning-card{
  display:grid;gap:10px;
  padding-block:clamp(26px,3.5vw,40px);
  border-top:1px solid var(--rule);
}
.learning-card:last-child{border-bottom:1px solid var(--rule)}
.learning-index{font:500 .8rem/1 var(--font-mono);letter-spacing:.1em;color:var(--olive)}
.learning-card h3{font-size:var(--fs-h3)}
.learning-card p{color:var(--ink-soft);font-size:var(--fs-body-sm);line-height:1.62;max-width:60ch}

@media (min-width:820px){
  .learning-card{
    grid-template-columns:64px minmax(0,.42fr) minmax(0,1fr);
    gap:clamp(24px,4vw,56px);align-items:start;
  }
  .learning-index{padding-top:6px}
}

/* ---------- 11. #simulation — image card on the right, green text card on the
   left, both full-height (the earlier layout, full-bleed) ---------- */
.simulation{background:var(--deep-2);color:var(--on-dark)}
.simulation .sim-grid{display:grid;grid-template-columns:1fr;align-items:stretch;gap:0}
.simulation .sim-visual{position:relative;overflow:hidden;min-height:clamp(300px,58vw,420px);background:#111}
.simulation .sim-visual img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:50% 50%;aspect-ratio:auto;scale:1}
.simulation .sim-visual::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(18,24,19,.05),rgba(18,24,19,.26))}
.simulation .sim-copy{display:flex;flex-direction:column;justify-content:center;
  padding:clamp(48px,6vw,92px) clamp(24px,5vw,72px)}
.simulation .sim-copy > div{margin:0}
.simulation .sim-copy .eyebrow{color:var(--sage);display:block;margin-bottom:16px}
.simulation .sim-copy h2{font-size:var(--fs-h2);color:var(--on-dark);margin-bottom:20px;text-wrap:balance;max-width:16ch;line-height:1.03}
.simulation .sim-copy p{color:var(--on-dark-soft);max-width:52ch}
.simulation .sim-list{margin-top:clamp(28px,4vw,40px);border-top:1px solid var(--rule-dark)}
.simulation .sim-row{display:flex;justify-content:space-between;align-items:baseline;
  gap:24px;padding-block:16px;border-bottom:1px solid var(--rule-dark)}
.simulation .sim-row span:first-child{color:var(--on-dark);font-size:1rem}
.simulation .sim-row span:last-child{color:var(--on-dark-mute);font:400 .82rem/1.5 var(--font-mono);text-align:end}
@media (min-width:900px){
  /* exactly as the earlier version: full-bleed band, image (right) wider than
     the text (left) — 1.4fr / 1fr = 840 / 600 at 1440 — both a fixed 720 tall
     so the two columns are equal height with no green showing above or below */
  .simulation .sim-grid{grid-template-columns:1.4fr 1fr;min-height:720px}
  .simulation .sim-visual{min-height:0}
}

/* ---------- 12. #programs — editorial rows (no generic cards) ---------- */
.programs-intro{
  display:grid;gap:20px;
  margin-bottom:clamp(40px,6vw,64px);
}
.programs-intro .eyebrow{display:block;margin-bottom:14px}
.programs-intro h2{font-size:clamp(1.9rem,1.2rem + 2.3vw,2.9rem);text-wrap:balance;max-width:none}
.programs-intro .lead,.programs-intro > p:last-child{color:var(--ink-soft);max-width:var(--measure)}
@media (min-width:900px){
  .programs-intro{grid-template-columns:1.2fr 1fr;align-items:start;gap:clamp(36px,4vw,64px)}
  .programs-intro > p:last-child{margin-top:32px}   /* line the subtitle up with the headline, not the eyebrow */
}
@media (min-width:1180px){
  .programs-intro h2{white-space:nowrap}   /* one line on real desktop widths */
}
.program-grid{display:grid;gap:16px}

/* service card — flat, warm surface, restrained */
.program-svc{
  display:flex;flex-direction:column;gap:14px;
  background:#ffffff;
  border:1px solid rgba(43,61,52,.10);
  border-radius:8px;
  padding:28px;
  box-shadow:0 1px 2px rgba(43,61,52,.04), 0 16px 32px -22px rgba(43,61,52,.20);
  transition:box-shadow .25s var(--ease),transform .25s var(--ease);
}
.program-svc:hover{box-shadow:0 2px 6px rgba(39,48,38,.07), 0 26px 48px -24px rgba(39,48,38,.34);transform:translateY(-2px)}
.svc-num{font:500 .78rem/1 var(--font-mono);letter-spacing:.1em;color:var(--olive)}
.program-svc h3{font-size:var(--fs-h3)}
.program-svc p{color:var(--ink-soft);font-size:var(--fs-body-sm);line-height:1.65}

/* featured card — image beside a balanced, centred text block */
.program-featured{padding:0;gap:0;overflow:hidden;display:flex;flex-direction:column}
.program-featured .svc-text{display:flex;flex-direction:column;gap:14px;padding:28px}
.program-featured .svc-media{margin:0;background:var(--deep-2)}
.program-featured .svc-media img{width:100%;height:100%;object-fit:cover;aspect-ratio:16/9;display:block}

@media (min-width:760px){
  .program-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
  .program-featured{grid-column:1 / -1;flex-direction:row;align-items:stretch}
  .program-featured .svc-text{flex:1;justify-content:center;padding:clamp(32px,3.5vw,52px);gap:16px}
  .program-featured .svc-text p{max-width:52ch}
  .program-featured .svc-media{flex:1.12;display:flex}
  .program-featured .svc-media img{aspect-ratio:auto;height:100%;min-height:330px}
}

/* ---------- 13. #serve — typographic category grid ---------- */
.serve{background:var(--deep-2);color:var(--on-dark)}
.serve-head{max-width:var(--measure);margin-bottom:clamp(40px,6vw,60px)}
.serve-head .eyebrow{display:block;margin-bottom:16px;color:var(--sage)}
.serve-head h2{font-size:var(--fs-h2);color:var(--on-dark);margin-bottom:22px;text-wrap:balance}
.serve-head .lead{color:var(--on-dark-soft)}
.serve-cats{display:grid;gap:0;border-top:1px solid var(--rule-dark)}
.serve-cat{
  display:grid;gap:8px;
  padding-block:26px;border-bottom:1px solid var(--rule-dark);
}
.serve-cat h4{font-family:var(--font-display);font-weight:400;font-size:1.3rem;color:var(--on-dark);letter-spacing:-.01em}
.serve-cat p{color:var(--on-dark-soft);font-size:var(--fs-body-sm);line-height:1.55}
@media (min-width:760px){
  .serve-cats{grid-template-columns:1fr 1fr;column-gap:clamp(32px,5vw,64px)}
  .serve-cat{grid-template-columns:minmax(140px,.5fr) 1fr;gap:24px;align-items:baseline}
}

/* ---------- 14. #team — clean image-led grid ---------- */
.team-intro{max-width:var(--measure);margin-bottom:clamp(40px,6vw,64px)}
.team-intro .eyebrow{display:block;margin-bottom:16px}
.team-intro h2{font-size:var(--fs-h2);margin-bottom:20px;text-wrap:balance;max-width:22ch}
.team-intro .lead{color:var(--ink-soft)}
.people{display:grid;grid-template-columns:1fr 1fr;gap:clamp(20px,3vw,32px) clamp(16px,2.4vw,24px)}
.person{display:flex;flex-direction:column}
.person-photo{
  position:relative;overflow:hidden;background:var(--paper-2);
  aspect-ratio:4/5;border-radius:var(--radius-media);
}
.person-photo img{width:100%;height:100%;object-fit:cover;object-position:top center;
  filter:grayscale(100%) contrast(.98);transition:filter .4s var(--ease),transform .6s var(--ease)}
.person-overlay{
  position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;
  padding:20px;
  background:linear-gradient(180deg,rgba(27,33,31,0) 24%,rgba(27,33,31,.55) 56%,rgba(27,33,31,.95) 100%);
  color:var(--ivory-2);
  opacity:0;transition:opacity .3s var(--ease);
}
.person-overlay p{font-size:.86rem;line-height:1.55;color:rgba(236,232,220,.94)}
.person-overlay .bio-meta{margin-top:12px;padding-top:12px;border-top:1px solid rgba(236,232,220,.22);
  font:400 .68rem/1.5 var(--font-mono);letter-spacing:.03em;color:rgba(236,232,220,.7)}
.person h3{font-size:1.12rem;margin-top:16px}
.person > span{margin-top:5px;color:var(--ink-mute);font:400 .8rem/1.4 var(--font-mono)}
html[dir="rtl"] .person > span{font-family:var(--font-body)}

/* desktop: reveal bio on hover/focus */
@media (min-width:760px){
  .people{grid-template-columns:repeat(3,1fr)}
  .person:hover .person-photo img,.person:focus-within .person-photo img{filter:grayscale(0) contrast(1)}
  .person:hover .person-overlay,.person:focus-within .person-overlay{opacity:1}
}
/* team navigation arrows (mobile carousel only) */
.team-carousel{position:relative}
.team-nav{display:none}

/* ===== mobile team carousel: small peeking cards, side arrows over the photo,
   bio + full colour only on the centred (active) card, others dimmed ===== */
@media (max-width:759px){
  .people{
    display:flex;grid-template-columns:none;gap:16px;
    overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
    padding:2px calc(50% - min(39vw,140px)) 14px;   /* centres a min(78vw,280px) card at any width */
  }
  .people::-webkit-scrollbar{display:none}
  .people{align-items:flex-start}
  .person{flex:0 0 min(78vw,280px);max-width:none;scroll-snap-align:center;position:relative}
  /* promote the photo's children so the bio can sit BELOW name/role */
  .person-photo{display:contents}
  .person-photo img{order:1;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;filter:none;border-radius:var(--radius-media)}
  .person h3{order:2;margin-top:14px;font-size:1.05rem}
  .person > span{order:3}
  /* bio: plain text below, revealed only on the centred card */
  .person-overlay{
    order:4;position:static;inset:auto;opacity:1;overflow:visible;
    display:none;background:none;padding:12px 0 0;color:var(--ink-soft);
  }
  .person.is-active .person-overlay,.person:focus-within .person-overlay{display:block}
  .person-overlay p{color:var(--ink-soft);font-size:.9rem;line-height:1.55}
  .person-overlay .bio-meta{color:var(--ink-mute);border-top-color:var(--rule)}
  /* dim the photo of non-active cards */
  .person::after{
    content:"";position:absolute;top:0;inset-inline:0;
    height:min(97.5vw,350px);z-index:1;pointer-events:none;border-radius:var(--radius-media);
    background:rgba(24,31,25,.44);opacity:1;transition:opacity .35s var(--ease);
  }
  .person.is-active::after,.person:focus-within::after{opacity:0}
  /* side arrows floated over the photo band */
  .team-nav{
    display:flex;direction:ltr;
    position:absolute;top:2px;inset-inline:-6px;
    height:min(97.5vw,350px);
    align-items:center;justify-content:space-between;
    margin:0;pointer-events:none;z-index:6;
  }
  .team-nav button{
    pointer-events:auto;width:38px;height:38px;
    display:flex;align-items:center;justify-content:center;
    border:0;border-radius:50%;cursor:pointer;
    background:rgba(246,242,235,.55);color:var(--deep);
    transition:background .2s var(--ease);
  }
  .team-nav button:hover,.team-nav button:active{background:rgba(246,242,235,.82)}
  .team-nav svg{width:20px;height:20px}
}

/* ---------- 15. #about — quiet memorial ---------- */
.about{background:var(--paper)}
.about-head{margin-bottom:clamp(36px,5vw,56px)}
.about-head h2{font-size:clamp(1.7rem,1.1rem + 2.4vw,2.6rem);color:var(--ink);text-wrap:balance}
.memory-grid{display:grid;gap:clamp(32px,5vw,60px)}
.memory-visual{display:flex;flex-direction:column;gap:14px}
.memory-portrait{overflow:hidden;border-radius:var(--radius-media);background:var(--paper-2);max-width:340px}
.memory-portrait img{width:100%;height:auto;object-fit:cover}
.memory-dates{font:500 .82rem/1.4 var(--font-mono);letter-spacing:.08em;color:var(--ink-mute)}
html[dir="rtl"] .memory-dates{letter-spacing:.04em}
.about-copy .quote{
  font-family:var(--font-display);font-weight:400;
  font-size:clamp(1.15rem,.9rem + 1vw,1.5rem);line-height:1.4;
  color:var(--ink);margin-bottom:var(--space-block);text-wrap:pretty;max-width:34ch;
}
.about-copy p{color:var(--ink-soft);max-width:var(--measure)}
.about-copy p + p{margin-top:1.1em}
.about-copy .lead-strong{color:var(--ink);font-weight:400}
@media (min-width:820px){
  .memory-grid{grid-template-columns:minmax(0,.42fr) minmax(0,1fr);gap:clamp(48px,6vw,88px);align-items:start}
  /* memorial stays quiet: portrait does not track scroll */
}

/* ---------- 16. #contact / CTA ---------- */
.cta{background:var(--deep-2);color:var(--on-dark)}
.cta-grid{display:grid;gap:clamp(36px,5vw,56px);padding-block:0}
/* the heading breaks at fixed points (newlines in data-he) into three lines:
   "גלו כיצד הצוות" / "שלכם פועל" / "כשהמציאות משתנה." */
.cta-textcol h2{font-size:var(--fs-h2);color:var(--on-dark);text-wrap:balance;
  max-width:none;margin:0;white-space:pre-line}
/* transparent animation on the reading-start side (right in RTL) of the heading,
   sized by JS to the 3-line heading's height. It plays once on scroll, starting
   large with dissolved edges and settling down to the heading height. */
/* mobile: heading right-aligns to the form; the leaf sits on the LEFT (its left
   edge level with the form's left edge), in a reserved left strip. Desktop flips
   this (see the 900px block). */
.cta-textcol{position:relative;padding-inline-end:var(--cta-anim-space,0px)}
.cta-anim{
  position:absolute;inset-inline-end:0;top:0;
  display:block;width:auto;height:auto;   /* height set to heading height by JS */
  pointer-events:none;background:transparent;
  transform:scale(1);transform-origin:center;will-change:transform;
  -webkit-mask-image:radial-gradient(closest-side, #000 60%, rgba(0,0,0,0) 100%);
          mask-image:radial-gradient(closest-side, #000 60%, rgba(0,0,0,0) 100%);
}
.cta-anim.is-arming{transform:scale(1.6);transition:none}
.cta-anim.is-settling{transform:scale(1);transition:transform 3.2s cubic-bezier(.22,.61,.36,1)}
.cta-social{display:flex;gap:20px;margin-top:28px;align-items:center}
.cta-social a{
  display:inline-flex;align-items:center;justify-content:center;
  border:0;background:none;padding:0;
  transition:opacity .2s var(--ease),transform .2s var(--ease);
}
.cta-social a:hover{transform:translateY(-2px)}
.cta-social img{width:28px;height:28px;object-fit:contain;opacity:.78;transition:opacity .2s var(--ease)}
.cta-social a:hover img{opacity:1}
.cta-social-m{display:none}
/* mobile: social icons ride the Send button's row, at the form's left edge */
@media (max-width:899px){
  .cta-textcol .cta-social{display:none}
  .form-submit-row{width:100%;justify-content:space-between;align-items:center;gap:16px}
  .cta-social-m{display:flex;margin-top:0}
}

.contact-form{display:grid;gap:14px}
.contact-form input,.contact-form textarea{
  width:100%;font-family:inherit;font-size:1rem;
  color:var(--on-dark);
  background:rgba(255,255,255,.04);
  border:1px solid var(--rule-dark);
  border-radius:var(--radius);
  padding:14px 16px;
  transition:border-color .2s var(--ease),background .2s var(--ease);
}
.contact-form textarea{resize:vertical;min-height:120px}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:var(--on-dark-mute)}
/* keep every field (incl. tel) in the page's reading direction so placeholders align the same */
html[dir="rtl"] .contact-form input,html[dir="rtl"] .contact-form textarea{direction:rtl;text-align:right}
html[dir="ltr"] .contact-form input,html[dir="ltr"] .contact-form textarea{direction:ltr;text-align:left}
.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:var(--blue);background:rgba(255,255,255,.07)}
.form-submit-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.contact-form button[type=submit]{
  min-height:48px;padding:14px 28px;cursor:pointer;
  background:var(--ivory);color:var(--deep);border:0;border-radius:var(--radius);
  font:500 .72rem/1 var(--font-mono);letter-spacing:.1em;text-transform:uppercase;
  transition:background .2s var(--ease);
}
.contact-form button[type=submit]:hover{background:#fff}
.contact-form button[disabled]{opacity:.6;cursor:default}
.form-status{color:var(--on-dark-soft);font-size:.9rem;margin-top:4px}
@media (min-width:900px){
  .cta-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,0.95fr);gap:clamp(72px,8vw,140px);align-items:stretch}
  .contact-form{min-width:0}
  /* text column fills the row height; heading pinned to the TOP (level with the
     form's first field), icons pushed to the BOTTOM (level with the Send button).
     A reading-start strip (--cta-anim-space, set by JS) holds the animation, so
     the heading and icons both right-align to the same edge, clear of it. */
  .cta-textcol{display:flex;flex-direction:column;justify-content:flex-start;min-width:0;
    padding-inline-end:0;padding-inline-start:var(--cta-anim-space,0px)}   /* desktop: strip on the right */
  .cta-anim{inset-inline-end:auto;inset-inline-start:0}                     /* desktop: leaf on the right */
  .cta-textcol h2{width:max-content;max-width:none}   /* never shrink below the lines */
  /* icons pinned to the bottom, nudged up so their centre lines up with the
     taller Send button's centre ((48px button − 28px icon)/2) */
  .cta-textcol .cta-social{margin-top:auto;margin-bottom:10px}
}

/* ---------- 17. Footer ---------- */
footer{background:var(--deep);color:var(--on-dark-mute);border-top:1px solid var(--rule-dark)}
.footer-grid{
  display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;align-items:center;
  padding-block:24px;
  font:400 .78rem/1.5 var(--font-mono);letter-spacing:.04em;
}
html[dir="rtl"] .footer-grid{font-family:var(--font-body);letter-spacing:0}

/* ---------- 18. RTL / language adjustments ---------- */
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .learning-index,
html[dir="rtl"] .svc-num,
html[dir="rtl"] .btn,
html[dir="rtl"] .contact-form button[type=submit],
html[dir="rtl"] .sim-row span:last-child,
html[dir="rtl"] .form-status,
html[dir="rtl"] .memory-dates{letter-spacing:normal;text-transform:none;font-family:var(--font-body)}
html[dir="rtl"] nav li a{letter-spacing:.02em;text-transform:none;font-family:var(--font-body)}
/* Hebrew display headings fall back to body face (Hammersmith One has no Hebrew) */
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3,html[dir="rtl"] h4,
html[dir="rtl"] .extreme-row b,html[dir="rtl"] .serve-cat h4,html[dir="rtl"] .about-copy .quote{
  font-family:var(--font-body);letter-spacing:normal;line-height:1.3;
}
html[dir="rtl"] .hero-copy h1{line-height:1.12}

/* ---------- 19. Motion ----------
   Deliberately differentiated per section rather than one global language.
   default reveal = gentle rise (general use)
   soft   = tiny rise (headings on image-led sections)
   fade   = opacity only (quiet sections: simulation copy, serve, team grid, CTA)
   slow   = very slow fade (memorial — reverent, different cadence)
   rule   = a hairline that draws open, content fades under it (Extreme)
   media-reveal(-wide) = clip-path image reveal (wide reserved for Simulation)
   stagger = sequential children, kept ONLY where order carries meaning (Learning)
*/
[data-reveal]{opacity:0;transform:translateY(14px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
[data-reveal].is-visible{opacity:1;transform:none}
[data-reveal="soft"]{transform:translateY(9px)}
[data-reveal="fade"]{transform:none;transition:opacity .8s var(--ease)}
[data-reveal="slow"]{transform:none;transition:opacity 1.15s var(--ease)}
/* hero: one composed opening — logo fades, copy lifts a few px just after */
[data-reveal="hero"]{opacity:0;transform:translateY(7px);transition:opacity .9s var(--ease) .15s,transform .9s var(--ease) .15s}
[data-reveal="hero"].is-visible{opacity:1;transform:none}
@media (max-width:759px){[data-reveal="hero"]{transform:none}}   /* mobile: opacity only */

/* rule expansion: hairline draws from the reading edge, block fades in beneath */
[data-reveal="rule"]{position:relative;opacity:0;transition:opacity .8s var(--ease) .16s}
[data-reveal="rule"].is-visible{opacity:1}
[data-reveal="rule"]::before{
  content:"";position:absolute;top:0;inset-inline:0;height:1px;
  background:var(--reveal-rule,var(--rule));
  transform:scaleX(0);transform-origin:left;
  transition:transform .95s var(--ease);
}
html[dir="rtl"] [data-reveal="rule"]::before{transform-origin:right}
[data-reveal="rule"].is-visible::before{transform:scaleX(1)}

/* media clip reveal (restrained — good as-is) */
.media-reveal{clip-path:inset(7% 0 7% 0);transform:scale(1.04);
  transition:clip-path var(--dur-media) var(--ease),transform calc(var(--dur-media) + .2s) var(--ease)}
.media-reveal.is-visible{clip-path:inset(0 0 0 0);transform:scale(1)}
/* wider, slower reveal — the Simulation showcase image only */
.media-reveal--wide{clip-path:inset(12% 0 12% 0);transform:scale(1.06);
  transition:clip-path 1.3s var(--ease),transform 1.5s var(--ease)}

/* center: the main image reveals first, the two smalls follow by a hair */
.center-images .small-col .media-reveal{transition-delay:.10s}
.center-images .small-col .media-reveal:last-child{transition-delay:.18s}

/* simulation image sits still — no drift (the section is a solid image band now) */
@media (min-width:760px){
  .simulation .sim-visual img,
  .simulation .sim-visual.is-visible img{object-position:50% 50%;transition:none}
}

/* stagger — tighter step, capped at the 4th child so long lists don't crawl */
[data-stagger] > *{opacity:0;transform:translateY(12px);transition:opacity .55s var(--ease),transform .55s var(--ease)}
[data-stagger].is-visible > *{opacity:1;transform:none}
[data-stagger].is-visible > *:nth-child(2){transition-delay:.06s}
[data-stagger].is-visible > *:nth-child(3){transition-delay:.12s}
[data-stagger].is-visible > *:nth-child(n+4){transition-delay:.18s}

/* lighter on small screens */
@media (max-width:759px){
  .media-reveal{clip-path:inset(4% 0 4% 0);transform:scale(1.02)}
  .media-reveal--wide{clip-path:inset(6% 0 6% 0);transform:scale(1.03)}
  [data-stagger] > *{transition-delay:0s !important}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  [data-reveal],.media-reveal,[data-stagger] > *{opacity:1 !important;transform:none !important;clip-path:none !important;transition:none !important}
  [data-reveal="rule"]::before{transform:none !important}
  .sim-visual img{object-position:50% 50% !important;transition:none !important}
}

/* =========================================================
   TEAM — DESKTOP (sticky left intro, portraits scroll on the right)
   ========================================================= */
@media (min-width: 1100px) {
  .team { background: #ffffff; padding-block: 140px; }
  .team .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .team-intro { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 50px); align-self: start; max-width: 420px; margin: 0; }
  .team-intro .eyebrow { margin-bottom: 16px; }
  .team-intro h2 { font-size: clamp(2.6rem, 3.2vw, 4.2rem); line-height: 1.03; max-width: 12ch; text-wrap: balance; }
  .team-intro .lead { margin-top: 26px; max-width: 38ch; color: var(--ink-soft); line-height: 1.7; }
  .team-carousel { grid-column: 6 / -1; width: 100%; }
  .people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 64px; overflow: visible; padding: 0; }
  .person { min-width: 0; }
  .person-photo { position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 5; background: var(--paper-2); border-radius: 0; }
  .person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(100%); transition: filter 0.45s var(--ease); }
  .person-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: var(--on-dark); background: linear-gradient(180deg, rgba(20,26,21,0) 20%, rgba(20,26,21,0.40) 58%, rgba(20,26,21,0.94) 100%); opacity: 0; transition: opacity 0.35s var(--ease); }
  .person:hover .person-overlay, .person:focus-within .person-overlay { opacity: 1; }
  .person:hover .person-photo img, .person:focus-within .person-photo img { filter: grayscale(0%); }
  .person-overlay p { margin: 0; font-size: 0.9rem; line-height: 1.55; }
  .bio-meta { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(236,232,220,0.22); color: rgba(236,232,220,0.72); font-size: 0.72rem; line-height: 1.5; }
  .person h3 { margin-top: 16px; font-size: 1.2rem; line-height: 1.15; }
  .person > span { display: block; margin-top: 5px; color: var(--ink-mute); font-size: 0.82rem; line-height: 1.4; }
  .team-nav { display: none !important; }
}

/* =========================================================================
   LIVING LAYER — turns the stacked "slides" into one continuous, moving page.
   Everything below overrides the base. Motion is gated by reduced-motion.
   ========================================================================= */

/* ---- fixed page furniture: scroll progress + film grain ---- */
.scroll-progress{
  position:fixed;top:0;inset-inline:0;height:3px;z-index:200;
  background:linear-gradient(90deg,var(--deep) 0%,var(--blue) 55%,var(--sage) 100%);
  transform:scaleX(0);transform-origin:left;will-change:transform;
}
html[dir="rtl"] .scroll-progress{transform-origin:right}
body::after{
  content:"";position:fixed;inset:0;z-index:150;pointer-events:none;opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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");
}

/* ---- side chapter spine: a hairline that fills as you scroll ---- */
.spine{
  position:fixed;top:22vh;bottom:22vh;inset-inline-end:26px;width:2px;z-index:140;
  background:var(--rule);border-radius:2px;pointer-events:none;
}
.spine__fill{position:absolute;inset-inline:0;top:0;height:0;background:linear-gradient(var(--deep),var(--blue));border-radius:2px;will-change:height}
.spine__dot{
  position:absolute;inset-inline-start:50%;width:9px;height:9px;border-radius:50%;
  transform:translate(-50%,-50%);background:var(--paper);border:2px solid var(--rule-strong);
  transition:border-color .3s var(--ease),background .3s var(--ease),transform .3s var(--ease);
}
html[dir="rtl"] .spine__dot{transform:translate(50%,-50%)}
.spine__dot.is-live{background:var(--deep);border-color:var(--deep);transform:translate(-50%,-50%) scale(1.25)}
html[dir="rtl"] .spine__dot.is-live{transform:translate(50%,-50%) scale(1.25)}
@media (max-width:1100px){.spine{display:none}}

/* ---- nav: reacts to scroll (shrinks + gains a real shadow) ---- */
header{transition:box-shadow .35s var(--ease),background .35s var(--ease)}
header.is-scrolled{box-shadow:0 10px 30px -18px rgba(20,30,24,.5)}
header.is-scrolled .nav{height:calc(var(--header-h) - 8px);transition:height .35s var(--ease)}
.nav{transition:height .35s var(--ease)}

/* =======================================================================
   OVERLAP: sections stop being flat slides and become layers that RISE
   over the section before them (rounded top + lift + shadow + z-stacking).
   ======================================================================= */
main > section,footer{position:relative}
.hero{z-index:1}
#center{z-index:2}
.extreme{z-index:3}
.learning{z-index:4}
.simulation{z-index:5}
.programs{z-index:6}
.serve{z-index:7}
.team{z-index:8}
.about{z-index:9}
.cta{z-index:10}
footer{z-index:11}

/* sections layer over one another with STRAIGHT edges (no curved corners) */
#center{
  margin-top:clamp(-40px,-4vw,-24px);
  background:var(--paper);
  padding-top:clamp(56px,7vw,92px);
  box-shadow:0 -22px 50px -34px rgba(20,30,24,.22);
}
.serve,.cta{
  margin-top:clamp(-46px,-4vw,-28px);
  box-shadow:0 -26px 58px -38px rgba(20,30,24,.5);
}
/* the simulation is a full-bleed image band: no top padding or overlap, so the
   image reaches the very top of the section (no green stripe above it) */
.simulation{margin-top:0;padding-top:0;box-shadow:none}
.serve.section{padding-top:clamp(72px,9vw,120px)}
/* keep the contact band tight — modest, symmetric breathing room around the form */
.cta{padding-top:clamp(40px,4.5vw,60px);padding-bottom:clamp(40px,4.5vw,60px)}
.extreme,.programs,.about,.team.section{margin-top:clamp(-30px,-3vw,-18px)}
footer{margin-top:0}

/* the full coastal palette, spread across the light bands */
.extreme{background:var(--paper-2)}      /* Mist  */
.learning{background:var(--mistblue)}     /* French-blue tint */
.programs{background:var(--sand)}         /* Sand  */
.about{background:var(--paper)}
.team.section{background:var(--paper)}

/* =======================================================================
   LIVING MOTION: aurora drift inside dark panels + hero depth
   ======================================================================= */
/* (the animated "aurora" glow was removed here — the simulation is now a solid
   full-bleed image/text band, so the drifting tint no longer belongs) */
.serve{overflow:hidden}
.serve::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(70% 60% at 88% 4%,rgba(142,160,168,.20),transparent 55%),
    radial-gradient(80% 60% at 6% 96%,rgba(174,180,171,.12),transparent 55%);
  animation:aurora 28s var(--ease) infinite alternate;
}
.serve .wrap{position:relative;z-index:1}
.cta{overflow:hidden}
.cta::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(60% 70% at 90% 10%,rgba(142,160,168,.22),transparent 55%);
  animation:aurora2 24s var(--ease) infinite alternate;
}
.cta .wrap{position:relative;z-index:1}
@keyframes aurora{0%{transform:translate3d(0,0,0) scale(1)}100%{transform:translate3d(-3%,2%,0) scale(1.12)}}
@keyframes aurora2{0%{transform:translate3d(0,0,0) scale(1.05)}100%{transform:translate3d(4%,-3%,0) scale(1)}}

/* hero: parallax targets + a slow living zoom on the video */
.hero-video{will-change:transform;animation:heroDrift 30s ease-in-out infinite alternate}
@keyframes heroDrift{0%{transform:scale(1.04)}100%{transform:scale(1.13)}}
.hero-content{will-change:transform}

/* =======================================================================
   RICHER REVEALS: content lifts, sharpens and settles (not a hard cut)
   ======================================================================= */
[data-reveal]{opacity:0;transform:translateY(30px);filter:blur(6px);
  transition:opacity .9s var(--ease),transform .9s var(--ease),filter .9s var(--ease)}
[data-reveal].is-visible{opacity:1;transform:none;filter:none}
[data-reveal="soft"]{transform:translateY(18px)}
[data-reveal="fade"]{transform:translateY(10px)}
[data-reveal="slow"]{transform:translateY(14px);transition-duration:1.2s}
[data-stagger] > *{opacity:0;transform:translateY(26px);filter:blur(5px);
  transition:opacity .7s var(--ease),transform .7s var(--ease),filter .7s var(--ease)}
[data-stagger].is-visible > *{opacity:1;transform:none;filter:none}
[data-stagger].is-visible > *:nth-child(2){transition-delay:.1s}
[data-stagger].is-visible > *:nth-child(3){transition-delay:.2s}
[data-stagger].is-visible > *:nth-child(n+4){transition-delay:.28s}

/* rows are simply present when you reach the section — no line-by-line reveal */
.extreme-row,.sim-row,.serve-cat{opacity:1;transform:none;filter:none}

/* =======================================================================
   MICRO-INTERACTIONS: things respond to the cursor (feels alive, not static)
   ======================================================================= */
.btn,.contact-form button[type=submit]{position:relative;overflow:hidden;
  transition:background .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease),transform .18s var(--ease),box-shadow .25s var(--ease)}
.btn:hover{transform:translateY(-2px);box-shadow:0 14px 26px -16px rgba(20,30,24,.5)}
.btn:active,.contact-form button[type=submit]:active{transform:translateY(0)}

/* nav links: an underline that draws from the reading edge */
nav li a{position:relative}
nav li a::after{content:"";position:absolute;inset-inline:0;bottom:-6px;height:1.5px;
  background:var(--olive);transform:scaleX(0);transform-origin:inline-start;
  transition:transform .3s var(--ease)}
nav li a:hover::after{transform:scaleX(1)}
@media (max-width:899px){nav li a::after{display:none}}

/* text links draw an underline too */
.text-link,.about-copy a{background-image:linear-gradient(var(--olive),var(--olive));
  background-size:0% 1.5px;background-repeat:no-repeat;background-position:0 100%;
  transition:background-size .35s var(--ease)}
.text-link:hover{background-size:100% 1.5px}

/* cards: real lift + the image breathes on hover */
.program-svc{transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s var(--ease)}
.program-svc:hover{transform:translateY(-4px);border-color:rgba(43,61,52,.18);
  box-shadow:0 1px 2px rgba(43,61,52,.05),0 30px 55px -28px rgba(43,61,52,.4)}
/* parallax images use the independent scale + translate props so they never
   collide with the reveal/hover transform on their containers */
.center-images .tall img,.center-images .small img,.sim-visual img,
.program-featured .svc-media img,.memory-portrait img{
  scale:1.18;will-change:translate;transition:scale .8s var(--ease);
}
.program-featured:hover .svc-media img{scale:1.24}

/* the extreme rows gain a moving accent edge on hover */
.extreme-row{position:relative;transition:background .3s var(--ease)}
.extreme-row::before{content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:2px;
  background:var(--olive);transform:scaleY(0);transform-origin:top;transition:transform .3s var(--ease)}
.extreme-row:hover::before{transform:scaleY(1)}
.extreme-row:hover{background:rgba(43,61,52,.02)}

/* =======================================================================
   REDUCED MOTION: collapse the whole living layer to calm + instant
   ======================================================================= */
@media (prefers-reduced-motion:reduce){
  .scroll-progress,.spine{display:none}
  .hero-video,.simulation::before,.simulation::after,.serve::before,.cta::before{animation:none !important}
  [data-reveal],[data-stagger] > *,.extreme-row,.sim-row,.serve-cat{opacity:1 !important;transform:none !important;filter:none !important}
  #center,.simulation,.serve,.cta,.extreme,.programs,.about,.team.section,footer{margin-top:0}
}

/* =======================================================================
   HERO: vertically centred, but text aligned to the reading edge
   (right in Hebrew, left in English) — not centre-justified
   ======================================================================= */
.hero{align-items:center}
.hero .hero-content{
  padding-block:calc(var(--header-h) + 44px) clamp(48px,8vw,88px);
  text-align:start;                         /* right in HE, left in EN */
}
.hero-symbol-wrap{display:flex;justify-content:flex-start}
.hero-copy{max-width:none;margin-inline:0;text-align:start}
.hero-copy h1{
  max-width:24ch;margin-inline:0;
  font-size:clamp(2.9rem,1.3rem + 7vw,6rem);
}
.hero-copy p{max-width:60ch;margin-inline:0}
.hero-actions{justify-content:flex-start}
@media (max-width:899px){
  .hero{align-items:stretch}
  /* logo lifted toward the top (not centre-justified), with a clear gap to the
     heading kept by .hero-symbol-wrap's margin-bottom */
  .hero .hero-content{justify-content:flex-start;
    padding-block:calc(var(--header-h) + 20px) clamp(38px,7vw,64px)}
  .hero-copy h1{font-size:clamp(2.4rem,1.2rem + 8vw,3.4rem)}
}

/* =======================================================================
   PROGRAMS: frosted-glass panels that wipe in TOP -> BOTTOM as you scroll,
   one after another (01 then 02, 03, 04)
   ======================================================================= */
.program-svc{
  background:rgba(255,255,255,.48);
  -webkit-backdrop-filter:blur(12px) saturate(1.15);
  backdrop-filter:blur(12px) saturate(1.15);
  border:1px solid rgba(255,255,255,.55);
  transition:clip-path .9s var(--ease),opacity .6s var(--ease),
             transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s var(--ease);
}
/* panels are VISIBLE by default; only hidden-until-scrolled when the engine runs
   (html.has-anim is set by app_living.js) so they can never get stuck hidden */
.has-anim .program-svc{clip-path:inset(0 0 100% 0);opacity:0}
.has-anim .program-svc.seen{clip-path:inset(0 0 0 0);opacity:1}
.program-featured .svc-text{background:transparent}
/* the 02 / 03 / 04 row cascades in sequence */
@media (min-width:760px){
  .program-grid > .program-svc:nth-child(2).seen{transition-delay:.06s}
  .program-grid > .program-svc:nth-child(3).seen{transition-delay:.20s}
  .program-grid > .program-svc:nth-child(4).seen{transition-delay:.34s}
}

/* extreme heading no longer sticks */
@media (min-width:960px){ .extreme-intro{position:static;top:auto} }
@media (prefers-reduced-motion:reduce){ .program-svc{opacity:1;clip-path:none} }


/* =======================================================================
   MEMORIAL (#about): full-bleed portrait of Ofir, text laid over the right
   ======================================================================= */
.about{position:relative;overflow:hidden;display:flex;align-items:center;
  min-height:clamp(520px,45.5vw,820px);
  padding-block:clamp(36px,4vw,64px);
  background:var(--paper)}
/* 45.5vw keeps the section at the photo's own proportions, so the crop
   never eats her face; object-position favours the left (her face) */
.about picture{display:contents}   /* wrapper is transparent; <img> behaves as a direct child */
.about-bg{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:30% center;z-index:0}
/* light wash on the reading (right) side so the text stays readable,
   the face on the left stays clear */
.about::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(to left,
    rgba(250,250,248,.97) 0%, rgba(250,250,248,.9) 28%,
    rgba(250,250,248,.5) 48%, rgba(250,250,248,0) 64%);}
.about > .wrap{position:relative;z-index:2;width:100%}
.about-over{width:min(48%,660px);margin-left:auto;margin-right:0;text-align:start}
.about-titlerow{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;
  margin-bottom:clamp(18px,2.6vw,28px)}
.about-title{font-size:clamp(1.7rem,1.1rem + 2.4vw,2.6rem);color:var(--ink);text-wrap:balance;margin:0}
.about-titlerow .memory-dates{white-space:nowrap;margin:0;direction:ltr;unicode-bidi:isolate}
.about-over .quote{max-width:none}
.about-over p{max-width:none}
/* wrapper around title+date+quote — transparent on desktop (children flow as
   normal); on mobile it becomes the block lifted onto the photo */
.about-onimage{display:contents}

@media (max-width:760px){
  /* below the photo, the copy sits on #d4d6cb — the same tint as the photo's
     own upper-right background, so image and text area read as one field */
  .about{display:block;min-height:0;padding-block:0;position:relative;background:#d4d6cb}
  .about-bg{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:3/2;object-position:24% center}
  .about::after{display:none}
  /* keep the section itself the only positioning context, so the title can be
     lifted onto the photo (the wrap/copy must not become the containing block) */
  .about > .wrap{padding-block:clamp(30px,7vw,48px);position:static}
  /* opacity-only reveal here: a transform/blur on this block would turn it into
     the containing block and drop the title below the photo while it animates */
  .about-over{width:auto;margin:0;position:static;transform:none;filter:none}
  .about-over p{max-width:var(--measure)}
  /* the whole title block sits ON the photo, vertically centred, on the right
     (the photo's right half is a pale #d4d6cb background — dark text reads
     cleanly). Order: main title, date, then the "age 20" sentence as subtitle.
     The bio paragraphs stay below the photo. */
  .about-onimage{
    display:block;position:absolute;z-index:3;
    top:33.33vw;transform:translateY(-50%);   /* image is 100vw wide at 3:2 → 66.67vw tall; centre = 33.33vw */
    right:clamp(16px,5vw,24px);left:auto;
    width:min(62%,300px);margin:0;text-align:right;
  }
  .about-titlerow{display:block;text-align:right;margin:0;padding:0;background:none;box-shadow:none}
  /* main title: same size as every other heading, forced to two lines
     ("ע״ש סמ״ר" / "אופיר שושני") via the newline in data-he + pre-line */
  .about-onimage .about-title{
    font-size:var(--fs-h2);line-height:1.08;margin:0;color:var(--ink);
    white-space:pre-line;text-wrap:normal;
    text-shadow:0 1px 14px rgba(212,214,203,.96),0 0 3px rgba(212,214,203,.96)}
  .about-onimage .memory-dates{
    display:block;white-space:nowrap;margin-top:10px;text-align:right;color:var(--ink-mute);
    text-shadow:0 1px 10px rgba(212,214,203,.96)}
  /* the "age 20" sentence: subtitle size */
  .about-onimage .quote{
    margin:12px 0 0;max-width:none;text-align:right;
    font-size:var(--fs-h3);line-height:1.35;color:var(--ink);
    text-shadow:0 1px 12px rgba(212,214,203,.96),0 0 3px rgba(212,214,203,.96)}
  /* bio below the photo: standard detail/body size */
  .about-over p{font-size:var(--fs-body)}
}

/* =======================================================================
   TEAM desktop: sticky intro pinned at the reading edge (right in RTL,
   left in LTR), portraits scroll in a 2-up column on the other side,
   so the section scrolls in two stages (intro pins while the people pass)
   ======================================================================= */
@media (min-width:1100px){
  .team-intro{grid-column:1 / span 4;position:sticky;top:calc(var(--header-h) + 50px);
    align-self:start;max-width:420px;margin:0}
  .team-carousel{grid-column:6 / -1;width:100%}
  .people{grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:24px;row-gap:64px;max-width:none;margin-inline:0}
}
