/* אבירן מויאל: עינית מצלמה על בטון של באר שבע */
:root {
  --black: #000;
  --ink: #1d1e20;
  --concrete: #dcdad5;
  --stone: #b9b6ae;
  --smoke: #55544f;
  --tally: #e0312b;
  --white: #fff;
  --wa: #25d366;

  --display: "Karantina", "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --body: "IBM Plex Sans Hebrew", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --gutter: max(16px, 5vw);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--tally); outline-offset: 3px; }

.skip {
  position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50;
  background: var(--white); color: var(--black); padding: 8px 14px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- top bar ---------- */
.bar {
  position: absolute; inset-inline: 0; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  padding: calc(clamp(14px, 3vw, 36px) + 18px) calc(var(--gutter) + 22px) 0;
  color: var(--white);
}
.bar-nav { display: flex; gap: 28px; margin-inline-start: auto; }
.bar-nav a { text-decoration: none; font-size: 15px; opacity: .85; }
.bar-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.lang {
  background: none; border: 1px solid rgba(255,255,255,.45); color: var(--white);
  padding: 6px 14px; font-size: 14px; cursor: pointer; border-radius: 2px;
}
.lang:hover { border-color: var(--white); }

/* ---------- hero: the viewfinder ---------- */
.hero {
  position: relative; min-height: 100svh;
  background: var(--black); color: var(--white);
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 90% at 30% 20%, #1e1f22 0%, #000 65%); }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.35) 100%);
}

.vf { position: absolute; inset: clamp(14px, 3vw, 36px); pointer-events: none; }
.vf-c { position: absolute; width: 34px; height: 34px; border: 0 solid rgba(255,255,255,.8); }
.vf-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vf-rec, .vf-tc {
  position: absolute; bottom: 14px;
  font-size: 13px; letter-spacing: .06em; font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.85); direction: ltr;
}
.vf-rec { left: 18px; display: flex; align-items: center; gap: 8px; }
.vf-rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--tally); animation: rec 1.2s steps(2, jump-none) infinite; }
.vf-tc { right: 18px; }
@keyframes rec { 50% { opacity: .15; } }

.hero-copy {
  width: 100%; max-width: var(--max); margin-inline: auto;
  padding: 0 calc(var(--gutter) + 20px) clamp(64px, 11vh, 120px);
}
.hero-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(96px, 19vw, 260px); line-height: .8; letter-spacing: -.005em;
  margin: 0 0 22px;
}
.hero-line { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.35; font-weight: 500; margin: 0; max-width: 30ch; }
.hero-sub { margin: 8px 0 0; color: rgba(255,255,255,.72); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border-radius: 2px; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-wa { background: var(--white); color: var(--black); }
.btn-wa:hover { background: var(--concrete); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- sections ---------- */
.block { max-width: var(--max); margin-inline: auto; padding: clamp(72px, 11vw, 128px) var(--gutter); }
.h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(60px, 8.5vw, 112px); line-height: .85;
  margin: 0 0 clamp(32px, 5vw, 56px);
}
.muted { color: var(--smoke); }

/* showreel + work frames */
.frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--black); overflow: hidden; cursor: pointer; text-align: start;
}
.frame-wide { aspect-ratio: 16 / 9; }
.frame img, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .preview { opacity: 0; transition: opacity .25s; }
.frame:hover .preview, .frame:focus-visible .preview { opacity: 1; }
div.frame { cursor: default; }
.play {
  position: absolute; inset-inline-start: 18px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white); font-size: 15px; font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.play-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tally); }

.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.work-head .h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.filters button {
  background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: 16px; color: var(--smoke);
  border-bottom: 2px solid transparent;
}
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.filters button:hover { color: var(--ink); }

.work-grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 28px); }
.item { grid-column: span 6; }
.item.vertical { grid-column: span 3; }
.item .frame { aspect-ratio: 16 / 9; }
.item.vertical .frame { aspect-ratio: 9 / 16; }
.item-title { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; margin: 14px 0 4px; }
.item-meta { margin: 0; color: var(--smoke); font-size: 15px; }
.frame.empty { background: #2a2b2e; }

/* photo gallery */
.filters .n { font-size: 12px; margin-inline-start: 5px; opacity: .7; font-variant-numeric: tabular-nums; }
.gallery { columns: 3 240px; column-gap: 14px; }
.ph {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0;
  background: var(--stone); cursor: zoom-in; break-inside: avoid;
}
.ph img { width: 100%; height: auto; display: block; }
.ph:hover img { opacity: .9; }
.btn-line { border-color: var(--ink); color: var(--ink); background: none; margin: 34px auto 0; display: flex; }
.btn-line:hover { background: var(--ink); color: var(--white); }

.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0; background: var(--black); color: var(--white); overflow: hidden;
}
.lightbox::backdrop { background: var(--black); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: calc(100% - 32px); max-height: calc(100% - 120px); object-fit: contain; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.55); color: var(--white); border: 1px solid rgba(255,255,255,.35);
  padding: 10px 16px; cursor: pointer; border-radius: 2px; font-size: 15px;
}
.lb-nav:hover { border-color: var(--white); }
.lb-prev { inset-inline-start: 16px; }
.lb-next { inset-inline-end: 16px; }
.lb-count { position: absolute; bottom: 18px; inset-inline: 0; text-align: center; margin: 0; font-size: 14px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }

/* services */
.service-list { border-top: 1px solid var(--stone); }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px 48px;
  padding: 30px 0; border-bottom: 1px solid var(--stone);
}
.service h3 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.4vw, 54px); line-height: .95; margin: 0; }
.service p { margin: 0; max-width: 52ch; padding-top: 6px; }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--display); font-weight: 400; font-size: 84px; line-height: .8; color: var(--smoke);
  margin-bottom: 14px;
}
.steps h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--smoke); }

/* clients */
.client-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; font-size: clamp(19px, 2vw, 24px); font-weight: 500; }

/* about */
.about-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; }
.about-text { margin: 0; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.6; max-width: 58ch; }
.facts { list-style: none; margin: 0; padding: 0 22px 0 0; border-inline-start: 1px solid var(--stone); padding-inline-start: 22px; padding-inline-end: 0; }
.facts li { padding: 8px 0; }

/* contact: closes the page in the dark, like the hero opens it */
.contact {
  max-width: none; background: var(--ink); color: var(--white);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
}
.contact .muted { color: rgba(255,255,255,.66); }
.direct { margin: 36px 0 6px; color: rgba(255,255,255,.66); }
.direct-list { list-style: none; margin: 0; padding: 0; }
.direct-list li { padding: 4px 0; }
.direct-list a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.direct-list a:hover { border-color: var(--white); }
[dir="rtl"] .direct-list a { display: inline-block; }

.form { display: grid; gap: 22px; align-content: start; }
.field { display: grid; gap: 6px; font-size: 14px; color: rgba(255,255,255,.7); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.35);
  padding: 10px 0; border-radius: 0; width: 100%;
}
.field select option { color: var(--black); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--white); }
.field input[type="date"] { color-scheme: dark; }
.form-error { margin: 0; color: #ff8a84; font-size: 15px; }
.form .btn { justify-self: start; margin-top: 6px; }

/* footer */
.foot {
  background: var(--black); color: rgba(255,255,255,.6);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px var(--gutter); font-size: 14px;
}

/* floating WhatsApp (mobile) */
.wa-float {
  position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 20;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: var(--white);
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; }

/* video player */
.player {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0; background: var(--black);
}
.player::backdrop { background: var(--black); }
.player[open] { display: flex; align-items: center; justify-content: center; }
.player video { width: 100%; height: 100%; object-fit: contain; }
.player-close {
  position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2;
  background: rgba(0,0,0,.6); color: var(--white); border: 1px solid rgba(255,255,255,.4);
  padding: 8px 16px; cursor: pointer; border-radius: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-body, .contact { grid-template-columns: 1fr; }
  .item { grid-column: span 12; }
  .item.vertical { grid-column: span 6; }
}
@media (max-width: 720px) {
  .bar-nav { display: none; }
  .lang { margin-inline-start: auto; }
  .service { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 8px; }
  .ph { margin-bottom: 8px; }
  .lb-nav { top: auto; bottom: 10px; transform: none; }
  .wa-float { display: flex; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; }
  .wa-float.show { opacity: 1; pointer-events: auto; transform: none; }
  .hero-copy { padding-inline: calc(var(--gutter) + 8px); }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .foot { padding-bottom: 88px; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vf-rec i { animation: none; }
  .frame .preview { transition: none; }
}
