﻿/* ============================================================
   שמעון כהן — תיק עבודות
   כיוון עיצובי 1b: צבעוני ונועז
   ============================================================ */

:root {
  --cream: #f6f3ee;
  --cream-2: #eae4db;
  --ink: #231f20;
  --ink-2: #302b2c;
  --red: #e07b18;
  --gold: #f7931d;
  --text: #45403f;
  --text-soft: #6b6462;
  --on-dark: #d6d0cc;
  --on-dark-soft: #9c9490;
  --line-light: rgba(21, 24, 51, 0.12);
  --line-dark: rgba(255, 255, 255, 0.1);
  --shell: 1360px;
  --pad: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* הניווט דביק, ולכן קפיצה לעוגן הייתה מסתירה את ראש המקטע מתחתיו. */
:target,
[id] { scroll-margin-top: 86px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Assistant", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Rubik", "Segoe UI", sans-serif;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a { color: var(--red); text-decoration: none; }
img { display: block; max-width: 100%; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--red);
  text-transform: none;
}

.rule { height: 1px; background: var(--line-light); }

/* ---------- שכבת גרעין ---------- */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- פס התקדמות גלילה ---------- */
.progress-track {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

/* ---------- ניווט ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(243, 239, 230, 0.78);
  border-bottom: 1px solid rgba(21, 24, 51, 0.08);
}
.nav--dark {
  background: rgba(21, 24, 51, 0.78);
  border-bottom-color: var(--line-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 34px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.navlink {
  position: relative;
  color: var(--text);
  transition: color 0.2s ease;
}
.nav--dark .navlink { color: var(--on-dark-soft); }
.navlink::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width 0.25s var(--ease);
}
.navlink:hover::after,
.navlink[aria-current="page"]::after { width: 100%; }
.navlink[aria-current="page"] { color: var(--ink); }
.nav--dark .navlink[aria-current="page"] { color: #fff; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 16px 30px;
  border-radius: 14px;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -14px rgba(21, 24, 51, 0.5);
}
.btn__arrow { color: var(--gold); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 14px 28px;
}
.btn--ghost:hover { box-shadow: 0 18px 34px -16px rgba(21, 24, 51, 0.45); }

/* ---------- HERO ---------- */
/* הצד הימני הוא הטיעון, הצד השמאלי הוא ההוכחה: קולאז' של העבודות
   האמיתיות זז לאט ברקע במקום צורה מופשטת. */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* האדום יושב מאחורי הקולאז' ולא מאחורי הכותרת — שטיפה ורודה על
     הטיפוגרפיה מחלישה אותה. הזהב מחמם את פינת הנתונים. */
  background:
    radial-gradient(44% 50% at 20% 14%, rgba(232, 54, 92, 0.10), transparent 70%),
    radial-gradient(46% 50% at 90% 80%, rgba(255, 207, 92, 0.22), transparent 72%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 60px;
  align-items: center;
  min-height: min(86vh, 840px);
  padding-block: 72px;
  position: relative;
}
.hero__intro > * { animation: fadeUp 0.9s var(--ease) both; }
.hero__intro > *:nth-child(2) { animation-delay: 0.08s; }
.hero__intro > *:nth-child(3) { animation-delay: 0.16s; }
.hero__intro > *:nth-child(4) { animation-delay: 0.24s; }
.hero__intro > *:nth-child(5) { animation-delay: 0.32s; }

.hero__eyebrow { display: flex; align-items: center; gap: 10px; }
.hero__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
  box-shadow: 0 0 0 0 rgba(232, 54, 92, 0.55);
  animation: pulseDot 2.4s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(232, 54, 92, 0.5); }
  70%  { box-shadow: 0 0 0 11px rgba(232, 54, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 54, 92, 0); }
}

.hero__title {
  font-size: clamp(38px, 5.4vw, 84px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-top: 18px;
}
.hero__title em { font-style: normal; color: var(--red); }
.hero__lede {
  font-size: 19px;
  line-height: 1.7;
  max-width: 500px;
  margin: 24px 0 0;
  font-weight: 500;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* מספרים בשורה אחת — הם עובדה תומכת, לא הכותרת. */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 42px 0 0;
  border-top: 1px solid var(--line-light);
  padding-top: 22px;
}
.hero__stats > div {
  padding-inline: 26px;
  border-inline-start: 1px solid var(--line-light);
}
.hero__stats > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.hero__stats dt {
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero__stats dd { margin: 6px 0 0; font-size: 13px; color: var(--text-soft); }
/* פינה שיש בה מילה ולא ספרה: קצת קטן יותר, ובלי שבירה לשתי שורות. */
.hero__stats dt { white-space: nowrap; }
.hero__stats--words dt { font-size: 26px; letter-spacing: -0.01em; }
.hero__stats--words dd { font-size: 12.5px; }

/* ---------- קולאז' העבודות ---------- */
.hero__mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  height: min(78vh, 760px);
  overflow: hidden;
  /* דהייה לקצוות כדי שהקולאז' ייצא מהקרם ולא ייעצר בקו חד */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  /* נבנה אחרי שהבחירה חוזרת מהשרת — נכנס בהדרגה במקום לקפוץ. */
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.hero__mosaic.is-ready { opacity: 1; }
.hero__col {
  display: flex;
  flex-direction: column;
  /* קריטי: בלי start הגריד מותח את העמודה לגובה השורה, ואז -50%
     מזיז חצי מהמסגרת במקום חצי מהתוכן — והלולאה קופצת. */
  align-self: start;
  animation: heroDrift 58s linear infinite;
  will-change: transform;
}
.hero__col--rev { animation-direction: reverse; }
.hero__col--slow { animation-duration: 76s; }
/* התוכן מוכפל, ולכן חצי מסלול הוא בדיוק מחזור אחד. margin ולא gap —
   gap נותן פער אחד פחות ממספר האריחים ויוצר קפיצה בתפר. */
@keyframes heroDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.hero__tile {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px -18px rgba(21, 24, 51, 0.5);
  border: 1px solid rgba(21, 24, 51, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .hero__col { animation: none; }
  .hero__pulse { animation: none; }
}

@media (max-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: 0;
    padding-block: 56px 64px;
  }
  .hero__mosaic { height: 400px; }
  .hero__stats { margin-top: 34px; }
}
@media (max-width: 620px) {
  .hero__mosaic { grid-template-columns: repeat(2, 1fr); height: 330px; }
  /* שתי עמודות בגריד ושלוש עמודות בתוכן ייצרו שורה שנייה — מסתירים. */
  .hero__col:nth-child(3) { display: none; }
  .hero__stats > div { padding-inline: 18px; }
  .hero__stats dt { font-size: 28px; }
}

/* ---------- כותרת פנימית ---------- */
.pagehead {
  padding-block: 66px 52px;
  animation: fadeUp 0.9s var(--ease) both;
}
.pagehead__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.pagehead h1 { font-size: clamp(38px, 5.5vw, 60px); font-weight: 900; }
.pagehead__meta {
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--on-dark-soft);
}
.pagehead__lede { max-width: 560px; margin: 18px 0 0; line-height: 1.7; }

/* ---------- מרקיזה ---------- */
/* ---------- הפס הטיפוגרפי ---------- */
.kinetic {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  padding-block: 30px;
  border-block: 1px solid rgba(255, 255, 255, 0.07);
}
.kinetic__glow {
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  background:
    radial-gradient(42% 120% at 28% 50%, rgba(232, 54, 92, 0.14), transparent 70%),
    radial-gradient(40% 115% at 76% 50%, rgba(255, 207, 92, 0.16), transparent 72%);
  animation: kineticSweep 17s ease-in-out infinite alternate;
}
@keyframes kineticSweep {
  from { transform: translateX(-9%); }
  to   { transform: translateX(9%); }
}

.kinetic__row {
  display: flex;
  /* RTL מעגן את המסלול לימין והשכפול יוצא בצד הלא נכון — כמו בקיר. */
  direction: ltr;
  /* המילים נמוגות בקצוות במקום להיחתך בקו חד. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.kinetic__track {
  display: flex;
  align-items: center;
  flex: none;
  width: max-content;
  animation: kineticDrift 42s linear infinite;
  will-change: transform;
}
/* השורה השנייה נעה הפוך ולאט יותר — זה מה שיוצר את תחושת העומק. */
.kinetic__row--b .kinetic__track { animation-duration: 58s; animation-direction: reverse; }
@keyframes kineticDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.kinetic__word {
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.24;
  white-space: nowrap;
  color: #fff;
  /* margin ולא gap: gap נותן פער אחד פחות ממספר הפריטים ופותח תפר. */
  margin-inline-end: 30px;
  transition: color 0.35s var(--ease), -webkit-text-stroke-color 0.35s var(--ease);
}
.kinetic__word--out {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.45);
}
.kinetic__word:hover { color: var(--gold); -webkit-text-stroke-color: var(--gold); }

.kinetic__row--b .kinetic__word {
  font-size: clamp(20px, 2.7vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-dark-soft);
}
.kinetic__row--b .kinetic__word--out {
  color: transparent;
  -webkit-text-stroke: 1.1px rgba(255, 207, 92, 0.5);
}

.kinetic__dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-inline-end: 30px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.9;
}
.kinetic__row--b .kinetic__dot { width: 6px; height: 6px; background: var(--red); }

.kinetic__plain {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  color: var(--on-dark);
  text-align: center;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .kinetic__track, .kinetic__glow { animation: none; }
}
@media (max-width: 700px) {
  .kinetic { padding-block: 20px; }
  .kinetic__word { margin-inline-end: 20px; }
  .kinetic__dot { margin-inline-end: 20px; }
}

/* ---------- אזור כהה ---------- */
.dark {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  padding-block: 90px;
}
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .eyebrow { color: var(--gold); }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.section__head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section__head h2 mark { background: none; color: var(--gold); }
.link-more {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--on-dark-soft);
}
.link-more:hover { color: #fff; }

/* ---------- רשת עבודות ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 24px;
}

.card {
  display: block;
  color: inherit;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
  text-align: start;
  font: inherit;
}
.card__frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #20255c;
}
/* --light משנה רק את צבע הרקע; --contain משנה רק את אופן ההתאמה.
   לוגו על רקע שקוף מקבל את שניהם, לוגו בהיר-על-כהה רק את --contain. */
.card__frame--light { background: #fbfaf7; }
.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card__frame--contain .card__img {
  object-fit: contain;
  padding: 11%;
}
.card:hover .card__img { transform: scale(1.045); }
.card__zoom {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(21, 24, 51, 0.72);
  color: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  backdrop-filter: blur(6px);
}
.card:hover .card__zoom,
.card:focus-visible .card__zoom { opacity: 1; transform: scale(1); }
.card__bar {
  height: 2px;
  margin-top: 16px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__bar,
.card:focus-visible .card__bar { transform: scaleX(1); }
.card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
}
.card__title {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}
.card__idx { font-family: "Rubik", sans-serif; font-size: 12px; color: #7f80ac; }
.card__meta { font-size: 13px; color: var(--on-dark-soft); margin-top: 2px; }

/* ---------- עמוד פרויקט ---------- */
.proj__loading { padding: 140px 24px; text-align: center; color: var(--on-dark-soft); }

/* הזוהר הצבעוני מגיע מ---glow שנקבע לכל פרויקט לפי צבע ההדגשה שלו,
   כך שכל עמוד מקבל אווירה משלו בלי גיליון סגנון נפרד. */
.proj {
  --glow: var(--gold);
  position: relative;
  overflow: hidden;
}
.proj__aura {
  position: absolute;
  inset-block-start: -260px;
  inset-inline-start: -180px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--glow), transparent 62%);
  opacity: 0.24;
  filter: blur(30px);
  pointer-events: none;
  animation: auraDrift 22s ease-in-out infinite;
}
@keyframes auraDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 50px) scale(1.12); }
}

/* ראש עמוד הפרויקט: העבודה לצד הכותרת, בקיפול הראשון. */
.proj__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
  align-items: center;
  padding-block: 62px 70px;
}
/* בלי תמונה — עמודה אחת ברוחב קריא, צמודה להתחלה. בפריסת הסרטונים
   זו הכותרת שמעל רצף השורות, ולכן היא לא ממורכזת. */
.proj__top--bare {
  grid-template-columns: minmax(0, 820px);
  justify-content: start;
  padding-block: 54px 46px;
}

.proj__info { min-width: 0; }
.proj__title {
  font-size: clamp(32px, 4.4vw, 62px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 16px 0 0;
  text-wrap: balance;
}
.proj__intro {
  font-size: 19px;
  line-height: 1.7;
  color: var(--on-dark);
  margin: 20px 0 0;
  max-width: 520px;
}

/* פירורי לחם */
.proj__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--on-dark-soft);
}
.proj__crumb a { color: var(--on-dark-soft); transition: color 0.25s var(--ease); }
.proj__crumb a:hover { color: var(--glow, var(--gold)); }
.proj__crumb span { opacity: 0.5; }
.proj__crumb-now { color: var(--glow, var(--gold)); opacity: 1; font-weight: 700; }

/* "מה עשינו כאן" — שורת תגיות אחת במקום רשת פרטים. */
.proj__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}
.proj__chips-lab {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--glow, var(--gold));
  margin-inline-end: 4px;
}
.proj__chip {
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark);
}
.proj__meta {
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--on-dark-soft);
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* יחס קבוע 3:2 — אותה מסגרת בדיוק כמו בכרטיס שבדף העבודות, כך
   שהתמונה הראשית של האלבום מוכנה פעם אחת ומתאימה בשני המקומות. */
.proj__cover {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  line-height: 0;
  cursor: zoom-in;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 50px 90px -42px rgba(0, 0, 0, 0.95);
}
.proj__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}
.proj__cover:hover img { transform: scale(1.03); }

/* גודל מקורי — התמונה מקבלת את הצורה שלה ושום דבר לא נחתך. גובה
   המסך חוסם כרזה גבוהה מלהשתלט על העמוד. */
.proj__cover--natural {
  aspect-ratio: auto;
  text-align: center;
  line-height: 0;
}
.proj__cover--natural img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: inline-block;
}
/* כריכה שהיא סרטון — סימן נגינה על התמונה. */
.proj__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 54px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.proj__cover { position: relative; }

/* הסיפור בשני טורים על כל הרוחב — פסקה יחידה ברוחב 620 השאירה חצי
   עמוד ריק לצידה. */
.proj__story {
  position: relative;
  z-index: 1;
  padding-block: 8px 78px;
  columns: 2;
  column-gap: 54px;
}
.proj__story p {
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--on-dark);
  margin: 0 0 22px;
  break-inside: avoid;
}
.proj__story p:first-child::first-letter {
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  font-size: 3.1em;
  line-height: 0.82;
  float: inline-start;
  margin-inline-end: 10px;
  margin-block-start: 6px;
  color: var(--glow);
}

@media (max-width: 1000px) {
  .proj__top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 44px 52px;
  }
  /* התמונה קודמת — היא מה שרוצים לראות ראשון. */
  .proj__top .proj__cover { order: -1; }
  .proj__story { columns: 1; padding-bottom: 56px; }
  .proj__chips { margin-top: 20px; }
  .proj__intro { max-width: none; }
}


.proj__gal { padding-bottom: 90px; }

/* פסיפס ורשת חולקים אותה רשת. שורות בגובה קבוע נותנות שליטה אמיתית
   בגודל — masonry עדיין לא נתמך, ו-dense סוגר את החורים שנוצרים
   מאריח כפול.
   124px נבחר כדי שברוחב הייחוס (1440) האריחים ייצאו ביחסים נקיים
   שאפשר לכתוב עליהם בפאנל: רגיל 3:2, רחב 3:1, גבוה 1:1. */
.proj__gal--mosaic,
.proj__gal--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 124px;
  grid-auto-flow: dense;
  gap: 18px;
}
.proj__gal--mosaic .shot,
.proj__gal--grid .shot { grid-row: span 2; }
.proj__gal--mosaic .shot--w2 { grid-column: span 2; }
.proj__gal--mosaic .shot--h2 { grid-row: span 3; }

/* בתוך תא בגובה ידוע, התמונה ממלאת אותו — ולכן היחס הקבוע של
   shot--tall/wide חייב לרדת כאן. */
.proj__gal--mosaic .shot img,
.proj__gal--grid .shot img {
  aspect-ratio: auto;
  height: 100%;
  object-fit: cover;
}
.proj__gal--mosaic .shot--fit img,
.proj__gal--grid .shot--fit img { object-fit: contain; padding: 5%; }

/* גודל מקורי — כל תמונה שומרת על היחס שלה ושום דבר לא נחתך.
   columns ולא grid: זו הדרך היחידה היום לקבל טורים שנסגרים בלי
   חורים כשהגבהים שונים. */
.proj__gal--natural {
  column-count: var(--nat-cols, 3);
  column-gap: 18px;
}
.proj__gal--natural .shot {
  break-inside: avoid;
  margin-bottom: 18px;
  width: 100%;
}
.proj__gal--natural .shot img {
  aspect-ratio: auto;
  height: auto;
  object-fit: fill;
}
/* פריט יחיד — למשל ניוזלטר שלם — מוצג ברוחב קריא ולא נמתח על כל
   השורה. ניוזלטר עוצב ל-600 פיקסל, ומתיחה שלו לרוחב מלא מגדילה אותו
   פי שניים ממה שהמעצב התכוון. */
.proj__gal--natural:has(> .shot:only-child) {
  /* הגלריה היא .shell, ולכן ה-max-width כולל את הריפוד שלה — בלי
     החישוב הזה התמונה יוצאת צרה ב-128 פיקסל מהמכוון. */
  max-width: calc(720px + var(--pad) * 2);
  margin-inline: auto;
}
.proj__gal--natural .shot--fit { background: #fbfaf7; }
.proj__gal--natural .shot--fit img { padding: 4%; }

/* ---------- פריסת סרטונים ---------- */
/* כל סרטון הוא שורה רחבה משלו, והנגן נפתח בתוכה. */
.proj__gal--reel { display: flex; flex-direction: column; gap: 64px; }
.vrow {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 44px;
  align-items: center;
}
/* צד מתחלף — העין זזה במקום לרדת בקו ישר. */
.vrow--flip { grid-template-columns: 0.75fr 1.25fr; }
.vrow--flip .vrow__stage { order: 2; }

.vrow__stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 40px 70px -38px rgba(0, 0, 0, 0.95);
}
.vrow__play {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.vrow__play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.4s var(--ease);
}
.vrow__play:hover img { transform: scale(1.04); filter: brightness(1.08); }
.vrow__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 58px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  transition: transform 0.35s var(--ease);
  pointer-events: none;
}
.vrow__play:hover .vrow__glyph { transform: scale(1.12); }
.vrow__frame { width: 100%; height: 100%; border: 0; display: block; }

.vrow__body { min-width: 0; }
.vrow__num {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--glow, var(--gold));
  font-variant-numeric: tabular-nums;
}
.vrow__title {
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  color: #fff;
  margin: 12px 0 0;
  text-wrap: balance;
}
.vrow__meta { font-size: 13.5px; color: var(--on-dark-soft); margin: 10px 0 0; }
.vrow__text { font-size: 16px; line-height: 1.75; color: var(--on-dark); margin: 14px 0 0; }
.vrow__hint {
  display: inline-block;
  margin-top: 18px;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--glow, var(--gold));
  transition: transform 0.3s var(--ease);
}
.vrow:hover .vrow__hint { transform: translateX(-5px); }

@media (max-width: 900px) {
  .proj__gal--reel { gap: 44px; }
  .vrow,
  .vrow--flip { grid-template-columns: 1fr; gap: 20px; }
  .vrow--flip .vrow__stage { order: 0; }
  .vrow__glyph { font-size: 46px; }
}

/* פריסה גדולה — הפריסה הקודמת, למי שרוצה עמוד שכולו תמונות ענק. */
.proj__gal--stack { display: flex; flex-direction: column; gap: 22px; }
.proj__row { display: grid; gap: 22px; }
.proj__row--one { grid-template-columns: 1fr; }
.proj__row--two { grid-template-columns: 1fr 1fr; }

.shot {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.85);
}
.shot img {
  width: 100%;
  display: block;
  transition: transform 0.9s var(--ease);
}
.shot--tall img { aspect-ratio: 3 / 4; object-fit: cover; }
.shot--wide img { aspect-ratio: 16 / 10; object-fit: cover; }
.shot--fit { background: #fbfaf7; }
.shot--fit img { aspect-ratio: 16 / 10; object-fit: contain; padding: 5%; }
.shot:hover img { transform: scale(1.035); }
.shot__cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(10, 12, 28, 0.9));
  text-align: start;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }
.shot__cap strong {
  display: block;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.shot__cap span { font-size: 13px; color: var(--on-dark-soft); }
.shot__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 44px;
  color: #fff;
  background: rgba(21, 24, 51, 0.3);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.proj__next {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 54px 80px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.proj__next span { color: var(--on-dark-soft); font-size: 14px; }
.proj__next a {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 38px);
  color: #fff;
  letter-spacing: -0.02em;
}
.proj__next a:hover { color: var(--glow); }

@media (max-width: 1000px) {
  .proj__row--two { grid-template-columns: 1fr; }
  .proj__gal--mosaic,
  .proj__gal--grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 124px; gap: 14px; }
  .proj__gal--natural { column-count: 2; column-gap: 14px; }
  .proj__gal--natural .shot { margin-bottom: 14px; }
}
@media (max-width: 560px) {
  /* עמודה אחת — אריח כפול-רוחב היה יוצא רחב מהמסך. */
  .proj__gal--mosaic,
  .proj__gal--grid { grid-template-columns: 1fr; grid-auto-rows: 150px; }
  .proj__gal--mosaic .shot--w2 { grid-column: span 1; }
  .proj__gal--natural { column-count: 1; }
}

/* עבודה עם קישור לאתר חי. העטיפה יורשת את מיקום האריח ברשת, ולכן
   הפריסות ממשיכות לעבוד בלי לדעת עליה. */
.shot__wrap { position: relative; display: block; }
.proj__gal--mosaic .shot__wrap,
.proj__gal--grid .shot__wrap { grid-row: span 2; }
.proj__gal--mosaic .shot__wrap > .shot,
.proj__gal--grid .shot__wrap > .shot { height: 100%; }
.proj__gal--natural .shot__wrap { break-inside: avoid; margin-bottom: 18px; }
.proj__gal--natural .shot__wrap > .shot { margin-bottom: 0; }
.shot__live {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s var(--ease);
}
.shot__live:hover { transform: translateY(-2px); }

/* ---------- שלושת התחומים ---------- */
/* בלוקי צבע מלא. אפס תמונות — העבודה חיה בעמודים שלה, וכאן צריך שלט
   ברור. הצבע והטיפוגרפיה עושים את כל העבודה. */
/* שישה תחומים — שתי שורות של שלושה. */
.disc3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.disc3__c {
  --bg: transparent;
  --fg: var(--on-dark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  min-height: clamp(230px, 23vw, 310px);
  padding: 28px 26px 24px;
  border-radius: 22px;
  background: var(--bg);
  color: var(--fg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.disc3__c--live:hover,
.disc3__c--live:focus-visible {
  transform: translateY(-7px);
  box-shadow: 0 36px 60px -30px rgba(0, 0, 0, 0.65);
}
/* תחום שעוד אין בו עבודות — מתאר בלבד, בלי להתחרות על תשומת הלב. */
.disc3__c--soon {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

/* הסימן של התחום. currentColor בשקיפות נמוכה עובד גם על זהב וגם על
   אדום בלי להגדיר צבע נוסף לכל בלוק. */
.disc3__mark {
  position: absolute;
  z-index: -1;
  /* בתוך הכרטיס ולא גולש ממנו: קו דק שנחתך באמצע מפסיק לקרוא ככלי
     ומתחיל להיראות כמו תקלה. */
  inset-block-start: 20px;
  inset-inline-end: 22px;
  width: clamp(126px, 13.5vw, 188px);
  height: auto;
  color: var(--mark, currentColor);
  opacity: 0.16;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
}
/* תחום ריק לא אמור להיראות חי יותר מתחום מלא — הסימן שלו צבעוני,
   ולכן הוא גם חיוור יותר. */
.disc3__c--soon .disc3__mark { opacity: 0.22; }
.disc3__c--live:hover .disc3__mark,
.disc3__c--live:focus-visible .disc3__mark {
  opacity: 0.28;
  transform: scale(1.06);
}

/* שלושה סימנים גם זזים — הכלי עושה את מה שהוא עושה. השאר סטטיים
   בכוונה: שישה דברים שרוקדים בבת אחת זה רעש, לא חיים. */
.mk-draw { stroke-dasharray: 190; stroke-dashoffset: 0; }
.disc3__c--live:hover .mk-draw { animation: mkDraw 1.1s var(--ease); }
@keyframes mkDraw { from { stroke-dashoffset: 190; } to { stroke-dashoffset: 0; } }

.mk-head { transition: transform 0.6s var(--ease); }
.disc3__c--live:hover .mk-head { transform: translateX(26px); }

.mk-wave path { transform-box: fill-box; transform-origin: center; }
.disc3__c--live:hover .mk-wave path { animation: mkWave 0.9s var(--ease) infinite alternate; }
.disc3__c--live:hover .mk-wave path:nth-child(2) { animation-delay: 0.08s; }
.disc3__c--live:hover .mk-wave path:nth-child(3) { animation-delay: 0.16s; }
.disc3__c--live:hover .mk-wave path:nth-child(4) { animation-delay: 0.24s; }
.disc3__c--live:hover .mk-wave path:nth-child(5) { animation-delay: 0.32s; }
.disc3__c--live:hover .mk-wave path:nth-child(6) { animation-delay: 0.4s; }
.disc3__c--live:hover .mk-wave path:nth-child(7) { animation-delay: 0.48s; }
@keyframes mkWave { from { transform: scaleY(0.55); } to { transform: scaleY(1.25); } }

.disc3__label {
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.disc3__note { font-size: 13.5px; line-height: 1.6; opacity: 0.78; }
.disc3__foot {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  opacity: 0.62;
  margin-top: 6px;
}
.disc3__go {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  margin-top: 10px;
  transition: transform 0.3s var(--ease);
}
/* RTL: החץ מצביע שמאלה, ולכן "קדימה" הוא מינוס. */
.disc3__c--live:hover .disc3__go { transform: translateX(-6px); }

@media (prefers-reduced-motion: reduce) {
  .disc3__c--live:hover { transform: none; }
  .disc3__c--live:hover .disc3__go { transform: none; }
  .disc3__c--live:hover .disc3__mark { transform: none; }
  .disc3__c--live:hover .mk-draw,
  .disc3__c--live:hover .mk-wave path { animation: none; }
  .disc3__c--live:hover .mk-head { transform: none; }
}
@media (max-width: 1000px) {
  .disc3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 620px) {
  .disc3 { grid-template-columns: 1fr; }
  .disc3__c { min-height: 190px; padding: 24px 22px 20px; }
  .disc3__mark { width: 132px; inset-block-start: 16px; inset-inline-end: 16px; }
}

/* ---------- לוח המודעות: המקטע בדף הבית ---------- */
/* המקטע כולו נגזר ממשתנה אחד: --p, שהוא מיקום המקטע במסך בין 0 ל-1.
   הגלילה היא שמניעה כאן הכל — הרצועות, העמוד והכותרת — ולא טיימר.
   אין חטיפת גלילה: הדף זז רגיל והתוכן מגיב לו. */
.board {
  --p: 0.5;
  position: relative;
  background: var(--cream);
  padding-block: 72px 64px;
  overflow: hidden;
  text-align: center;
}
.board__head {
  margin-bottom: 26px;
  /* הכותרת עולה מעט לאורך המקטע — מספיק כדי שהעין תרגיש עומק. */
  transform: translateY(calc((0.5 - var(--p)) * 34px));
}
.board__title {
  margin: 14px 0 0;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.board__title mark { display: inline; }

/* העמוד עצמו. הקובץ הוא ציור על קנבס רחב עם שוליים שקופים, ולכן
   יחס גובה-רוחב עם cover חותך בדיוק את הריק ומגדיל את הציור. */
.board__frame {
  position: relative;
  z-index: 2;
  display: block;
  width: min(440px, 68vw);
  margin: 0 auto -38px;
  aspect-ratio: 0.78;
  /* גדל מעט ככל שמתקרבים למרכז המסך. */
  transform: scale(calc(0.94 + (1 - (0.5 - var(--p)) * (0.5 - var(--p)) * 4) * 0.08));
  transition: filter 0.5s var(--ease);
  filter: drop-shadow(0 30px 40px rgba(21, 24, 51, 0.22));
}
.board__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* שתי הרצועות. הן נעות לכיוונים מנוגדים לפי --p, ולכן העמוד באמצע
   נראה כאילו הוא עומד בתוך זרם. */
.board__rail {
  position: relative;
  min-height: 296px;
  margin-top: -30px;
  padding-block: 0 8px;
  overflow: hidden;
  /* direction: ltr על מכל RTL — אחרת חישוב ה-translate מתהפך. */
  direction: ltr;
  mask-image: linear-gradient(to left, transparent, #000 9%, #000 91%, transparent);
}
.board__row {
  display: flex;
  align-items: flex-start;
  width: max-content;
  will-change: transform;
}
.board__row--a { transform: translate3d(calc(var(--p) * -26%), 0, 0); }
.board__row--b {
  margin-top: 12px;
  transform: translate3d(calc(-26% + var(--p) * 26%), 0, 0);
}

/* margin ולא gap: gap מתווסף גם אחרי האריח האחרון ופוגם בכיסוי. */
.board__slip { display: block; margin-inline-end: 13px; }
.board__slip img {
  display: block;
  height: 138px;
  width: auto;
  max-width: 240px;
  object-fit: cover;
  object-position: top center;
  border-radius: 3px;
  box-shadow: 0 14px 26px -16px rgba(21, 24, 51, 0.55);
  transition: transform 0.35s var(--ease);
}
.board__slip:hover img { transform: translateY(-5px); }

/* בלי תמונת קישוט הרצועות הן כל הוויזואל, ולכן הן מקבלות יותר
   מקום והמקטע מתהדק סביבן. */
.board--noart .board__rail {
  min-height: 340px;
  margin-top: 6px;
}
.board--noart .board__slip img { height: 168px; max-width: 290px; }
.board--noart .board__row--b { margin-top: 16px; }
.board--noart .board__head { margin-bottom: 34px; }

.board__foot { margin-top: 20px; }
.board__num {
  margin: 16px 0 0;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--text-soft);
}

@media (prefers-reduced-motion: reduce) {
  .board__head,
  .board__frame,
  .board__row--a,
  .board__row--b { transform: none; }
  .board__row--b { margin-top: 12px; }
  .board__slip:hover img { transform: none; }
}

@media (max-width: 760px) {
  .board { padding-block: 56px 48px; }
  .board__head { margin-bottom: 18px; }
  .board__frame { width: min(330px, 66vw); margin-bottom: -26px; }
  .board__rail { min-height: 214px; margin-top: -20px; }
  .board__slip { margin-inline-end: 9px; }
  .board__slip img { height: 98px; max-width: 168px; }
  .board--noart .board__rail { min-height: 236px; }
  .board--noart .board__slip img { height: 112px; max-width: 190px; }
  .board__foot { margin-top: 14px; }
}

/* ---------- לוח המודעות: הקיר עצמו ---------- */
/* אלו לא פרויקטים ואין להם סיפור, ולכן אין כאן כרטיסים ולא כותרות —
   רק העיצובים, בגובה הטבעי שלהם, צפופים כמו לוח שהתמלא עם השנים. */
.nwall {
  columns: 4;
  column-gap: 16px;
}
.notice {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 4px;
  overflow: hidden;
  break-inside: avoid;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.8);
}
.notice img {
  display: block;
  width: 100%;
  height: auto;
}
.notice:hover,
.notice:focus-visible {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 26px 46px -20px rgba(0, 0, 0, 0.85);
}

@media (max-width: 1100px) { .nwall { columns: 3; } }
/* גם בנייד נשארות שתי עמודות: עמודה אחת הופכת תשע מודעות לגלילה
   של ארבעה מסכים, ולוח מודעות אמור להיקרא במבט. */
@media (max-width: 760px) { .nwall { columns: 2; column-gap: 12px; } .notice { margin-bottom: 12px; } }

/* ---------- המלצות ---------- */
.quotes { padding-block: 96px 40px; }
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(var(--q-cols, 3), minmax(0, 1fr));
  gap: 18px;
}
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 34px 32px 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line-light);
  box-shadow: 0 26px 50px -34px rgba(21, 24, 51, 0.35);
}
/* גרש פתיחה ענק. יושב מאחורי הטקסט ולא דוחף אותו. */
.quote__mark {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: 22px;
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  font-size: 92px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
  pointer-events: none;
}
.quote__body {
  position: relative;
  margin: 0;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 500;
  text-wrap: pretty;
}
.quote__by {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
/* קו קצר מעל השם — מפריד בין הציטוט למי שאמר אותו. */
.quote__by::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
  margin-bottom: 14px;
}
.quote__name {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  color: var(--ink);
}
.quote__org { font-size: 13px; color: var(--text-soft); }

@media (max-width: 1000px) {
  .quotes { padding-block: 64px 24px; }
  .quotes__grid { grid-template-columns: 1fr; gap: 14px; }
  .quote { padding: 28px 26px 24px; }
}

/* ---------- כפתורי התחומים (ישן) ---------- */
.disc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 34px;
}
.disc__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: start;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--on-dark);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              transform 0.25s var(--ease);
}
.disc__btn:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }
.disc__label {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}
.disc__note { font-size: 12.5px; color: var(--on-dark-soft); }
.disc__btn[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
}
.disc__btn[aria-selected="true"] .disc__label { color: var(--ink); }
.disc__btn[aria-selected="true"] .disc__note { color: rgba(21, 24, 51, 0.72); }
/* תחום שעוד אין בו עבודות — מוצג, אבל בלי להתחרות על תשומת הלב. */
.disc__btn--empty .disc__label { color: var(--on-dark); }
.disc__btn--empty:not([aria-selected="true"]) { opacity: 0.62; }

@media (max-width: 760px) {
  .disc { grid-template-columns: 1fr; gap: 8px; }
  .disc__btn { flex-direction: row; align-items: baseline; gap: 10px; padding: 14px 18px; }
}


/* ---------- רשת האלבומים בדף העבודות ---------- */
/* כרטיס אחד לאלבום: תמונה, שם, לקוח. בלי רצועות הצצה ובלי שורת
   מסננים — עשרה אלבומים נראים כאן במבט אחד, ומסנן עליהם הוא רעש. */
.agrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px 28px;
}
.atile {
  --glow: var(--gold);
  display: block;
  color: inherit;
}
.atile__frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.9);
  transition: box-shadow 0.45s var(--ease);
}
.atile__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.atile:hover .atile__frame img { transform: scale(1.05); }
.atile:hover .atile__frame { box-shadow: 0 34px 60px -28px rgba(0, 0, 0, 0.95); }

.atile__idx {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  min-width: 30px;
  padding: 4px 9px;
  border-radius: 9px;
  background: rgba(10, 12, 28, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--glow);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.atile__title {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
  margin: 18px 0 0;
  /* הקו נמתח מתחת לשם בריחוף — אישור ויזואלי שהכרטיס לחיץ. */
  display: inline-block;
  background-image: linear-gradient(var(--glow), var(--glow));
  background-repeat: no-repeat;
  background-position: 100% 100%;
  background-size: 0 2px;
  padding-bottom: 3px;
  transition: background-size 0.45s var(--ease), color 0.3s var(--ease);
}
.atile:hover .atile__title { background-size: 100% 2px; color: var(--glow); }

.atile__meta {
  font-size: 13.5px;
  color: var(--on-dark-soft);
  margin: 8px 0 0;
}
.atile__foot {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--on-dark-soft);
  opacity: 0.72;
  margin: 6px 0 0;
}

@media (max-width: 1000px) {
  .agrid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .atile__title { font-size: 19px; }
}
@media (max-width: 560px) {
  .agrid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- אלבומים ---------- */
.album { margin-bottom: 68px; scroll-margin-top: 96px; }
.album:last-child { margin-bottom: 0; }
.album__head { margin-bottom: 28px; }
.album__head h2 {
  font-family: "Rubik", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: #fff;
  border-inline-start: 4px solid var(--gold);
  padding-inline-start: 14px;
}
.album__head p {
  color: var(--on-dark-soft);
  max-width: 620px;
  margin: 12px 0 0;
  padding-inline-start: 18px;
  line-height: 1.7;
}
.empty-note { color: var(--on-dark-soft); padding: 40px 0; text-align: center; }

/* סימון וידאו על כרטיס */
.card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 34px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  background: rgba(21, 24, 51, 0.28);
  pointer-events: none;
  transition: background 0.3s var(--ease);
}
.card:hover .card__play { background: rgba(21, 24, 51, 0.1); }

.lightbox__video {
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 150px);
  border: 0;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.lightbox__video[hidden], .lightbox__img[hidden] { display: none; }

/* ---------- מסנן ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}
.chip {
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { background: rgba(255, 255, 255, 0.12); }
.chip[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.card[hidden] { display: none; }

/* ---------- שירותים ---------- */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 62px 220px 1fr;
  gap: 24px;
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--line-dark);
}
.row:last-child { border-bottom: 0; }
.row__num {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #7f80ac;
  transition: color 0.2s ease, transform 0.3s var(--ease);
}
.row:hover .row__num { color: var(--red); transform: translateY(-2px); }
.row__name {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}
.row__desc { color: var(--on-dark-soft); font-size: 15px; }

/* ---------- קיר הלוגואים ---------- */
/* פס מלא-רוחב שיוצא מה-shell, בדיוק כמו רצועת המרקיזה בדף הבית.
   שתי שורות רצות לכיוונים מנוגדים; כל שורה מכילה את אותה קבוצת לוגואים
   פעמיים, והאנימציה מזיזה בדיוק 50% — כך התפר נופל על תחילת העותק השני
   ואי אפשר לראות אותו. */
.logowall {
  position: relative;
  background: var(--ink);
  padding-block: 46px;
  overflow: hidden;
  /* ה-ltr כאן ולא על השורה: בהקשר RTL רצועה רחבה מהמסך נעגנת לקצה הימני
     וגולשת שמאלה, כך שהזזה שמאלה חושפת מיד חלל ריק — והשורה ההפוכה
     מתחילה ריקה לגמרי. עם ltr הרצועה נעגנת לשמאל וגולשת ימינה, וההזזה
     מגלגלת את העותק השני פנימה כמו שצריך. ללוגואים אין כיוון קריאה. */
  direction: ltr;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logowall__rows { display: flex; flex-direction: column; gap: 16px; }
.logowall__row {
  display: flex;
  /* בכוונה בלי gap: עם gap יש n-1 רווחים, וחצי מהרוחב נופל באמצע הרווח
     האחרון — כלומר translateX(-50%) מחטיא את תחילת העותק השני בחצי רווח
     והלולאה קופצת. מרווח בתור margin על כל אריח נספר n פעמים, ושני
     החצאים יוצאים זהים בדיוק. */
  width: max-content;
  animation: logoScroll 52s linear infinite;
}
.logowall__row--back { animation-duration: 64s; animation-direction: reverse; }
/* בכוונה בלי עצירה במעבר עכבר: הקיר אמור לרוץ ברצף, ועצירה באמצע
   נראתה כמו תקלה. עצירה נשארת רק למי שביקש להפחית תנועה. */

/* display:contents — העותק השני משתתף באותו flex ובאותו gap, ובכל זאת
   אפשר להסתיר אותו כיחידה אחת כשאין אנימציה. */
.logowall__set { display: contents; }

.logowall__tile {
  flex: none;
  height: 96px;
  min-width: 112px;
  margin-inline-end: 16px;
  padding-inline: 20px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.logowall__tile img {
  height: 68px;
  width: auto;
  max-width: 205px;
  object-fit: contain;
  display: block;
}
.logowall__tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 36px -16px rgba(0, 0, 0, 0.8);
}

/* בלי אריחים: הלוגואים השקופים צפים ישר על הרקע. בלי הרקע הלבן של
   האריח, לוגו כהה נבלע ברקע כהה — ולכן קיים גם בורר רקע לקיר. */
.logowall--noplates .logowall__tile {
  background: transparent;
  box-shadow: none;
  /* בלי אריח הלוגואים מתקרבים זה לזה במקום לרחף עם חורים ביניהם —
     אבל נשמר רוחב מינימלי, כדי שאריח שתמונתו עוד לא נטענה לא יקרוס
     לאפס ויעוות את פריסת הרצועה. */
  min-width: 84px;
  padding-inline: 14px;
}
.logowall--noplates .logowall__tile img { height: 76px; max-width: 240px; }
.logowall--noplates .logowall__tile:hover {
  box-shadow: none;
  transform: translateY(-5px) scale(1.05);
}
.logostrip--noplates .logostrip__tile {
  background: transparent;
  border-color: transparent;
}

/* ---- רקעי הקיר ---- */
/* רוב לוגואי הלקוחות כהי־דיו, ולכן רקע בהיר מראה את כולם. הכהה נשאר
   לזמן שבו הלוגואים בהירים או שיש אריחים. */
.logowall--light { background: var(--cream); }
.logowall--light .logowall__tile { box-shadow: 0 12px 28px -18px rgba(21, 24, 51, 0.5); }
.logowall--light.logowall--noplates .logowall__tile:hover { box-shadow: none; }

.logowall--paper { background: #fbfaf7; }
.logowall--paper .logowall__tile { box-shadow: 0 12px 28px -18px rgba(21, 24, 51, 0.45); }

/* משבצת עדינה: מפרידה את הקיר מהעמוד גם כששניהם בהירים, בלי לגזול
   תשומת לב מהלוגואים עצמם. */
.logowall--grid {
  background:
    linear-gradient(var(--cream-2) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, var(--cream-2) 1px, transparent 1px) 0 0 / 44px 100%,
    var(--cream);
}
.logowall--grid .logowall__tile { box-shadow: 0 12px 28px -18px rgba(21, 24, 51, 0.45); }

@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 860px) {
  .logowall { padding-block: 34px; }
  .logowall__tile { height: 70px; min-width: 104px; padding-inline: 16px; margin-inline-end: 12px; }
  .logowall__tile img { height: 44px; max-width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  /* בלי תנועה הפס הופך לרשת רגילה — והעותק הכפול, שקיים רק בשביל
     התפר, מוסתר כדי שלא ייראה כמו לוגו שהוכפל בטעות. */
  .logowall { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .logowall__row {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .logowall__set--dupe { display: none; }
}

/* ---------- רצועת לוגואים סטטית ---------- */
/* לדף הבית: אותם לוגואים בלי אנימציה. רצועה נעה בתוך עמודת טקסט הייתה
   מנפחת את רוחב תא הגריד (min-width:auto מול תוכן ברוחב אלפי פיקסלים)
   וגוררת גלילה אופקית לכל הדף — וגם מרקיזה שנייה באותו עמוד היא הרבה. */
.logostrip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 2px;
}
.logostrip__tile {
  height: 62px;
  min-width: 76px;
  padding-inline: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.logostrip__tile img {
  height: 40px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  display: block;
}
.logostrip__tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -14px rgba(21, 24, 51, 0.45);
}

/* ---------- לקוחות ---------- */
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 8px;
}
.clients li {
  list-style: none;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  background: rgba(21, 24, 51, 0.05);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 8px 16px;
}
ul.clients { padding: 0; }

/* ---------- אודות ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
  padding-block: 84px 0;
  animation: fadeUp 0.9s var(--ease) both;
}
.about h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 900; line-height: 1.06; max-width: 620px; }
.about h1 em { font-style: normal; color: var(--red); }
.about__lede { font-size: 18px; line-height: 1.75; max-width: 560px; margin: 24px 0 0; }
.about__mark {
  background: var(--ink);
  border-radius: 18px;
  padding: 40px 36px;
  min-height: 300px;
  display: grid;
  place-items: center;
  box-shadow: 0 30px 60px -20px rgba(21, 24, 51, 0.35);
}
.about__mark img { width: 100%; height: auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step { border-top: 2px solid var(--ink); padding-top: 16px; }
.step__num {
  font-family: "Rubik", sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--red);
}
.step h3 { font-size: 20px; font-weight: 800; margin-top: 6px; }
.step p { font-size: 15px; color: var(--text-soft); margin: 6px 0 0; }

/* ---------- CTA ---------- */
.cta { padding-block: 90px; text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 10px; }
.cta h2 em { font-style: normal; color: var(--red); }
.cta p { margin: 0 auto 26px; max-width: 520px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- פוטר ---------- */
.footer { background: var(--ink); padding-block: 76px 40px; }
/* הפוטר כהה אבל אינו .dark — בלי ההצהרה הזו הכותרת יורשת את הכחול הכהה
   של h2 ונעלמת לגמרי על הרקע. */
.footer h2 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-bottom: 26px; }
.footer h2 mark { background: none; color: var(--gold); }
.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 22px;
  border-top: 1px solid var(--line-dark);
  padding-top: 26px;
}
.footer__links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  font-size: 14px;
}
.footer__links a { color: var(--on-dark); }
.footer__links a:hover { color: var(--gold); }
.footer__logo { height: 26px; width: auto; opacity: 0.9; margin-bottom: 22px; }
.footer__fine { color: #5f60a0; font-size: 13px; }

/* קרדיט המעצב. שקט במכוון — הוא חתימה, לא פרסומת. */
.footer__credit {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--on-dark-soft);
  opacity: 0.75;
}
.footer__credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.25s var(--ease);
}
.footer__credit a:hover { color: var(--gold); }

/* ---------- לייטבוקס ---------- */
.lightbox__count {
  position: absolute;
  top: 24px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.lightbox__hint {
  position: absolute;
  inset-inline: 0;
  bottom: 22px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}
.lightbox__hint kbd {
  font-family: "Rubik", sans-serif;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  padding: 1px 6px;
  margin-inline: 2px;
  font-size: 11px;
}
@media (max-width: 700px) { .lightbox__hint { display: none; } }

/* החלפת תמונה: הצללה קצרה במקום קפיצה. is-loading נדלק בזמן הפענוח
   ונכבה כשהתמונה החדשה מוכנה לצייר. */
.lightbox__img, .lightbox__video {
  transition: opacity 0.22s var(--ease);
}
.lightbox.is-loading .lightbox__img,
.lightbox.is-loading .lightbox__video { opacity: 0.25; }

.lightbox__spin {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--gold);
  animation: lbSpin 0.7s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lightbox.is-loading .lightbox__spin { opacity: 1; }
@keyframes lbSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .lightbox__spin { animation: none; }
  .lightbox__img, .lightbox__video { transition: none; }
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 40px 24px 24px;
  background: rgba(12, 14, 32, 0.94);
  backdrop-filter: blur(6px);
}
.lightbox[open] { display: grid; }
.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-height: 100%;
}
.lightbox__img {
  max-width: min(1100px, 92vw);
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.lightbox__cap { text-align: center; color: #fff; }
.lightbox__cap strong {
  display: block;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.lightbox__cap span { font-size: 13px; color: var(--on-dark-soft); }
.lightbox__btn {
  position: absolute;
  top: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__close { inset-inline-end: 18px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 24px;
}
/* RTL: "הקודם" יושב בצד ימין (inline-start) ו"הבא" בצד שמאל — כיוון
   הקריאה. החצים הם ← / → שאינם עוברים היפוך דו־כיווני, בניגוד ל־‹ ›. */
.lightbox__prev { inset-inline-start: 18px; top: auto; bottom: 24px; transform: none; }
.lightbox__next { inset-inline-end: 18px; top: auto; bottom: 24px; transform: none; }

/* ---------- אנימציות ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- רספונסיבי ---------- */
@media (max-width: 1150px) {
  :root { --pad: 40px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__mark { max-width: 420px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --pad: 24px; }
  body { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .row { grid-template-columns: 44px 1fr; }
  .row__desc { grid-column: 2; }
  .nav__links { gap: 20px; font-size: 13px; }
  .nav__logo img { height: 24px; }
  .dark { padding-block: 64px; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav__links { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .progress-track, .kinetic, .lightbox, .cta__actions { display: none !important; }
  body { background: #fff; }
  .dark { background: #fff; color: #000; }
  .dark h1, .dark h2, .dark h3, .card__title { color: #000; }
}
