:root {
    --bg: oklch(0.985 0.004 85);
    --bg-alt: oklch(0.95 0.012 85);
    --border: oklch(0.88 0.015 85);
    --ink: oklch(0.22 0.05 258);
    --ink-soft: oklch(0.22 0.05 258 / 0.75);
    --navy: oklch(0.3 0.08 258);
    --navy-deep: oklch(0.2 0.06 258);
    --gold: oklch(0.72 0.11 78);
    --cream: oklch(0.98 0.005 85);
    --green: oklch(0.62 0.17 150);
    --red: oklch(0.58 0.2 27);
    --card: #fff;
    --radius: 14px;
    --shadow: 0 10px 30px -12px oklch(0.2 0.06 258 / 0.18);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  body { font-family: Heebo, system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.7; font-size: 17px; }
  h1, h2, h3, .serif { font-family: Heebo, system-ui, sans-serif; line-height: 1.25; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  .container { width: min(1180px, 100% - 32px); margin-inline: auto; }
  .skip { position: absolute; top: -40px; right: 8px; background: var(--navy); color: var(--cream); padding: 6px 12px; border-radius: 6px; z-index: 100; }
  .skip:focus { top: 8px; }

  /* Header */
  header { position: sticky; top: 0; z-index: 50; background: oklch(0.985 0.004 85 / 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
  .logo { font-family: Heebo, system-ui, sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--navy); }
  .logo span { color: var(--gold); }
  .nav ul { display: flex; gap: 28px; list-style: none; }
  .nav ul a { color: var(--ink-soft); font-weight: 600; transition: color .2s; }
  .nav ul a:hover { color: var(--gold); }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; border-radius: 8px; padding: 10px 20px; border: 0; cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform .2s, box-shadow .2s, background .2s; }
  .btn:hover { transform: translateY(-2px); }
  .btn-navy { background: var(--navy); color: var(--cream); }
  .btn-navy:hover { background: var(--navy-deep); }
  .btn-gold { background: var(--gold); color: var(--navy-deep); padding: 16px 28px; font-size: 1.1rem; box-shadow: 0 10px 25px -10px oklch(0.72 0.11 78 / 0.7); }

  /* Hero */
  .hero { position: relative; color: var(--cream); padding: 90px 0; overflow: hidden;
    background: url("/assets/img/hero.jpg") center/cover, var(--navy-deep); }
  .hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
  /* Intro: the photo alone first (veil off), then the veil settles in. --t0 is when the text starts. */
  .hero { --t0: 3.1s; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(oklch(0.2 0.06 258 / 0.55), oklch(0.2 0.06 258 / 0.92));
    animation: heroVeil 1.5s ease 1.1s backwards; }
  .pill { display: inline-block; border: 1px solid oklch(0.72 0.11 78 / 0.7); color: var(--gold); background: oklch(0.72 0.11 78 / 0.12); border-radius: 999px; padding: 4px 14px; font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
  .hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 900; margin-bottom: 22px; }
  .hero p { font-size: 1.12rem; opacity: .9; max-width: 560px; margin-bottom: 34px; }
  .hero-logo { display: flex; align-items: center; justify-content: center; }
  .hero-logo img { width: 100%; height: auto; max-height: 560px; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
  /* Hero motion: word-by-word reveal, blur-in logo, drawn line; same easing as the reference component */
  .hero-line { display: block; width: 48px; height: 2px; margin-bottom: 20px; background: var(--gold); border-radius: 2px;
    transform-origin: 100% 50%; animation: heroLine .6s cubic-bezier(.22, 1, .36, 1) calc(var(--t0, 0s) + .1s) both; }
  .hero h1 { perspective: 700px; }
  .hw { display: inline-block; transform-origin: 50% 100%;
    animation: heroWord .5s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--t0, 0s) + var(--i) * .05s + .25s); }
  /* backwards, not both: once finished the animation lets go of transform so the cursor-follow below can move the button */
  .hero-fade { animation: heroFade .6s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(var(--t0, 0s) + var(--d, .8s)); }
  .hero-cta { display: block; width: fit-content; will-change: transform; }
  /* the logo is placed by the intro script (small in the middle, then grows and moves to its spot);
     this CSS fallback just shows it when the text starts, in case scripts are blocked */
  .hero-logo { opacity: 0; animation: logoShow .6s ease var(--t0, 0s) forwards; }
  @keyframes heroLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes heroWord { from { opacity: 0; transform: translateY(20px) rotateX(90deg); } to { opacity: 1; transform: none; } }
  @keyframes heroFade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes heroVeil { from { opacity: 0; } to { opacity: 1; } }
  @keyframes logoShow { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .hero { --t0: 0s; }
    .hero::before, .hero-line, .hw, .hero-fade { animation: none; }
    .hero-logo { opacity: 1; animation: none; }
  }
  .hero-logo .fallback { font-family: Heebo, system-ui, sans-serif; font-size: 3rem; font-weight: 900; color: var(--navy); }

  /* Sections */
  section { padding: 90px 0; }
  .why-text { max-width: 760px; margin: 0 auto; }
  .why-text p { margin: 0 0 18px; line-height: 1.85; color: var(--ink-soft); font-size: 1.08rem; }
  .why-text .why-hl { color: var(--navy); font-weight: 700; font-size: 1.18rem; }
  .why-quote { margin: 30px 0 0; padding: 22px 26px; border-right: 4px solid var(--gold); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 700; font-size: 1.15rem; line-height: 1.8; color: var(--navy); }
  .eyebrow { display: block; text-align: center; color: var(--gold); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.4rem); letter-spacing: .03em; margin-bottom: 10px; }
  .title { text-align: center; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; margin-bottom: 14px; }
  .lead { text-align: center; color: var(--ink-soft); max-width: 640px; margin: 0 auto 48px; }
  .divider { width: 64px; height: 3px; background: var(--gold); margin: 0 auto 20px; border-radius: 2px; }

  .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px oklch(0.2 0.06 258 / 0.28); }
  .num { font-family: Heebo, system-ui, sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 12px; }
  .card h3 { font-size: 1.3rem; margin-bottom: 18px; }
  .row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
  .row .ic { flex: none; font-weight: 700; width: 20px; text-align: center; }
  .x { color: var(--red); } .v { color: var(--green); }
  .row b { display: block; font-size: .9rem; }

  /* Project */
  #project { background: var(--bg-alt); }
  .project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .specs { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--border); }
  .spec { padding: 22px 24px; border-bottom: 1px solid var(--border); }
  .spec:nth-child(odd) { border-left: 1px solid var(--border); }
  .spec:nth-last-child(-n+2) { border-bottom: 0; }
  .spec small { display: block; color: var(--ink-soft); font-size: .82rem; }
  .spec strong { font-family: Heebo, system-ui, sans-serif; font-size: 1.35rem; color: var(--navy); }
  .legal h3, .legal h2 { font-size: 1.35rem; margin-bottom: 22px; }
  .check { display: flex; gap: 14px; margin-bottom: 20px; }
  .check .dot { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--cream); display: grid; place-items: center; font-size: .9rem; }
  .check h4, .check h3 { font-size: 1.05rem; }
  .check p { color: var(--ink-soft); }

  /* Knowledge */
  .pod small { color: var(--gold); font-weight: 700; }
  .pod h3 { font-size: 1.15rem; margin: 8px 0 20px; min-height: 2.6em; }
  .player { display: flex; align-items: center; gap: 12px; background: var(--bg-alt); border-radius: 10px; padding: 12px 14px; color: var(--ink-soft); font-size: .88rem; }
  .play { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--navy); color: var(--cream); display: grid; place-items: center; font-size: .8rem; }
  .faq { max-width: 820px; margin: 70px auto 0; }
  .faq h3, .faq h2 { text-align: center; font-size: 1.6rem; margin-bottom: 24px; }
  details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
  summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1.05rem; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; transition: transform .25s; }
  details[open] summary::after { transform: rotate(45deg); }
  details p { padding: 0 22px 20px; color: var(--ink-soft); }

  /* About */
  #about { background: var(--navy-deep); color: var(--cream); }
  .about-grid { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 48px; align-items: center; }
  #about .eyebrow { text-align: right; }
  #about h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 20px; }
  #about p { opacity: .85; margin-bottom: 14px; }
  .people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .person { text-align: center; }
  .avatar { aspect-ratio: 3/4; border-radius: var(--radius); border: 1px solid oklch(0.72 0.11 78 / 0.35); background: linear-gradient(160deg, var(--navy), var(--navy-deep)); display: grid; place-items: center; font-family: Heebo, system-ui, sans-serif; font-size: 3.4rem; color: var(--gold); margin-bottom: 12px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person { min-width: 0; }
  /* שקיפות cards: numbers fade in after the card, gentle lift + gold edge on hover.
     Selectors are scoped and specific so they beat the generic .reveal.in rule further down. */
  #transparency .card .num { opacity: 0; transform: translateY(12px);
    transition: opacity .6s cubic-bezier(.22, 1, .36, 1) .35s, transform .6s cubic-bezier(.22, 1, .36, 1) .35s; }
  #transparency .card.in .num { opacity: 1; transform: none; }
  #transparency .card.reveal.in { transition: opacity .7s, transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease; }
  @media (hover: hover) {
    #transparency .card.reveal.in:hover { transform: translateY(-6px); border-color: oklch(0.72 0.11 78 / 0.75);
      box-shadow: 0 22px 44px -18px oklch(0.2 0.06 258 / 0.32), 0 0 0 1px oklch(0.72 0.11 78 / 0.35); }
  }
  @media (prefers-reduced-motion: reduce) {
    #transparency .card .num { opacity: 1; transform: none; transition: none; }
    #transparency .card.reveal.in:hover { transform: none; }
  }

  /* Location strip under the project details */
  .loc { margin-top: 64px; }
  .loc-title { text-align: center; font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 28px; }
  .loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
  .loc-card { text-align: center; padding: 28px 24px; }
  .loc-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 14px;
    color: var(--navy); background: oklch(0.72 0.11 78 / 0.16); box-shadow: inset 0 0 0 1px oklch(0.72 0.11 78 / 0.45); }
  .loc-card h4, .loc-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
  .loc-card p { color: var(--ink-soft); font-size: .98rem; }
  .loc-note { text-align: center; color: var(--ink-soft); font-size: .92rem; max-width: 620px; margin: 24px auto 0; }
  .loc-cta { text-align: center; margin-top: 22px; }
  .loc-cta .btn { padding: 14px 28px; font-size: 1.05rem; }

  /* Project section motion (all gentle, same easing as the hero) */
  /* 5. spec tiles appear one after another */
  .specs .spec { opacity: 0; transform: translateY(12px); transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1); }
  .specs.in .spec { opacity: 1; transform: none; }
  .specs.in .spec:nth-child(1) { transition-delay: .10s; } .specs.in .spec:nth-child(2) { transition-delay: .20s; }
  .specs.in .spec:nth-child(3) { transition-delay: .30s; } .specs.in .spec:nth-child(4) { transition-delay: .40s; }
  .specs.in .spec:nth-child(5) { transition-delay: .50s; } .specs.in .spec:nth-child(6) { transition-delay: .60s; }
  .specs.in .spec:nth-child(7) { transition-delay: .70s; } .specs.in .spec:nth-child(8) { transition-delay: .80s; }
  /* 1. development-area bar fills to 58% while the number counts up */
  .spec-bar { display: block; height: 4px; border-radius: 4px; margin-top: 10px; background: var(--border); overflow: hidden; }
  .spec-bar i { display: block; width: 58%; height: 100%; border-radius: 4px; transform: scaleX(0); transform-origin: 100% 50%;
    background: linear-gradient(270deg, var(--gold), oklch(0.8 0.1 85)); transition: transform 1.3s cubic-bezier(.22, 1, .36, 1) .2s; }
  .spec.go .spec-bar i { transform: scaleX(1); }
  /* 2. legal checks light up in sequence */
  .legal .check { opacity: 0; transform: translateY(12px); }
  .legal.in .check { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1); }
  .legal.in .check:nth-child(2) { transition-delay: .25s; } .legal.in .check:nth-child(3) { transition-delay: .50s; } .legal.in .check:nth-child(4) { transition-delay: .75s; }
  .legal.in .check .dot { animation: dotPop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
  .legal.in .check:nth-child(2) .dot { animation-delay: .35s; } .legal.in .check:nth-child(3) .dot { animation-delay: .60s; } .legal.in .check:nth-child(4) .dot { animation-delay: .85s; }
  @keyframes dotPop { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
  /* 3. location cards: lift + gold edge on hover */
  .loc-card.reveal.in { transition: opacity .7s, transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease; }
  @media (hover: hover) {
    .loc-card.reveal.in:hover { transform: translateY(-6px); border-color: oklch(0.72 0.11 78 / 0.75);
      box-shadow: 0 22px 44px -18px oklch(0.2 0.06 258 / 0.32), 0 0 0 1px oklch(0.72 0.11 78 / 0.35); }
  }
  /* 4. gold sheen across the contact button: once on entering view, again on hover */
  .loc-cta .btn { position: relative; overflow: hidden; }
  .loc-cta .btn::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(130%);
    background: linear-gradient(110deg, transparent 35%, oklch(0.85 0.12 85 / 0.55) 50%, transparent 65%); }
  .loc-cta.in .btn::after { animation: sheenA 1.3s ease .6s both; }
  @media (hover: hover) { .loc-cta .btn:hover::after { animation: sheenB .9s ease both; } }
  @keyframes sheenA { from { transform: translateX(130%); } to { transform: translateX(-130%); } }
  @keyframes sheenB { from { transform: translateX(130%); } to { transform: translateX(-130%); } }
  @media (prefers-reduced-motion: reduce) {
    .specs .spec, .legal .check { opacity: 1; transform: none; transition: none; }
    .spec-bar i { transform: none; transition: none; }
    .legal.in .check .dot, .loc-cta.in .btn::after, .loc-cta .btn:hover::after { animation: none; }
    .loc-card.reveal.in:hover { transform: none; }
  }

  /* Knowledge center motion */
  /* 2. podcast cards rise one after another (animation, so the hover transition below stays instant) */
  .pod.reveal { transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease; }
  .pod.reveal.in { animation: podRise .8s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: var(--d, 0s); }
  @keyframes podRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  /* 1. hover: gentle lift + gold edge */
  @media (hover: hover) {
    .pod.reveal.in:hover { transform: translateY(-6px); border-color: oklch(0.72 0.11 78 / 0.75);
      box-shadow: 0 22px 44px -18px oklch(0.2 0.06 258 / 0.32), 0 0 0 1px oklch(0.72 0.11 78 / 0.35); }
    .pod:hover .play { transform: scale(1.12); }
  }
  /* 3. play button: a soft gold ring "breathes" outward */
  .play { position: relative; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
  .play::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none;
    border: 2px solid oklch(0.72 0.11 78 / 0.6); animation: playRing 2.6s ease-out infinite; }
  @keyframes playRing { 0% { transform: scale(.9); opacity: .9; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
  /* 5. the open question gets a gold edge and a deeper gold tone (kept dark enough to read) */
  details { transition: border-color .3s ease, box-shadow .3s ease; }
  summary { transition: color .3s ease; }
  details[open] { border-color: oklch(0.72 0.11 78 / 0.6); box-shadow: 0 10px 26px -18px oklch(0.2 0.06 258 / 0.3); }
  details[open] summary { color: oklch(0.45 0.09 78); }
  @media (prefers-reduced-motion: reduce) {
    .pod.reveal.in { animation: none; }
    .play::after { animation: none; display: none; }
    .pod:hover .play, .pod.reveal.in:hover { transform: none; }
  }

  /* About motion */
  /* 1. the two people rise one after another */
  .people .person { opacity: 0; transform: translateY(24px); }
  .people.in .person { opacity: 1; transform: none;
    transition: opacity .8s cubic-bezier(.22, 1, .36, 1) var(--d, 0s), transform .8s cubic-bezier(.22, 1, .36, 1) var(--d, 0s); }
  /* 3. gold line draws under the heading */
  .about-line { display: block; width: 56px; height: 2px; margin: 0 0 22px; background: var(--gold); border-radius: 2px;
    transform: scaleX(0); transform-origin: 100% 50%; transition: transform .8s cubic-bezier(.22, 1, .36, 1) .25s; }
  .reveal.in .about-line { transform: scaleX(1); }
  /* 4. the two paragraphs fade up in turn */
  #about p.about-fade { opacity: 0; transform: translateY(14px); }
  #about .reveal.in p.about-fade { opacity: .85; transform: none;
    transition: opacity .7s cubic-bezier(.22, 1, .36, 1) var(--d, 0s), transform .7s cubic-bezier(.22, 1, .36, 1) var(--d, 0s); }
  /* 2. hover: gold frame, photo eases in, name lifts */
  .avatar { transition: border-color .4s ease, box-shadow .4s ease; }
  .avatar.has-photo img { transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
  .person strong { display: inline-block; transition: transform .35s cubic-bezier(.22, 1, .36, 1), color .35s ease; }
  @media (hover: hover) {
    .person:hover .avatar { border-color: oklch(0.72 0.11 78 / 0.9); box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .65), 0 0 0 1px oklch(0.72 0.11 78 / 0.4); }
    .person:hover .avatar.has-photo img { transform: scale(1.06); }
    .person:hover strong { transform: translateY(-3px); color: var(--gold); }
  }
  @media (prefers-reduced-motion: reduce) {
    .people .person { opacity: 1; transform: none; transition: none; }
    .about-line { transform: none; transition: none; }
    #about p.about-fade { opacity: .85; transform: none; transition: none; }
    .person:hover .avatar.has-photo img, .person:hover strong { transform: none; }
  }

  /* Contact form motion (selectors start with #contact so they win over the base form rules further down) */
  /* 1. gold line draws under the heading */
  #contact .divider.reveal { opacity: 1; transform: scaleX(0); transition: transform .8s cubic-bezier(.22, 1, .36, 1) .25s; }
  #contact .divider.reveal.in { transform: scaleX(1); }
  /* 3. active field: warm glow, label turns deep gold */
  #contact input[type=text], #contact input[type=tel], #contact input[type=email] {
    transition: border-color .35s ease, box-shadow .45s cubic-bezier(.22, 1, .36, 1), background-color .35s ease; }
  #contact input[type=text]:focus, #contact input[type=tel]:focus, #contact input[type=email]:focus {
    background-color: #fff; box-shadow: 0 0 0 4px oklch(0.72 0.11 78 / 0.22), 0 10px 24px -14px oklch(0.2 0.06 258 / 0.35); }
  #contact .field label { transition: color .3s ease; }
  #contact .field:focus-within > label { color: oklch(0.45 0.09 78); }
  /* 4. yes / no: fills with soft gold, the radio pops */
  #contact .choice { transition: border-color .3s ease, background-color .45s ease, box-shadow .35s ease; }
  #contact .choice:has(input:checked) { background-color: oklch(0.72 0.11 78 / 0.18); box-shadow: 0 0 0 1px oklch(0.72 0.11 78 / 0.5); }
  #contact .choice input:checked { animation: radioPop .4s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes radioPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
  /* 5. submit button: gold sheen on hover, dimmed while sending */
  #contact form .btn { position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s, background .2s, opacity .3s; }
  #contact form .btn::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(130%);
    background: linear-gradient(110deg, transparent 35%, oklch(0.85 0.12 85 / 0.5) 50%, transparent 65%); }
  @media (hover: hover) { #contact form .btn:hover:not(:disabled)::after { animation: sheenB .9s ease both; } }
  #contact form .btn:disabled { opacity: .8; cursor: progress; }
  /* 6. the answer message rises in, with a green check that pops */
  #contact .msg.ok, #contact .msg.no { animation: msgIn .5s cubic-bezier(.22, 1, .36, 1) both; }
  @keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  #contact .msg.ok::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-inline-end: 10px; vertical-align: middle;
    border-radius: 50%; background: var(--green); color: #fff; font-size: .85rem; animation: dotPop .5s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
  /* send failure: clear red notice with a "!" badge and a WhatsApp link */
  #contact .msg.fail { display: block; background: oklch(0.58 0.2 27 / 0.1); color: oklch(0.42 0.17 27);
    border: 1px solid oklch(0.58 0.2 27 / 0.35); animation: msgIn .5s cubic-bezier(.22, 1, .36, 1) both; }
  #contact .msg.fail::before { content: "!"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-inline-end: 10px; vertical-align: middle;
    border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: .9rem; animation: dotPop .5s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
  #contact .msg.fail a { color: inherit; font-weight: 700; text-decoration: underline; }
  /* 7. a field left empty gives one small shake, its message fades in */
  #contact .field.shake input, #contact .field.shake .choices { animation: fieldShake .45s cubic-bezier(.36, .07, .19, .97) both; }
  @keyframes fieldShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
  #contact .field.invalid .err { animation: errIn .4s ease both; }
  @keyframes errIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) {
    #contact .divider.reveal { transform: none; transition: none; }
    #contact .choice input:checked, #contact .msg.ok, #contact .msg.no, #contact .msg.ok::before, #contact .msg.fail, #contact .msg.fail::before,
    #contact .field.shake input, #contact .field.shake .choices, #contact .field.invalid .err { animation: none; }
    #contact form .btn:hover::after { animation: none; }
  }

  .avatar.has-photo { position: relative; overflow: hidden; background: #fff; }
  .avatar.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
  .person strong { font-size: 1.05rem; }

  /* Contact */
  form { max-width: 620px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 36px; box-shadow: var(--shadow); }
  label { display: block; font-weight: 700; margin-bottom: 8px; }
  .field { margin-bottom: 22px; }
  input[type=text], input[type=tel], input[type=email] { width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
  input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px oklch(0.72 0.11 78 / 0.25); }
  .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .choice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 13px 16px; cursor: pointer; font-weight: 600; margin: 0; }
  .choice:has(input:checked) { border-color: var(--gold); background: oklch(0.72 0.11 78 / 0.1); }
  .choice input { accent-color: var(--navy); width: 18px; height: 18px; }
  form .btn { width: 100%; padding: 16px; font-size: 1.1rem; margin-top: 6px; }
  .msg { margin-top: 18px; padding: 14px 16px; border-radius: 8px; font-weight: 600; display: none; }
  .msg.ok { display: block; background: oklch(0.62 0.17 150 / 0.12); color: oklch(0.42 0.12 150); }
  .msg.no { display: block; background: oklch(0.72 0.11 78 / 0.15); color: var(--ink); }
  .err { color: var(--red); font-size: .85rem; margin-top: 4px; display: none; }
  .field.invalid .err { display: block; }
  .field.invalid input { border-color: var(--red); }

  footer { background: var(--navy-deep); color: oklch(0.98 0.005 85 / 0.7); text-align: center; padding: 28px 16px; font-size: .9rem; }
  footer .logo { color: var(--cream); display: block; margin-bottom: 4px; }
  /* Footer contacts */
  footer { padding: 44px 16px 24px; }
  .foot-label { display: block; margin: 16px 0 14px; color: var(--gold); font-weight: 700; font-size: .85rem; letter-spacing: .06em; }
  .foot-contacts { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
  .foot-contact { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 10px; border-radius: 999px; color: var(--cream);
    border: 1px solid oklch(0.72 0.11 78 / 0.35); background: oklch(0.98 0.005 85 / 0.04);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, background-color .3s ease, box-shadow .3s ease; }
  .foot-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; color: var(--gold);
    background: oklch(0.72 0.11 78 / 0.18); transition: background-color .3s ease, color .3s ease; }
  .foot-name { font-weight: 600; }
  .foot-num { font-weight: 700; color: var(--gold); letter-spacing: .02em; unicode-bidi: isolate; }
  .foot-contact:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
  @media (hover: hover) {
    .foot-contact:hover { transform: translateY(-3px); border-color: oklch(0.72 0.11 78 / 0.8); background: oklch(0.72 0.11 78 / 0.1);
      box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .7); }
    .foot-contact:hover .foot-ic { background: var(--gold); color: var(--navy-deep); }
  }
  .foot-copy { margin-top: 28px; padding-top: 18px; border-top: 1px solid oklch(0.98 0.005 85 / 0.1); font-size: .85rem; }
  @media (max-width: 520px) { .foot-contact { width: 100%; max-width: 320px; justify-content: center; } }
  @media (prefers-reduced-motion: reduce) { .foot-contact, .foot-ic { transition: none; } .foot-contact:hover { transform: none; } }

  .wa { position: fixed; bottom: 22px; left: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px -6px #0006; z-index: 60; transition: transform .2s; }
  .wa:hover { transform: scale(1.08); }
  .wa svg { width: 30px; height: 30px; fill: #fff; }

  /* Liquid glass nav, themed to the site (the component's own CSS is injected by React) */
  #nav-root { display: flex; justify-content: center; min-width: 0; }
  .nimbus-nav.kafri-nav {
    --n-tint: oklch(0.3 0.08 258 / 0.07);
    --n-fg: var(--navy);
    --n-fg-soft: oklch(0.22 0.05 258 / 0.62);
    --n-rim: rgba(255, 255, 255, 0.9);
    font-family: Heebo, system-ui, sans-serif;
  }
  /* states: normal = soft navy, hover = navy + faint glass wash, active = deep navy on the navy/gold drop */
  .nimbus-nav.kafri-nav { --n-fg-soft: oklch(0.22 0.05 258 / 0.74); }
  .nimbus-nav.kafri-nav .nimbus-item { font-weight: 600; font-size: 15px; transition: color .45s cubic-bezier(.4, 0, .2, 1); }
  .nimbus-nav.kafri-nav .nimbus-item::before {
    content: ""; position: absolute; inset: 3px; border-radius: inherit; z-index: -1; pointer-events: none;
    background: oklch(0.3 0.08 258 / 0.08); box-shadow: inset 0 0 0 1px oklch(0.72 0.11 78 / 0.35);
    opacity: 0; transition: opacity .35s ease;
  }
  .nimbus-nav.kafri-nav .nimbus-item .nv-ico svg { transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), stroke .45s ease; }
  .nimbus-nav.kafri-nav .nimbus-item:hover { color: var(--navy); }
  .nimbus-nav.kafri-nav .nimbus-item[aria-current="page"] { color: var(--navy-deep); }
  @media (hover: hover) {
    .nimbus-nav.kafri-nav .nimbus-item:not([aria-current="page"]):hover::before { opacity: 1; }
  }
  .nimbus-nav.kafri-nav .nimbus-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
  .nimbus-nav.kafri-nav .nimbus-glass {
    box-shadow: inset 0 1px 1px var(--n-rim), inset 0 0 0 1px var(--border), 0 10px 26px -14px oklch(0.2 0.06 258 / 0.35);
  }
  .logo { white-space: nowrap; }
  @media (max-width: 560px) {
    .nav { gap: 8px; }
    .nav > .btn { display: none; } /* "תיאום פגישה" is already in the pill */
  }
  @media (max-width: 380px) {
    .logo { font-size: 1.15rem; }
    .nimbus-nav.kafri-nav[data-compact="true"] { padding: 4px; gap: 0; }
    .nimbus-nav.kafri-nav[data-compact="true"] .nimbus-item { padding: 0 10px; }
  }

  /* Tablet and phone layout polish */
  @media (min-width: 601px) and (max-width: 900px) {
    section .grid3 { grid-template-columns: repeat(2, 1fr); }
    section .grid3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  }
  @media (max-width: 900px) {
    .hero-logo { max-width: 460px; width: 100%; margin-inline: auto; }
    .people { max-width: 460px; width: 100%; margin-inline: auto; }
    .avatar { aspect-ratio: 1; }
    .hero p { max-width: none; }
  }

  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

  @media (max-width: 900px) {
    .nav ul { display: none; }
    .hero .container, .project-grid, .about-grid { grid-template-columns: 1fr; }
    .hero { padding: 56px 0; }
    .grid3 { grid-template-columns: 1fr; }
    section { padding: 64px 0; }
    form { padding: 24px; }
  }

  /* Phone: calmer, tighter layout (same content, smaller gaps, compact cards). Kept last so it wins. */
  @media (max-width: 600px) {
    section { padding: 44px 0; }
    .hero { padding: 36px 0 40px; }
    .hero .container { gap: 22px; }
    .hero h1 { margin-bottom: 14px; }
    .hero p { font-size: 1.02rem; margin-bottom: 22px; }
    .hero-logo { max-width: 270px; }
    .eyebrow { margin-bottom: 4px; }
    .title { margin-bottom: 10px; }
    .lead { margin-bottom: 26px; }
    #project .title, #knowledge .title { margin-bottom: 24px !important; }
    .grid3 { gap: 14px; }
    .card { padding: 20px; }
    .num { font-size: 1.8rem; margin-bottom: 6px; }
    .card h3 { font-size: 1.15rem; margin-bottom: 12px; }
    .row { margin-bottom: 8px; }
    .spec { padding: 14px 16px; }
    .spec strong { font-size: 1.15rem; }
    .project-grid { gap: 26px; }
    .legal h3, .legal h2 { margin-bottom: 14px; font-size: 1.2rem; }
    .check { margin-bottom: 14px; }
    /* location cards become compact rows: icon beside the text */
    .loc { margin-top: 34px; }
    .loc-title { margin-bottom: 16px; }
    .loc-grid { gap: 10px; }
    .loc-card { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic h" "ic p"; column-gap: 14px; align-items: center; text-align: start; padding: 14px 16px; }
    .loc-ic { grid-area: ic; width: 44px; height: 44px; margin: 0; }
    .loc-ic svg { width: 22px; height: 22px; }
    .loc-card h4, .loc-card h3 { grid-area: h; margin: 0; font-size: 1.05rem; }
    .loc-card p { grid-area: p; font-size: .92rem; }
    .loc-note { margin-top: 16px; }
    .loc-cta { margin-top: 16px; }
    /* podcast cards and FAQ */
    .pod h3 { min-height: 0; margin: 4px 0 12px; font-size: 1.05rem; }
    .player { padding: 8px 10px; font-size: .82rem; }
    .faq { margin-top: 34px; }
    .faq h3, .faq h2 { font-size: 1.35rem; margin-bottom: 14px; }
    summary { padding: 14px 16px; font-size: 1rem; }
    details p { padding: 0 16px 16px; }
    details { margin-bottom: 10px; }
    form { padding: 20px; }
    .field { margin-bottom: 16px; }
    footer { padding: 32px 16px 20px; }
    .foot-copy { margin-top: 20px; padding-top: 14px; }
  }

  /* Phone: only the navigation pill, floating fixed at the bottom of the screen (no logo text, no top button) */
  @media (max-width: 600px) {
    html { scroll-padding-top: 12px; }
    header { position: fixed; top: auto; bottom: 0; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
      border: 0; box-shadow: none; pointer-events: none; padding-bottom: env(safe-area-inset-bottom); }
    header .logo, header .nav > .btn { display: none; }
    .nav { height: auto; justify-content: center; padding: 10px 0; }
    #nav-root { pointer-events: auto; }
    .nimbus-nav.kafri-nav { --n-tint: oklch(0.985 0.004 85 / 0.86); box-shadow: 0 14px 34px -14px oklch(0.2 0.06 258 / 0.5); }
    .wa { bottom: calc(84px + env(safe-area-inset-bottom)); left: 14px; width: 52px; height: 52px; }
    footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  }

  /* Projects hub + project pages */
  [hidden] { display: none !important; }
  #projects, #rehovot { background: var(--bg-alt); }
  .pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 920px; margin: 0 auto; }
  .pcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
  .pcard.reveal.in { transition: opacity .7s, transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease; }
  .pimg { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-deep); display: grid; place-items: center; }
  .pimg i { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
  .pimg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(oklch(0.2 0.06 258 / 0.1), oklch(0.2 0.06 258 / 0.55)); }
  .pimg.soon { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); }
  .pimg.soon img { position: relative; z-index: 1; width: 46%; max-height: 80%; object-fit: contain; opacity: .92; }
  .pimg .tag { position: absolute; z-index: 2; top: 14px; right: 14px; border: 1px solid oklch(0.72 0.11 78 / 0.7); color: var(--gold);
    background: oklch(0.2 0.06 258 / 0.55); border-radius: 999px; padding: 3px 12px; font-size: .82rem; font-weight: 600; }
  .pbody { padding: 22px 24px 24px; }
  .pbody h3 { font-size: 1.35rem; margin-bottom: 8px; }
  .ploc { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }
  .pgo { margin-top: 16px; display: inline-flex; gap: 8px; align-items: center; color: var(--navy); font-weight: 700; }
  .pgo .arr { display: inline-block; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
  @media (hover: hover) {
    .pcard.reveal.in:hover { transform: translateY(-6px); border-color: oklch(0.72 0.11 78 / 0.75); box-shadow: 0 22px 44px -18px oklch(0.2 0.06 258 / 0.35); }
    .pcard:hover .pimg i { transform: scale(1.06); }
    .pcard:hover .pgo .arr { transform: translateX(-6px); }
  }
  .pback-bar { background: var(--bg-alt); padding: 22px 0 0; }
  .pback { display: inline-flex; gap: 8px; align-items: center; color: var(--navy); font-weight: 700; text-decoration: none; padding: 6px 2px; }
  .pback span { display: inline-block; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
  @media (hover: hover) { .pback:hover span { transform: translateX(4px); } }
  .pview section { padding-top: 36px; min-height: 55vh; }
  .pview .lead { margin-bottom: 40px; }
  @media (prefers-reduced-motion: reduce) {
    .pcard.reveal.in:hover, .pcard:hover .pimg i, .pcard:hover .pgo .arr, .pback:hover span { transform: none; }
    .pimg i, .pgo .arr, .pback span { transition: none; }
  }
  @media (max-width: 700px) {
    .pgrid { grid-template-columns: 1fr; gap: 20px; }
    .pbody { padding: 18px 20px 20px; }
    .pview section { padding-top: 24px; }
  }
  /* Satellite link (Rehovot page): navy band with a gold glow, same easing as the rest */
  .sat { position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; margin: 34px auto 0; max-width: 820px; padding: 22px 28px;
    border-radius: var(--radius); color: var(--cream); text-decoration: none; border: 1px solid oklch(0.72 0.11 78 / 0.45);
    background: radial-gradient(120% 160% at 100% 0%, oklch(0.36 0.09 258), var(--navy-deep) 70%); box-shadow: 0 18px 40px -20px oklch(0.2 0.06 258 / 0.6); }
  .sat::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(130%);
    background: linear-gradient(100deg, transparent 30%, oklch(0.72 0.11 78 / 0.22) 50%, transparent 70%); }
  .sat.reveal.in { transition: opacity .7s, transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease; }
  .sat-bg { position: absolute; inset: 0; background-size: cover; background-position: center 55%; filter: blur(2.5px) saturate(.9); transform: scale(1.08); transition: transform 1s cubic-bezier(.22, 1, .36, 1); }
  .sat::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(270deg, oklch(0.2 0.06 258 / 0.92) 0%, oklch(0.2 0.06 258 / 0.8) 55%, oklch(0.2 0.06 258 / 0.5) 100%); }
  .sat { min-height: 132px; padding-block: 28px; }
  .sat > span { position: relative; z-index: 3; }
  .sat::after { z-index: 2; }
  @media (hover: hover) { .sat:hover .sat-bg { transform: scale(1.14); } }
  @media (prefers-reduced-motion: reduce) { .sat-bg { transition: none; } .sat:hover .sat-bg { transform: none; } }
  .sat-ic { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--gold);
    background: oklch(0.72 0.11 78 / 0.14); border: 1px solid oklch(0.72 0.11 78 / 0.5); }
  .sat-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
  .sat-txt strong { font-size: 1.15rem; }
  .sat-txt small { font-size: .92rem; opacity: .8; }
  .sat-btn { flex: none; display: inline-flex; gap: 8px; align-items: center; background: var(--gold); color: var(--navy-deep); font-weight: 700; border-radius: 8px; padding: 10px 18px; }
  .sat-btn .arr { display: inline-block; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
  .sat.in::after { animation: sheenA 1.6s ease .5s both; }
  @media (hover: hover) {
    .sat.reveal.in:hover { transform: translateY(-4px); border-color: oklch(0.72 0.11 78 / 0.9); box-shadow: 0 24px 46px -18px oklch(0.2 0.06 258 / 0.7); }
    .sat:hover .sat-btn .arr { transform: translate(-3px, -3px); }
  }
  .sat:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) { .sat.in::after { animation: none; } .sat.reveal.in:hover, .sat:hover .sat-btn .arr { transform: none; } }
  @media (max-width: 700px) {
    .sat { flex-wrap: wrap; padding: 18px 18px 20px; gap: 14px; }
    .sat-ic { width: 46px; height: 46px; }
    .sat-txt { flex: 1 1 calc(100% - 66px); }
    .sat-btn { width: 100%; justify-content: center; }
  }
  /* Satellite band as a compact photo card: sharp image, text and button on a navy fade at the bottom */
  .sat { max-width: 600px; min-height: 0; aspect-ratio: 16 / 8; align-items: flex-end; justify-content: space-between; padding: 22px 24px; gap: 16px; }
  .sat-bg { filter: none; transform: none; background-position: center 45%; }
  .sat::before { background: linear-gradient(0deg, oklch(0.2 0.06 258 / 0.94) 0%, oklch(0.2 0.06 258 / 0.7) 38%, oklch(0.2 0.06 258 / 0) 72%); }
  .sat-ic { display: none; }
  .sat-txt { flex: 1; }
  .sat-txt strong { font-size: 1.2rem; }
  @media (hover: hover) { .sat:hover .sat-bg { transform: scale(1.05); } }
  @media (max-width: 700px) {
    .sat { aspect-ratio: auto; min-height: 210px; flex-direction: column; align-items: stretch; justify-content: flex-end; padding: 18px; gap: 12px; }
    .sat-txt { flex: none; }
    .sat { min-height: 250px; }
    .sat::before { background: linear-gradient(0deg, oklch(0.2 0.06 258 / 0.96) 0%, oklch(0.2 0.06 258 / 0.88) 50%, oklch(0.2 0.06 258 / 0.15) 100%); }
  }
  /* Photo row: same height side by side, small caption under each, click to enlarge */
  .pgal { display: flex; gap: 18px; max-width: 1000px; margin: 34px auto 0; align-items: flex-start; }
  .pgal figure { flex: var(--ar, 1) 1 0; min-width: 0; margin: 0; }
  .pgal-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: zoom-in;
    background: var(--card); box-shadow: var(--shadow); line-height: 0; }
  .pgal-btn img { display: block; width: 100%; height: auto; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
  .pgal figcaption { margin-top: 10px; text-align: center; font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }
  .pgal figure.reveal.in .pgal-btn { transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease; }
  @media (hover: hover) {
    .pgal figure.reveal.in:hover .pgal-btn { transform: translateY(-4px); border-color: oklch(0.72 0.11 78 / 0.75); box-shadow: 0 18px 38px -16px oklch(0.2 0.06 258 / 0.35); }
    .pgal figure:hover .pgal-btn img { transform: scale(1.04); }
  }
  .pgal-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) { .pgal figure.reveal.in:hover .pgal-btn, .pgal figure:hover .pgal-btn img { transform: none; } }
  @media (max-width: 900px) {
    .pgal { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
    .pgal figure { flex: none; }
    .pgal .pgal-wide { grid-column: 1 / -1; order: -1; }
  }
  .lb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 12px; padding: 20px;
    background: oklch(0.2 0.06 258 / 0.94); cursor: zoom-out; animation: lbIn .3s ease both; }
  .lb img { max-width: min(96vw, 1200px); max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
  .lb p { color: var(--cream); text-align: center; font-size: 1rem; }
  @keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .lb { animation: none; } }
  .pimg .credit { position: absolute; z-index: 2; bottom: 8px; left: 10px; font-size: .68rem; color: rgba(255,255,255,.8); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
/* ===== "מן העיתונות" on the project page: news items in the site's own card style ===== */
.press { margin-top: 56px; }
.press-list { display: grid; gap: 18px; max-width: 860px; margin: 0 auto 8px; }
.news { padding: 24px 28px; border-right: 4px solid var(--gold); }
.news-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .85rem; color: var(--ink-soft); margin-bottom: 10px; }
.news-meta strong { color: var(--navy); font-weight: 700; }
.news h3 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 10px; }
.news h3 a { color: var(--navy); transition: color .2s; }
.news h3 a:hover { color: var(--gold); }
.news p { color: var(--ink-soft); margin: 0 0 12px; line-height: 1.8; }
.news-link { font-weight: 700; font-size: .92rem; color: var(--navy); }
.news-link:hover { color: var(--gold); }
.news h3 a:focus-visible, .news-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.nf { padding: 90px 0; text-align: center; }
@media (max-width: 600px) { .news { padding: 18px 18px; } .news h3 { font-size: 1.1rem; } }