.gdiv{
  --gdiv-ink: #040404;
  --gdiv-paper: #FFFFFF;
  --gdiv-surface: #F4F4F4;
  --gdiv-panel: #CFCFCF;
  --gdiv-font: "Noto Sans Hebrew", system-ui, Arial, sans-serif;
  --gdiv-scrim: .45;
  /* The site header is a sticky container 5.5vw tall on desktop and 10vw on
     tablet, overlaying the top of the page. The strip parks right under it. */
  --gdiv-header-h: 5.5vw;
  --gdiv-strip-h: 79px;
  --gdiv-gutter: max(2rem, (100% - 80rem) / 2);
  --gdiv-radius: 20px;

  /* Proportions read off the Figma section, which is 1337 wide by 885 tall.
     Everything that is a share of the section is a percentage, so the same
     proportions hold in the site's 1280 container. Everything that is an
     absolute measurement - type, radius, icon, chip - stays in px. */
  --gdiv-sec-ratio: 66.2;    /* 885 / 1337, in container-width units */
  --gdiv-photo-w: 49%;       /* 655 / 1337 */
  --gdiv-card-w: 62.2%;      /* 832 / 1337 */
  --gdiv-inset: 4.8%;        /* 64  / 1337, the gutter on the content side */

  position: relative;
  inline-size: 100%;
  font-family: var(--gdiv-font);
  color: var(--gdiv-ink);
}

.gdiv__sr{
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Cover. A still picture, no rotation: this page is about reading, not
   browsing. Same scrim logic as the home hero so white type is always legible.
   ---------------------------------------------------------------------- */

.gdiv__cover{
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 560px;
  overflow: hidden;
  background-color: #07080A;
  color: var(--gdiv-paper);
}

.gdiv__cover-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.gdiv .gdiv__cover-media img{
  display: block;
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
  object-fit: cover;
  object-position: center;
}

.gdiv__cover-scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(4, 4, 4, calc(var(--gdiv-scrim) * .9)) 0%,
      rgba(4, 4, 4, calc(var(--gdiv-scrim) * .55)) 35%,
      rgba(4, 4, 4, calc(var(--gdiv-scrim) * .8)) 100%);
}

.gdiv__cover-content{
  z-index: 2;
  inline-size: 100%;
  max-inline-size: 910px;
  margin-inline: auto;
  padding-inline: 28px;
  padding-block: 140px 96px;
  text-align: center;
}

.gdiv .gdiv__eyebrow{
  margin: 0 0 20px;
  font-size: 17.6px;
  line-height: 26.4px;
  font-weight: 400;
  color: var(--gdiv-paper);
}

.gdiv .gdiv__title{
  margin: 0;
  font-size: clamp(44px, 26.67px + 4.815vw, 96px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--gdiv-paper);
  text-wrap: balance;
}

/* -------------------------------------------------------------------------
   Strip. Three anchors, one per division, coloured with the division colour.
   Ink is computed against that colour, never white on a pastel.

   Sticky is scoped to the widget root, which is exactly the run of content the
   strip steers: it lets go at the end of the last division and the footer
   scrolls in clean. The offset keeps it just under the site header, which is
   itself sticky at z-index 999; the strip sits below that, above the sections.
   ---------------------------------------------------------------------- */

.gdiv__strip-sentinel{
  block-size: 1px;
  margin-block-end: -1px;
}

.gdiv__strip{
  position: relative;
  z-index: 90;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  block-size: var(--gdiv-strip-h);
  transition: block-size .25s ease;
}

.gdiv .gdiv__tab{
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding-inline: clamp(24px, 3.5vw, 50px);
  background-color: var(--tab-bg);
  color: var(--tab-ink);
  font-family: var(--gdiv-font);
  text-decoration: none;
  text-align: start;
  border-block: 0.3px solid rgba(255, 255, 255, .9);
  border-inline-end: 0.3px solid rgba(255, 255, 255, .9);
  transition: filter .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.gdiv .gdiv__tab:last-child{ border-inline-end: 0; }
.gdiv .gdiv__tab:hover{
  color: var(--tab-ink);
  filter: brightness(.96);
}
.gdiv .gdiv__tab:focus-visible{
  outline: 2px solid var(--tab-ink);
  outline-offset: -6px;
}

.gdiv__tab-kicker{
  font-size: 16px;
  line-height: 23px;
  font-weight: 400;
  opacity: .78;
}
.gdiv__tab-name{
  font-size: 22px;
  line-height: 30px;
  font-weight: 400;
  transition: font-weight .15s ease;
}
.gdiv .gdiv__tab.is-active .gdiv__tab-name{
  font-weight: 700;
}
/* The one thing that says "you are here" without a colour change: a short ink
   rule at the foot of the active tab. */
.gdiv .gdiv__tab::after{
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: clamp(24px, 3.5vw, 50px);
  inline-size: 0;
  block-size: 3px;
  background-color: var(--tab-ink);
  transition: inline-size .3s cubic-bezier(.2, .7, .3, 1);
}
.gdiv .gdiv__tab.is-active::after{
  inline-size: 46px;
}

.gdiv .gdiv__tab-ico{
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: clamp(20px, 2.6vw, 38px);
  inline-size: 30px;
  block-size: 30px;
  transform: translateY(-50%);
  transition: transform .25s cubic-bezier(.2, .7, .3, 1);
}
.gdiv .gdiv__tab:hover .gdiv__tab-ico{
  transform: translate(-3px, calc(-50% + 3px));
}
/* Logical glyph: the arrow points "down and toward the inline start" of the
   line it sits on. In an LTR page the same drawing would point the wrong way,
   so it is mirrored there rather than redrawn. */
[dir="ltr"] .gdiv .gdiv__tab-ico,
[dir="ltr"] .gdiv .gdiv__card-ico,
[dir="ltr"] .gdiv .gdiv__chip-ico{
  transform: scaleX(-1);
}
[dir="ltr"] .gdiv .gdiv__tab-ico{
  transform: translateY(-50%) scaleX(-1);
}
/* The hover rule above outranks the mirror (one more class), so LTR needs its
   own hover that keeps the flip. Without it the arrow un-mirrors on hover. */
[dir="ltr"] .gdiv .gdiv__tab:hover .gdiv__tab-ico{
  transform: translate(3px, calc(-50% + 3px)) scaleX(-1);
}

/* -------------------------------------------------------------------------
   Sections.

   The Figma section is one #F4F4F4 panel with a 20px radius. The photograph is
   a second rounded rectangle laid on top of it, flush to one edge and running
   the full height - not a column with a gutter beside it. The coloured card is
   62% of the section and is parked over the photo's inner edge, which is what
   makes the composition read as one object instead of two.

   So: the panel is the section, the photo is absolutely positioned inside it,
   and the content column sits on top of both. Mobile is the same three parts
   stacked, which is why the photo is a normal flow item at the base and only
   becomes absolute from the tablet breakpoint up.
   ---------------------------------------------------------------------- */

.gdiv__body{
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-inline: var(--gdiv-gutter);
  padding-block: clamp(56px, 24.67px + 8.7vw, 112px) 0;
}

.gdiv__sec{
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--gdiv-radius);
  background-color: var(--gdiv-surface);
  /* Keeps the section title clear of the sticky strip when jumped to. */
  scroll-margin-block-start: calc(var(--gdiv-header-h) + var(--gdiv-strip-h) + 16px);
}

.gdiv__photo{
  position: relative;
  inline-size: 100%;
  aspect-ratio: 12 / 5;
  border-radius: var(--gdiv-radius);
  overflow: hidden;
  background-color: #DDDDDD;
}
.gdiv .gdiv__photo img{
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
}

.gdiv__content{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-inline-size: 0;
  padding-inline: 4.3%;
  padding-block-end: 9%;
}

/* Card ------------------------------------------------------------------ */

.gdiv__card{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* Pulled up over the foot of the photo, the way the mobile frame stacks. */
  margin-block-start: -20cqw;
  padding: 24px 26px;
  border-radius: 24px;
  background-color: var(--div-bg);
  color: var(--div-ink);
  box-shadow: 0 4.8px 64.8px 1.2px rgba(0, 0, 0, .03);
}

.gdiv__card-title,
.gdiv__card-row{
  inline-size: 100%;
}

.gdiv .gdiv__card-title{
  margin: 0;
  font-size: clamp(22px, 15px + 1.944vw, 43px);
  line-height: 1.21;
  font-weight: 500;
  letter-spacing: 0;
  color: inherit;
  text-align: start;
}
/* "חטיבת" sits on its own line above the name, as one two-line block. */
.gdiv__card-kicker{
  display: block;
}

.gdiv__card-row{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.gdiv .gdiv__card-ico{
  flex: none;
  inline-size: clamp(22px, 19.33px + .74vw, 30px);
  block-size: clamp(22px, 19.33px + .74vw, 30px);
  /* The glyph is inset from the row edge in the frame; the empty space is part
     of the SF Symbol box the design was drawn with, not a margin on the icon. */
  margin-inline-start: clamp(6px, .07px + 1.94vw, 28px);
  margin-block: 6px 10px;
  color: inherit;
}
.gdiv .gdiv__card-ico path{
  stroke-width: 1.1px;
}

.gdiv .gdiv__card-body{
  inline-size: 100%;
  margin: 0;
  font-size: clamp(16px, 14.93px + 0.296vw, 19.2px);
  line-height: 1.44;
  font-weight: 400;
  text-align: start;
  /* The frame sets this at 70% white. Ink is near-black here, so the same
     softening is done with an alpha on the ink; 0.82 keeps it above AA on
     each of the three division colours. */
  color: color-mix(in srgb, var(--div-ink) 82%, transparent);
}
@supports not (color: color-mix(in srgb, red, blue)){
  .gdiv .gdiv__card-body{ color: inherit; opacity: .82; }
}

/* Company list --------------------------------------------------------- */

.gdiv__more{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-block-start: 22px;
}

.gdiv .gdiv__more-title{
  margin: 0;
  font-size: clamp(22px, 15px + 1.944vw, 43px);
  line-height: 1.21;
  font-weight: 500;
  color: var(--gdiv-ink);
  text-align: start;
}

.gdiv .gdiv__chips{
  list-style: none;
  margin: 0;
  padding: 0;
  inline-size: 100%;
  display: grid;
  /* Two columns, not the three the logo row used: a name needs room for a
     second line, and an English name is three words where a Hebrew one is two. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 6px;
}
.gdiv .gdiv__chip-item{
  margin: 0;
  padding: 0;
}

.gdiv .gdiv__chip{
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-block-size: clamp(52px, 44.67px + 2.037vw, 74px);
  /* Sized for the name, not for the 110px logo lock-up that used to sit
     here: the narrow columns need the width for a second line. */
  padding-inline: clamp(6px, 4px + .56vw, 12px);
  /* The foot of the chip is about one arrow tall below the rule, which is what
     sets the space between one row of names and the next. */
  padding-block: clamp(14px, 10.67px + .926vw, 24px) clamp(14px, 12.67px + .37vw, 18px);
  border-radius: 11.56px;
  color: var(--gdiv-ink);
  text-decoration: none;
  transition: background-color .2s ease;
}
/* The rule under each chip: 139px of the 202px frame in the design, which is
   the chip minus its side padding. */
.gdiv .gdiv__chip::after{
  content: "";
  position: absolute;
  inset-block-end: clamp(8px, 6.67px + .37vw, 12px);
  inset-inline: clamp(6px, 4px + .56vw, 12px);
  block-size: 1px;
  background-color: var(--gdiv-ink);
  opacity: .9;
}
.gdiv .gdiv__chip:hover{
  background-color: rgba(255, 255, 255, .55);
  color: var(--gdiv-ink);
}
.gdiv .gdiv__chip:focus-visible{
  outline: 2px solid var(--gdiv-ink);
  outline-offset: -3px;
}

.gdiv__chip-arrow{
  flex: none;
  display: inline-flex;
  inline-size: 12px;
  block-size: 12px;
  color: var(--gdiv-ink);
}
.gdiv .gdiv__chip-ico{
  inline-size: 100%;
  block-size: 100%;
  transition: transform .2s ease;
}
.gdiv .gdiv__chip:hover .gdiv__chip-ico{
  transform: translate(-2px, 2px);
}
[dir="ltr"] .gdiv .gdiv__chip:hover .gdiv__chip-ico{
  transform: translate(2px, 2px) scaleX(-1);
}

/* The company name, first on the inline-start side, with the arrow trailing
   it at the far edge - the order the frame sets, and the order the row reads
   in. text-align: start puts the name on the right in Hebrew and on the left
   in English without a second rule.

   The box is a fixed two lines tall, so every chip in a row is the same
   height and the rule under it stays level however long the name runs. The
   text sits at the foot of the box, right above that rule, where the logo
   used to sit. */
.gdiv__chip-name{
  flex: 1 1 auto;
  min-inline-size: 0;
  display: flex;
  /* Centred in the two-line box: a one-line name would otherwise hang at the
     foot of it and leave an empty line above, which reads as a gap rather
     than as breathing room. */
  align-items: center;
  font-size: clamp(16px, 15.33px + .185vw, 18px);
  line-height: 1.2;
  font-weight: 500;
  block-size: 2.4em;
}
.gdiv__chip-text{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  inline-size: 100%;
  text-align: start;
  /* A single long word - an English name in the narrow panel - breaks
     rather than pushing the column open. Hebrew words wrap normally. */
  overflow-wrap: break-word;
}

/* Sub-groups ------------------------------------------------------------
   A division that is split (תכנון / חדשנות) shows its companies in grey
   panels instead of the flat list, and drops the "more about" heading - the
   sub-group name is the heading. On a phone the two panels become one panel
   with a rule down the middle, which is how the mobile frame draws it.
   ---------------------------------------------------------------------- */

.gdiv__groups{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block-start: 20px;
  border-radius: var(--gdiv-radius);
  background-color: var(--gdiv-panel);
}

.gdiv__group{
  display: flex;
  flex-direction: column;
  padding: 20px 4px 14px;
  min-inline-size: 0;
}
/* The rule belongs on the edge that faces the previous panel, which is the
   inline-start edge - the outer edge would draw it on the panel's rim. */
.gdiv__group + .gdiv__group{
  border-inline-start: 1px solid rgba(4, 4, 4, .22);
}

.gdiv .gdiv__group-title{
  margin: 0 0 12px;
  padding-inline: clamp(10px, 2.67px + 2.037vw, 29px);
  font-size: clamp(22px, 15px + 1.944vw, 43px);
  line-height: 1.21;
  font-weight: 500;
  color: var(--gdiv-ink);
  text-align: start;
}

/* The logo columns end level with each other, so a sub-group with fewer
   companies leaves its gap under the title rather than under the last logo. */
.gdiv__group .gdiv__chips{
  grid-template-columns: minmax(0, 1fr);
  margin-block-start: auto;
}

/* -------------------------------------------------------------------------
   Tablet and up: the photo leaves the flow and the composition assembles.
   ---------------------------------------------------------------------- */

@media (min-width: 768px){
  .gdiv__cover{
    /* Cover plus strip fill the first screen, as the home page does. */
    min-block-size: calc(100svh - var(--gdiv-strip-h));
  }
  .gdiv__cover-content{
    padding-block: 160px 120px;
  }
  .gdiv .gdiv__eyebrow{ margin-block-end: 32px; }

  .gdiv__sec{
    display: block;
  }

  .gdiv__photo{
    position: absolute;
    inset-block: 0;
    inline-size: var(--gdiv-photo-w);
    aspect-ratio: auto;
    block-size: auto;
  }
  .gdiv__sec--photo-end .gdiv__photo{ inset-inline-end: 0; }
  .gdiv__sec--photo-start .gdiv__photo{ inset-inline-start: 0; }

  .gdiv__content{
    min-block-size: calc(var(--gdiv-sec-ratio) * 1cqw);
    justify-content: center;
    padding-inline: 0;
    padding-block: clamp(40px, 4.5cqw, 64px);
  }

  .gdiv__card{
    inline-size: var(--gdiv-card-w);
    /* 430 of 1337 in the frame. Fixing the height keeps the three cards on one
       rhythm however long a division's paragraph runs, and gives the card the
       open foot the design has. */
    min-block-size: 32.2cqw;
    margin-block-start: 0;
    padding: 24px 18px;
    gap: 12px;
  }
  /* The panels are tucked into the card's foot, so that strip of the card has
     to stay empty. */
  .gdiv__sec--grouped .gdiv__card{
    padding-block-end: 77px;
  }
  /* The frame centres a 698 of 832 content block inside the card. */
  .gdiv__card-title,
  .gdiv__card-row{
    inline-size: 83.9%;
  }
  .gdiv .gdiv__card-body{
    inline-size: 61.4%;
  }
  .gdiv .gdiv__card-ico{
    margin-block: 4px 0;
  }

  .gdiv__more{
    align-items: flex-start;
  }
  .gdiv .gdiv__chips{
    inline-size: min(618px, 46cqw);
  }

  .gdiv__groups{
    inline-size: var(--gdiv-card-w);
    background-color: transparent;
    /* Two panels of 25% of the section, the pair centred under the card. */
    grid-template-columns: repeat(2, 40.1%);
    gap: 5.4%;
    /* Tucked under the foot of the card, as in the frame. */
    margin-block-start: -53px;
    z-index: 2;
    justify-content: center;
  }
  .gdiv__group{
    min-block-size: 361px;
    padding: 21px 0 38px;
    border-radius: var(--gdiv-radius);
    background-color: var(--gdiv-panel);
  }
  .gdiv__group + .gdiv__group{
    border-inline-start: 0;
  }
  .gdiv__group .gdiv__chips{
    inline-size: min(202px, 68%);
    margin-inline-start: 10px;
  }

  /* Content side: the card, the list and the panels all hang off the same
     gutter, on the side the photo is not on. */
  .gdiv__sec--photo-end .gdiv__content{ align-items: flex-start; }
  .gdiv__sec--photo-end .gdiv__card,
  .gdiv__sec--photo-end .gdiv__more,
  .gdiv__sec--photo-end .gdiv__groups{ margin-inline-start: var(--gdiv-inset); }

  .gdiv__sec--photo-start .gdiv__content{ align-items: flex-end; }
  .gdiv__sec--photo-start .gdiv__card,
  .gdiv__sec--photo-start .gdiv__more,
  .gdiv__sec--photo-start .gdiv__groups{ margin-inline-end: var(--gdiv-inset); }
  .gdiv__sec--photo-start .gdiv__more{ align-items: flex-end; }
}

@media (min-width: 768px) and (max-width: 1023px){
  .gdiv{ --gdiv-header-h: 10vw; }
  .gdiv__sec{
    scroll-margin-block-start: calc(var(--gdiv-header-h) + 16px);
  }
  .gdiv__groups{
    margin-block-start: -28px;
  }
  .gdiv__group{
    min-block-size: 0;
    padding-block: 18px 24px;
  }
  .gdiv__sec--grouped .gdiv__card{
    padding-block-end: 52px;
  }
}

@media (min-width: 1024px){
  /* Sticky strip. Only here, only when the widget asks for it. */
  .gdiv--sticky .gdiv__strip{
    position: sticky;
    inset-block-start: var(--gdiv-header-h);
  }
  .gdiv--sticky .gdiv__strip.is-stuck{
    block-size: 64px;
    box-shadow: 0 8px 24px rgba(4, 4, 4, .12);
  }
  .gdiv--sticky .gdiv__strip.is-stuck .gdiv__tab-kicker{
    font-size: 13px;
    line-height: 16px;
  }
  .gdiv--sticky .gdiv__strip.is-stuck .gdiv__tab-name{
    font-size: 19px;
    line-height: 24px;
  }
  .gdiv--sticky .gdiv__strip.is-stuck .gdiv__tab-ico{
    inline-size: 22px;
    block-size: 22px;
  }
}

@media (max-width: 767px){
  .gdiv{
    --gdiv-gutter: 1.75rem;
    --gdiv-strip-h: auto;
  }
  /* Cover plus the three bars fill the first screen, so all three bars sit on
     the foot of the screen on load. The script measures the bars (and how far
     the page is tucked under the header) into --gdiv-strip-fill; 168px is
     three 56px bars, for the moment before it runs. svh, not vh, so the last
     bar is never under the browser toolbar. */
  .gdiv__cover{
    min-block-size: max(420px, calc(100svh - var(--gdiv-strip-fill, 168px)));
  }
  .gdiv__cover-content{
    padding-block: 112px 48px;
  }
  /* Three full-width bars: three columns at 360px cannot hold the two-word
     names at a readable size. Not sticky - on a phone the strip would eat a
     third of the viewport. */
  .gdiv__strip{
    grid-auto-flow: row;
    grid-auto-columns: auto;
    block-size: auto;
  }
  .gdiv .gdiv__tab{
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    min-block-size: 56px;
    padding-block: 12px;
    padding-inline-end: 64px;
    border-inline-end: 0;
  }
  .gdiv__tab-kicker{ font-size: 15px; }
  .gdiv__tab-name{ font-size: 19px; line-height: 26px; }
  .gdiv .gdiv__tab-ico{ inline-size: 22px; block-size: 22px; }
  .gdiv .gdiv__tab::after{ display: none; }

  .gdiv__body{ gap: 50px; }
  .gdiv__sec{
    scroll-margin-block-start: 24px;
  }
}

@media (prefers-reduced-motion: reduce){
  .gdiv__strip,
  .gdiv .gdiv__tab,
  .gdiv .gdiv__tab::after,
  .gdiv .gdiv__tab-ico,
  .gdiv .gdiv__chip,
  .gdiv .gdiv__chip-ico{
    transition-duration: .01ms;
  }
}
