:root {
  --bg: #0f0f0d;
  --bg-2: #171714;
  --ink: #ece8df;
  --muted: #9a958a;
  --line: #2b2a25;
  --accent: #d9b77e;
  --serif: "Frank Ruhl Libre", Georgia, serif;
  --sans: "Heebo", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font-size: 13px; letter-spacing: .18em; color: var(--accent);
  margin-bottom: 14px; font-weight: 400;
}
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.5vw, 54px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.nav.is-solid {
  background: rgba(15, 15, 13, .86);
  backdrop-filter: blur(10px);
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.nav nav { display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; font-size: 15px; }
.nav nav a { opacity: .85; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }
.nav-cta { border: 1px solid var(--ink); padding: 6px 16px; border-radius: 999px; }
.nav-cta:hover { background: var(--ink); color: var(--bg); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }
.wall {
  position: absolute; inset: 0; perspective: 1500px; overflow: hidden;
  animation: heroIn 1.6s var(--ease) both;
}
.wall-plane {
  position: absolute; left: 50%; top: 50%; width: 190vw; height: 230vh;
  display: flex; gap: 16px;
  transform: translate(-50%, -50%) rotateX(var(--rx, 26deg)) rotateY(var(--ry, 0deg)) rotateZ(-12deg);
  transform-style: preserve-3d; transition: transform 1.4s var(--ease);
}
.wall-col { flex: 1; min-width: 0; animation: wallUp var(--d, 70s) linear infinite; will-change: transform; }
.wall-col:nth-child(even) { animation-name: wallDown; }
.wall-col img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 16px;
  border-radius: 6px; filter: brightness(.72) saturate(.9);
}
@keyframes wallUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes wallDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 95% 80% at 100% 100%, rgba(10,10,8,.94) 0%, rgba(10,10,8,.78) 40%, rgba(10,10,8,0) 80%),
    radial-gradient(ellipse at 50% 45%, rgba(10,10,8,0) 30%, rgba(10,10,8,.7) 100%),
    linear-gradient(to top, rgba(10,10,8,.92) 0%, rgba(10,10,8,.3) 50%, rgba(10,10,8,.45) 100%);
}
.hero-text {
  position: absolute; z-index: 1; inset: auto var(--gutter) clamp(48px, 10vh, 110px) var(--gutter);
  animation: rise 1s .3s var(--ease) both;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 clamp(14px, 1.2vw, 16px) var(--sans); letter-spacing: 0; color: var(--accent);
  margin-bottom: 22px;
}
.hero .eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--accent); }
.hero h1 {
  font-size: clamp(52px, 9.5vw, 140px); font-weight: 900; line-height: .95; letter-spacing: -.02em;
  color: #f6f2ea; text-shadow: 0 2px 30px rgba(0,0,0,.55);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-link { display: inline-block; font-size: 16px; font-weight: 500; color: #f6f2ea; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.hero-sub {
  margin-top: 26px; max-width: 44ch; color: #ece8df; font-weight: 400; line-height: 1.6;
  font-size: clamp(17px, 1.7vw, 21px); text-shadow: 0 1px 14px rgba(0,0,0,.7);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 28px; }
.hero-actions .btn { text-decoration: none; display: inline-block; }
.count {
  display: inline-grid; place-items: center; vertical-align: middle; margin-inline-start: 10px;
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px;
  font: 500 14px var(--sans); background: var(--ink); color: var(--bg); translate: 0 -4px;
}
@keyframes heroIn { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- work ---------- */
.work { padding: clamp(72px, 12vw, 140px) var(--gutter) 40px; }
.section-head {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: end;
  margin-bottom: 40px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 400 14px var(--sans); color: var(--muted); background: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip.is-active { color: var(--bg); background: var(--ink); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  aspect-ratio: 4 / 5; position: relative; overflow: hidden;
  cursor: zoom-in; background: var(--bg-2); border: 0; padding: 0; width: 100%; display: block;
  opacity: 0; transform: translateY(40px) scale(.97); filter: blur(4px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.tile.is-in { opacity: 1; transform: none; filter: none; }
.tile.is-hidden, .tile.is-extra { display: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.tile:hover img { transform: scale(1.035); }
.tile-cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  font-size: 14px; text-align: right; color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease);
}
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 32px; }
.more[hidden] { display: none; }

/* ---------- reels ---------- */
.reels { padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 9vw, 110px) ; border-top: 1px solid var(--line); }
.reels .section-head { padding-inline: var(--gutter); }
.reels-hint { color: var(--muted); font-size: 14px; }
.reel-strip { overflow: hidden; }
/* קרוסלה אינסופית: הסרטונים מופיעים פעמיים, והמסילה זזה בדיוק חצי מהרוחב שלה ואז חוזרת להתחלה בלי שרואים קפיצה */
.reel-track {
  display: flex; width: max-content;
  animation: reel-loop var(--loop-dur, 60s) linear infinite;
}
@keyframes reel-loop { to { transform: translateX(50%); } }
.reel-track .reel { margin-inline-end: 14px; }
.reel {
  flex: none; height: clamp(310px, 53vh, 490px); aspect-ratio: 9 / 16;
  position: relative; overflow: hidden;
  background: var(--bg-2); border: 0; padding: 0; cursor: pointer; color: var(--ink);
}
.reel.is-wide { aspect-ratio: 16 / 9; }
.reel-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel video { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: transform 1s var(--ease), opacity .4s; }
.reel.is-playing video { opacity: 1; }
.reel:hover video { transform: scale(1.03); }
.reel-cap {
  position: absolute; inset: auto 0 0 0; padding: 48px 16px 14px; text-align: right;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent); font-size: 14px;
}
.reel-play {
  position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px;
  background: rgba(15,15,13,.55); border: 1px solid rgba(236,232,223,.35); backdrop-filter: blur(6px);
}
.vbox video { max-width: 92vw; max-height: 90vh; background: #000; }

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(72px, 12vw, 140px) var(--gutter);
  border-top: 1px solid var(--line);
}
.about-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 40%; }
.about-text p { color: var(--muted); max-width: 48ch; margin-top: 18px; }
.about-text h2 { font-size: clamp(44px, 6vw, 80px); }
.about-text .tagline { font: 500 clamp(22px, 2.2vw, 30px)/1.35 var(--serif); color: var(--accent); margin-top: 34px; max-width: none; text-wrap: balance; }
.about-text .lead { font: 400 clamp(20px, 1.9vw, 25px)/1.55 var(--serif); color: var(--ink); max-width: 32ch; margin-top: 22px; }
.text-link {
  color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 6px; transition: text-underline-offset .2s;
}
.text-link:hover { text-underline-offset: 3px; }
.services {
  list-style: none; padding: 0; margin-top: 44px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.services li {
  display: flex; flex-direction: column; gap: 10px; padding: 26px 18px 6px 0;
  font: 500 clamp(24px, 2.6vw, 36px)/1.2 var(--serif);
}
.services li:first-child { padding-inline-start: 0; }
.services li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 18px; }
.services span { color: var(--accent); font: 400 15px var(--sans); letter-spacing: .1em; }

/* ---------- process ---------- */
.process { padding: clamp(72px, 12vw, 140px) var(--gutter); border-top: 1px solid var(--line); }
.steps {
  list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.steps li { padding: 36px 24px 8px 0; border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.steps li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.steps span {
  display: block; font: 300 clamp(44px, 4.2vw, 60px)/1 var(--serif);
  color: transparent; -webkit-text-stroke: 1px var(--accent);
}
.steps h3 { font: 500 24px/1.3 var(--serif); margin: 22px 0 10px; }
.steps p { color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 28ch; }

/* ---------- statement ---------- */
.statement { padding: clamp(80px, 14vw, 180px) var(--gutter); border-top: 1px solid var(--line); text-align: center; }
.statement p { margin-inline: auto; }
.statement p {
  font: 400 clamp(30px, 4.6vw, 64px)/1.15 var(--serif); max-width: 20ch; margin-bottom: 36px;
}
.statement em { font-style: normal; color: var(--muted); }

/* ---------- contact ---------- */
.contact {
  padding: clamp(72px, 12vw, 140px) var(--gutter);
  background: var(--bg-2);
}
.contact { text-align: center; }
.contact-intro { max-width: 940px; margin-inline: auto; }
.contact h2 { font-size: clamp(44px, 6vw, 80px); }
.contact-intro > p:not(.eyebrow) { color: var(--muted); font-size: 18px; max-width: 48ch; margin: 16px auto 0; text-wrap: balance; }
.direct { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 52px; }
.direct a {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 16px 26px;
  border: 1px solid var(--line); border-radius: 18px;
  transition: border-color .25s, background-color .25s, transform .25s;
}
.direct a:hover { border-color: var(--accent); background-color: rgba(217, 183, 126, .05); transform: translateY(-3px); }
.d-label { display: flex; flex-direction: column; align-items: center; gap: 14px; font: 500 18px var(--sans); }
.d-icon {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border: 1px solid var(--line); border-radius: 50%; color: var(--accent);
  transition: background .2s, color .2s, border-color .2s;
}
.d-icon svg { width: 19px; height: 19px; }
.direct a:hover .d-icon { background: var(--accent); border-color: var(--accent); color: #1a1710; }
.direct small { color: var(--muted); direction: ltr; font-size: 14px; }
.direct .pending { color: var(--muted); font-size: 14px; }

.btn {
  font: 500 15px var(--sans); cursor: pointer; border-radius: 999px;
  padding: 13px 26px; border: 1px solid var(--accent);
  background: var(--accent); color: #1a1710;
  transition: transform .15s var(--ease), background .2s, color .2s;
}
.btn:hover { background: #e8c993; }
.btn:active { transform: scale(.97); }
.btn-ghost { background: none; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: none; border-color: var(--ink); }

.footer {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  padding: 28px var(--gutter); font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  border: 0; padding: 0; background: rgba(8, 8, 7, .96); color: var(--ink);
  display: none; align-items: center; justify-content: center;
}
.lightbox[open] { display: flex; animation: fade .3s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox figure { max-width: 90vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; }
.lightbox figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.lb-close, .lb-nav {
  position: absolute; background: none; border: 0; color: var(--ink); cursor: pointer;
  font-size: 28px; padding: 16px; opacity: .7; transition: opacity .2s;
}
.lb-close:hover, .lb-nav:hover { opacity: 1; }
.lb-close { top: 8px; left: 12px; font-size: 22px; }
.lb-prev { right: 8px; top: 50%; translate: 0 -50%; font-size: 48px; }
.lb-next { left: 8px; top: 50%; translate: 0 -50%; font-size: 48px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .steps li, .steps li:first-child { border-inline-start: 0; padding-inline-start: 0; padding-inline-end: 0; }
  .about-img img { aspect-ratio: 4/3; }
  .nav nav a:not(.nav-cta) { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lb-nav { font-size: 36px; padding: 10px; }
  .reel { height: min(60vh, 440px); }
  .reel.is-wide { height: auto; width: 74vw; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none; }
  .reel-strip { overflow-x: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tile { opacity: 1; transform: none; filter: none; }
}

/* פייד-אין בגלילה */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(4px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .wall-col { animation: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; transition: none; } }

/* ===== ליטוש מובייל ===== */
.wa-float { display: none; }
@media (max-width: 820px) {
  /* התמונה העליונה: מזיזים את הפריים כך שהאדם על הפסגה יהיה מעל הטקסט */
  .wall-plane { width: 420vw; height: 150vh; gap: 12px; }
  .wall-col img { margin-bottom: 12px; }
  .hero::after { background: linear-gradient(to top, rgba(10,10,8,.96) 0%, rgba(10,10,8,.85) 40%, rgba(10,10,8,.35) 62%, rgba(10,10,8,.15) 80%, rgba(10,10,8,.4) 100%); }
  .hero h1 { font-size: 54px; line-height: .98; }
  .hero-sub { font-size: 17px; }
  .reels-hint { display: none; }
  .reels .section-head { margin-bottom: 24px; }

  /* איך זה עובד: עמודה אחת, מספר בצד */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
  .steps li { grid-template-columns: 64px 1fr; }
  .steps li span { grid-row: span 2; font-size: 40px; }
  .services li { font-size: 21px; padding-inline-end: 8px; }
  .services li + li { padding-inline-start: 12px; }
  .direct { grid-template-columns: 1fr; gap: 10px; margin-top: 36px; }
  .direct a { flex-direction: row; justify-content: space-between; padding: 14px 18px; }
  .d-label { flex-direction: row; font-size: 16px; }
  .d-icon { width: 40px; height: 40px; }
  .steps h3 { margin: 0 0 6px; font-size: 21px; }
  .steps p { max-width: none; }

  .statement p { font-size: 34px; line-height: 1.2; }

  .wa-float {
    display: grid; place-items: center; position: fixed; z-index: 50;
    inset-inline-start: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent); color: #141210; box-shadow: 0 10px 30px rgba(0,0,0,.45);
    opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .wa-float svg { width: 27px; height: 27px; }
  .wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .wa-float:active { transform: scale(.94); }
}

/* כותרת הווידאו: התווית בלבד, קצת יותר גדולה */
.reels-title { font-family: inherit; font-size: 19px; line-height: 1.3; margin: 0; }
@media (max-width: 820px) { .reels-title { font-size: 17px; } }
