/* Homepage - page-specific styles. */

/* ------------------------------------------------------------
   Header over the hero (home.js toggles .is-over-hero and .on-dark)
   ------------------------------------------------------------ */
.hdr.is-over-hero {
  background: rgba(255,255,255,.24);
  border-bottom-color: rgba(255,255,255,.3);
}
/* Without backdrop blur the see-through header is unreadable, so keep the opaque fallback from components.css. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  .hdr.is-over-hero {
    background: rgb(var(--paper-rgb) / .95);
    border-bottom-color: var(--line);
  }
}
@media (min-width:900px) {
  .hdr.is-over-hero .flag {
    color: rgba(255,255,255,.8);
  }
  .hdr.is-over-hero .flag:hover {
    color: #fff;
  }
  .hdr.is-over-hero .menu-btn {
    color: #fff;
  }
  .hdr.is-over-hero .nav a.on-dark {
    color: rgba(255,255,255,.8);
  }
  .hdr.is-over-hero .nav a.on-dark:hover,
  .hdr.is-over-hero .nav a.on-dark[aria-current] {
    color: #fff;
  }
}

#approach {
  background: var(--bg-2);
  overflow-x: clip;
  --wave-fill: var(--bg-2);
}
[aria-labelledby="clients-title"] {
  background: var(--bg-3);
  --wave-fill: var(--bg-3);
  --wave-tint: var(--c2);
}
[aria-labelledby="why-title"] {
  background: var(--bg-2);
  /* The ghost heading's nowrap line is wider than a phone viewport. */
  overflow-x: clip;
  --wave-fill: var(--bg-2);
}

/* ------------------------------------------------------------
   Hero (split layout)
   ------------------------------------------------------------ */
.hero {
  --gutter: var(--s2);
  --side: var(--navy);
  display: grid;
  background: radial-gradient(55% 70% at 95% 10%, rgb(var(--accent-rgb) / .12),transparent 70%), var(--bg-1);
  overflow: hidden;
  margin-top: calc(-1 * var(--hdr-h));
}
:where(:root[dir="ltr"]) .hero {
  background: radial-gradient(55% 70% at 5% 10%, rgb(var(--accent-rgb) / .12),transparent 70%), var(--bg-1);
}
@media (min-width:700px) {
  .hero {
    --gutter: var(--s4);
  }
}
.hero-main {
  padding: calc(var(--s9) + var(--hdr-h)) var(--gutter) var(--s8);
}
.hero-side {
  position: relative;
  background: var(--side);
  color: #fff;
  padding: var(--s6) var(--gutter) var(--s8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s4);
}
/* The wave colour #2952D9 is deliberate (not --blue); it is hard-coded because data-URI SVGs can't read CSS variables. */
.hero-side::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(-1 * var(--s7) + 1px);
  height: var(--s7);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 56' preserveAspectRatio='none'%3E%3Cpath d='M0 56V16C140 -4 270 -2 400 14S670 40 800 6V56Z' fill='%232952D9' fill-opacity='.14'/%3E%3Cpath d='M0 56V24C135 2 265 2 400 20S670 46 800 12V56Z' fill='%232952D9' fill-opacity='.32'/%3E%3Cpath d='M0 56V34C130 10 260 10 400 30S670 56 800 26V56Z' fill='%230E1B2C'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
:where(:root[dir="ltr"]) .hero-side::before {
  transform: scaleX(-1);
}
@media (min-width:900px) {
  .hero {
    --gutter: max(var(--s4), calc((100vw - var(--wrap)) / 2 + var(--s4)));
    min-height: min(calc(640px + var(--hdr-h)), calc(100svh - var(--s15)));
    grid-template-columns: minmax(0,65fr) minmax(0,35fr);
  }
  .hero-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: calc(clamp(var(--s8), 12vh, var(--s14)) + var(--hdr-h)) clamp(var(--s6), 9vh, var(--s12));
    padding-inline: var(--gutter) calc(var(--s10) + var(--s4));
  }
  .hero-side {
    justify-content: flex-start;
    padding-block: var(--hdr-h) clamp(var(--s6), 9vh, var(--s12));
    padding-inline: var(--s4) max(var(--s4), min(var(--gutter), calc(35vw - var(--s4) - 420px)));
  }
  .hero-side::before {
    inset-inline: calc(-1 * var(--s14) + 1px) auto;
    top: 0;
    bottom: 0;
    height: auto;
    width: var(--s14);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 112 800' preserveAspectRatio='none'%3E%3Cpath d='M0 0H72C112 135 108 275 64 412S30 668 88 800H0Z' fill='%232952D9' fill-opacity='.14'/%3E%3Cpath d='M0 0H56C96 128 94 268 50 406S16 664 70 800H0Z' fill='%232952D9' fill-opacity='.32'/%3E%3Cpath d='M0 0H40C80 120 80 260 36 400S0 660 50 800H0Z' fill='%230E1B2C'/%3E%3C/svg%3E");
  }
  :where(:root[dir="ltr"]) .hero-side::before {
    transform: scale(-1,-1);
  }
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin: 0 0 var(--s2);
  font-size: var(--text-sm);
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cyan);
}
.hero-eyebrow::before {
  content: "";
  flex: none;
  width: var(--s3);
  height: 2px;
  border-radius: 1px;
  background: var(--grad-brand);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  /* Two full sentences: a notch below --text-display so each Hebrew sentence holds one line on desktop. */
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  text-wrap: balance;
  margin: 0;
}
/* One sentence per line; each sentence balances on its own when it has to wrap. */
.hero h1 > span {
  display: block;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy {
  position: relative;
  margin-top: var(--s4);
}
.hero-copy p {
  margin: 0 0 var(--s2);
  font-size: clamp(16px,1.3vw,18px);
  line-height: 1.6;
  max-width: 56ch;
}
.hero-copy p:last-of-type {
  margin-bottom: 0;
}
.hero-actions {
  margin-top: var(--s5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
}
.facts {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: max-content minmax(0,1fr);
  column-gap: var(--s2);
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: 420px;
}
.facts li {
  display: grid;
  grid-column: 1/-1;
  grid-template-columns: subgrid;
  align-items: center;
  padding: var(--s2) 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.facts b {
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.3px;
  direction: ltr;
  color: rgba(255,255,255,.92);
  font-size: clamp(34px,4vw,58px);
  text-align: center;
}
.facts span {
  color: rgba(255,255,255,.62);
  font-size: var(--text-sm);
  line-height: 20px;
  font-weight: 400;
  text-wrap: pretty;
}
@media (min-width:900px) and (max-width:1149px) {
  .facts b {
    text-align: start;
  }
  .facts {
    grid-template-columns: minmax(0,1fr);
  }
  .facts li {
    grid-template-columns: minmax(0,1fr);
    row-gap: 4px;
  }
}
#why-title {
  text-align: var(--side-start);
}
.sec[aria-labelledby="why-title"] .sec-head {
  margin-bottom: var(--s3);
  padding-top: calc(var(--s6) - var(--s3) + var(--s6) - var(--s4));
}
@media (min-width:900px) {
  .sec[aria-labelledby="why-title"] .sec-head {
    margin-bottom: var(--s3);
    padding-top: calc(var(--s9) - var(--s3) + var(--s6) - var(--s4));
  }
  #approach {
    padding-top: 0;
  }
  #approach .vectors {
    margin-top: calc(-1 * var(--s4));
  }
}
.vectors {
  display: grid;
  gap: var(--s6);
}
#approach .sec-head {
  margin-bottom: 0;
}
#approach .sec-head p {
  max-width: 38ch;
}
.rh {
  position: relative;
  container-type: inline-size;
}
.rh-stage {
  position: relative;
}
.rh-lines,
.rh-core {
  display: none;
}
.rh-cells {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 2px solid var(--line);
}
.rh-cells li {
  display: grid;
  padding: var(--s3) 0;
  border-bottom: 2px solid var(--line);
}
.rh-cells h3 {
  margin: 0 0 var(--s1);
  font-weight: 300;
  font-size: 26px;
  line-height: 36px;
}
.rh-cells h3 b {
  font-weight: 700;
}
.rh-cells p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}
/* Group labels: "business value" over the top row, "enablers" under the bottom row. */
.rh-group {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0;
  font-size: var(--text-sm);
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cyan);
}
/* Hebrew has no capitals; wide tracking only hurts it. */
.rh-group:lang(he) {
  letter-spacing: .3px;
  font-size: var(--text-ui);
}
/* Below the diagram breakpoint the vectors list takes the "why" feature-card look. */
@media (max-width:759px) {
  /* Flatten stage + list so each group label can sit directly above its two cards. */
  .rh {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
  }
  .rh-stage,
  .rh-cells {
    display: contents;
  }
  .rh-group::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
  }
  .rh-group.is-value {
    order: 0;
  }
  .rh-cells li:nth-child(1) {
    order: 1;
  }
  .rh-cells li:nth-child(2) {
    order: 2;
  }
  .rh-group.is-enablers {
    order: 3;
    margin-top: var(--s2);
  }
  .rh-cells li:nth-child(3) {
    order: 4;
  }
  .rh-cells li:nth-child(4) {
    order: 5;
  }
  .rh-cells {
    gap: var(--s3);
    border-top: 0;
  }
  .rh-cells li {
    --c: var(--c1);
    position: relative;
    overflow: hidden;
    padding: var(--s4);
    border: var(--glass-border);
    border-radius: var(--radius);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(2px) saturate(140%);
    backdrop-filter: blur(2px) saturate(140%);
    box-shadow: var(--shadow-card);
    gap: var(--s2);
  }
  @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    .rh-cells li {
      background: rgba(255,255,255,.6);
    }
  }
  .rh-cells li:nth-child(2) {
    --c: var(--c2);
  }
  .rh-cells li:nth-child(3) {
    --c: var(--cyan);
  }
  .rh-cells li::before,
  .rh-cells li::after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    height: var(--s-half);
    transition: width .8s var(--ease-out);
  }
  .rh-cells li::before {
    width: 70%;
    background: linear-gradient(var(--to-end), var(--c),transparent);
  }
  .rh-cells li::after {
    width: 0;
    background: var(--c);
  }
  .rh-cells li:hover::before,
  .rh-cells li:hover::after,
  .rh-cells li:focus-visible::before,
  .rh-cells li:focus-visible::after {
    width: 100%;
  }
  .rh-cells h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: var(--text-h3);
    line-height: 1.2;
  }
  .rh-cells h3 b {
    font-weight: inherit;
  }
}
@media (max-width:759px) and (prefers-reduced-motion:reduce) {
  .rh-cells li::before,
  .rh-cells li::after {
    transition: none;
  }
}
@media (min-width:760px) {
  .rh-stage {
    aspect-ratio: 500/340;
  }
  .rh-lines {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--cyan);
    fill: none;
  }
  .rh-lines line {
    stroke-width: 2.5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
  }
  .rh-lines .edge {
    stroke: currentColor;
    stroke-opacity: .8;
    transition: stroke-width .25s ease, stroke-opacity .25s ease;
  }
  .rh-lines .edge.on {
    stroke-width: 5;
    stroke-opacity: 1;
  }
  .rh-lines .cell {
    fill: url(#rh-fill);
    opacity: 0;
    transition: opacity .3s ease;
  }
  .rh-lines .cell.on {
    opacity: 1;
  }
  .rh-lines .arrow {
    opacity: 0;
    transition: opacity .25s ease;
  }
  .rh-lines .arrow.on {
    opacity: 1;
  }
  .rh-lines .arrow .shaft,
  .rh-lines .arrow .head {
    transform-box: view-box;
    transition: transform .5s var(--ease-out);
  }
  .rh-lines .arrow .head {
    stroke: currentColor;
    stroke-opacity: .4;
  }
  .rh-lines .arrow[data-i="0"] .shaft {
    transform-origin: 0 -80px;
    transform: scaleY(0);
  }
  .rh-lines .arrow[data-i="0"] .head {
    transform: translate(0,85px);
  }
  .rh-lines .arrow[data-i="1"] .shaft {
    transform-origin: -120px 0;
    transform: scaleX(0);
  }
  .rh-lines .arrow[data-i="1"] .head {
    transform: translate(125px,0);
  }
  .rh-lines .arrow[data-i="2"] .shaft {
    transform-origin: 120px 0;
    transform: scaleX(0);
  }
  .rh-lines .arrow[data-i="2"] .head {
    transform: translate(-125px,0);
  }
  .rh-lines .arrow[data-i="3"] .shaft {
    transform-origin: 0 80px;
    transform: scaleY(0);
  }
  .rh-lines .arrow[data-i="3"] .head {
    transform: translate(0,-85px);
  }
  .rh-lines .arrow.on .shaft,
  .rh-lines .arrow.on .head {
    transform: none;
  }
  .rh-lines .arrow line,
  .rh-lines .arrow polyline {
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    vector-effect: non-scaling-stroke;
  }
  .rh-cells {
    position: absolute;
    inset: 0;
    display: block;
    border: 0;
  }
  .rh-cells li {
    position: absolute;
    width: 48%;
    height: 47.06%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s-half);
    padding: 0 8%;
    border: 0;
    text-align: center;
    clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
    cursor: pointer;
    outline: none;
  }
  .rh-cells li:nth-child(1) {
    left: 50%;
    top: 2.94%;
  }
  .rh-cells li:nth-child(2) {
    left: 2%;
    top: 2.94%;
  }
  .rh-cells li:nth-child(3) {
    left: 50%;
    top: 50%;
  }
  .rh-cells li:nth-child(4) {
    left: 2%;
    top: 50%;
  }
  :where(:root[dir="ltr"]) .rh-cells li:nth-child(odd) {
    left: 2%;
  }
  :where(:root[dir="ltr"]) .rh-cells li:nth-child(even) {
    left: 50%;
  }
  .rh-cells h3 {
    margin: 0;
    font-size: clamp(22px,3.4cqw,34px);
    line-height: 1.15;
    color: var(--muted);
    transition: color .25s ease, opacity .25s ease, transform .25s ease;
  }
  .rh-cells.has-on li:not(.is-on) h3 {
    opacity: .5;
  }
  .rh-cells li.is-on h3 {
    transform: scale(1.08);
  }
  .rh-cells h3 span,
  .rh-cells h3 b {
    display: block;
  }
  .rh-cells li.is-on h3,
  .rh-cells li:hover h3 {
    color: var(--ink);
  }
  .rh-cells li:focus-visible h3 {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
  .rh-cells p {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .rh-core {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 25%;
    transform: translate(-50%,-50%);
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: clamp(15px,2.4cqw,21px);
    line-height: 1.45;
    text-wrap: balance;
    transition: opacity .16s ease;
  }
  .rh-core.swap {
    opacity: 0;
  }
  /* Group labels become brackets spanning the top row (value) and the bottom row (enablers). */
  .rh {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
  }
  .rh-group {
    justify-content: center;
    padding-inline: 6%;
  }
  .rh-group::before,
  .rh-group::after {
    content: "";
    flex: 1;
    height: var(--s1);
    border: 0 solid rgb(var(--c2-rgb) / .45);
    border-top-width: 1px;
    transform: translateY(calc(var(--s1) / 2));
  }
  .rh-group::before {
    border-inline-start-width: 1px;
  }
  .rh-group::after {
    border-inline-end-width: 1px;
  }
  .rh-group.is-enablers::before,
  .rh-group.is-enablers::after {
    border-top-width: 0;
    border-bottom-width: 1px;
    transform: translateY(calc(var(--s1) / -2));
  }
  /* The English descriptions are ~70% longer than the Hebrew ones: give them a wider box (same type size). */
  :where(:root[lang="en"]) .rh-core {
    width: 32%;
  }
}
@media (min-width:1100px) {
  .vectors {
    grid-template-columns: minmax(0,1fr) minmax(0,1.9fr);
    align-items: center;
    gap: var(--s7);
  }
  .rh {
    margin-inline-end: calc(-1 * clamp(0px, (100vw - var(--wrap)) / 2, var(--s15)));
  }
  #approach .sec-head {
    position: relative;
    top: -32px;
  }
}
.logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width:640px) {
  .logos {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}
@media (min-width:1000px) {
  .logos {
    grid-template-columns: repeat(6, minmax(0,1fr));
  }
}
.logos li {
  background: var(--surface);
  display: grid;
  place-items: center;
  aspect-ratio: 3/2;
  padding: var(--s3);
}
.logo-img {
  display: block;
  max-width: 80%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.band {
  background: radial-gradient(60% 90% at 0% 100%, rgb(var(--c2-rgb) / .55),transparent 70%), var(--band);
  color: var(--band-ink);
  padding: var(--s12) 0;
  --wave-fill: var(--band);
}
:where(:root[dir="ltr"]) .band {
  background: radial-gradient(60% 90% at 100% 100%, rgb(var(--c2-rgb) / .55),transparent 70%), var(--band);
}
@media (min-width:900px) {
  .band {
    padding: var(--s15) 0;
  }
}
.band .wrap {
  display: grid;
  gap: var(--s4);
}
@media (min-width:900px) {
  .band .wrap {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
    gap: var(--s10);
  }
}
.band h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px,4.4vw,56px);
  line-height: 1.08;
  letter-spacing: -.8px;
  text-wrap: balance;
  margin: 0;
}
.band p {
  margin: 0 0 var(--s4);
  color: var(--band-muted);
  font-size: 19px;
  line-height: var(--s4);
  max-width: 40ch;
}
.band .btn {
  background: linear-gradient(to bottom, #fff, var(--surface-tint));
  color: var(--band);
}
.sec[aria-labelledby="clients-title"] {
  padding: var(--s8) 0 calc(var(--s8) + var(--wave-h));
}
.sec[aria-labelledby="clients-title"] .logos {
  margin-top: -16px;
}
:where(:root[dir="ltr"]) .rh-lines {
  transform: scaleX(-1);
}

/* Clients section lead line */
.sec-head .clients-lead {
  max-width: none;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.5;
}


/* Client logos: clean white grid, equal-height cells; logo files are pre-normalized 2:1 canvases */
.sec[aria-labelledby="clients-title"] .logos {
  gap: 0;
  background: var(--surface);
  border: 0;
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.sec[aria-labelledby="clients-title"] .logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: auto;
  height: 104px;
  padding: 8px 12px;
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.sec[aria-labelledby="clients-title"] .logo-img {
  width: 100%;
  height: 100%;
  max-width: 220px;
  max-height: none;
  object-fit: contain;
}
.sec[aria-labelledby="clients-title"] .logo-img[src*="shapir"] {
  width: 56%;
  height: 50%;
  max-width: 120px;
}
@media (max-width:639px) {
  .logos li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
@media (min-width:640px) and (max-width:999px) {
  .sec[aria-labelledby="clients-title"] .logos li {
    height: 116px;
  }
  .logos li:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
  }
  .logos li:last-child:nth-child(3n+2) {
    grid-column: span 2;
  }
}
@media (min-width:1000px) {
  .logos {
    grid-template-columns: repeat(7, minmax(0,1fr));
  }
  .sec[aria-labelledby="clients-title"] .logos li {
    height: 112px;
    padding: 8px 10px;
  }
}