/* מסלול חדש — "מחברת שטח": kraft paper, polaroids and tape, handwriting, a stamp.
   Serif headlines, highlighter marks, hard-shadow buttons. RTL first. */

:root {
  --kraft: #e9dcc3;
  --page: #f4ecda;          /* lighter notebook page */
  --card: #fbf8f0;          /* photo paper */
  --ink: #2d2a20;
  --muted: #5c5546;
  --line: rgba(45, 42, 32, .2);
  --rust: #96401f;          /* pen and stamp */
  --green: #2d4a33;         /* notebook cover */
  --green-2: #23392a;
  --on-green: #f4ecda;
  --on-green-muted: #d6cbb0;
  --hl: #f1b84a;            /* highlighter */
  --tape: rgba(243, 227, 166, .82);

  --r: 3px;
  --nav: 78px;
  --gut: 64px;
  --wrap: 1240px;

  --f-display: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --f-hand: "Amatic SC", "Frank Ruhl Libre", cursive;
  --f-text: "Assistant", system-ui, sans-serif;
  --t-h1: clamp(40px, 4.8vw, 72px);
  --t-h2: clamp(32px, 3.2vw, 48px);
  --t-h3: clamp(22px, 1.7vw, 27px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 1023px) { :root { --gut: 36px; } }
@media (max-width: 640px)  { :root { --gut: 20px; --nav: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: var(--nav); }
body { background: var(--kraft) var(--noise); color: var(--ink); font: 400 18px/1.7 var(--f-text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0; }
h1 { font-size: var(--t-h1); font-weight: 900; line-height: 1.06; }
h2 { font-size: var(--t-h2); font-weight: 900; }
h3 { font-size: var(--t-h3); line-height: 1.25; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 70; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px dashed var(--rust); outline-offset: 3px; }

/* highlighter on a word */
.hl { background: linear-gradient(transparent 60%, var(--hl) 60%, var(--hl) 90%, transparent 90%) no-repeat; background-size: 0 100%; background-position: right; color: inherit; padding: 0 2px; animation: mark 1s .7s var(--ease) forwards; }
@keyframes mark { to { background-size: 100% 100%; } }

/* handwriting */
.note { font: 700 clamp(28px, 2.4vw, 36px)/1 var(--f-hand); color: var(--rust); display: inline-block; transform: rotate(-2deg); }

/* ---------- Header ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--nav); background: var(--kraft) var(--noise); border-bottom: 2px dashed rgba(45, 42, 32, .3); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 46px; height: auto; }
.brand b { font: 900 25px/1 var(--f-display); }
.brand small { display: block; font: 700 20px/1 var(--f-hand); color: var(--rust); margin-top: 4px; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; margin-inline-start: auto; }
.nav__links a { text-decoration: none; font-weight: 700; font-size: 17px; padding: 4px 2px; white-space: nowrap; background: linear-gradient(transparent 62%, var(--hl) 62%, var(--hl) 92%, transparent 92%) no-repeat right / 0 100%; transition: background-size .35s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { background-size: 100% 100%; }
.nav__toggle { display: none; }
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav .btn { margin-inline-start: auto; }
  .nav__toggle { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); color: var(--ink); cursor: pointer; box-shadow: -3px 3px 0 var(--ink); }
  .nav.is-open .nav__links { display: flex; flex-direction: column; gap: 0; position: fixed; inset: var(--nav) 0 0 0; background: var(--kraft) var(--noise); padding: 16px var(--gut); overflow-y: auto; }
  .nav.is-open .nav__links a { display: block; font: 900 30px var(--f-display); padding: 16px 0; border-bottom: 2px dashed var(--line); background: none; }
}
@media (max-width: 640px) { .nav .btn { display: none; } .nav__toggle { margin-inline-start: auto; } .brand small { display: none; } }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px;
  border-radius: var(--r); font: 700 18px/1 var(--f-text); text-decoration: none; cursor: pointer; border: 2px solid var(--ink);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { transform: translate(2px, -2px); }
.btn:active { transform: translate(-2px, 2px); box-shadow: 0 0 0 var(--ink) !important; }
.btn--primary { background: var(--green); color: var(--on-green); box-shadow: -4px 4px 0 var(--ink); }
.btn--primary:hover { box-shadow: -6px 6px 0 var(--ink); }
.btn--secondary { background: var(--card); color: var(--ink); box-shadow: -4px 4px 0 var(--ink); }
.section--dark .btn--primary, .cta .btn--primary { background: var(--hl); color: var(--ink); border-color: var(--ink); box-shadow: -4px 4px 0 #111; }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; }
@media (max-width: 640px) { .btn-row .btn { flex: 1 1 100%; } }
.link { color: inherit; font-weight: 700; text-decoration: none; background: linear-gradient(var(--rust), var(--rust)) right bottom / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size .3s var(--ease), color .2s; }
.link:hover { color: var(--rust); background-size: 30% 2px; }

/* ---------- Hero: the journal board ---------- */
.hero { padding-top: var(--nav); position: relative; overflow: hidden; border-bottom: 2px dashed rgba(45, 42, 32, .3); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; min-height: calc(100svh - var(--nav)); padding: 48px 0 56px; }
.hero h1 { margin: 10px 0 22px; text-wrap: balance; }
.hero__lead { color: var(--muted); max-width: 480px; font-size: 20px; margin-bottom: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 40px 0 0; padding: 20px 0 0; border-top: 2px dashed var(--line); list-style: none; }
.hero__facts b { display: block; font: 900 32px/1.1 var(--f-display); }
.hero__facts span { font-size: 15px; color: var(--muted); }

.board { position: relative; height: min(600px, 74svh); }
.pol { position: absolute; margin: 0; background: var(--card); padding: 12px 12px 48px; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .55); transition: transform .45s var(--ease), z-index 0s; }
.pol img { width: 100%; height: 100%; object-fit: cover; }
.pol figcaption { position: absolute; bottom: 8px; inset-inline: 14px; font: 700 28px/1 var(--f-hand); color: var(--ink); }
.pol:hover { transform: rotate(0deg) scale(1.02); z-index: 5; }
.pol--1 { width: 48%; height: 62%; right: 2%; top: 2%; transform: rotate(3deg); }
.pol--2 { width: 46%; height: 56%; left: 3%; top: 26%; transform: rotate(-4deg); }
.pol--3 { width: 36%; height: 40%; right: 26%; bottom: 0; transform: rotate(-1deg); z-index: 2; }
.tape { position: absolute; top: -14px; left: 34%; width: 92px; height: 28px; background: var(--tape); transform: rotate(-6deg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.stamp {
  position: absolute; left: 44%; top: 2%; width: 128px; height: 128px; border: 3px solid var(--rust); border-radius: 50%;
  color: var(--rust); display: grid; place-items: center; text-align: center; font: 700 28px/1 var(--f-hand); transform: rotate(-14deg); z-index: 3;
  background: radial-gradient(circle, transparent 54px, rgba(162,72,42,.0) 55px); opacity: .9;
}
.stamp::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed var(--rust); border-radius: 50%; }

[data-enter] > * { animation: enter .9s var(--ease) both; }
[data-enter] > *:nth-child(2) { animation-delay: .08s; }
[data-enter] > *:nth-child(3) { animation-delay: .16s; }
[data-enter] > *:nth-child(4) { animation-delay: .24s; }
[data-enter] > *:nth-child(5) { animation-delay: .32s; }
.board .pol--1 { animation: drop1 .9s .15s var(--ease) both; }
.board .pol--2 { animation: drop2 .9s .3s var(--ease) both; }
.board .pol--3 { animation: drop3 .9s .45s var(--ease) both; }
.board .stamp { animation: stamp .5s 1.1s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } }
@keyframes drop1 { from { opacity: 0; transform: translateY(-30px) rotate(10deg); } }
@keyframes drop2 { from { opacity: 0; transform: translateY(-30px) rotate(-12deg); } }
@keyframes drop3 { from { opacity: 0; transform: translateY(-30px) rotate(6deg); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-14deg) scale(1.8); } }

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .board { height: 520px; }
}
@media (max-width: 640px) {
  .hero__grid { padding-top: 32px; gap: 24px; }
  .hero__facts { gap: 12px 24px; margin-top: 30px; }
  .hero__facts b { font-size: 26px; }
  .board { height: 400px; }
  .pol { padding: 8px 8px 36px; }
  .pol figcaption { font-size: 22px; }
  .pol--1 { width: 58%; } .pol--2 { width: 54%; top: 30%; } .pol--3 { width: 44%; right: 20%; }
  .stamp { width: 96px; height: 96px; font-size: 21px; left: 4%; top: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section--alt { background: var(--page) repeating-linear-gradient(0deg, transparent 0 35px, rgba(70, 110, 150, .1) 35px 36px); }
.section--dark { background: var(--green) var(--noise); color: var(--on-green); }
.section--dark .muted { color: var(--on-green-muted); }
@media (max-width: 640px) { .section { padding: 80px 0; } }

.head { display: grid; grid-template-columns: 7fr 5fr; gap: 16px 72px; align-items: end; margin-bottom: 64px; }
.head .eyebrow { grid-column: 1 / -1; }
.head p { font-size: 20px; color: var(--muted); }
.section--dark .head p { color: var(--on-green-muted); }
.head--solo { grid-template-columns: 1fr; max-width: 820px; }
@media (max-width: 900px) { .head { grid-template-columns: 1fr; margin-bottom: 40px; } }

.eyebrow { display: inline-block; font: 700 clamp(26px, 2.2vw, 32px)/1 var(--f-hand); color: var(--rust); transform: rotate(-1.5deg); transform-origin: right; }
.section--dark .eyebrow { color: var(--hl); }

.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- Areas (home): pinned photos ---------- */
.areas { display: grid; grid-template-columns: repeat(12, 1fr); gap: 36px 28px; }
.area { text-decoration: none; color: inherit; display: block; position: relative; background: var(--card); padding: 12px 12px 22px; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .5); transition: transform .4s var(--ease); }
.area::before { content: ""; position: absolute; top: -13px; left: 40%; width: 90px; height: 26px; background: var(--tape); transform: rotate(-5deg); z-index: 1; }
.area:nth-child(odd) { transform: rotate(-1deg); } .area:nth-child(even) { transform: rotate(1.2deg); }
.area:hover { transform: rotate(0) translateY(-4px); }
.area__ph { overflow: hidden; }
.area__ph img { width: 100%; height: 100%; object-fit: cover; }
.area__no { display: block; margin-top: 14px; font: 700 26px/1 var(--f-hand); color: var(--rust); }
.area h3 { margin: 6px 0 6px; }
.area p { color: var(--muted); font-size: 17px; }
/* large first: community (01) tall on the right over two rows; organizations (02) wide beside it.
   small: schools (03) + צוות אלוש (04), under organizations. */
.area--1 { grid-column: 1 / 7; grid-row: 1 / span 2; align-self: start; } .area--1 .area__ph { height: 400px; }
.area--2 { grid-column: 7 / 13; grid-row: 1; margin-top: 24px; } .area--2 .area__ph { height: 270px; }
.area--3 { grid-column: 7 / 10; grid-row: 2; margin-top: 8px; } .area--3 .area__ph { height: 190px; }
.area--4 { grid-column: 10 / 13; grid-row: 2; margin-top: 32px; } .area--4 .area__ph { height: 190px; }
.area--1 h3, .area--2 h3 { font-size: clamp(25px, 2.1vw, 31px); }
.area--1 p, .area--2 p { font-size: 17px; }
.area--3 h3, .area--4 h3 { font-size: 21px; }
.area--3 p, .area--4 p { font-size: 15px; }
.area__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; border-bottom: 2px solid var(--rust); padding-bottom: 2px; }
.area__more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.area:hover .area__more svg { transform: translateX(-4px); }
@media (max-width: 900px) {
  .areas { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .area--1, .area--2, .area--3, .area--4 { grid-column: auto; grid-row: auto; margin-top: 0; }
  .area .area__ph { height: 240px !important; }
}
@media (max-width: 640px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { background: var(--card); display: flex; flex-direction: column; text-decoration: none; color: inherit; padding: 12px 12px 4px; box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.grid > .card:nth-child(odd) { transform: rotate(-.8deg); }
.grid > .card:nth-child(even) { transform: rotate(.8deg); }
.grid > .card:hover { transform: rotate(0) translateY(-3px); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 16px 8px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body p { color: var(--muted); font-size: 17px; }
.card__label { font: 700 24px/1 var(--f-hand); color: var(--rust); }
.card__more { margin-top: auto; padding-top: 8px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.card__more svg { width: 16px; height: 16px; }

/* ---------- Steps: handwritten numbers on a dashed trail ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 18px; border-top: 2px dashed var(--ink); }
.steps li::before { content: counter(step) "."; display: block; font: 700 64px/1 var(--f-hand); color: var(--rust); margin-bottom: 8px; }
.steps--letters li::before { content: attr(data-l); }
.steps li h3 { margin-bottom: 8px; }
.steps li p { color: var(--muted); }
.steps .dur { display: inline-block; margin-bottom: 6px; font: 700 24px/1 var(--f-hand); color: var(--green); }
.section--dark .steps li { border-color: var(--on-green); }
.section--dark .steps li p { color: var(--on-green-muted); }

/* ---------- Split, photos, lists ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--top { align-items: start; }
.photo { overflow: hidden; background: var(--card); padding: 12px 12px 12px; box-shadow: 0 18px 34px -20px rgba(0, 0, 0, .55); position: relative; }
.split .photo { aspect-ratio: 4 / 5; transform: rotate(-1.5deg); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.prose > * + * { margin-top: 18px; }
.prose p { font-size: 19px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 44px; } .split .photo { aspect-ratio: 4 / 3; } }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 34px; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 22px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Cpath d='M2 11 C 5 13, 7 16, 8 18 C 11 10, 15 5, 21 1' fill='none' stroke='%23a2482a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; }
.section--dark .checks li::before { filter: brightness(2.2); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.stats li { border-top: 2px dashed var(--line); padding-top: 14px; }
.stats b { display: block; font: 900 clamp(30px, 2.8vw, 42px)/1 var(--f-display); margin-bottom: 6px; }
.stats span { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Prices & tables ---------- */
.prices { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.prices li { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 22px 0; border-bottom: 2px dashed var(--line); align-items: baseline; }
.prices h3 { font-size: 22px; }
.prices p { grid-column: 1; color: var(--muted); font-size: 16px; }
.prices .price { grid-column: 2; grid-row: 1 / span 2; font: 900 32px/1 var(--f-display); white-space: nowrap; background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%); padding: 0 4px; }
.prices .price small { font: 400 15px var(--f-text); color: var(--muted); }
.note-box { background: var(--card); padding: 28px; position: relative; box-shadow: 0 14px 28px -20px rgba(0, 0, 0, .5); }
.note-box::before { content: ""; position: absolute; top: -12px; left: 42%; width: 80px; height: 24px; background: var(--tape); transform: rotate(-4deg); }
.note-box h3 { margin-bottom: 12px; font-size: 22px; }
p.note { margin-top: 20px; font-size: 16px; color: var(--muted); }
.section--dark .note-box { background: rgba(244, 236, 218, .08); color: var(--on-green); }
.section--dark .note-box .muted { color: var(--on-green-muted); }
.table-wrap { overflow-x: auto; background: var(--card); padding: 8px 24px; box-shadow: 0 14px 28px -20px rgba(0, 0, 0, .5); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: right; padding: 16px 14px 16px 0; border-bottom: 2px dashed var(--line); }
tr:last-child td { border-bottom: 0; }
th { font: 700 24px/1 var(--f-hand); color: var(--rust); }
td b { font: 900 22px var(--f-display); }

/* ---------- Program blocks ---------- */
.program { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; }
.program + .program { margin-top: 100px; padding-top: 100px; border-top: 2px dashed var(--line); }
.program__side .photo { aspect-ratio: 4 / 3; margin-top: 28px; transform: rotate(1.2deg); }
.program__side h3 { font-size: var(--t-h2); font-weight: 900; margin: 6px 0 14px; }
.program__side p { font-size: 19px; color: var(--muted); }
.program__side .eyebrow { font-size: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; padding: 0; }
.pills li { padding: 4px 14px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--card); }
.video { display: inline-flex; margin-top: 20px; }
@media (max-width: 1023px) { .program { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Quotes: notes pinned to the page ---------- */
.quote { margin: 0; display: flex; flex-direction: column; gap: 16px; padding: 26px 24px; background: var(--card); position: relative; box-shadow: 0 14px 28px -20px rgba(0, 0, 0, .5); }
.quote::before { content: ""; position: absolute; top: -12px; left: 40%; width: 80px; height: 24px; background: var(--tape); transform: rotate(4deg); }
.grid > .quote:nth-child(odd) { transform: rotate(-1deg); } .grid > .quote:nth-child(even) { transform: rotate(1deg); }
.quote blockquote { margin: 0; font: 500 20px/1.55 var(--f-display); }
.quote figcaption { color: var(--muted); font-size: 16px; margin-top: auto; }
.quote figcaption b { color: var(--rust); display: block; font: 700 26px/1.1 var(--f-hand); }

/* ---------- Memorial ---------- */
.memorial { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.memorial .photo { aspect-ratio: 4 / 5; transform: rotate(-2deg); }
.memorial__dates { font: 700 28px/1 var(--f-hand); color: var(--hl); margin: 12px 0 24px; }
.memorial blockquote { margin: 32px 0 0; font: 700 clamp(26px, 2.4vw, 36px)/1.3 var(--f-display); }
.memorial blockquote cite { display: block; margin-top: 12px; font: 700 26px/1.1 var(--f-hand); color: var(--on-green-muted); font-style: normal; }
@media (max-width: 900px) { .memorial { grid-template-columns: 1fr; gap: 44px; } .memorial .photo { aspect-ratio: 4 / 3; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; gap: 20px; }
.gallery .photo { padding: 8px 8px 8px; }
.gallery .photo:nth-child(odd) { transform: rotate(-1.5deg); }
.gallery .photo:nth-child(even) { transform: rotate(1.5deg); }
@media (max-width: 640px) { .gallery { grid-auto-rows: 160px; } }

/* ---------- Partners: handwritten list ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; padding: 0; margin: 0; font: 700 30px/1.4 var(--f-hand); }
.partners li:not(:last-child)::after { content: "✶"; color: var(--rust); margin: 0 14px; font-size: 18px; vertical-align: middle; }

/* ---------- Contact ---------- */
.cta { display: grid; grid-template-columns: 6fr 5fr; gap: 72px; align-items: start; }
.cta h2 { margin: 14px 0 18px; }
.cta__lead { font-size: 20px; color: var(--on-green-muted); margin-bottom: 32px; }
.contacts { list-style: none; padding: 0; margin: 0; display: grid; border-top: 2px dashed rgba(244, 236, 218, .3); }
.contacts a, .contacts > li > span { display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 18px 4px; border-bottom: 2px dashed rgba(244, 236, 218, .3); transition: padding .25s var(--ease), color .2s; }
.contacts a:hover { padding-inline-start: 12px; color: var(--hl); }
.contacts svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--hl); }
.contacts small { display: block; font: 700 22px/1 var(--f-hand); color: var(--on-green-muted); }
.contacts b { font: 900 22px var(--f-display); direction: ltr; unicode-bidi: plaintext; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; gap: 44px; } }

.form { background: var(--card); color: var(--ink); padding: 32px; display: grid; gap: 16px; position: relative; transform: rotate(.6deg); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.form::before { content: ""; position: absolute; top: -13px; left: 44%; width: 96px; height: 28px; background: var(--tape); transform: rotate(-4deg); }
.form h3 { font: 700 38px/1 var(--f-hand); color: var(--rust); margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 700; }
.field input, .field textarea { font: 400 16px var(--f-text); min-height: 48px; padding: 10px 14px; border-radius: var(--r); border: 0; border-bottom: 2px solid var(--ink); background: rgba(233, 220, 195, .4); color: var(--ink); width: 100%; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px dashed var(--rust); outline-offset: 2px; }
.field__error { color: #a3261b; font-size: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); }
.form__status { font-size: 15px; color: var(--muted); }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } .form { padding: 24px; transform: none; } }

/* ---------- Footer: the notebook's back cover ---------- */
.footer { background: var(--green-2) var(--noise); color: var(--on-green-muted); padding: 80px 0 32px; font-size: 16px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; }
.footer .brand b { color: var(--on-green); }
.footer .brand small { color: var(--hl); }
.footer h3 { color: var(--hl); font: 700 28px/1 var(--f-hand); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--hl); }
.footer__about { margin-top: 18px; max-width: 360px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 2px dashed rgba(244, 236, 218, .2); font-size: 14px; }
.footer__legal span:last-child { font: 700 26px/1 var(--f-hand); color: var(--hl); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(244, 236, 218, .3); transition: border-color .2s, color .2s, transform .2s var(--ease); }
.socials a:hover { border-color: var(--hl); color: var(--hl); transform: rotate(-8deg); }
.socials svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- WhatsApp ---------- */
/* WhatsApp: the logo on a small taped polaroid, with a paper note beside it */
.wa { position: fixed; inset-inline-start: 34px; bottom: 30px; z-index: 30; display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; transition: transform .2s var(--ease); }
.wa:hover { transform: translateY(-3px); }
.wa__face { position: relative; flex: none; width: 82px; height: 92px; padding: 6px 6px 16px; background: var(--card); transform: rotate(-4deg); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .55); }
.wa__face::before { content: ""; position: absolute; top: -8px; left: 24px; width: 36px; height: 14px; background: var(--tape); transform: rotate(6deg); }
.wa__face img { width: 100%; height: 100%; object-fit: contain; padding: 10px 6px; background: #fff; }
.wa__badge { position: absolute; bottom: -8px; right: -10px; width: 32px; height: 32px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; border: 2px solid var(--ink); }
.wa__badge svg { width: 18px; height: 18px; }
.wa__note { background: var(--card); padding: 10px 16px; border: 2px solid var(--ink); box-shadow: -4px 4px 0 var(--ink); transform: rotate(1deg); }
.wa__note b { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; line-height: 1.2; }
.wa__note b::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #25d366; }
.wa__note span { display: block; margin-top: 4px; font: 700 24px/1 var(--f-hand); }
/* phones: the polaroid alone, so the note does not cover the page */
@media (max-width: 640px) {
  .wa { inset-inline-start: 24px; bottom: 22px; }
  .wa__face { width: 64px; height: 72px; padding: 5px 5px 12px; }
  .wa__face img { padding: 7px 4px; }
  .wa__badge { width: 28px; height: 28px; }
  .wa__note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hl { background-size: 100% 100%; }
}

/* ---------- About: team polaroids, rosters ---------- */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px 24px; }
.person { background: var(--card); padding: 12px 12px 22px; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .5); position: relative; transition: transform .35s var(--ease); }
.person::before { content: ""; position: absolute; top: -12px; left: 36%; width: 76px; height: 24px; background: var(--tape); transform: rotate(-5deg); z-index: 1; }
.person:nth-child(odd) { transform: rotate(-1.2deg); } .person:nth-child(even) { transform: rotate(1.2deg); }
.person:hover { transform: rotate(0) translateY(-4px); }
.person__ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2, #e6dcc8); }
.person__ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person__ph--empty { display: grid; place-items: center; background: var(--green); }
.person__ph--empty span { font: 700 64px/1 var(--f-hand); color: var(--hl); }
.person__role { display: block; margin-top: 14px; font: 700 24px/1 var(--f-hand); color: var(--rust); }
.person h3 { font-size: 22px; margin: 4px 0 8px; }
.person p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.team--small .person h3 { margin-bottom: 0; }
@media (max-width: 1100px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .team { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; } .person p { display: none; } }

.roster { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.roster li > *, .roster li { display: flex; flex-direction: column; }
.roster li { padding: 16px 0; border-bottom: 2px dashed var(--line); }
.roster li > a { text-decoration: none; padding-inline-start: 0; transition: padding .25s var(--ease), color .2s; }
.roster li > a:hover { padding-inline-start: 10px; color: var(--rust); }
.roster b { font: 700 22px/1.3 var(--f-display); }
.roster span { font: 700 22px/1.2 var(--f-hand); color: var(--rust); }
.roster--docs b::after { content: " ↗"; font-size: 16px; color: var(--rust); }

/* ---------- Sub-menu under בתי ספר ---------- */
.has-sub { position: relative; }
.has-sub > a::before { content: "▾"; font-size: 12px; margin-inline-start: 4px; float: left; margin-top: 4px; color: var(--rust); }
.sub { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 10px); inset-inline-start: -14px; min-width: 240px;
  background: var(--card); border: 2px solid var(--ink); box-shadow: -4px 4px 0 var(--ink); display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; z-index: 30; }
.sub::before { content: ""; position: absolute; inset: -14px 0 auto 0; height: 14px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 12px !important; background: none !important; font-size: 16px !important; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--hl) !important; }
@media (max-width: 1023px) {
  .nav.is-open .has-sub > a::before { display: none; }
  .nav.is-open .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: none; padding: 0 20px 0 0; min-width: 0; }
  .nav.is-open .sub a { font: 700 20px var(--f-text) !important; padding: 12px 0 !important; border-bottom: 1px dashed var(--line); }
}
@media (min-width: 1024px) { .nav.is-open .sub { position: absolute; } }

/* breadcrumbs on school sub-pages */
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { font-weight: 700; color: var(--rust); text-decoration: none; border-bottom: 1.5px solid currentColor; }
.has-sub:has(.sub a[aria-current="page"]) > a { background-size: 100% 100%; }

.gallery--4 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; }
@media (max-width: 900px) { .gallery--4 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }

/* two-photo hero board (צוות אלוש): the portrait large */
.board--duo .pol { padding-bottom: 12px; }
.board--duo .pol figcaption { position: static; padding-top: 10px; }
.board--duo .pol--1 { width: 54%; height: auto; right: 4%; top: 0; transform: rotate(2deg); z-index: 2; padding-bottom: 14px; }
.board--duo .pol--1 img { height: min(520px, 62svh); object-position: top; }
.board--duo .pol--2 { width: 46%; height: auto; left: 2%; top: 30%; transform: rotate(-4deg); z-index: 1; }
.board--duo .pol--2 img { height: min(300px, 34svh); }
.board--duo .stamp { left: 8%; top: 4%; }
@media (max-width: 640px) {
  .board--duo { height: 460px; }
  .board--duo .pol--1 { width: 62%; }
  .board--duo .pol--1 img { height: 380px; }
  .board--duo .pol--2 { width: 50%; top: 42%; }
  .board--duo .pol--2 img { height: 180px; }
}

/* partner logos (home) */
.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.logos li { background: #fff; height: 110px; display: grid; place-items: center; padding: 14px; box-shadow: 0 10px 22px -16px rgba(0,0,0,.45); transition: transform .3s var(--ease); }
.logos li:nth-child(odd) { transform: rotate(-1deg); } .logos li:nth-child(even) { transform: rotate(1deg); }
.logos li:hover { transform: rotate(0) translateY(-3px); }
.logos img { max-width: 100%; max-height: 80px; object-fit: contain; }
@media (max-width: 1023px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .logos { grid-template-columns: repeat(3, 1fr); gap: 10px; } .logos li { height: 84px; padding: 10px; } .logos img { max-height: 60px; } }

/* video inside a photo frame */
.split .photo.photo--video { aspect-ratio: 4 / 5; position: relative; }
.photo--video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-toggle { position: absolute; bottom: 22px; inset-inline-start: 22px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: -3px 3px 0 var(--ink); }
.video-toggle svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .split .photo.photo--video { aspect-ratio: 16 / 10; } }

/* ---------- Partner logos: a slow spiral (home) ----------
   Logos orbit a vertical axis while climbing, always facing forward; the ones at the back fade.
   On phones the same logos scroll by in a single strip instead. */
@property --a { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.spiral { position: relative; height: 520px; perspective: 1400px; overflow: hidden; margin-top: 8px;
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); }
.spiral__axis { position: absolute; top: 50%; left: 50%; width: 0; height: 0; margin: 0; padding: 0; transform-style: preserve-3d; animation: spiral-spin 75s linear infinite; }
.spiral:hover .spiral__axis { animation-play-state: paused; }
.spiral__axis li {
  --t: calc(var(--i) * 40deg + var(--a));
  position: absolute; width: 132px; height: 82px; left: -66px; top: -41px; list-style: none;
  display: grid; place-items: center; padding: 11px; background: #fff; box-shadow: 0 8px 18px -12px rgba(0,0,0,.5);
  transform: rotateY(var(--t)) translateZ(320px) rotateY(calc(-1 * var(--t))) translateY(calc((var(--i) - (var(--n) - 1) / 2) * 20px));
  opacity: calc(.3 + .7 * (cos(var(--t)) + 1) / 2);
}
.spiral__axis li::before { content: ""; position: absolute; top: -8px; left: 36%; width: 42px; height: 15px; background: var(--tape); transform: rotate(-5deg); }
.spiral__axis img { max-width: 100%; max-height: 56px; object-fit: contain; }
.spiral__axis .spiral__dup { display: none; }
@keyframes spiral-spin { to { --a: -360deg; } }
@media (min-width: 641px) and (max-width: 1100px) {
  .spiral__axis li { transform: rotateY(var(--t)) translateZ(240px) rotateY(calc(-1 * var(--t))) translateY(calc((var(--i) - (var(--n) - 1) / 2) * 20px)); }
}
@media (max-width: 640px) {
  .spiral { height: auto; perspective: none; padding: 14px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .spiral__axis { position: static; width: max-content; height: auto; display: flex; gap: 14px; transform-style: flat; animation: strip-scroll 60s linear infinite; }
  .spiral__axis li, .spiral__axis .spiral__dup { display: grid; position: relative; left: auto; top: auto; width: 112px; height: 72px; padding: 9px; transform: none; opacity: 1; flex: none; }
  .spiral__axis img { max-height: 48px; }
}
@keyframes strip-scroll { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .spiral__axis { animation: none; } }

/* YouTube video playing as a muted background inside a photo frame */
.photo--yt { position: relative; background: #000 center / cover no-repeat; }
.program__side .photo.photo--yt { aspect-ratio: 16 / 9; }
.program__side .photo.photo--yt { background: var(--card) !important; }
.photo--yt iframe { background: #000; }
.photo--yt iframe { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); border: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .photo--yt iframe { display: none; } }

/* the left polaroid sits under the bottom one: keep its caption on the visible left side */
.board:not(.board--duo) .pol--2 figcaption { text-align: left; }
/* a docs row without a file (e.g. supplier number): no link arrow */
.roster--docs li:not(:has(a)) b::after { content: none; }
/* longer polaroid captions (e.g. two names) stay on one line */
.pol figcaption.cap-sm { font-size: 24px; white-space: nowrap; }
.cap-narrow { display: none; }
@media (max-width: 640px) { .pol figcaption.cap-sm { font-size: 22px; } .cap-wide { display: none; } .cap-narrow { display: inline; } }
/* phones: the top-right polaroid sits above the bottom one, so its caption is never covered */
@media (max-width: 640px) { .board:not(.board--duo) .pol--1 { z-index: 3; } }

/* pause control for moving content (WCAG 2.2.2) */
.motion-toggle { display: block; margin: 14px auto 0; padding: 8px 18px; font: 600 15px/1 var(--f-body, "Assistant"), sans-serif; color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 999px; box-shadow: -3px 3px 0 var(--ink); cursor: pointer; }
.spiral.is-paused .spiral__axis { animation-play-state: paused; }
.photo--yt .video-toggle { z-index: 2; }
.photo--yt.is-paused iframe { display: none; }
@media (prefers-reduced-motion: reduce) { .motion-toggle, .photo--yt .video-toggle { display: none; } }
/* legal pages: accessibility statement, privacy policy */
.legal__wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin: 8px 0 6px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 18px; line-height: 1.75; }
.legal__updated { color: var(--muted); margin: 0 0 28px; }
.legal__contact { margin: 18px 0; }
.legal__contact p { margin: 4px 0; }
.footer__legal a { color: inherit; text-decoration: underline; }
.form__privacy { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
/* leave room under the footer for the fixed WhatsApp button, so it never covers the legal line */
.footer { padding-bottom: 150px; }
@media (max-width: 640px) { .footer { padding-bottom: 110px; } }
