/* ============================================================
   Yarin Elimelch — Portfolio
   Modern-minimal · dark navy + teal · Hebrew RTL
   Brand colors extracted from the "ye" logo.
   ============================================================ */

:root {
  --navy:        #101928;   /* רקע ראשי (מהלוגו) */
  --navy-800:    #0C1420;   /* סקשנים כהים יותר */
  --navy-700:    #16202F;   /* משטחים / כרטיסים */
  --teal:        #23AE91;   /* טורקיז המותג (ה־"ye") */
  --mint:        #2FE0B0;   /* הדגשות / hover glow */
  --ink:         #F5F7F8;   /* טקסט ראשי */
  --muted:       #97A3B2;   /* טקסט משני */
  --muted-dim:   #63707F;   /* טקסט עמום */
  --line:        rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .5s;

  --f-ui: 'Heebo', system-ui, 'Segoe UI', Arial, sans-serif;
  --f-script: 'Sacramento', cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--f-ui);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--teal); color: var(--navy); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--teal); color: var(--navy); padding: 10px 16px; border-radius: 8px;
  font-weight: 500; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

/* ---------- Brand mark ---------- */
.brand__mark {
  font-family: var(--f-script);
  color: var(--teal);
  font-size: 40px;
  line-height: 1;
  display: inline-block;
  padding-block: 4px;
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.brand:hover .brand__mark { color: var(--mint); transform: rotate(-3deg); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(16,25,40,.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 14px var(--pad);
  display: flex; align-items: center; gap: 24px;
}
.nav__links { display: flex; gap: 30px; margin-inline-start: auto; }
.nav__links a {
  font-size: 15px; font-weight: 400; color: var(--muted); position: relative; padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: var(--teal); transform: scaleX(0); transform-origin: inline-start;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { margin-inline-start: 0; }

.nav__burger {
  display: none; background: none; border: 0; width: 42px; height: 42px;
  margin-inline-start: auto; padding: 9px; flex-direction: column; justify-content: space-between;
}
.nav__burger span { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.mobile-menu a { font-size: 30px; font-weight: 300; padding: 12px; color: var(--ink); }
.mobile-menu a:hover { color: var(--teal); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  padding: 13px 26px; border-radius: 100px; font-weight: 500; font-size: 15px;
  border: 1px solid transparent; transition: all .3s var(--ease); white-space: nowrap;
}
.btn--solid { background: var(--teal); color: var(--navy); }
.btn--solid:hover { background: var(--mint); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(47,224,176,.5); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--wa { background: transparent; border-color: var(--line-strong); color: var(--ink); padding: 10px 18px; }
.btn--wa:hover { border-color: var(--teal); color: var(--teal); }
.btn--wa .ico { width: 18px; height: 18px; fill: currentColor; }
.btn--full { width: 100%; }

.ico { width: 20px; height: 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: grid; align-content: center;
  grid-template-columns: minmax(0, 1fr);
  padding: 90px var(--pad) 60px; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(16,25,40,.92) 0%, rgba(16,25,40,.6) 48%, rgba(16,25,40,.28) 100%),
    linear-gradient(0deg, rgba(16,25,40,.92) 0%, rgba(16,25,40,0) 42%);
}
.hero__content { position: relative; z-index: 2; width: 100%; max-width: 720px; min-width: 0;
  text-shadow: 0 1px 24px rgba(6,10,18,.55); }
.hero__eyebrow { text-shadow: 0 1px 16px rgba(6,10,18,.7); }
.hero__eyebrow {
  color: var(--teal); letter-spacing: .28em; font-size: 13px; font-weight: 500;
  text-transform: uppercase; margin: 0 0 22px;
}
.hero__title {
  font-size: clamp(38px, 7vw, 82px); font-weight: 200; line-height: 1.08;
  margin: 0 0 26px; letter-spacing: -.01em;
}
.hero__sub { font-size: clamp(16px, 2.2vw, 21px); color: var(--muted); margin: 0 0 38px; font-weight: 300; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; z-index: 2; bottom: 30px; inset-inline-start: 50%; transform: translateX(50%);
  width: 26px; height: 44px; border: 1px solid var(--line-strong); border-radius: 14px;
  display: grid; place-items: start center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 8px; border-radius: 3px; background: var(--teal); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%{opacity:0;transform:translateY(0)} 30%{opacity:1} 60%{opacity:1;transform:translateY(14px)} 100%{opacity:0;transform:translateY(18px)} }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--navy-800); overflow: hidden; padding: 18px 0; }
/* gap:0 + ריווח בתוך היחידות => שני העותקים מתכסים מושלם, בלי תפר/חור */
.marquee__track { display: inline-flex; gap: 0; align-items: center; white-space: nowrap; width: max-content;
  will-change: transform; animation: slide 45s linear infinite; }
.marquee__track span { font-size: 15px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; padding-inline: 16px; }
.marquee__track i { color: var(--teal); font-style: normal; }
/* המילים משוכפלות ×2 ב-render, כך שהתנועה מעגלית וחלקה ללא קפיצה */
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(70px, 11vw, 140px); }
.section__head { max-width: 640px; margin-bottom: 54px; }
.section__kicker { color: var(--teal); letter-spacing: .2em; text-transform: uppercase; font-size: 12.5px; font-weight: 500; margin: 0 0 14px; }
.section__title { font-size: clamp(30px, 5vw, 52px); font-weight: 200; line-height: 1.12; margin: 0 0 18px; letter-spacing: -.01em; }
.section__lead { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 9px 18px; border-radius: 100px; font-size: 14px; font-weight: 400;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.is-active { background: var(--teal); border-color: var(--teal); color: var(--navy); font-weight: 500; }

/* ---------- Grid ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px;
}
.tile {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius);
  background: var(--navy-700); cursor: pointer;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,16,26,.75) 0%, rgba(11,16,26,0) 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.tile:hover img { transform: scale(1.06); }
.tile:hover::after { opacity: 1; }
.tile figcaption {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 3px;
  transform: translateY(10px); opacity: 0; transition: all .4s var(--ease);
}
.tile:hover figcaption { transform: none; opacity: 1; }
.tile__cat { color: var(--teal); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.tile__name { font-size: 17px; font-weight: 400; }
.tile.is-hidden { display: none; }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.projects { background: var(--navy-800); }
.case {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 70px);
  align-items: center; padding-block: 40px;
}
.case + .case { border-top: 1px solid var(--line); }
.case--reverse { direction: ltr; }
.case--reverse > * { direction: rtl; }
.case__media { border-radius: var(--radius); overflow: hidden; background: var(--navy-700); }
.case__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s var(--ease); }
.case:hover .case__media img { transform: scale(1.04); }
.case__tag { color: var(--teal); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; font-weight: 500; }
.case__title { font-size: clamp(26px, 3.5vw, 40px); font-weight: 200; margin: 0 0 16px; }
.case__text { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.case__meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.case__meta li { padding-inline-start: 0; color: var(--ink); font-size: 15.5px; }
.case__meta strong { display: block; color: var(--teal); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients { padding-block: 56px; border-block: 1px solid var(--line); background: var(--navy); }
.clients__label { text-align: center; color: var(--muted-dim); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; margin: 0 0 26px; }
.clients__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(24px, 6vw, 72px); }
.client { font-size: clamp(18px, 2.6vw, 26px); font-weight: 300; color: var(--muted); letter-spacing: .02em; transition: color .3s var(--ease); }
.client:last-child { color: var(--teal); }
.clients__row:hover .client { color: var(--muted-dim); }
.clients__row .client:hover { color: var(--ink); }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.about__media { border-radius: var(--radius); overflow: hidden; background: var(--navy-700); }
.about__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about__text { color: var(--muted); font-size: 17.5px; margin: 0 0 18px; }
.about__quote {
  margin: 26px 0; padding-inline-start: 20px; border-inline-start: 2px solid var(--teal);
  font-size: 20px; font-weight: 300; color: var(--ink); font-style: normal; line-height: 1.5;
}
.about__facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 30px; }
.about__facts li { font-size: 15px; color: var(--muted); }
.about__facts strong { display: block; color: var(--teal); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; font-weight: 500; }

/* ============================================================
   SERVICES
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: #18232F; }
.card__ico {
  width: 34px; height: 34px; margin-bottom: 20px; fill: none; stroke: var(--teal);
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 20px; font-weight: 500; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

.services__cta {
  margin-top: 44px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(35,174,145,.10), rgba(35,174,145,0));
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.services__cta p { margin: 0; font-size: 18px; color: var(--ink); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--navy-800); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: start; }
.contact__lead { color: var(--muted); font-size: 18px; margin: 0 0 34px; }
.contact__direct { display: flex; flex-direction: column; gap: 12px; }
.line {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 16px; color: var(--ink);
  transition: all .3s var(--ease); background: rgba(255,255,255,.02);
}
.line:hover { border-color: var(--teal); transform: translateX(-4px); }
.line .ico { width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.line--wa .ico { fill: var(--teal); stroke: none; }

.contact__form { background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--navy-800); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); padding: 13px 15px; font-family: inherit; font-size: 16px; font-weight: 300;
  transition: border-color .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field select { appearance: none; }
.form__hint { color: var(--muted-dim); font-size: 13px; margin: 12px 0 0; text-align: center; }

/* ============================================================
   REELS (Instagram embeds)
   ============================================================ */
.reels { background: var(--navy-800); }
.reels__rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reel-embed {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-700); border: 1px solid var(--line);
  aspect-ratio: 9 / 15; box-shadow: 0 18px 40px -22px rgba(0,0,0,.7);
}
.reel-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ============================================================
   CONTACT (redesigned)
   ============================================================ */
.contact__panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: linear-gradient(140deg, rgba(35,174,145,.10), rgba(35,174,145,0) 62%);
  border: 1px solid var(--line); border-radius: 26px; padding: clamp(26px, 4vw, 54px);
}
.contact__aside .contact__lead { color: var(--muted); font-size: 18px; margin: 0 0 30px; }
.contact__lines { display: flex; flex-direction: column; gap: 12px; }
.cline {
  display: flex; align-items: center; gap: 16px; padding: 15px 18px; border: 1px solid var(--line);
  border-radius: 16px; background: rgba(255,255,255,.02); transition: all .3s var(--ease);
}
.cline:hover { border-color: var(--teal); background: rgba(35,174,145,.07); transform: translateY(-2px); }
.cline__ic { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; background: rgba(35,174,145,.12); }
.cline__ic svg { width: 22px; height: 22px; fill: var(--teal); }
.cline:not(.cline--wa) .cline__ic svg { fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cline__tx { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.cline__tx b { font-weight: 500; font-size: 16px; }
.cline__tx small { color: var(--muted); font-size: 13px; }
.cline__ar { color: var(--muted-dim); font-size: 18px; transition: transform .3s var(--ease), color .3s var(--ease); }
.cline:hover .cline__ar { color: var(--teal); transform: translateX(-5px); }

.contact__card { background: var(--navy-700); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.ctabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--navy-800); border: 1px solid var(--line); border-radius: 100px; padding: 4px; margin-bottom: 22px;
}
.ctab { position: relative; z-index: 2; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 500; font-size: 14.5px; padding: 11px; border-radius: 100px; transition: color .3s var(--ease); }
.ctab.is-active { color: var(--navy); }
.ctab__pill { position: absolute; z-index: 1; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px); background: var(--teal); border-radius: 100px; transition: inset-inline-start .35s var(--ease); }
.ctabs[data-active="form"] .ctab__pill { inset-inline-start: 50%; }

.cview { display: none; }
.cview.is-active { display: block; animation: cfade .38s var(--ease); }
@keyframes cfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.qr { position: relative; width: 210px; height: 210px; margin: 4px auto 16px; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 14px 34px -12px rgba(0,0,0,.55); }
.qr img { width: 100%; height: 100%; display: block; }
.qr__badge { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; background: #fff; border-radius: 11px; display: grid; place-items: center; font-family: var(--f-script); color: var(--teal); font-size: 30px; line-height: 1; box-shadow: 0 0 0 5px #fff; }
.qr__cap { text-align: center; color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }

/* placeholder של "סוג הפרויקט" — עמום עד שבוחרים */
.field select:required:invalid { color: var(--muted-dim); }
.field select option { color: var(--ink); background: var(--navy-800); }
.field select option[disabled] { color: var(--muted-dim); }

/* ============================================================
   FAQ
   ============================================================ */
.wrap.narrow { max-width: 760px; }
.faq { background: var(--navy); }
.faq__list { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 14px; background: var(--navy-700); overflow: hidden; }
.faq__item summary { cursor: pointer; list-style: none; padding: 20px 22px; font-size: 17px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color .25s var(--ease); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--teal); font-size: 24px; font-weight: 300; line-height: 1; transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--teal); }
.faq__a { padding: 0 22px 20px; color: var(--muted); font-size: 16px; }
.faq__a p { margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 50px; background: var(--navy); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer__tag { color: var(--muted); font-size: 15px; margin: 0; }
.footer__social { display: flex; gap: 22px; }
.footer__social a { color: var(--muted); font-size: 14px; letter-spacing: .04em; transition: color .25s var(--ease); }
.footer__social a:hover { color: var(--teal); }
.footer__copy { color: var(--muted-dim); font-size: 13px; margin: 0; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(8,12,20,.94);
  display: grid; place-items: center; opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease); backdrop-filter: blur(4px);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__figure { margin: 0; max-width: min(92vw, 1100px); max-height: 88vh; }
.lightbox__figure img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox__figure figcaption { text-align: center; color: var(--muted); margin-top: 14px; font-size: 15px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: var(--ink); border-radius: 50%; width: 50px; height: 50px; font-size: 26px; line-height: 1;
  display: grid; place-items: center; transition: all .25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.lightbox__close { top: 22px; inset-inline-end: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { inset-inline-end: 22px; }
.lightbox__next { inset-inline-start: 22px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* edit-preview banner (shown when a local admin draft exists) */
.edit-banner { display: none; }
.has-draft .edit-banner {
  position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 150;
  display: flex; align-items: center; gap: 14px;
  background: rgba(16,25,40,.92); border: 1px solid var(--teal); border-radius: 100px;
  padding: 10px 18px; font-size: 13px; color: var(--ink); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
}
.edit-banner a { color: var(--teal); font-weight: 500; }
.edit-banner a:hover { color: var(--mint); }

/* capture/debug only (activated by ?rev=1) */
[data-capture] .hero { min-height: 760px; }
[data-capture] .hero__scroll { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .tile--wide { grid-column: span 2; }
  .case, .case--reverse { grid-template-columns: 1fr; direction: rtl; }
  .case__media { order: -1; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reels__rail { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .contact__panel { grid-template-columns: 1fr; }
  .contact__card { max-width: 460px; }
}

@media (max-width: 600px) {
  :root { --pad: 20px; }
  .hero { min-height: 92svh; }
  .hero__title { font-size: clamp(32px, 8.5vw, 46px); }
  .hero__sub { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__scroll { display: none; }
  .grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .tile--wide, .tile--tall { grid-column: auto; grid-row: auto; }
  .cards { grid-template-columns: 1fr; }
  .services__cta { flex-direction: column; align-items: flex-start; text-align: start; }
  .about__facts { gap: 20px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .tile figcaption { opacity: 1; transform: none; } /* touch: labels always visible */
  .tile::after { opacity: .6; }
  .reels__rail { grid-template-columns: 1fr; }
  .reel-embed { max-width: 360px; margin-inline: auto; width: 100%; }
  .contact__panel { padding: 22px 18px; border-radius: 20px; }
  /* בנייד אין טעם ב-QR (סורקים ממכשיר אחר) — מציגים ישר את הטופס */
  .ctabs { display: none; }
  .cview--qr { display: none !important; }
  .cview--form { display: block !important; }
  .contact__card { padding-top: 8px; }
}
