:root {
  --bg: #0c0c0b;
  --bg-2: #1a1a19;
  --bg-gray: #1c1c1b;
  --bg-color: #0f1626;
  --text: #f1eee8;
  --muted: #9a958c;
  --line: rgba(241, 238, 232, 0.12);
  --accent: #e9dcc0;
  /* Signal yellow (Barak, 2.12.2026): only in small details, never on large areas or body text */
  --gold: #FFC93C;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
  /* Rubik chosen 2026-10-12; Heebo is the fallback option the owner also liked */
  --font: 'Rubik', 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
/* Work sections are narrower on big screens so the cards stay smaller, still 4 per row (Barak, 2.12.2026) */
#clients .wrap, #anim .wrap, #spec .wrap, #films .wrap { max-width: 1120px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius);
  transform: translateY(-150%); transition: transform .2s;
}
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  background: var(--text); color: var(--bg); border: 1px solid var(--text);
  font-weight: 500; font-size: 16px; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--text); color: var(--text); }
.btn-small { min-height: 38px; padding: 0 18px; font-size: 15px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--header-h);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(12, 12, 11, 0.86); backdrop-filter: blur(12px); border-color: var(--line); }
/* Reading progress: thin line under the header that fills while scrolling (from the right, RTL) */
.scroll-progress { position: absolute; inset: auto 0 -1px 0; height: 2px; background: rgba(241, 238, 232, 0.1); }
.scroll-progress span {
  display: block; height: 100%; background: #fff;
  transform: scaleX(0); transform-origin: right center; will-change: transform;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.wordmark { display: block; flex: 0 0 auto; }
.wordmark img { height: 22px; width: auto; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { font-size: 15px; color: var(--muted); text-decoration: none; transition: color .2s; position: relative; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -6px; height: 1px; background: var(--text);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; inset-inline: 10px; height: 1.5px; background: var(--text); transition: transform .25s, top .25s; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-wall {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 50%;
  gap: 3px; background: var(--bg);
}
.tile {
  position: relative; padding: 0; border: 0; background: var(--bg-2); cursor: pointer; overflow: hidden;
}
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.tile:hover video, .tile:focus-visible video { transform: scale(1.04); }
.tile::after {
  content: attr(data-label); position: absolute; inset-inline-start: 12px; bottom: 10px;
  font-size: 13px; letter-spacing: .04em; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.tile:hover::after, .tile:focus-visible::after { opacity: 1; transform: none; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(12,12,11,.97) 0%, rgba(12,12,11,.86) 32%, rgba(12,12,11,.5) 62%, rgba(12,12,11,.55) 100%);
}
.hero-copy { position: relative; z-index: 2; padding-bottom: clamp(48px, 9vh, 96px); pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-copy h1 { font-size: clamp(44px, 7.4vw, 112px); font-weight: 800; margin: 14px 0 18px; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: #cfcac1; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-pause {
  position: absolute; z-index: 3; bottom: 20px; inset-inline-start: var(--gutter);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(12,12,11,.5); cursor: pointer; display: grid; place-items: center;
}
.hero-pause svg { width: 16px; height: 16px; fill: var(--text); }
.hero-pause .i-play { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }
.hero-pause[aria-pressed="true"] .i-pause { display: none; }

/* Stats */
.stats { background: var(--bg); }
.stats ul {
  list-style: none; margin: 0; padding: 64px 0 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stats strong { font-size: clamp(40px, 5vw, 72px); font-weight: 300; line-height: 1; direction: ltr; text-align: start; }
.stats span { color: var(--muted); font-size: 15px; }

/* Logos */
.logos { padding: 72px 0 80px; }
/* Logo files share one canvas (1772x424), so one height fits all */
.logo { height: 48px; width: auto; object-fit: contain; }

/* Endless logo strip, moving left to right */
.marquee {
  direction: ltr; overflow: hidden; margin-top: 32px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 72px; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track li { flex: 0 0 auto; }
/* Strip logos are trimmed files with their own size (see STRIP in main.js) */
.marquee-track .logo { width: var(--w); height: var(--h); opacity: .7; transition: opacity .3s; }
.marquee-track .logo:hover { opacity: 1; }
.marquee:hover .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
.logos-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mini-toggle {
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px;
  color: var(--muted); font-size: 13px; cursor: pointer;
}
.mini-toggle:hover { color: var(--text); border-color: var(--text); }
/* 4 identical sets: shifting by one set (25% + a quarter of the gaps) loops seamlessly */
@keyframes marquee {
  from { transform: translateX(calc(-25% - 18px)); }
  to { transform: translateX(0); }
}

/* Sections */
.section { padding-block: clamp(88px, 11vw, 150px); }
.bg-black { background: var(--bg); }
.bg-gray { background: var(--bg-gray); }
.bg-color { background: var(--bg-color); }
.bg-color .card, .bg-gray .card { background: rgba(255, 255, 255, 0.04); }
.section-head { margin-bottom: 48px; display: grid; gap: 12px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 64px); }
.section-sub { color: var(--muted); max-width: 40em; }

/* Client cards */
.client-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.client-grid--small { grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
.card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; text-align: start;
  background: var(--bg-2); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 4 / 3;
}
.client-grid--small .card { aspect-ratio: 3 / 4; }
/* A big card that takes the whole row (when the big cards don't pair up) */
.client-grid .card--span { grid-column: 1 / -1; aspect-ratio: 8 / 3; }
.card-media { position: absolute; inset: 0; display: flex; gap: 2px; }
.card-media img, .card-media video { flex: 1; min-width: 0; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.035); }
.card::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(12,12,11,.92) 0%, rgba(12,12,11,.25) 45%, rgba(12,12,11,0) 70%);
}
/* Cards whose cover has its own text: a deeper shade so our logo and tag stay readable */
.card--scrim::before {
  background: linear-gradient(to top, rgba(12,12,11,.97) 0%, rgba(12,12,11,.9) 32%, rgba(12,12,11,.35) 55%, rgba(12,12,11,0) 72%);
}
.card-body {
  position: absolute; z-index: 2; inset: auto 0 0 0; padding: 22px 24px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.card-body .logo { height: 44px; margin-inline-start: -8px; }
.card-name { font-size: 22px; font-weight: 700; }
.card-meta { color: #cfcac1; font-size: 14px; margin-top: 6px; }
.card-count {
  flex: 0 0 auto; font-size: 13px; border: 1px solid rgba(241,238,232,.35); border-radius: 999px; padding: 4px 12px;
  white-space: nowrap;
}
.client-grid--small .card-body { flex-direction: column; align-items: flex-start; padding: 16px; }
.client-grid--small .card-body .logo { height: 34px; }
/* Client cards (2.12.2026): trimmed logos with balanced sizes (STRIP in main.js), flush to the right
   edge and the same gap above the tag line on every card */
.client-grid .card-body .logo {
  display: block; margin: 0; width: calc(var(--w) * .72 * var(--k, 1)); max-width: 100%; height: auto;
}
.client-grid .card-body .card-name {
  display: block; font-size: 17px; line-height: 1.2; white-space: nowrap; letter-spacing: .01em;
}
.client-grid .card-meta { margin-top: 10px; }

/* Spec */
.spec-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.spec-feature:not(:empty) { margin-bottom: 14px; }
.spec-feature .card { aspect-ratio: 21 / 9; }
.spec-feature .card-body { padding: 28px 32px; flex-direction: column; align-items: flex-start; gap: 4px; }
.spec-feature .card-name { font-size: clamp(24px, 3vw, 40px); }
.spec-grid .card { aspect-ratio: 9 / 16; }
.spec-grid .card-body { flex-direction: column; align-items: flex-start; padding: 16px; gap: 2px; }
.spec-grid .card-name { font-size: 18px; }

/* Films */
.film-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.film-grid .card { aspect-ratio: 9 / 16; }
.film-grid .card--wide { grid-column: span 4; aspect-ratio: 21 / 9; }
.film-grid .card-body { flex-direction: column; align-items: flex-start; padding: 16px; gap: 2px; }
.play-badge {
  position: absolute; z-index: 2; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(12,12,11,.55); border: 1px solid rgba(241,238,232,.3); display: grid; place-items: center;
  opacity: 0; transition: opacity .3s;
}
.play-badge svg { width: 12px; height: 12px; fill: var(--text); margin-inline-start: -2px; transform: scaleX(-1); }
.card:hover .play-badge, .card:focus-visible .play-badge { opacity: 1; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.process li { padding: 28px 24px 0 24px; border-inline-start: 1px solid var(--line); counter-increment: step; }
.process li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.process li::before { content: '0' counter(step); display: block; color: var(--muted); font-size: 13px; letter-spacing: .1em; margin-bottom: 18px; }
.process h3 { font-size: 20px; margin-bottom: 10px; }
.process p { color: var(--muted); font-size: 15px; }

/* About */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { height: 100%; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.about-text { display: grid; gap: 18px; }
.about-text h2 { font-size: clamp(34px, 4.6vw, 64px); }
.about-text p { font-size: 19px; color: #d7d2c9; max-width: 32em; }
.about-text .about-quote {
  margin-top: 8px; padding-inline-start: 20px; border-inline-start: 2px solid var(--accent);
  color: var(--text); font-size: 21px; font-weight: 500;
}
.placeholder-text { color: var(--muted) !important; font-style: italic; }

/* Contact */
.contact h2 { font-size: clamp(40px, 6.4vw, 96px); font-weight: 800; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 28px; color: var(--muted); font-size: 14px; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }

/* Project overlay */
.project {
  position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  animation: rise .45s cubic-bezier(.2,.7,.2,1);
}
.project-inner { padding-top: 96px; padding-bottom: 120px; position: relative; }
.project .close { position: fixed; top: 18px; inset-inline-end: var(--gutter); }
.close {
  z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(12,12,11,.7); cursor: pointer; display: grid; place-items: center;
}
.close svg { width: 18px; height: 18px; stroke: var(--text); stroke-width: 1.5; fill: none; }
.close:hover { border-color: var(--text); }
.project-head { display: grid; gap: 14px; margin-bottom: 56px; max-width: 760px; }
.project-logo .logo { height: 64px; margin-inline-start: -12px; }
.project-head h2 { font-size: clamp(40px, 6vw, 84px); }
.project-about { color: #cfcac1; font-size: 19px; }
.project-photo { margin: 40px 0 0; max-width: 900px; }
.project-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.project-photo figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
.project-note { color: var(--muted); font-size: 14px; margin-top: 28px; max-width: 60ch; }
.group + .group { margin-top: 72px; }
.group-title { font-size: 13px; letter-spacing: .14em; color: var(--muted); margin-bottom: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-grid--few { grid-template-columns: repeat(3, minmax(0, 340px)); }
.vcard { display: grid; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; text-align: start; }
.vcard-media { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.vcard:hover .vcard-media img { transform: scale(1.035); }
.vcard .play-badge { opacity: 1; top: auto; bottom: 14px; }
.vcard-title { font-size: 16px; }
.vcard-dur { color: var(--muted); font-size: 14px; margin-inline-start: 8px; }

/* Player */
.player {
  position: fixed; inset: 0; z-index: 60; background: rgba(6,6,5,.94);
  display: grid; place-items: center; padding: 72px 16px 24px;
  animation: fade .25s ease;
}
.player .close { position: absolute; top: 18px; inset-inline-end: var(--gutter); }
.player-frame { margin: 0; display: grid; gap: 12px; justify-items: center; max-height: 100%; }
.player video { max-height: calc(100svh - 140px); max-width: min(92vw, 1200px); border-radius: var(--radius); background: #000; }
.player figcaption { color: var(--muted); font-size: 15px; }

[hidden] { display: none !important; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Responsive */
@media (max-width: 1080px) {
  .spec-grid { grid-template-columns: repeat(4, 1fr); }
  .film-grid { grid-template-columns: repeat(4, 1fr); }
  .spec-feature .card { aspect-ratio: 16 / 9; }
  .film-grid .card--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
  .process { grid-template-columns: 1fr; border-top: 0; }
  .process li, .process li:first-child { border-inline-start: 0; border-top: 1px solid var(--line); padding: 24px 0; display: grid; grid-template-columns: 60px 1fr; column-gap: 16px; }
  .process li::before { grid-row: span 2; margin: 4px 0 0; }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 20px; padding: 12px 0; color: var(--text); }
  .nav a.active::after { display: none; }
  .menu-toggle { display: block; }
  .header-actions { margin-inline-start: auto; }
  .site-header.menu-open { background: var(--bg); }
  .hero-wall { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 50%; }
  .hero-wall .tile:nth-child(n+7) { display: none; }
  .client-grid { grid-template-columns: 1fr; }
  .client-grid .card--span { aspect-ratio: 4 / 3; }
  .client-grid--small { grid-template-columns: repeat(2, 1fr); }
  .stats ul { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 40px 0; }
  .stats span { font-size: 13px; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .video-grid, .video-grid--few { grid-template-columns: repeat(2, 1fr); }
  .marquee-track { gap: 48px; animation-duration: 30s; }
  .marquee-track .logo { width: calc(var(--w) * .75); height: calc(var(--h) * .75); }
  @keyframes marquee {
    from { transform: translateX(calc(-25% - 12px)); }
    to { transform: translateX(0); }
  }
}
@media (max-width: 520px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .card { aspect-ratio: 4 / 5; }
  .header-actions .btn-small { display: none; }
  .film-grid { gap: 10px; grid-template-columns: repeat(2, 1fr); }
  .spec-grid { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  /* no moving strip: show one set of logos, wrapped and centered */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; gap: 24px 48px; padding-inline: 16px; }
  .marquee-track li[aria-hidden] { display: none; }
  .mini-toggle { display: none; }
}

/* ---------- Accessibility menu ---------- */
.a11y-btn {
  position: fixed; z-index: 70; left: 20px; bottom: 20px;
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  background: var(--text); border: 0; display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.a11y-btn svg { width: 26px; height: 26px; fill: none; stroke: var(--bg); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a11y-btn svg circle { fill: var(--bg); stroke: none; }
.a11y-panel {
  position: fixed; z-index: 70; left: 20px; bottom: 82px; width: min(360px, calc(100vw - 40px));
  background: #151514; color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6); overflow: hidden; direction: rtl;
}
.a11y-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.a11y-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.a11y-panel svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.a11y-panel svg .fill { fill: currentColor; }
.a11y-close { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; display: grid; }
.a11y-close:hover { color: var(--text); }
.a11y-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.a11y-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); cursor: pointer; text-align: center; min-height: 92px;
}
.a11y-tile:hover { border-color: rgba(241, 238, 232, 0.4); }
.a11y-tile.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.a11y-tile.on .a11y-state { color: var(--bg); opacity: .75; }
.a11y-label { font-size: 13px; font-weight: 500; line-height: 1.25; }
.a11y-state { font-size: 12px; color: var(--muted); min-height: 1em; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; }
.a11y-foot a { color: var(--muted); }
.a11y-foot a:hover { color: var(--text); }
.a11y-foot kbd { font-family: inherit; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }

/* Settings applied to the whole page */
html[data-a11y-contrast="1"] {
  --bg: #000; --bg-gray: #000; --bg-2: #000; --text: #fff; --muted: #fff; --line: rgba(255, 255, 255, 0.7); --accent: #ffe14d;
}
html[data-a11y-contrast="1"] .hero-shade { background: rgba(0, 0, 0, 0.82); }
html[data-a11y-contrast="1"] .section, html[data-a11y-contrast="1"] .logos { border-top: 1px solid #fff; }
html[data-a11y-contrast="2"] { filter: grayscale(1); }
html[data-a11y-spacing="1"] body :is(p, li, a, span, h1, h2, h3) { line-height: 1.95 !important; letter-spacing: 0.02em; }
html[data-a11y-spacing="2"] body :is(p, li, a, span, h1, h2, h3) { line-height: 2.4 !important; letter-spacing: 0.05em; word-spacing: 0.12em; }
html[data-a11y-links] a, html[data-a11y-links] main button { text-decoration: underline !important; text-underline-offset: 4px; outline: 2px solid #ffe14d; outline-offset: 2px; }
html[data-a11y-headings] :is(h1, h2, h3) { outline: 2px dashed #ffe14d; outline-offset: 6px; background: rgba(255, 225, 77, 0.08); }
html[data-a11y-font] body, html[data-a11y-font] body * { font-family: Arial, 'Segoe UI', sans-serif !important; letter-spacing: 0.02em; }
html[data-a11y-cursor], html[data-a11y-cursor] * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 8-6.5 2L10 19z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}
html[data-a11y-motion] { scroll-behavior: auto; }
html[data-a11y-motion] *, html[data-a11y-motion] *::before, html[data-a11y-motion] *::after { animation: none !important; transition: none !important; }
html[data-a11y-motion] .reveal { opacity: 1; transform: none; }

/* ---------- Carousels (spec ads, short films): 4 visible, scroll sideways ---------- */
.carousel {
  --visible: 4; --gap: 14px;
  display: grid; grid-auto-flow: column; grid-template-columns: none !important;
  grid-auto-columns: calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
  gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 10px; margin: -24px 0 20px; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  cursor: pointer; display: grid; place-items: center; transition: border-color .2s, opacity .2s;
}
.carousel-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:hover:not(:disabled) { border-color: var(--text); }
.carousel-btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 1080px) { .carousel { --visible: 3; } }
/* Desktop: concept and film cards match the client cards exactly (same width, gap and 3:4 shape; Barak, 2.12.2026) */
@media (min-width: 1081px) {
  .carousel { --gap: 20px; }
  .spec-grid .card, .film-grid .card { aspect-ratio: 3 / 4; }
}
@media (max-width: 520px) { .carousel { --visible: 2; --gap: 10px; } .carousel-nav { margin-top: -16px; } }
@media (prefers-reduced-motion: reduce) { .carousel { scroll-behavior: auto; } }

/* ---------- Language switch + left-to-right (English) adjustments ---------- */
.lang-link {
  font-size: 14px; font-weight: 500; letter-spacing: .06em; color: var(--muted); text-decoration: none;
  padding: 6px 8px; border-radius: 6px;
}
.lang-link:hover { color: var(--text); }
.play-badge svg { transform: none; margin-inline-start: 2px; }
[dir="ltr"] .scroll-progress span { transform-origin: left center; }
[dir="ltr"] .a11y-btn, [dir="ltr"] .a11y-panel { left: auto; right: 20px; }
[dir="ltr"] .a11y-panel { direction: ltr; }

/* ---------- Signal yellow #FFC93C in small details (2.12.2026) ---------- */
:focus-visible { outline-color: var(--gold); }
.scroll-progress span { background: var(--gold); }
.nav a.active::after { background: var(--gold); height: 2px; }
.section-head .eyebrow, .about-text .eyebrow { color: var(--gold); }
.process li::before { color: var(--gold); }
.about-text .about-quote { border-inline-start-color: var(--gold); }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.btn-ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.card:hover .play-badge, .card:focus-visible .play-badge, .vcard:hover .play-badge { background: var(--gold); border-color: var(--gold); }
.card:hover .play-badge svg, .card:focus-visible .play-badge svg, .vcard:hover .play-badge svg { fill: var(--bg); }
.carousel-btn:hover:not(:disabled) { border-color: var(--gold); }
.carousel-btn:hover:not(:disabled) svg { stroke: var(--gold); }
