/* ==========================================================================
   New Hebrew home page (2026 strategy). Self-contained — this page does NOT
   load styles.css. Content is rendered from SITE.home by home-page.js so it
   stays editable from the Studio.
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-2: #171717;
  --placeholder: #1c1c1c;
  --placeholder-line: #2a2a2a;
  --text: #f4f4f4;
  --muted: #9b9b9b;
  --line: #242424;
  --max: 1920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* The background glow lives in chrome.css — it is shared by every page. */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Heebo", "Assistant", Arial, Helvetica, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; }

/* Header, footer and .btn styles live in chrome.css — shared by every page. */

/* ---------- hero ---------- */
.hero { padding: 40px 0 96px; }
.hero-stage {
  aspect-ratio: 16 / 9;
  background: var(--placeholder);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 56px;
  cursor: pointer;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.1s ease;
}
.hero-slides img.is-on { opacity: 1; }
.hero-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.2) 55%, rgba(0,0,0,.05));
}
/* play affordance */
.hero-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 3; width: 96px; height: 96px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: background .25s ease;
}
.hero-stage:hover .hero-play { background: rgba(255,255,255,.92); }
.hero-play svg { width: 36px; height: 36px; fill: #fff; margin-inline-start: 6px; transition: fill .25s ease; }
.hero-stage:hover .hero-play svg { fill: #0a0a0a; }

.hero-grid {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end;
  pointer-events: none;
}
.hero-grid a { pointer-events: auto; }
.eyebrow { color: #dcdcdc; font-size: 14px; letter-spacing: .12em; margin-bottom: 22px; direction: ltr; }
.hero h1 {
  font-size: clamp(48px, 6.4vw, 118px); line-height: 1.02;
  letter-spacing: normal; margin: 0; max-width: 980px; font-weight: 800;
}
.hero-copy { max-width: 540px; padding-bottom: 6px; }
.hero-copy p { font-size: clamp(19px, 1.6vw, 26px); line-height: 1.3; margin: 0 0 30px; color: #e6e6e6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- generic section ---------- */
section { padding: 100px 0; }
/* centered heading block (matches Figma: title centered, intro centered below) */
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 { margin: 0 0 16px; letter-spacing: normal; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.14; font-weight: 800; }
.section-head p { margin: 0 auto; color: var(--muted); max-width: 640px; font-size: 18px; }

/* ---------- services (image cards) ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service-card {
  position: relative; overflow: hidden; min-height: 460px;
  display: flex; align-items: flex-end; padding: 38px;
}
.service-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);            /* base overscale so edges never reveal on hover */
  transition: transform .55s ease;
}
/* motion only on cards that actually lead somewhere */
.service-card.is-link:hover .service-card__img { transform: scale(1.07); }
.service-more {
  display: inline-block; margin-top: 20px;
  font-size: 15px; font-weight: 700; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.service-card.is-link:hover .service-more { color: #9b7bff; border-color: #9b7bff; }
.service-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.45) 55%, rgba(0,0,0,.12));
}
.service-card__body { position: relative; z-index: 2; }
.service-number { color: #cfcfcf; font-size: 13px; margin-bottom: 12px; direction: ltr; }
.service-card h3 { font-size: clamp(30px, 3.4vw, 54px); line-height: 1.12; margin: 0 0 16px; letter-spacing: normal; font-weight: 800; }
.service-card p { color: #e0e0e0; max-width: 620px; font-size: 17px; margin: 0; }
.service-extra { margin-top: 16px; color: #b3b3b3; font-size: 14px; }

/* ---------- works ---------- */
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.work-card {
  position: relative; overflow: hidden;
  background: var(--placeholder); border: 1px solid var(--placeholder-line);
  min-height: 320px; display: block;
  /* rendered as a <button> so it can play its video — strip the native chrome */
  width: 100%; padding: 0; margin: 0; font: inherit; color: inherit;
  text-align: inherit; cursor: pointer; appearance: none;
}
.work-card__img { transition: transform .5s ease; }
.work-card:hover .work-card__img { transform: scale(1.04); }
.work-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-card__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #565656; font-size: 13px; letter-spacing: .16em; direction: ltr;
}
.work-card.large { grid-column: span 7; min-height: 500px; }
.work-card.medium { grid-column: span 5; min-height: 500px; }
.work-card.third { grid-column: span 4; min-height: 340px; }
/* gradient + meta pinned edge-to-edge along the bottom */
.work-meta {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: end; gap: 20px;
  padding: 80px 26px 26px;
  background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,0));
}
.work-meta h4 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.work-meta .wmeta { color: #bcbcbc; font-size: 13px; }
.work-meta .wgo { color: #dcdcdc; font-size: 13px; white-space: nowrap; }
.works-more { margin-top: 34px; text-align: center; }

/* ---------- process (matches Figma: number top-right, icon bottom-right) ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.step {
  position: relative; min-height: 392px; padding: 24px 28px 28px;
  border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: right; overflow: hidden;
  background: #000;      /* solid, so the background glow passes BEHIND the boxes */
}
.step__num { display: block; color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.step__title { display: block; font-size: 22px; margin-bottom: 10px; font-weight: 700; }
.step p { margin: 0; color: #9c9c9c; font-size: 15px; }
.step__icon {
  position: absolute; bottom: 22px; inset-inline-start: 26px;
  width: 156px; height: 156px; object-fit: contain;
  mix-blend-mode: lighten;             /* black icon bg blends into the dark card */
  pointer-events: none;
}

/* ---------- about (image LEFT, text RIGHT) ---------- */
.about-strip { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: stretch; }
.about-img-wrap { min-height: 540px; overflow: hidden; }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { display: flex; flex-direction: column; justify-content: center; }
.about-copy h2 { font-size: clamp(36px, 4.6vw, 70px); line-height: 1.16; margin: 0 0 30px; letter-spacing: normal; font-weight: 800; }
.about-copy p { font-size: 21px; color: #d0d0d0; margin: 0 0 22px; line-height: 1.75; }
.about-copy .accent { color: #9b7bff; font-weight: 600; }
/* credibility stats row */
.about-stats { display: flex; gap: 44px; margin: 0 0 32px; }
.stat__num { font-size: clamp(30px, 3vw, 46px); font-weight: 800; line-height: 1; }
.stat__label { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- cta ---------- */
.cta { text-align: center; padding: 150px 0; }
.cta h2 { font-size: clamp(30px, 4.6vw, 66px); line-height: 1.12; margin: 0 auto 26px; letter-spacing: normal; font-weight: 800; white-space: nowrap; }
.cta p { max-width: 700px; margin: 0 auto 36px; color: #a8a8a8; font-size: 18px; }

/* ---------- lightbox (showreel) — as large as possible ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(0,0,0,.96);
}
.lightbox.is-open { display: block; }
.lightbox__frame {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: min(calc(100vw - 32px), calc((100vh - 120px) * 16 / 9));
  aspect-ratio: 16 / 9; background: #000;
}
.lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: #888; font-size: 16px; padding: 30px; border: 1px dashed #333; line-height: 1.7;
}
/* close: fixed top-right, sits in the margin above the video */
.lightbox__close {
  position: fixed; top: 18px; right: 18px; z-index: 110;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45);
  color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.28); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wrap { width: min(calc(100% - 36px), var(--max)); }
  .services, .hero-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 28px; }
  .about-strip { grid-template-columns: 1fr; }
  .hero-stage { aspect-ratio: auto; min-height: 72vh; padding: 32px; }
  .hero-copy { margin-top: 34px; }
  .work-card.large, .work-card.medium, .work-card.third { grid-column: span 12; min-height: 340px; }
  .process { grid-template-columns: 1fr 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 18px; }
  .about-img-wrap { min-height: 420px; order: 2; }   /* image below text on mobile */
  .about-copy { order: 1; }
}
@media (max-width: 560px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  section { padding: 74px 0; }
  .cta h2 { white-space: normal; }   /* let it wrap on narrow phones instead of overflowing */
  .process { grid-template-columns: 1fr; }
  .hero-stage { min-height: 62vh; padding: 22px; }
  .hero-play { width: 74px; height: 74px; }
  .about-stats { gap: 24px; }
  .stat__num { font-size: 30px; }
  .step { min-height: 340px; }
  .step__icon { width: 120px; height: 120px; }
}
