/* טריפטיך – full site. Motif: tall panels side by side that open on hover (hero = the build in three stages, work = the trades). */
:root { --bg: #f7f5f1; --bg-2: #efebe4; --ink: #1b232b; --navy: #214765; --mute: #6f7378; --line: #e1ddd5; --ease: cubic-bezier(.2,.7,.2,1); }
body { background: var(--bg); color: var(--ink); font: 300 17px/1.8 Heebo, sans-serif; }
h1, h2, h3 { line-height: 1.15; }
h2 { font-size: clamp(32px, 3.2vw, 46px); font-weight: 300; }
h2 b, h1 b { font-weight: 700; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 14px; display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; background: var(--ink); color: #fff; border: 0; text-decoration: none; font: 400 15px Heebo, sans-serif; cursor: pointer; transition: background .3s; }
.btn:hover { background: var(--navy); }
.btn-lg { height: 54px; padding: 0 32px; font-size: 16px; }
.tel { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(247,245,241,.92); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.hdr.scrolled { box-shadow: 0 1px 0 var(--line); }
.hdr-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 80px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 30px; font-size: 15px; font-weight: 400; }
.nav a { text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; inset: auto 0 -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.hdr-end { justify-self: end; display: flex; gap: 18px; align-items: center; }
.hdr .ico { opacity: .75; } .hdr .ico:hover { opacity: 1; }

/* panels (shared) */
.tri { display: flex; gap: 14px; }
.panel { position: relative; flex: 1; overflow: hidden; margin: 0; background: var(--bg-2); transition: flex 1s var(--ease); }
.tri:hover .panel { flex: 1 !important; }
.tri .panel:hover { flex: 2.4 !important; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.panel:hover img { transform: scale(1.04); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,14,18,.66), rgba(10,14,18,0) 48%); }
.panel figcaption { position: absolute; z-index: 1; right: 22px; bottom: 18px; left: 22px; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.panel figcaption b { display: block; font-size: 22px; font-weight: 500; }
.panel figcaption span { font-size: 14px; opacity: .88; }
.panel figcaption em { font-style: normal; font-size: 11px; opacity: .65; white-space: nowrap; }
.panel figcaption p { max-height: 0; opacity: 0; overflow: hidden; font-size: 14px; line-height: 1.6; transition: max-height .6s var(--ease), opacity .5s, margin .5s; }
.panel:hover figcaption p { max-height: 90px; opacity: .9; margin-top: 6px; }

/* hero */
.head { text-align: center; padding: 44px 20px 42px; }
.head h1 { font-size: clamp(38px, 4.2vw, 58px); font-weight: 300; }
.hero-tri { height: calc(100vh - 360px); min-height: 420px; width: calc(100% - 64px); margin: 0 auto; }
.hero-tri .panel { animation: up 1.2s var(--ease) both; }
.hero-tri .panel:nth-of-type(2) { flex: 1.8; animation-delay: .12s; }
.hero-tri .panel:nth-of-type(3) { animation-delay: .24s; }
@keyframes up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.under { display: flex; justify-content: space-between; align-items: center; gap: 30px; width: calc(100% - 64px); margin: 26px auto 0; padding-bottom: 100px; }
.under p { color: var(--mute); max-width: 600px; }
.under .cta { display: flex; gap: 24px; align-items: center; flex: none; }

/* about */
.about { border-top: 1px solid var(--line); padding: 110px 0 100px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 90px; }
.about .big { font-size: 20px; margin-bottom: 16px; }
.about p { color: var(--mute); }
.about .big { color: var(--ink); }
.trades { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 70px; border-block: 1px solid var(--line); }
.trades li { padding: 26px 0; text-align: center; font-size: 18px; font-weight: 400; }
.trades li + li { border-inline-start: 1px solid var(--line); }

/* team + experience */
.story { padding: 40px 0 110px; }
.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.story-row + .story-row { margin-top: 110px; }
.story-row.rev .story-img { order: 2; }
.story-img { position: relative; margin: 0; }
.story-img img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.story-img figcaption { position: absolute; bottom: 12px; left: 12px; font-size: 12px; color: #fff; background: rgba(0,0,0,.35); padding: 1px 10px; }
.story h2 { margin-bottom: 24px; }
.story p { color: var(--mute); margin-bottom: 14px; }
.quote { margin: 28px 0; padding-inline-start: 22px; border-inline-start: 3px solid var(--navy); font-size: 22px; font-weight: 400; line-height: 1.5; color: var(--ink); }

/* work: second panel row */
.work { background: var(--ink); color: #fff; padding: 100px 0 110px; }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.work-head .eyebrow { color: #a9bdd0; }
.work-head a { color: rgba(255,255,255,.8); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); flex: none; }
.work-tri { height: 520px; }
.work .panel { background: #2a333c; }
.work-note { margin-top: 16px; }

/* advantages */
.adv { padding: 110px 0; }
.adv-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 50px; }
.adv-head p { color: var(--navy); font-size: 20px; font-weight: 400; }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.adv-grid li { padding: 30px 30px 34px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; font-size: 18px; font-weight: 400; }
.adv-grid li:not(:nth-child(3n+1)) { padding-inline-start: 30px; border-inline-start: 1px solid var(--line); }
.adv-grid svg { flex: none; width: 22px; height: 22px; margin-top: 4px; color: var(--navy); }

/* contact */
.contact { background: var(--bg-2); padding: 110px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 90px; }
.contact .lead2 { margin-top: 14px; color: var(--mute); }
.details { margin: 40px 0 0; }
.details div { display: grid; grid-template-columns: 80px 1fr; padding: 15px 0; border-top: 1px solid rgba(27,35,43,.14); }
.details dt { color: var(--mute); font-size: 14px; padding-top: 2px; }
.details dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 400; }
.details a { text-decoration: none; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; align-content: start; }
.form label { display: grid; gap: 4px; font-size: 13px; color: var(--mute); font-weight: 400; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: 300 17px Heebo, sans-serif; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(27,35,43,.3); border-radius: 0; padding: 8px 0; outline: none; appearance: none; resize: vertical; }
.form select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b232b' stroke-width='1.2'/%3E%3C/svg%3E") left 2px center no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); }

/* footer */
.ftr { background: var(--ink); color: rgba(255,255,255,.7); padding: 60px 0 0; font-size: 14px; }
.ftr-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-bottom: 36px; }
.ftr-top img { height: 46px; width: auto; }
.ftr nav { display: flex; gap: 28px; }
.ftr nav a { text-decoration: none; } .ftr nav a:hover { color: #fff; }
.ftr .social { display: flex; gap: 16px; }
.ftr-legal { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 26px 76px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 1100px) { .hdr .ico { display: none; } .nav { gap: 22px; } }
@media (max-width: 900px) {
  body { font-size: 16px; }
  .hdr-row { grid-template-columns: 1fr auto; height: 68px; }
  .logo img { height: 38px; }
  .hdr-end .btn { display: none; }
  .nav { position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0; background: var(--bg); padding: 6px 20px 18px; box-shadow: 0 14px 24px rgba(0,0,0,.08); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .head { padding: 24px 20px 26px; }
  .tri { flex-direction: column; height: auto !important; min-height: 0; width: calc(100% - 40px); }
  .wrap .tri { width: 100%; }
  .tri .panel, .tri:hover .panel, .tri .panel:hover { flex: none !important; height: 230px; }
  .hero-tri .panel:nth-of-type(2) { height: 320px; }
  .panel figcaption p { max-height: none; opacity: .9; margin-top: 4px; }
  .under { flex-direction: column; align-items: start; width: calc(100% - 40px); padding-bottom: 60px; }
  .under .cta { flex-wrap: wrap; gap: 16px; }
  .about { padding: 70px 0; }
  .about-grid, .story-row, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .trades { grid-template-columns: 1fr 1fr; margin-top: 44px; }
  .trades li { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .trades li + li { border-inline-start: 0; }
  .trades li:nth-child(even) { border-inline-start: 1px solid var(--line); }
  .trades li:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .story { padding: 20px 0 70px; }
  .story-row + .story-row { margin-top: 60px; }
  .story-row.rev .story-img { order: 0; }
  .quote { font-size: 19px; }
  .work { padding: 70px 0; }
  .work-head, .adv-head { flex-direction: column; align-items: start; gap: 10px; }
  .adv { padding: 70px 0; }
  .adv-grid { grid-template-columns: 1fr; }
  .adv-grid li, .adv-grid li:not(:nth-child(3n+1)) { padding: 20px 0; border-inline-start: 0; }
  .contact { padding: 70px 0; }
  .form { grid-template-columns: 1fr; gap: 20px; }
  .ftr-top { flex-direction: column; align-items: start; }
  .ftr nav { flex-wrap: wrap; gap: 12px 22px; }
  .ftr-legal { flex-direction: column; padding: 20px 0 90px; }
}

/* v4: stronger hero copy */
.head { padding: 40px 20px 36px; }
.head h1 { font-size: clamp(36px, 3.9vw, 56px); font-weight: 300; line-height: 1.12; }
.head h1 b { color: var(--navy); }
.head-sub { max-width: 720px; margin: 18px auto 0; color: var(--mute); font-size: 18px; }
.hero-tri { height: calc(100vh - 490px); min-height: 340px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.proof li { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 16px; }
.proof svg { width: 20px; height: 20px; color: var(--navy); }
@media (max-width: 900px) {
  .head-sub { font-size: 16px; margin-top: 14px; }
  .proof { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .proof li { font-size: 15px; }
}
/* v6: the h1 states what and for whom */
.head h1 { font-size: clamp(32px, 3.4vw, 50px); font-weight: 300; color: var(--ink); }
.head h1 b { font-weight: 700; color: var(--navy); }
/* v7: no eyebrow; sub-line on one line on desktop, balanced lines elsewhere (no lone last word) */
.head { padding-top: 48px; }
.head-sub { max-width: none; white-space: nowrap; }
h1, h2, h3, .head-sub, .lead2, .under p, .story p, .about p { text-wrap: balance; }
@media (max-width: 1100px) { .head-sub { white-space: normal; max-width: 640px; } }
/* v8: each part of the h1 is its own balanced block, so no word is left alone */
.head h1 b, .head h1 span { display: block; text-wrap: balance; }
@media (max-width: 900px) { .head h1 { font-size: 29px; } }

/* v9: mobile pass */
.nw { white-space: nowrap; }
.details dd .nw + .nw::before, .legal .nw + .nw::before { content: "· "; }
.adv-grid li, .proof li, .panel figcaption, .details dd, .head-sub, .lead2, .under p { text-wrap: balance; }
.mbar { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: 68px; }
  .wa { display: none; }
  /* action bar */
  .mbar { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; position: fixed; z-index: 60; inset: auto 0 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(247,245,241,.96); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 var(--line); }
  .mbar a { display: flex; align-items: center; justify-content: center; height: 48px; text-decoration: none; font-weight: 500; font-size: 16px; }
  .mbar-call { border: 1px solid var(--ink); color: var(--ink); }
  .mbar-wa { background: #1f8f4e; color: #fff; }
  /* panels become a swipe row: shorter page, next panel peeks in */
  .tri, .wrap .tri { flex-direction: row; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-inline: 20px; scroll-padding-inline: 20px; scrollbar-width: none; }
  .tri::-webkit-scrollbar { display: none; }
  .tri .panel, .tri:hover .panel, .tri .panel:hover, .hero-tri .panel:nth-of-type(2) { flex: 0 0 84% !important; height: 58vh; min-height: 360px; scroll-snap-align: start; }
  .work-tri .panel, .work-tri:hover .panel, .work-tri .panel:hover { height: 380px; min-height: 0; }
  .work .wrap .tri { margin-inline: -20px; width: calc(100% + 40px); }
  .panel::after { background: linear-gradient(0deg, rgba(10,14,18,.85) 0%, rgba(10,14,18,.35) 45%, rgba(10,14,18,0) 70%); }
  .panel figcaption b { font-size: 21px; }
  .swipe-hint { display: block; }
  .head { padding: 26px 20px 22px; }
  .under { margin-top: 18px; padding-bottom: 50px; }
  .under .cta { display: none; }
  /* type */
  .about .big { font-size: 17px; }
  .story p, .about p { font-size: 16px; }
  h2 { font-size: 30px; }
  .story-img img { aspect-ratio: 4 / 3; }
  .adv-grid li { font-size: 16px; padding: 16px 0; }
  .details dd { gap: 2px 14px; }
  /* footer */
  .ftr nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 26px; }
  .ftr-legal { padding-bottom: 30px; }
  .legal .nw { display: block; }
  .legal .nw + .nw::before { content: none; }
}
@media (max-width: 900px) { .details dd .nw + .nw::before { content: none; } .details dd { gap: 4px 16px; } }

/* v11: contact methods instead of a form */
.contact-grid { align-items: center; }
.addr { margin-top: 26px; color: var(--mute); font-size: 15px; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.way { display: flex; align-items: center; gap: 16px; padding: 22px 22px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .25s; }
.way:hover { border-color: var(--ink); transform: translateY(-2px); }
.way svg { flex: none; width: 26px; height: 26px; fill: var(--navy); }
.way b { display: block; font-size: 18px; font-weight: 500; color: var(--ink); }
.way small { display: block; font-size: 14px; color: var(--mute); }
.way-wa { grid-column: 1 / -1; background: #1f8f4e; border-color: #1f8f4e; }
.way-wa svg { fill: #fff; width: 30px; height: 30px; }
.way-wa b { color: #fff; font-size: 20px; }
.way-wa small { color: rgba(255,255,255,.85); }
.way-wa:hover { border-color: #1f8f4e; background: #1a7d44; }
.bars { display: none; }

@media (max-width: 900px) {
  /* centred text on mobile */
  .about, .story, .work-head, .adv-head, .contact, .ftr, .under, .about-grid, .story-row > div { text-align: center; }
  .eyebrow { display: block; }
  .work-head, .adv-head { align-items: center; }
  .proof { justify-content: center; }
  .adv-grid li { justify-content: center; text-align: center; }
  .adv-grid svg { display: none; }
  .quote { border-inline-start: 0; padding: 18px 0 0; border-top: 3px solid var(--navy); display: inline-block; }
  .ftr-top { align-items: center; }
  .ftr nav { justify-content: center; }
  .ftr .social { justify-content: center; }
  .ftr-legal { align-items: center; text-align: center; }
  .ftr-legal .credit { justify-content: center; }
  .ways { grid-template-columns: 1fr; }
  .way { justify-content: center; text-align: center; flex-direction: column; gap: 8px; padding: 18px; }
  .way-wa { grid-column: auto; }

  .under { margin-top: 0; padding: 26px 20px 50px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .hero .hero-tri .panel img { transition: none; transform: none; } }
@media (min-width: 901px) { .hero-tri .panel.on { opacity: 1; } }
@media (max-width: 900px) {
  .proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
  .proof li { white-space: nowrap; }
}


/* v14: three mobile hero variants – html[data-m="1|2|3"] (?m=1/2/3) */
.stages { display: none; }
@media (max-width: 900px) {
  html:not(.mx) .hero { position: relative; display: flex; flex-direction: column; }
  html:not(.mx) .hero .hero-tri { position: relative; display: block; padding: 0; overflow: hidden; width: auto; }
  html:not(.mx) .hero .hero-tri .panel, html:not(.mx) .hero .hero-tri:hover .panel, html:not(.mx) .hero .hero-tri .panel:hover, html:not(.mx) .hero .hero-tri .panel:nth-of-type(2) { position: absolute; inset: 0; height: 100%; min-height: 0; opacity: 0; transition: opacity 1.2s ease; animation: none; flex: none !important; }
  html:not(.mx) .hero .hero-tri .panel.on { opacity: 1; }
  html:not(.mx) .hero .hero-tri .panel img { transform: scale(1.08); transition: transform 7s ease-out; }
  html:not(.mx) .hero .hero-tri .panel.on img { transform: none; }
  html:not(.mx) .hero .hero-tri figcaption div { display: none; }
  html:not(.mx) .hero .hero-tri figcaption { inset: auto 14px 12px auto; }
  html:not(.mx) .hero .hero-tri figcaption em { font-size: 11px; }

  /* 1 · עריכתי: full-bleed photo, then the words on paper below it */
  html[data-m="1"] .hero .hero-tri { order: -1; height: 58svh; }
  html[data-m="1"] .hero .hero-tri .panel::after { background: linear-gradient(0deg, rgba(10,14,18,.25), rgba(10,14,18,0) 40%); }
  html[data-m="1"] .hero .head { padding: 34px 24px 6px; }
  html[data-m="1"] .hero .head h1 { font-size: 27px; line-height: 1.25; }
  html[data-m="1"] .hero .head h1::before { content: ""; display: block; width: 36px; height: 2px; background: var(--navy); margin: 0 auto 18px; }
  html[data-m="1"] .hero .head h1 b { color: var(--ink); }
  html[data-m="1"] .hero .head h1 span { color: var(--mute); font-weight: 300; font-size: 21px; margin-top: 6px; }
  html[data-m="1"] .hero .head-sub { font-size: 15px; }

  /* 2 · מסגרת: words first, a framed photo that changes, stage names under it */
  html[data-m="2"] .hero .head { padding: 30px 24px 22px; }
  html[data-m="2"] .hero .head h1 { font-size: 27px; line-height: 1.25; }
  html[data-m="2"] .hero .head h1 span { color: var(--mute); font-weight: 300; font-size: 21px; margin-top: 6px; }
  html[data-m="2"] .hero .head-sub { display: none; }
  html[data-m="2"] .hero .hero-tri { margin: 0 16px; height: 50svh; }
  html[data-m="2"] .hero .hero-tri .panel::after { background: none; }
  html[data-m="2"] .stages { display: flex; justify-content: center; gap: 22px; padding: 14px 16px 0; }
  html[data-m="2"] .stages button { all: unset; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--mute); padding-bottom: 6px; border-bottom: 2px solid transparent; transition: color .3s, border-color .3s; }
  html[data-m="2"] .stages button.on { color: var(--ink); border-color: var(--navy); }

  /* 3 · קולנוע: full-screen photo, quiet light type, slow crossfade */
  html[data-m="3"] .hero { height: calc(100svh - 68px - 68px); min-height: 520px; background: var(--ink); }
  html[data-m="3"] .hero .hero-tri { position: absolute; inset: 0; }
  html[data-m="3"] .hero .hero-tri .panel::after { background: linear-gradient(0deg, rgba(8,11,14,.78) 0%, rgba(8,11,14,.35) 38%, rgba(8,11,14,0) 62%); }
  html[data-m="3"] .hero .hero-tri figcaption { inset: 14px auto auto 14px; }
  html[data-m="3"] .hero .head { position: absolute; z-index: 2; inset: auto 0 0; padding: 0 26px 34px; pointer-events: none; }
  html[data-m="3"] .hero .head h1 { font-size: 25px; line-height: 1.3; color: #fff; }
  html[data-m="3"] .hero .head h1 b { color: #fff; font-weight: 500; }
  html[data-m="3"] .hero .head h1 span { color: rgba(255,255,255,.8); font-weight: 300; font-size: 19px; margin-top: 8px; }
  html[data-m="3"] .hero .head h1 span::before { content: ""; display: block; width: 32px; height: 1px; background: rgba(255,255,255,.6); margin: 0 auto 12px; }
  html[data-m="3"] .hero .head-sub { display: none; }
}
.embed .switch { display: none !important; }
@media (max-width: 900px) { .hero .hero-tri { margin-inline: 0; align-self: stretch; } html[data-m="2"] .hero .hero-tri { margin-inline: 16px; } }

/* v17: mobile hero 4 · "Multiplex/Mace" pattern – dark, sharp full-width photo, big white type below (default) */
.logo .l-white, .kick, .head-link { display: none; }
@media (max-width: 900px) {
  html[data-m="4"] body { background: var(--bg); }
  html[data-m="4"] .hdr { background: #0f1418; box-shadow: none; color: #fff; }
  html[data-m="4"] .logo .l-dark { display: none; }
  html[data-m="4"] .logo .l-white { display: block; }
  html[data-m="4"] .nav { background: #0f1418; color: #fff; }
  html[data-m="4"] .nav a { border-color: rgba(255,255,255,.12); }
  html[data-m="4"] .hero { background: #0f1418; color: #fff; padding-bottom: 40px; }
  html[data-m="4"] .hero .hero-tri { order: -1; height: 46svh; min-height: 300px; }
  html[data-m="4"] .hero .hero-tri .panel::after { background: none; }
  html[data-m="4"] .hero .hero-tri .panel img { transition: transform 9s ease-out; }
  html[data-m="4"] .hero .hero-tri figcaption { inset: auto auto 10px 12px; }
  html[data-m="4"] .hero .hero-tri figcaption em { opacity: .8; }
  html[data-m="4"] .hero .head { padding: 30px 24px 0; }
  html[data-m="4"] .kick { display: block; font-size: 13px; letter-spacing: .14em; color: #9fb8cc; margin-bottom: 14px; }
  html[data-m="4"] .hero .head h1 { font-size: 32px; line-height: 1.18; color: #fff; }
  html[data-m="4"] .hero .head h1 b { color: #fff; font-weight: 700; }
  html[data-m="4"] .hero .head h1 span { color: rgba(255,255,255,.72); font-weight: 300; font-size: 20px; margin-top: 12px; }
  html[data-m="4"] .hero .head-sub { display: none; }
  html[data-m="4"] .head-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; color: #fff; text-decoration: none; font-size: 15px; font-weight: 400; }
  html[data-m="4"] .head-link i { font-style: normal; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; font-size: 15px; }
  html[data-m="4"] .mbar { background: rgba(15,20,24,.96); box-shadow: 0 -1px 0 rgba(255,255,255,.08); }
  html[data-m="4"] .mbar-call { border-color: rgba(255,255,255,.7); color: #fff; }
}

/* v18: four mobile heroes that keep the desktop triptych feel – ?m=5|6|7|8 (html.mx) */
.dots { display: none; }
@media (max-width: 900px) {
  html.mx .hero .head { padding: 28px 22px 20px; }
  html.mx .kick { display: block; font-size: 12px; font-weight: 500; letter-spacing: .18em; color: var(--navy); margin-bottom: 12px; }
  html.mx .hero .head h1 { font-size: 30px; line-height: 1.18; }
  html.mx .hero .head h1 span { font-size: 19px; color: var(--mute); font-weight: 300; margin-top: 8px; }
  html.mx .hero .head-sub { display: none; }
  html.mx .hero-tri { counter-reset: p; }
  html.mx .hero-tri .panel { counter-increment: p; }
  html.mx .hero-tri .panel::before { content: "0" counter(p); position: absolute; z-index: 2; top: 14px; right: 16px; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .12em; opacity: .9; }
  html.mx .hero-tri .panel figcaption b { font-size: 22px; }
  html.mx .hero-tri .panel figcaption p { font-size: 14px; }
  html.mx .under { padding-top: 22px; }
  .dots { justify-content: center; gap: 6px; padding-top: 16px; }
  .dots i { width: 18px; height: 3px; background: var(--line); transition: width .4s var(--ease), background .4s; }
  .dots i.on { width: 36px; background: var(--navy); }

  /* 5 · החלקה: the panels as a swipe row (the first mobile version), next panel peeks in */
  html[data-m="5"] .hero .hero-tri { gap: 10px; padding-inline: 22px; scroll-padding-inline: 22px; }
  html[data-m="5"] .hero .hero-tri .panel, html[data-m="5"] .hero .hero-tri .panel:nth-of-type(2) { flex: 0 0 80% !important; height: 54svh; min-height: 340px; }
  html[data-m="5"] .dots, html[data-m="8"] .dots { display: flex; }

  /* 6 · טריפטיך חי: the desktop triptych as is – one panel opens, the others stay as narrow strips */
  html[data-m="6"] .hero .hero-tri, html[data-m="7"] .hero .hero-tri { overflow: hidden; scroll-snap-type: none; padding: 0; margin: 0 16px; width: auto; gap: 6px; height: 56svh; min-height: 360px; }
  html[data-m="6"] .hero .hero-tri .panel, html[data-m="7"] .hero .hero-tri .panel { flex: 1 1 0 !important; height: auto; min-height: 0; cursor: pointer; transition: flex 1s var(--ease); }
  html[data-m="6"] .hero .hero-tri .panel.on, html[data-m="7"] .hero .hero-tri .panel.on { flex: 4.8 1 0 !important; }
  html[data-m="6"] .hero .hero-tri .panel:not(.on)::after, html[data-m="7"] .hero .hero-tri .panel:not(.on)::after { background: rgba(10,14,18,.5); }
  html[data-m="6"] .hero .hero-tri .panel.on figcaption div { min-width: 190px; }
  html[data-m="6"] .hero .hero-tri .panel figcaption, html[data-m="7"] .hero .hero-tri .panel figcaption { transition: opacity .5s; }
  html[data-m="6"] .hero .hero-tri .panel:not(.on) figcaption { inset: 0; justify-content: center; align-items: center; }
  html[data-m="6"] .hero .hero-tri .panel:not(.on) figcaption :is(span, p, em),
  html[data-m="7"] .hero .hero-tri .panel:not(.on) figcaption :is(span, p, em) { display: none; }
  html[data-m="6"] .hero .hero-tri .panel:not(.on) figcaption b { writing-mode: vertical-rl; font-size: 17px; white-space: nowrap; }
  html[data-m="6"] .hero .hero-tri .panel:not(.on)::before { right: 50%; transform: translateX(50%); }

  /* 7 · שכבות: the triptych turned on its side – three bands, one opens */
  html[data-m="7"] .hero .hero-tri { flex-direction: column; height: 58svh; min-height: 380px; }
  html[data-m="7"] .hero .hero-tri .panel.on { flex: 5 1 0 !important; }
  html[data-m="7"] .hero .hero-tri .panel:not(.on) figcaption { inset: 0 16px; padding: 0; align-items: center; justify-content: center; }
  html[data-m="7"] .hero .hero-tri .panel:not(.on) figcaption b { font-size: 18px; }
  html[data-m="7"] .hero .hero-tri .panel:not(.on)::before { top: 50%; transform: translateY(-50%); }

  /* 8 · גלריה: centred cards, the side ones smaller and dimmed (driven by scroll) */
  html[data-m="8"] .hero .hero-tri { gap: 0; padding-inline: 9%; scroll-padding-inline: 0; }
  html[data-m="8"] .hero .hero-tri .panel, html[data-m="8"] .hero .hero-tri .panel:nth-of-type(2) { flex: 0 0 82% !important; height: 52svh; min-height: 330px; scroll-snap-align: center; transform: scale(var(--s, 1)); opacity: var(--o, 1); animation: none; }
  html[data-m="8"] .hero .hero-tri .panel figcaption { transition: opacity .4s; }
  html[data-m="8"] .hero .hero-tri .panel:not(.on) figcaption { opacity: 0; }
}
@media (max-width: 900px) {
  /* caption: words at the bottom, the "הדמיה" tag in the top corner, opposite the number */
  html.mx .hero .hero-tri .panel figcaption { inset: 0; padding: 0 18px 18px; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
  html.mx .hero .hero-tri .panel figcaption em { position: absolute; top: 15px; left: 16px; }
  html.mx .hero .hero-tri .panel figcaption span { display: block; }
}

/* v19: real footage – short silent loops in the hero panels */
.panel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.panel:hover video { transform: scale(1.04); }

/* v21: final pick = mobile hero 6; sketch switcher off */
.switch { display: none !important; }

/* v22: notes round – hero CTA centred, real footer, a11y basics */
.under { justify-content: center; padding-bottom: 90px; }
.skip { position: fixed; top: -80px; right: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.foot :focus-visible, .work :focus-visible { outline-color: #fff; }

.foot { background: var(--ink); color: rgba(255,255,255,.72); font-size: 15px; }
.foot a { color: inherit; text-decoration: none; transition: color .2s; }
.foot a:hover { color: #fff; }
.foot-cta { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 70px 0 50px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-cta img { height: 54px; width: auto; }
.foot-cta p { margin-top: 18px; color: #fff; font-size: 20px; font-weight: 300; line-height: 1.5; }
.foot .foot-wa { display: inline-flex; align-items: center; gap: 12px; flex: none; height: 56px; padding: 0 28px; background: #1f8f4e; color: #fff; font-size: 17px; font-weight: 500; }
.foot .foot-wa:hover { background: #1a7d44; }
.foot-wa svg { width: 24px; height: 24px; fill: #fff; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr 1.3fr 1.2fr; gap: 40px; padding: 50px 0; }
.foot-cols h3 { font-size: 14px; font-weight: 500; letter-spacing: .08em; color: #a9bdd0; margin-bottom: 16px; }
.foot-cols nav, .foot-cols > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-contact a, .foot-contact > span, .foot-social a { display: inline-flex; align-items: center; gap: 10px; }
.foot-contact svg, .foot-social svg { width: 17px; height: 17px; fill: currentColor; flex: none; opacity: .8; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 30px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.foot-legal { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot-docs { display: flex; gap: 6px 22px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .under { padding: 22px 20px 50px; }
  .under .cta { display: flex; justify-content: center; }
  .foot { text-align: center; }
  .foot-cta { flex-direction: column; gap: 26px; padding: 54px 0 40px; }
  .foot-cta img { height: 46px; margin: 0 auto; }
  .foot-cta p { font-size: 18px; }
  .foot .foot-wa { width: 100%; justify-content: center; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 36px 20px; padding: 40px 0; }
  .foot-cols nav, .foot-cols > div { align-items: center; }
  .foot-contact, .foot-social { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; padding-bottom: 30px; }
  .foot-legal, .foot-docs { justify-content: center; }
}
@media (max-width: 900px) { .under { align-items: center; } .under .cta { width: 100%; justify-content: center; } }
/* v25: contractor registry line (footer) */
.foot-reg { margin-top: 10px; font-size: 14px; opacity: .75; text-wrap: balance; }
/* v27: WhatsApp always bottom right */
.wa { left: auto; right: 22px; }
@media (max-width: 900px) {
  .mbar { grid-template-columns: 2fr 1fr; }
  .mbar-wa { order: -1; }
}
