/* Home page: "יום אחד בחוד אנרגיה" (a bento of photos and reels) and "האנשים מאחורי" — the story direction
   Meni picked on 18.11. Scoped to .st-h on top of the Elementor page: navy like the gateways above it, Polin, the
   site blue, rounded cards. RTL first (logical properties), phone first. Photos open in the site's lightbox
   (/js/hod-gallery.js), whose styles (from hod-expert.css) are repeated at the end because this page does not load
   that file. Images: /story/img (smaller copies of published photos). Reels: /story/story.js. */
.st-h {
  --st-navy: #0D2531;
  --st-navy-2: #133447;
  --st-ink: #FFFFFFF2;
  --st-ink-2: #FFFFFFC7;
  --st-sky: #6FB4DB;
  --st-blue: #1B6A93;
  --st-sun: #F5A524;
  --st-line: #FFFFFF26;
  --st-r: 14px;
  position: relative;
  direction: rtl;
  font-family: "Polin", "Assistant", "Segoe UI", Arial, sans-serif;
  color: var(--st-ink);
}
.st-h *, .st-h *::before, .st-h *::after { box-sizing: border-box; }
.st-h figure { display: block; margin: 0; }
.st-h ul { list-style: none; margin: 0; padding: 0; }
.st-h li { margin: 0; padding: 0; min-inline-size: 0; }
.st-h p { margin: 0; }
.st-h a:focus-visible, .st-h button:focus-visible { outline: 3px solid #ffd24d; outline-offset: 3px; }

/* ---------- the shared heading ---------- */
.st-h .st-head { max-inline-size: 760px; margin: 0 auto clamp(24px, 4vw, 44px); text-align: center; }
.st-h .st-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--st-sky); }
.st-h .st-kicker__dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--st-sun); box-shadow: 0 0 0 4px rgba(245, 165, 36, .18); }
.st-h .st-title { margin: 0; font-family: inherit; font-size: clamp(32px, 40 / 999 * 100vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -0.022em; color: #FFFFFFE6; text-wrap: balance; }
.st-h .st-sub { margin: 12px auto 0; max-inline-size: 56ch; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--st-ink-2); text-wrap: pretty; }
@media (min-width: 1000px) { .st-h .st-title { font-size: clamp(40px, 48 / 1434 * 100vw, 48px); } }

/* ---------- a tile: photo, reel or silent loop ---------- */
.st-h .st-t { position: relative; overflow: hidden; border-radius: var(--st-r); background: #173A4C; border: 1px solid #FFFFFF1F; isolation: isolate; }
.st-h .st-t > figure, .st-h .st-t .st-loop { position: relative; block-size: 100%; }
.st-h .st-t__a, .st-h .st-reelbtn { position: relative; display: block; inline-size: 100%; block-size: 100%; color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.st-h .st-reelbtn { appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font: inherit; line-height: inherit; text-align: inherit; text-transform: none; letter-spacing: normal; cursor: pointer; min-block-size: 0; }
.st-h .st-t img, .st-h .st-t video { display: block; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; transition: transform .5s ease; }
.st-h .st-t video { background: #0B2230; cursor: pointer; }
.st-h .st-t::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 62%; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(9, 30, 42, .88) 0%, rgba(9, 30, 42, .5) 38%, rgba(9, 30, 42, 0) 100%); }
.st-h .st-cap { position: absolute; inset-inline: 10px; inset-block-end: 8px; z-index: 2; display: block; pointer-events: none; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.3; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.st-h .st-cap__t { display: block; margin: 0; font: inherit; color: inherit; }
.st-h .st-cap__b { display: none; }
.st-h .st-t--reel .st-cap__t, .st-h .st-t--p1 .st-cap__t, .st-h .st-t--p6 .st-cap__t, .st-h .st-m--big .st-cap__t { font-weight: 600; }
@media (min-width: 690px) { .st-h .st-cap { inset-inline: 14px; inset-block-end: 12px; font-size: 15px; } }
@media (hover: hover) {
  .st-h .st-t__a:hover img, .st-h .st-reelbtn:hover img { transform: scale(1.045); }
  .st-h .st-reelbtn:hover .st-play { background: rgba(255, 255, 255, .4); transform: scale(1.08); }
}

/* the play mark (a light circle with a white triangle, like the reels further down) sits in the caption row,
   so the text burned into the reels stays clear; the length sits on top */
.st-h .st-t--reel .st-cap { display: flex; align-items: center; gap: 8px; }
.st-h .st-play { position: relative; flex: none; display: grid; place-items: center; inline-size: 30px; block-size: 30px; border-radius: 50%; background: rgba(9, 30, 42, .45); border: 1.5px solid rgba(255, 255, 255, .85); transition: background-color .2s ease, transform .2s ease; }
.st-h .st-play::before { content: ""; inline-size: 0; block-size: 0; margin-left: 3px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid #fff; }
@media (min-width: 690px) { .st-h .st-play { inline-size: 36px; block-size: 36px; } .st-h .st-play::before { border-top-width: 7px; border-bottom-width: 7px; border-left-width: 12px; } }
.st-h .st-dur { position: absolute; inset-block-start: 8px; left: 8px; right: auto; z-index: 2; padding: 3px 8px; border-radius: 999px; background: rgba(9, 30, 42, .72); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.st-h .st-dur::before { content: ""; display: inline-block; inline-size: 0; block-size: 0; margin-inline-end: 5px; vertical-align: 1px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--st-sun); }

/* a silent loop: its pause button (like the trackers page) and the speed it runs at */
.st-h .st-loop__btn { position: absolute; inset-inline-start: 8px; inset-block-start: 8px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; min-block-size: 34px; margin: 0; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(13, 37, 49, .78); color: #fff; font: 600 13px/1 "Polin", Arial, sans-serif; letter-spacing: normal; text-transform: none; box-shadow: none; cursor: pointer; }
.st-h .st-loop__btn::before { content: ""; inline-size: 0; block-size: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid #fff; }
.st-h .st-loop.is-playing .st-loop__btn::before { inline-size: 10px; block-size: 12px; border: 0; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.st-h .st-loop__pause { display: none; }
.st-h .st-loop.is-playing .st-loop__pause { display: inline; }
.st-h .st-loop.is-playing .st-loop__play { display: none; }
.st-h .st-speed { position: absolute; inset-inline-end: 8px; inset-block-start: 8px; z-index: 3; padding: 4px 10px; border-radius: 999px; background: var(--st-sun); color: var(--st-navy); font-size: 12px; font-weight: 600; line-height: 1.3; }

/* ---------- "יום אחד בחוד אנרגיה": the bento ---------- */
.st-day { background: linear-gradient(180deg, #0D2531 0%, #0F2B3A 100%); padding: 0 6vw 64px; }
.st-day__inner { max-inline-size: 1290px; margin: 0 auto; }
/* rows follow the column width, so a one-cell photo is always 4:3 */
.st-bento {
  --st-gap: 8px;
  --st-col: calc((88vw - var(--st-gap)) / 2);
  display: grid;
  gap: var(--st-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: calc(var(--st-col) * .75);
  grid-template-areas:
    "p1 p1"
    "p1 p1"
    "r1 p2"
    "r1 p3"
    "l1 l1"
    "p4 r2"
    "p5 r2"
    "p6 p6"
    "r3 p7"
    "r3 p8";
}
.st-t--p1 { grid-area: p1; } .st-t--p2 { grid-area: p2; } .st-t--p3 { grid-area: p3; } .st-t--p4 { grid-area: p4; }
.st-t--p5 { grid-area: p5; } .st-t--p6 { grid-area: p6; } .st-t--p7 { grid-area: p7; } .st-t--p8 { grid-area: p8; }
.st-t--r1 { grid-area: r1; } .st-t--r2 { grid-area: r2; } .st-t--r3 { grid-area: r3; } .st-t--l1 { grid-area: l1; }
.st-h .st-t--p6 img { object-position: 50% 62%; }
.st-h .st-t--l1 video { object-position: 50% 58%; }
@media (min-width: 690px) {
  .st-day { padding: 0 5vw clamp(96px, 128 / 1434 * 100vw, 128px); }
  .st-bento {
    --st-gap: 12px;
    --st-col: calc((90vw - 3 * var(--st-gap)) / 4);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "p1 p1 r1 p2"
      "p1 p1 r1 p3"
      "l1 l1 p4 r2"
      "l1 l1 p5 r2"
      "p6 p6 r3 p7"
      "p6 p6 r3 p8";
  }
}
@media (min-width: 1000px) {
  .st-bento {
    --st-gap: 16px;
    --st-col: calc((min(90vw, 1290px) - 5 * var(--st-gap)) / 6);
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "p1 p1 r1 p2 l1 l1"
      "p1 p1 r1 p3 l1 l1"
      "p4 r2 p6 p6 p5 r3"
      "p7 r2 p6 p6 p8 r3";
  }
  .st-h .st-t--p6 img { object-position: 50% 50%; }
}
.st-h .st-more { margin: clamp(20px, 3vw, 32px) 0 0; text-align: center; }
.st-h .st-more a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; color: #FFFFFFE6; font-size: clamp(15px, 1.1vw, 17px); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.st-h .st-more a:hover { color: #fff; text-decoration-thickness: 2px; }
.st-h .st-more svg { inline-size: .8em; block-size: .8em; color: var(--st-sky); }

/* ---------- "האנשים מאחורי": portraits, then the team and the friends ---------- */
.st-people { background: radial-gradient(120% 90% at 85% 0%, #1B4A63 0%, rgba(27, 74, 99, 0) 60%), linear-gradient(180deg, #0F2B3A 0%, #102F40 100%); padding: 56px 6vw 64px; border-block-start: 1px solid #FFFFFF14; }
.st-people__inner { display: grid; gap: 32px; max-inline-size: 1290px; margin: 0 auto; align-items: center; }
.st-people__text { text-align: center; }
.st-h .st-people .st-sub { margin-block-end: 26px; }
.st-h .st-faces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-inline-size: 460px; margin: 0 auto; }
.st-h .st-face { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.st-h .st-face__ring { display: block; inline-size: clamp(84px, 24vw, 112px); block-size: clamp(84px, 24vw, 112px); margin-block-end: 10px; padding: 4px; border-radius: 50%; background: conic-gradient(from 210deg, var(--st-sun), var(--st-sky), #2E86B8, var(--st-sun)); transition: transform .25s ease; }
.st-h .st-face__ring img { display: block; inline-size: 100%; block-size: 100%; max-inline-size: none; object-fit: cover; object-position: 50% 9%; border: 3px solid #102F40; border-radius: 50%; box-shadow: none; }
.st-h .st-face__n { font-size: clamp(15px, 4vw, 18px); font-weight: 600; line-height: 1.3; color: #fff; }
.st-h .st-face__r { font-size: clamp(13px, 3.4vw, 15px); line-height: 1.35; color: var(--st-ink-2); }
@media (hover: hover) { .st-h .st-face:hover .st-face__ring { transform: translateY(-3px) scale(1.03); } .st-h .st-face:hover .st-face__n { text-decoration: underline; text-underline-offset: 4px; } }
.st-h .st-people__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; margin-block-start: 26px; }
.st-h .st-btn { display: inline-flex; align-items: center; justify-content: center; min-block-size: 46px; padding: 10px 24px; border-radius: 6px; background: #3D8DB8; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color .2s ease; }
.st-h .st-btn:hover { background: #156E9C; color: #fff; }
.st-h .st-link { padding: 8px 2px; color: #FFFFFFE6; font-size: 16px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.st-h .st-link:hover { color: #fff; text-decoration-thickness: 2px; }
.st-mosaic {
  --st-gap: 8px;
  --st-col: calc((88vw - var(--st-gap)) / 2);
  display: grid;
  gap: var(--st-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: calc(var(--st-col) * .75);
}
.st-mosaic .st-m--big { grid-column: 1 / -1; grid-row: span 2; }
@media (min-width: 690px) {
  .st-people { padding: 72px 5vw 88px; }
  .st-mosaic { --st-gap: 12px; --st-col: calc((90vw - 3 * var(--st-gap)) / 4); grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-mosaic .st-m--big { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 1000px) {
  .st-people { padding: 96px 5vw 112px; }
  .st-people__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); }
  .st-people__text { text-align: start; }
  .st-h .st-people .st-sub { margin-inline: 0; }
  .st-h .st-faces { margin: 0; }
  .st-h .st-people__cta { justify-content: flex-start; }
  .st-mosaic { --st-col: calc((min(90vw, 1290px) * 7 / 12 - 3 * var(--st-gap)) / 4); }
}

/* ---------- reveal on scroll (only when motion is fine; see pc.js) ---------- */
.st-anim .st-h .st-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 45ms); }
.st-anim .st-h .st-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .st-h .st-t img, .st-h .st-t video, .st-h .st-play, .st-h .st-face__ring { transition: none; }
  .st-h .st-t__a:hover img, .st-h .st-reelbtn:hover img, .st-h .st-face:hover .st-face__ring { transform: none; }
}

/* ---------- the reel player (a dialog; the video loads only after the tap) ---------- */
.st-player { inline-size: 100vw; max-inline-size: 100vw; block-size: 100vh; block-size: 100dvh; max-block-size: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; font-family: "Polin", "Assistant", Arial, sans-serif; direction: rtl; }
.st-player[open] { display: grid; place-items: center; }
.st-player::backdrop { background: rgba(8, 20, 28, .97); }
.st-player__box { display: grid; justify-items: center; gap: 12px; inline-size: 100%; padding: 64px 12px 18px; }
.st-player__v { display: block; inline-size: min(92vw, 460px, calc((100dvh - 170px) * 9 / 16)); block-size: auto; aspect-ratio: 9 / 16; max-inline-size: none; border-radius: 14px; background: #000; }
.st-player.is-wide .st-player__v { inline-size: min(94vw, 1040px, calc((100dvh - 170px) * 16 / 9)); aspect-ratio: 16 / 9; }
.st-player__cap { margin: 0; text-align: center; line-height: 1.4; }
.st-player__cap strong { display: block; font-size: 18px; font-weight: 600; }
.st-player__cap span { display: block; margin-block-start: 2px; font-size: 15px; color: #C5D3DC; }
.st-player__close { position: fixed; inset-block-start: 12px; inset-inline-end: 12px; display: grid; place-items: center; inline-size: 44px; block-size: 44px; margin: 0; padding: 0; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font: 400 28px/1 Arial, sans-serif; cursor: pointer; }
.st-player__close:hover { background: rgba(255, 255, 255, .18); }
.st-player__close:focus-visible { outline: 3px solid #ffd24d; outline-offset: 2px; }

/* ---------- the site's photo lightbox (same rules as hod-expert.css) ---------- */
.has-lightbox, .has-lightbox body { overflow: hidden; }
.lightbox { inline-size: 100vw; max-inline-size: 100vw; block-size: 100vh; block-size: 100dvh; max-block-size: 100dvh; margin: 0; padding: 0; border: 0; background: #08141C; color: #FFFFFF; font-family: "Polin", "Assistant", Arial, sans-serif; direction: rtl; }
.lightbox::backdrop { background: rgba(8, 20, 28, .92); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; }
.lightbox__count { font-size: .95rem; color: #C5D3DC; }
.lightbox__close { display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; margin: 0; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; color: #FFFFFF; font: inherit; font-size: 1.75rem; line-height: 1; cursor: pointer; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-block-size: 0; padding: 0 56px; overflow: hidden; background: center / contain no-repeat; background-origin: content-box; }
.lightbox__stage img { position: absolute; inset-block: 0; inset-inline: 56px; inline-size: calc(100% - 112px); block-size: 100%; max-inline-size: none; object-fit: contain; opacity: 0; transition: opacity .2s ease; }
.lightbox__stage img.is-ready { opacity: 1; }
.lightbox__nav { position: absolute; inset-block-start: 50%; translate: 0 -50%; display: grid; place-items: center; inline-size: 48px; block-size: 48px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); cursor: pointer; }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox__nav::before { content: ""; inline-size: 12px; block-size: 12px; border-top: 2.5px solid #FFFFFF; border-right: 2.5px solid #FFFFFF; }
.lightbox__prev { inset-inline-start: 4px; }
.lightbox__next { inset-inline-end: 4px; }
.lightbox__prev::before { transform: translateX(-2px) rotate(45deg); }
.lightbox__next::before { transform: translateX(2px) rotate(-135deg); }
.lightbox button:focus-visible { outline: 2px solid #6FB4DB; outline-offset: 2px; }
.lightbox__cap { max-block-size: 36vh; overflow: auto; padding: 12px 16px 24px; background: #0D2531; border-block-start: 1px solid rgba(255, 255, 255, .12); }
.lightbox__cap > * { max-inline-size: 72ch; margin-inline: auto; }
.lightbox__cap p { margin-block: 0 4px; color: #E3ECF2; font-size: .98rem; line-height: 1.6; }
.lightbox__cap .st-cap__t { display: block; margin-block-end: 4px; color: #FFFFFF; font-size: 1.125rem; font-weight: 600; }
.lightbox__cap .st-cap__b { display: block; }
@media (max-width: 599.98px) {
  .lightbox__stage { padding: 0; }
  .lightbox__stage img { inset-inline: 0; inline-size: 100%; }
  .lightbox__nav { inset-block-start: auto; inset-block-end: 8px; translate: none; background: rgba(8, 20, 28, .7); }
}
