/* home-lectures.css — the „הרצאות ומופעים" section of the homepage (#lectures), approved design 20.11.2026.
   Loaded after b.css / c.css / site.css; every rule is scoped to .hl / .hl-* so nothing else on the page is affected.
   1. the show: the stage (figure right, words left, as on /show/) + three moments from the shows
   2. the talks: a numbered list with in-place "read more" beside a collage of three real lectures
   3. one quiet booking line that closes the talks
   Uses tokens from b.css: --on-ink, --line-ink, --ease. */
.hl{--hot:#f0923a;--cream:#f8eddf;--stage:#040302;--muted:#cdbfae;--r:6px;--rs:3px}
.hl::before{background:radial-gradient(42% 38% at 70% 18%,rgba(240,146,58,.13),transparent 70%),radial-gradient(40% 30% at 15% 78%,rgba(240,146,58,.06),transparent 70%)}

/* photos: one treatment everywhere — small corners, a deep shadow like printed photos */
.hl-ph{margin:0;overflow:hidden;border-radius:var(--rs);background:#1b1a1c;box-shadow:0 24px 50px -24px rgba(0,0,0,.85)}
.hl-ph img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.92) contrast(1.04)}

/* ── the show ── */
.hl-show{display:grid;grid-template-columns:minmax(0,2.35fr) minmax(0,1fr);gap:10px;min-height:clamp(520px,42vw,620px)}
.hl-stage{position:relative;overflow:hidden;border-radius:var(--r);background:var(--stage);isolation:isolate;display:flex;align-items:center}
.hl-stage::before{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(40% 55% at 6% 0%,rgba(240,146,58,.16),transparent 70%)}
.hl-fig{position:absolute;margin:0;right:0;bottom:0;height:100%;width:auto;z-index:-1;pointer-events:none}
.hl-fig picture,.hl-fig img{display:block;height:100%;width:auto}
.hl-txt{width:51%;margin-inline-start:auto;padding:48px clamp(36px,3.4vw,56px) 48px clamp(28px,2.8vw,44px)}
.hl-title{margin:0;display:flex;flex-direction:column;font-size:clamp(48px,4.9vw,86px);line-height:.94;white-space:nowrap;font-weight:700;letter-spacing:-.035em;color:var(--cream)}
.hl-title .o{color:transparent;-webkit-text-stroke:2px var(--cream);font-weight:400}
.hl-title .o i{font-style:normal;color:var(--hot);-webkit-text-stroke:0;font-weight:700;margin-inline-start:.04em}
.hl .hl-lead{margin:clamp(22px,2vw,32px) 0 0;max-width:24ch;text-wrap:balance;font-size:clamp(19px,1.5vw,24px);line-height:1.4;font-weight:500;color:var(--cream)}
.hl .hl-sub{margin:.55em 0 0;text-wrap:balance;font-size:clamp(16px,1.15vw,19px);line-height:1.5;color:var(--muted)}
.hl-cta{display:inline-flex;align-items:center;gap:22px;min-height:58px;margin-top:clamp(26px,2.4vw,36px);padding:0 28px;border-radius:var(--rs);background:var(--cream);color:#111;font-weight:700;font-size:clamp(16px,1.15vw,18px);text-decoration:none;transition:background .25s}
.hl-cta i{font-style:normal;transition:transform .3s var(--ease)}
/* the whole stage card is the link to /show/: the button's ::after covers the card (one <a>, one clickedShow per activation).
   .hl-txt is not positioned, so the card (.hl-stage) is the containing block; the figure sits behind it (z-index:-1 in the isolated card) */
.hl-cta::after{content:'';position:absolute;inset:0;z-index:1;border-radius:var(--r)}
.hl-cta:hover,.hl-stage:hover .hl-cta{background:#fff}.hl-cta:hover i,.hl-stage:hover .hl-cta i{transform:translateX(-4px)}
.hl-cta:focus-visible{outline:3px solid var(--hot);outline-offset:4px}

.hl-moments{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1.15fr 1fr;gap:10px}
.hl-moments .m1{grid-column:1 / -1}
.hl-moments .hl-ph{position:relative;min-height:0}
.hl-moments .hl-ph img{position:absolute;inset:0}
.hl-moments .m1 img{object-position:50% 36%}
.hl-moments .m2 img{object-position:55% 50%}
.hl-moments .m3 img{object-position:62% 40%}

/* ── the talks ── */
.hl-spread{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.14fr);column-gap:clamp(40px,5vw,96px);align-items:start;margin-top:clamp(90px,8vw,140px)}
.hl-talks__h{margin:0 0 clamp(22px,2vw,30px);font-size:clamp(30px,2.6vw,44px);line-height:1.1;font-weight:700;letter-spacing:-.02em;color:var(--on-ink)}
.hl-list{list-style:none;margin:0;padding:0}
.hl-talk{display:grid;grid-template-columns:clamp(44px,4vw,64px) minmax(0,1fr);padding:clamp(26px,2.4vw,36px) 0 clamp(28px,2.6vw,38px);border-top:1px solid rgba(244,239,231,.1)}
.hl-talk:last-child{border-bottom:1px solid rgba(244,239,231,.1)}
.hl-n{padding-top:.2em;font-size:clamp(15px,1.1vw,18px);font-weight:500;color:rgba(240,146,58,.8);letter-spacing:.02em;font-variant-numeric:tabular-nums}
.hl .hl-for{margin:0 0 8px;font-size:clamp(14px,1vw,16px);line-height:1.45;font-weight:500;color:var(--hot)}
.hl-talk h4{margin:0;font-size:clamp(24px,2.05vw,34px);line-height:1.22;font-weight:700;letter-spacing:-.01em;color:var(--on-ink);text-wrap:balance}
.hl-fold{display:grid;grid-template-rows:1fr;transition:grid-template-rows .45s var(--ease),opacity .35s}
.hl-fold>div{overflow:hidden;min-height:0}
.hl-fold p{margin:14px 0 0;max-width:44ch;font-size:clamp(16px,1.15vw,18px);line-height:1.7;color:#dcd2c4}
.hl-fold--full{grid-template-rows:0fr;opacity:0}
.hl-talk.is-open .hl-fold--sum{grid-template-rows:0fr;opacity:0}
.hl-talk.is-open .hl-fold--full{grid-template-rows:1fr;opacity:1}
.hl-more{display:inline-flex;align-items:center;gap:8px;margin-top:16px;padding:6px 0;background:none;border:0;border-bottom:1px solid rgba(240,146,58,.4);color:var(--on-ink);font:inherit;font-size:clamp(15px,1.05vw,17px);font-weight:700;cursor:pointer}
.hl-more:hover{border-bottom-color:var(--hot)}
/* a small arrow pointing down; it turns up while the talk is open */
.hl-more i{font-style:normal;font-size:.9em;line-height:1;color:var(--hot);display:inline-block;transition:transform .3s var(--ease)}
.hl-talk.is-open .hl-more i{transform:rotate(180deg)}
.hl-more:focus-visible{outline:3px solid var(--hot);outline-offset:4px;border-radius:2px}

/* the collage: one big moment of contact with the room, two closer moments beside it.
   Crops are done in CSS (--cx/--cy = top-left of the crop, --cw/--ch = its size, as fractions of the photo); the files stay untouched */
.hl-crop{position:relative}
.hl-crop img{position:absolute;max-width:none;width:calc(100% / var(--cw));height:auto;left:calc(-100% * var(--cx) / var(--cw));top:calc(-100% * var(--cy) / var(--ch))}
.hl-collage{position:relative;aspect-ratio:1/1.1;margin-top:calc(clamp(30px,2.6vw,44px) * 1.1 + clamp(22px,2vw,30px))}
.hl-collage .hl-ph{position:absolute}
.hl-collage .hl-ph img{filter:saturate(.95) contrast(1.05)}
.hl-collage .c1{left:0;top:0;width:86%;aspect-ratio:1.5;z-index:1}
.hl-collage .c2{left:0;top:63.5%;width:63%;aspect-ratio:1.72;z-index:2}
.hl-collage .c3{right:0;top:42%;width:30%;aspect-ratio:.569;z-index:3}
/* the screen photo: a touch less glare from the projection, the figure unchanged */
.hl-collage .hl-ph.c3 img{filter:brightness(.9) contrast(1.06) saturate(.95)}

/* ── booking: a quiet typographic line that closes the talks ── */
.hl-contact{margin-top:clamp(34px,3vw,46px)}
.hl .hl-contact__h{margin:0 0 14px;font-size:clamp(17px,1.25vw,20px);font-weight:700;color:var(--on-ink)}
.hl-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 0;margin:0;padding:0;list-style:none}
.hl-links li{display:flex;align-items:center}
.hl-links li+li::before{content:'';width:1px;height:18px;margin:0 22px;background:rgba(244,239,231,.22)}
.hl-links a{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--on-ink);text-decoration:none;font-size:clamp(16px,1.2vw,19px);font-weight:500;border-bottom:1px solid transparent;transition:color .25s,border-color .25s}
.hl-links a>i{font-size:19px;color:var(--hot)}
.hl-links a:hover{color:var(--cream);border-bottom-color:rgba(240,146,58,.7)}
.hl-links a:focus-visible{outline:3px solid var(--hot);outline-offset:3px;border-radius:2px}
.hl-links .c-book__lbl,.hl-links .b-go{display:none}
.hl-links .b-val{direction:ltr;unicode-bidi:isolate}

/* without JavaScript the full texts are simply shown and the toggles hidden (home-lectures.js adds .hl-ready) */
.hl:not(.hl-ready) .hl-fold--full{grid-template-rows:1fr;opacity:1}
.hl:not(.hl-ready) .hl-more{display:none}

/* small desktops (901–1199px): the figure keeps its place but takes a little less height, so the words never run into it;
   below 1199px it shrinks a little more with the screen (84% at 1199px, about 66% at 901px), keeping ~17-28px between words and hair */
@media (min-width:901px) and (max-width:1199px) and (min-aspect-ratio:1/1){
 .hl-show{grid-template-columns:minmax(0,2.6fr) minmax(0,1fr)}
 .hl-fig{height:calc(84% - (1199px - 100vw) * .32)}
 .hl-txt{width:56%;padding-right:28px;padding-left:24px}
}

/* ── phones & portrait ── */
@media (max-width:900px),(max-aspect-ratio:1/1){
 .hl-show{grid-template-columns:1fr;min-height:0;gap:8px}
 .hl-stage{display:block;padding-top:0}
 .hl-fig{position:relative;height:auto;width:100%;z-index:-1}
 .hl-fig picture,.hl-fig img{width:100%;height:auto}
 .hl-txt{width:auto;margin:-14% 0 0;padding:0 22px 32px}
 .hl-title{font-size:15vw}
 .hl .hl-lead{font-size:19px;max-width:none}
 .hl .hl-sub{font-size:16.5px}
 .hl-cta{width:100%;justify-content:space-between}
 .hl-moments{grid-template-rows:auto auto;gap:8px}
 .hl-moments .m1{aspect-ratio:3/2}
 .hl-moments .m2,.hl-moments .m3{aspect-ratio:1/1}
 .hl-spread{display:flex;flex-direction:column;margin-top:64px}
 .hl-talks{display:contents}
 .hl-talks__h{order:0}.hl-collage{order:1}.hl-list{order:2}.hl-contact{order:3}
 .hl-list,.hl-contact{align-self:stretch}
 .hl-talks__h{font-size:30px;margin-bottom:18px}
 /* phones: a short collage right under the heading, so pictures and talks read as one block */
 .hl-collage{width:100%;margin:2px 0 6px;aspect-ratio:1/1.06}
 .hl-collage .c1{width:100%;left:0}
 .hl-collage .c2{width:64%;left:0;top:auto;bottom:0}
 .hl-collage .c3{width:31%;right:0;left:auto;top:auto;bottom:0}
 .hl-links{flex-direction:column;align-items:stretch}
 .hl-links li+li::before{display:none}
 .hl-links li{border-top:1px solid var(--line-ink)}
 .hl-links li:last-child{border-bottom:1px solid var(--line-ink)}
 .hl-links a{min-height:52px;width:100%;font-size:17px;border-bottom:0}
 .hl-talk{grid-template-columns:40px minmax(0,1fr)}
 .hl-talk h4{font-size:24px}
}
@media (prefers-reduced-motion:reduce){.hl-fold,.hl-more i,.hl-cta i{transition:none}}

/* ── English page (en/, left to right) ──
   the card keeps the Hebrew composition: words on the left, the figure on the right looking towards them
   (in English the words come first anyway); there is no button, so a quiet line of details closes the text.
   The lecture collage sits on the right of the talks, so its photos are mirrored in position only
   (the narrow photo moves to the inner edge, beside the talks); the images themselves are untouched */
.hl:lang(en) .hl-txt{margin-inline-start:0;margin-inline-end:auto}
@media (min-width:901px) and (min-aspect-ratio:1/1){.hl:lang(en) .hl-txt{width:55%}}
/* small desktops: the longer English copy takes a little more of the card and slightly smaller type, so the card stays close to its Hebrew height */
@media (min-width:901px) and (max-width:1199px) and (min-aspect-ratio:1/1){
 .hl:lang(en) .hl-txt{width:60%;padding-top:36px;padding-bottom:36px}
 .hl:lang(en) .hl-lead{max-width:none;font-size:18px}
 .hl:lang(en) .hl-sub{max-width:none;font-size:15px}
}
/* the English title is about 12% larger than at first on phones and laptops; on wide screens it keeps its approved maximum (74px), which the text column allows */
.hl:lang(en) .hl-title{font-size:clamp(47px,4.6vw,74px);letter-spacing:-.03em}
@media (max-width:900px),(max-aspect-ratio:1/1){.hl:lang(en) .hl-title{font-size:min(47px,13vw)}}
.hl:lang(en) .hl-lead{max-width:30ch}
.hl:lang(en) .hl-sub{max-width:44ch;line-height:1.55}
.hl .hl-meta{display:flex;flex-wrap:wrap;overflow:hidden;margin:clamp(18px,1.6vw,26px) 0 0;font-size:clamp(14px,1vw,16px);font-weight:500;letter-spacing:.01em;color:var(--cream)}
/* the two details sit on one line with an orange dot between them; if they wrap, the dot falls outside the box (never alone at a line edge) */
.hl .hl-meta span{white-space:nowrap;padding-inline-end:1.2em}
.hl .hl-meta .hl-m2{margin-inline-start:-1.2em;padding-inline-end:0}
.hl .hl-meta .hl-m2::before{content:'\00B7';display:inline-block;width:1.2em;text-align:center;color:var(--hot)}
.hl .hl-nw{white-space:nowrap}
.hl:lang(en) .hl-collage .c1{left:auto;right:0}
.hl:lang(en) .hl-collage .c2{left:auto;right:0}
.hl:lang(en) .hl-collage .c3{right:auto;left:0}

/* desktop: the lecture collage stays in view while the talks scroll past and is released with the end of the list.
   home-lectures.js adds .hl-stick only when the whole collage fits under the header; phones and low screens keep the normal scroll */
@media (min-width:901px) and (min-aspect-ratio:1/1){
 .hl.hl-stick .hl-collage{position:sticky;top:calc(var(--header-h) + 28px)}
}

/* English page only: there is no "Selected thoughts" section between the talks and "Let's talk",
   so the two dark sections meet directly; about half the usual space between them */
@media (min-width:901px){
 .hl:lang(en){padding-bottom:calc(var(--section) * .5)}
 .hl:lang(en) + .c-contact{padding-top:calc(var(--section) * .5)}
}
@media (max-width:900px){
 .hl:lang(en){padding-bottom:16px}
 .hl:lang(en) + .c-contact{padding-top:28px}
}

/* English page, desktop: the booking row (phone · WhatsApp · email) is longer than in Hebrew.
   A little less space around the separators keeps it on one line wherever the column allows (type size unchanged);
   where it must wrap, each separator belongs to the item after it and is clipped when that item starts a new line,
   so no separator is left at the start or end of a line. Phones keep the vertical list */
@media (min-width:901px) and (min-aspect-ratio:1/1){
 .hl:lang(en) .hl-links{overflow:hidden;padding:6px 8px;margin:-6px -8px}
 .hl:lang(en) .hl-links li{padding-inline-end:29px}
 .hl:lang(en) .hl-links li:last-child{padding-inline-end:0}
 .hl:lang(en) .hl-links li+li{margin-inline-start:-29px}
 .hl:lang(en) .hl-links li+li::before{margin:0 14px}
}
