/* ============================================================
   Lila Yedida — landing page (round 1 updates)
   Fonts: Archivo Black (display) + Space Grotesk (everything else)
   Palette: cream + cobalt + hot orange (from portrait)
   ============================================================ */

:root {
  --bg: #F4EEDF;
  --bg-soft: #EBE3CE;
  --ink: #0A0A0A;
  --ink-dim: #4A4A48;
  --orange: #FF5A1F;
  --orange-deep: #E64A0F;
  --blue: #1B2BD6;
  --blue-deep: #0F1AA0;

  --display: "Archivo Black", system-ui, sans-serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1480px;
  --pad: clamp(20px, 4vw, 56px);
  --r: 20px;
}

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

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:lang(he) { font-family: var(--sans); direction: rtl; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.nav__brand {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav__links a {
  position: relative;
  padding: 6px 2px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.7fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding: clamp(36px, 6vw, 84px) var(--pad) clamp(60px, 8vw, 120px);
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
}

.hero__copy { position: relative; }
.hero__title {
  font-family: var(--display);
  font-size: clamp(64px, 13vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-transform: uppercase;
}
.hero__line { display: block; }
.hero__line--accent {
  color: var(--orange);
  position: relative;
}
.hero__line--accent::after {
  content: "";
  display: inline-block;
  width: 0.6ch;
  height: 0.6ch;
  margin-left: 0.1ch;
  border-radius: 50%;
  background: var(--blue);
  vertical-align: 0.1em;
}

.hero__role {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  margin: 0 0 14px;
  color: var(--ink-dim);
}
.hero__tag {
  font-size: clamp(17px, 1.7vw, 22px);
  max-width: 40ch;
  margin: 0 0 32px;
  color: var(--ink);
}
.cta {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 24px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.cta:hover { background: var(--orange); transform: translateY(-2px); }

/* Hero reel — native vertical 9:16 */
.hero__reel { position: relative; display: flex; justify-content: center; }
.reel-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--ink);
  box-shadow: 0 30px 60px -28px rgba(10,10,10,0.45);
  border: 2px solid var(--ink);
}
.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 999px;
  text-transform: lowercase;
  max-width: calc(100% - 28px);
}
.reel-sound {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.reel-sound__on { display: none; }
.reel-sound[data-muted="false"] .reel-sound__on { display: inline; }
.reel-sound[data-muted="false"] .reel-sound__off { display: none; }

/* ============================================================
   Section heads
   ============================================================ */
.section { background: var(--bg); }
.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--pad) 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.section-head__title {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.9;
  margin: 0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-head__sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 6px;
}

/* ============================================================
   Grids
   ============================================================ */
.grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--pad) 24px;
  display: grid;
  gap: 18px;
}
.grid--vertical {
  grid-template-columns: repeat(4, 1fr);
}
.grid--landscape {
  grid-template-columns: repeat(2, 1fr);
}
.grid--featured-single {
  grid-template-columns: 1fr;
  max-width: 1100px;
}
@media (max-width: 1100px) {
  .grid--vertical { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .grid--vertical { grid-template-columns: repeat(2, 1fr); }
  .grid--landscape { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .grid--vertical { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ============================================================
   Tiles
   ============================================================ */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--ink);
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
  color: var(--bg);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(10,10,10,0.5); }

.tile--portrait { aspect-ratio: 9 / 16; }
.tile--landscape { aspect-ratio: 16 / 9; }

.tile__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.tile:hover .tile__media { transform: scale(1.04); }

.tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 35%, rgba(0,0,0,0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
  color: var(--bg);
  pointer-events: none;
}
.tile__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}
.tile__client {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Image-based client logo badge */
.tile__logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  background: transparent;
}
.tile__logo img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
.tile__logo--leumit { background: #ffffff; padding: 4px 10px; }
.tile__logo--isrotel { background: transparent; }
.tile__logo--skoda { background: #ffffff; padding: 4px 10px; height: 36px; }
.tile__logo--isuzu { background: #ffffff; padding: 4px 14px; height: 30px; }

/* Tile without text overlay (Award-Winning featured tile) */
.tile--no-text .tile__overlay .tile__bottom { display: none; }
.tile__bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tile__caption {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}
.tile__title {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
}
.tile__play {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-family: var(--display);
  transition: background 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.tile:hover .tile__play { background: var(--orange); transform: scale(1.06); }

/* IG-only social cards */
.tile--ig::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,90,31,0.35), rgba(27,43,214,0.55));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.tile__ig-cta {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}

/* Featured tile gets a small download chip */
.tile__download {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  z-index: 2;
}

/* ============================================================
   About
   ============================================================ */
.about {
  background: var(--blue);
  color: var(--bg);
  padding: clamp(60px, 9vw, 120px) var(--pad);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}
.about__portrait {
  border-radius: var(--r);
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--ink);
  aspect-ratio: 4 / 5;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }

.about__heading {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 96px);
  margin: 0 0 22px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--orange);
}
.about__lede {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  font-weight: 500;
  margin: 0 0 18px;
  max-width: 38ch;
}
.about__copy {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 26px;
  max-width: 50ch;
  color: color-mix(in srgb, var(--bg) 85%, white);
}
.about__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.about__chips li {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--bg) 50%, transparent);
  border-radius: 999px;
}
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; }
}

/* Wrap about in cobalt full-bleed */
body { background: var(--bg); }
.about {
  /* override the centering above to allow full-width cobalt strip */
  max-width: none;
  border-radius: 0;
}
.about > * { max-width: var(--max); width: 100%; margin: 0 auto; }
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

/* ============================================================
   Frames carousel
   ============================================================ */
.frames {
  background: var(--bg);
  padding: clamp(56px, 8vw, 96px) var(--pad) 0;
}
.frames__viewer {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink);
  border: 2px solid var(--ink);
}
.frames__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.frames__slide.is-active { opacity: 1; }
.frames__label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}
@media (max-width: 600px) {
  .frames__viewer { aspect-ratio: 4 / 5; }
}

/* Section divider — small mini logo between sections */
.section-divider {
  display: flex;
  justify-content: center;
  padding: 28px var(--pad);
  background: var(--bg);
}
.section-divider img {
  height: 132px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(1) contrast(1.1);
}
@media (max-width: 600px) {
  .section-divider { padding: 18px var(--pad); }
  .section-divider img { height: 96px; }
}

/* ============================================================
   Basketball banner
   ============================================================ */
.banner {
  background: var(--bg);
  padding: clamp(40px, 6vw, 72px) var(--pad) 0;
}
.banner img {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  height: auto;
  border-radius: var(--r);
  display: block;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: var(--bg);
  padding: clamp(60px, 9vw, 120px) var(--pad) clamp(80px, 12vw, 160px);
  text-align: center;
}
.contact__heading {
  font-family: var(--display);
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.92;
  margin: 0 0 36px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.contact__pill {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 26px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact__pill:hover { background: var(--orange); transform: translateY(-2px); }
.contact__pill--primary { background: var(--orange); }
.contact__pill--primary:hover { background: var(--blue); }
.contact__label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.contact__value {
  font-family: var(--display);
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: 0.01em;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--pad) 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: rgba(10,10,10,0.96);
  color: var(--bg);
  display: none;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10,10,10,0.96); }
.lightbox__video {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  background: #000;
  border-radius: 12px;
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  background: var(--bg);
  color: var(--ink);
  width: 44px; height: 44px;
  border: 0;
  border-radius: 999px;
  font-size: 24px;
  font-family: var(--display);
  cursor: pointer;
  line-height: 1;
}
.lightbox__meta {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.lightbox__title { font-family: var(--display); font-size: 18px; }
.lightbox__tag { font-size: 12px; color: color-mix(in srgb, var(--bg) 65%, transparent); }
.lightbox__action {
  background: var(--orange);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
