/* ==========================================================================
   פורטפוליו של לירן ווטרו
   מימוש של קנבס העיצוב "פורטפוליו - לירן ווטרו.dc.html"
   ========================================================================== */

:root {
  --bg:          #fbfaf7;
  --bg-alt:      #f3f0ea;
  --surface:     #ffffff;
  --ink:         #1c1a17;
  --ink-70:      rgba(28, 26, 23, .7);
  --ink-65:      rgba(28, 26, 23, .65);
  --ink-60:      rgba(28, 26, 23, .6);
  --ink-55:      rgba(28, 26, 23, .55);
  --ink-50:      rgba(28, 26, 23, .5);
  --ink-45:      rgba(28, 26, 23, .45);
  --ink-28:      rgba(28, 26, 23, .28);
  --line:        rgba(28, 26, 23, .1);
  --line-soft:   rgba(28, 26, 23, .08);
  --line-strong: rgba(28, 26, 23, .25);

  --accent:       #b4552d;
  --accent-hover: #c9663c;
  --accent-soft:  #e08a63;

  --cream:    #fbfaf7;
  --cream-60: rgba(251, 250, 247, .6);
  --cream-55: rgba(251, 250, 247, .55);
  --cream-28: rgba(251, 250, 247, .28);

  --font-ui:   'Heebo', system-ui, sans-serif;
  --font-body: 'Assistant', system-ui, sans-serif;
  --font-logo: 'Suez One', Georgia, serif;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;

  --pad-x: 56px;
  --maxw:  1100px;
}

/* --------------------------------------------------------------- reset --- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.5;
}

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

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px;
  z-index: 100; background: var(--ink); color: var(--cream);
  padding: 10px 18px; border-radius: 6px; font-size: 15px; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ------------------------------------------------- חזרה לראש העמוד ------ */

/* יושב בקצה הפנימי התחתון (בעברית: משמאל). מוסתר עד שגוללים חצי עמוד,
   ואז נכנס פנימה. pointer-events נסגר במצב מוסתר כדי שלא ייתפס בטעות. */
.to-top {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-end: 22px;
  z-index: 45;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink-70);
  cursor: pointer;
  box-shadow: 0 4px 16px -6px rgba(28, 26, 23, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s,
              color .2s ease, border-color .2s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.to-top:hover { color: var(--accent); border-color: rgba(180, 85, 45, .45); }
.to-top svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------ keyframes --- */

/* טבעת הפרופיל מסתובבת דרך זווית הגרדיאנט ולא דרך transform: rotate.
   ריבוע שמסתובב תופס בפריסה עד פי שורש 2 מרוחבו (288px הופכים ל-407px),
   וזה מה שיצר גלילה אופקית קלה במסכים צרים. סיבוב הזווית משנה רק את
   הציור ולא את תיבת הפריסה, ולכן הוא לא גולש לשום מקום. */
@property --lv-ring-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes lv-ring-spin    { to { --lv-ring-angle: 360deg; } }
@keyframes lv-ring-breathe { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes lv-grad-shift   { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes lv-chev-step {
  0%        { opacity: 0;   transform: translateX(7px); }
  12%       { opacity: .95; }
  48%       { opacity: .95; }
  60%, 100% { opacity: 0;   transform: translateX(-7px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------- layout ---- */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section      { padding-block: 56px; }
.section--tight { padding-block: 0 56px; }
.band         { background: var(--bg-alt); }

.section-title {
  font-size: 26px;
  font-weight: 800;
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(180, 85, 45, .55);
  margin-bottom: 28px;
}
.section-title--lg { font-size: 32px; border-bottom: 0; padding-bottom: 0; }

/* ---------------------------------------------------------------- nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(28, 26, 23, .04), 0 6px 18px -12px rgba(28, 26, 23, .28);
  transition: background .25s ease, box-shadow .25s ease;
}

/* מצב גלילה: ההדר מתכווץ ומפנה מסך לתוכן. המחלקה נוספת ב-site.js */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(28, 26, 23, .04), 0 10px 26px -14px rgba(28, 26, 23, .45);
}

/* עמודה 1 לוגו · עמודה 2 קישורים צמודים אליו · עמודה 3 נמתחת ודוחפת את ה-CTA לקצה */
.nav {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 44px;
  padding-block: 18px;
  transition: padding-block .25s ease;
}
.is-scrolled .nav { padding-block: 10px; }

/* --------------------------------------------------------- logo + mark --- */

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.nav__mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 3px 10px -4px rgba(180, 85, 45, .65);
  transition: width .25s ease, height .25s ease;
}
.nav__mark svg { display: block; width: 100%; height: 100%; }
.is-scrolled .nav__mark { width: 32px; height: 32px; border-radius: 9px; }

.nav__id { display: flex; flex-direction: column; }

.nav__name {
  font-family: var(--font-logo);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.15;
}

/* שורת התפקיד נבנית כ-flex ולא כמחרוזת אחת: כך הסדר של SEO / העברית / AI
   נקבע על ידי סדר האלמנטים ולא על ידי אלגוריתם ה-bidi, שהפך אותו.
   בגלילה השורה נסגרת בגובה במקום להיעלם בבת אחת, בלי קפיצת פריסה. */
.nav__role {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-50);
  max-height: 20px;
  overflow: hidden;
  transition: max-height .25s ease, opacity .2s ease;
}
.is-scrolled .nav__role { max-height: 0; opacity: 0; }
.nav__dot { color: var(--ink-28); }

.nav__logo:hover .nav__name { color: var(--accent); }
.nav__name { transition: color .2s ease; }

/* ------------------------------------------------- חיווי זמינות לפרויקטים --- */

.avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-70);
  white-space: nowrap;
  padding: 7px 12px;
  border: 1px solid rgba(47, 111, 79, .28);
  border-radius: 999px;
  background: rgba(47, 111, 79, .06);
}

.avail__dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f6f4f;
}
.avail__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #2f6f4f;
  animation: availPulse 2.4s ease-out infinite;
}
@keyframes availPulse {
  0%        { transform: scale(1);   opacity: .55; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

/* עותק התפריט הנייד, מוסתר בדסקטופ */
.nav .avail--menu { display: none; }

.nav__links {
  display: flex;
  gap: 30px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-70);
}
.nav__links a { transition: color .2s ease; }
.nav__links a:hover { color: var(--accent); }
.nav__links a[aria-current="page"] {
  color: var(--accent);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
}

.nav__cta { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }

/* ה-CTA שבתוך רשימת הקישורים משמש רק בתפריט המובייל.
   הסלקטור דו-מחלקתי כדי לגבור על display של .btn שמוגדר בהמשך הקובץ. */
.nav .nav__links-cta { display: none; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 9px 11px;
  cursor: pointer;
}

/* ------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 30px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--accent { background: var(--accent); color: var(--cream); padding: 11px 24px; }
.btn--accent:hover { background: var(--accent-hover); }

.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #33302b; }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: rgba(28, 26, 23, .5); background: rgba(28, 26, 23, .04); }

.btn--sm { padding: 12px 26px; font-size: 14.5px; }

.btn--current {
  background: var(--ink);
  color: var(--cream);
  padding: 11px 24px;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
}
.btn--current:hover { transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* --------------------------------------------------------- breadcrumbs --- */

.crumbs {
  border-bottom: 1px solid rgba(28, 26, 23, .06);
}
.crumbs__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding-block: 15px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--ink-50);
}
.crumbs a { transition: color .2s ease; }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { color: var(--ink-28); }
.crumbs__here { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- hero --- */

.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: center;
  padding-block: 72px 48px;
}
.hero__text { display: flex; flex-direction: column; gap: 22px; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--accent);
  font-family: var(--font-mono);
}
/* משפט שלם ולא תווית קצרה, ריווח אותיות צר יותר כדי שיישאר קריא */
.eyebrow--sentence { letter-spacing: .04em; }

.hero__title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: pretty;
}
.hero__title .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), #8a3d1e, var(--accent));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lv-grad-shift 7s ease-in-out infinite;
}

.lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-70);
  max-width: 560px;
  font-family: var(--font-body);
}

.hero__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-55);
  font-family: var(--font-body);
  margin-top: 4px;
}
.hero__contact a { display: flex; align-items: center; gap: 7px; transition: color .2s ease; }
.hero__contact a:hover { color: var(--accent); }
.hero__contact svg { flex: none; }
.hero__contact .dot { color: var(--ink-28); }

/* --------------------------------------------------------- photo ring ---- */

.portrait {
  position: relative;
  width: 288px;
  height: 288px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from var(--lv-ring-angle), var(--accent), rgba(180, 85, 45, .05) 30%, var(--accent-soft) 52%, rgba(180, 85, 45, .05) 74%, var(--accent));
  animation: lv-ring-spin 9s linear infinite, lv-ring-breathe 4.5s ease-in-out infinite;
}
.portrait__gap { position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); }
.portrait__photo {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
  filter: contrast(1.07) saturate(1.06) brightness(1.01);
}
.portrait__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Fallback shown until a real photo file exists at assets/img/profile.jpg */
.portrait__photo::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--ink-45);
  background: var(--bg-alt);
  text-align: center;
  padding: 20px;
}
.portrait__photo.is-loaded::after { display: none; }

/* --------------------------------------------------------------- stats --- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 56px;
}
.stats__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-block: 26px;
  align-items: center;
  text-align: center;
}
.stats__item + .stats__item { border-inline-start: 1px solid var(--line); }
.stats__num { font-size: 34px; font-weight: 800; color: var(--accent); }
.stats__label { font-size: 13.5px; color: var(--ink-55); font-family: var(--font-body); }

/* ------------------------------------------------------------- pillars --- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-2--wide { gap: 36px; }

.pillar {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
}
.pillar__title { font-size: 20px; font-weight: 700; }
.pillar__body { font-size: 15px; line-height: 1.65; color: var(--ink-65); font-family: var(--font-body); }

/* -------------------------------------------------------- מקטע סיום ----- */

/* "הגישה שלי" סוגר את עמוד הבית. מרווח כפול משאר המקטעים כדי שירגיש כעצירה
   ולא כעוד סקשן, ובלי מסגרות: רק קו עליון, מספר וטיפוגרפיה. */
.closing { padding-block: 96px; }
.closing .section-title { margin-bottom: 44px; }

.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.approach__item {
  border-top: 2px solid rgba(180, 85, 45, .55);
  padding-top: 18px;
}
.approach__num {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.approach__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.approach__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-65);
  font-family: var(--font-body);
}

/* ------------------------------------------------------- project cards --- */

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px -14px rgba(28, 26, 23, .28);
  border-color: rgba(180, 85, 45, .35);
}
.card__media { background: var(--surface); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--220 { height: 220px; }
.card__media--170 { height: 170px; }
.card__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.card__desc { font-size: 14.5px; line-height: 1.6; color: var(--ink-65); font-family: var(--font-body); }
.card__more {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
  margin-top: auto; padding-top: 8px;
}

.card--sm .card__body { padding: 18px 20px; gap: 6px; }
.card--sm .card__title { font-size: 17px; }
.card--sm .card__desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-60); }

.tagline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.kicker {
  font-size: 11.5px;
  color: var(--accent);
  font-family: var(--font-mono);
}
.kicker--sm { font-size: 11px; }
.pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-50);
  border: 1px solid rgba(28, 26, 23, .2);
  padding: 2px 9px;
  border-radius: 99px;
  font-family: var(--font-body);
  white-space: nowrap;
}
.pill--lg { font-size: 12px; padding: 3px 10px; }

/* featured (wide) card */
.card--featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  border-radius: 14px;
}
.card--featured .card__media { min-height: 280px; }
.card--featured .card__body { padding: 32px 34px; gap: 12px; justify-content: center; }
.card--featured .card__title { font-size: 26px; font-weight: 800; line-height: 1.25; }
.card--featured .card__desc { font-size: 15px; line-height: 1.65; }
.card--featured .card__more { font-size: 14.5px; gap: 8px; margin-top: 4px; padding-top: 0; }

/* ---------------------------------------------------------- experience --- */

.timeline { display: flex; flex-direction: column; }
.timeline__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.timeline__row:last-child { border-bottom: 1px solid var(--line); }
.timeline__when {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
}
.timeline__role { font-size: 18px; font-weight: 700; }
.timeline__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-65);
  font-family: var(--font-body);
  margin-top: 4px;
}

/* --------------------------------------------------------------- chips --- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------- תחומי התמחות וטכנולוגיות --- */

/* כל קטגוריה היא שורה עצמאית: תווית בצבע המותג בטור צר, והכלים לצידה.
   שורות ולא טורים, כי מספר הכלים בקטגוריות שונה מאוד וטורים היו יוצאים
   בגבהים לא אחידים. ההיררכיה נשענת על גודל וצבע בלבד, בלי אייקונים. */
.domains { display: flex; flex-direction: column; }
.domains--after-timeline { margin-top: 36px; }
.domain {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 10px 24px;
  align-items: start;
  padding-block: 22px;
  border-top: 1px solid var(--line);
}
.domain:last-child { border-bottom: 1px solid var(--line); }
.domain__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
  font-family: var(--font-mono);
  padding-top: 6px;
}
.chip {
  font-size: 13px;
  border: 1px solid rgba(28, 26, 23, .15);
  padding: 6px 14px;
  border-radius: 99px;
  font-family: var(--font-body);
}

/* --------------------------------------------------------------- about --- */

.about-intro {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
  padding-block: 56px 48px;
}
.about-intro__text { display: flex; flex-direction: column; gap: 26px; }
.about-intro__title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  max-width: 640px;
  text-wrap: pretty;
}
/* משפט הפתיחה. גדול וכהה יותר מהפסקאות שאחריו, כדי שיתפקד כהצהרה
   ולא כעוד פסקה. הגודל הוא ההדגשה, ולכן אין בתוכו טקסט מודגש. */
.lead-statement {
  font-size: clamp(18px, 2.1vw, 21px);
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
  max-width: 640px;
  font-family: var(--font-body);
  text-wrap: pretty;
}

.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-70);
  max-width: 620px;
  font-family: var(--font-body);
}
/* הדגשת מונחי מפתח: משקל בלבד, בלי צבע, כדי לא לפזר את העין */
.prose strong { font-weight: 700; color: var(--ink); }

.edu { display: flex; flex-direction: column; gap: 14px; }
.edu--wide { max-width: 820px; }
.edu__item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.edu__title { font-size: 16px; font-weight: 700; }
.edu__meta { font-size: 14px; color: var(--ink-60); font-family: var(--font-body); }

/* ----------------------------------------------------- project detail ---- */

.page-head { padding-block: 48px 36px; display: flex; flex-direction: column; gap: 16px; }
.page-head__title { font-size: clamp(32px, 5vw, 46px); font-weight: 800; line-height: 1.15; }
.page-head__lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-65);
  max-width: 620px;
  font-family: var(--font-body);
}

.project-hero { padding-block: 48px 40px; display: flex; flex-direction: column; gap: 18px; }
.project-hero__title {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  max-width: 820px;
  text-wrap: pretty;
}
.project-hero__lede {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-65);
  max-width: 720px;
  font-family: var(--font-body);
}
.project-hero .kicker { font-size: 12px; }

.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 14px;
}
.meta-strip__cell {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
}
.meta-strip__cell + .meta-strip__cell { border-inline-start: 1px solid var(--line); }
.meta-strip__label { font-size: 11.5px; color: var(--ink-45); font-family: var(--font-mono); }
.meta-strip__value { font-size: 15px; font-weight: 600; }

.figure-hero {
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}
.figure-hero img { width: 100%; height: 100%; object-fit: contain; }
.figure-hero--cover img { object-fit: cover; }
.figure-hero--dark { background: #171717; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.split__col { display: flex; flex-direction: column; gap: 12px; }
.split .section-title { margin-bottom: 0; }
.split__body { font-size: 16px; line-height: 1.75; color: var(--ink-70); font-family: var(--font-body); }

/* ----------------------------------------------- case-study sections ---- */

/* האתגר → שיקולי תכנון → הפתרון יושבים בטור אחד, ברוחב שורה נוח לקריאה.
   כללי .split שלמעלה נשארו בקובץ כדי שאפשר יהיה לחזור לפריסת שני הטורים. */
.case-section { max-width: 860px; }

.decisions__intro {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-70);
  font-family: var(--font-body);
  margin-bottom: 12px;
}
.decisions__list { display: flex; flex-direction: column; }

/* טור מספור צר בצד, אותו דפוס של .timeline בעמוד "אודות" */
.decisions__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 18px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.decisions__item:last-child { border-bottom: 1px solid var(--line); }
.decisions__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
  font-family: var(--font-mono);
  padding-top: 5px;
}
.decisions__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.decisions__body {
  grid-column: 2;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-65);
  font-family: var(--font-body);
  margin-top: 7px;
}

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--ink);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.caption { font-size: 13.5px; color: var(--ink-55); font-family: var(--font-body); margin-top: 10px; }
.caption strong { color: rgba(28, 26, 23, .75); }

/* שורת הכיתוב מתחת לסרטון + קישור ישיר, למקרה שההטמעה חסומה */
.caption--video {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.video-link {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: color .2s ease;
}
.video-link:hover { color: var(--accent-hover); text-decoration: underline; }

.results {
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.results__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(224, 138, 99, .42);
}
.results__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; width: 100%; }
.results__item { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.results__num { font-size: 40px; font-weight: 800; color: var(--accent-soft); line-height: 1.1; }
.results__label { font-size: 14.5px; color: rgba(251, 250, 247, .65); font-family: var(--font-body); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery__cell { display: flex; flex-direction: column; gap: 10px; }
.shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}
.shot img { width: 100%; height: 100%; object-fit: contain; }
.shot--cover img { object-fit: cover; }
.shot--dark { background: #171717; }
.shot--260 { height: 260px; }
.shot--125 { height: 125px; }

.shot-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shot-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shot-quad { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 125px 125px; gap: 10px; }

.zoomable { cursor: zoom-in; }

.next-nav {
  border-top: 1px solid var(--line);
  padding-block: 32px 56px;
  display: flex;
  justify-content: center;
}

.download-row { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.download-row .note { font-size: 13px; color: var(--ink-50); font-family: var(--font-body); }

/* ------------------------------------------------------------ contact ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-card__title { font-size: 22px; font-weight: 800; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; font-family: var(--font-body); }
.field input,
.field textarea {
  border: 1px solid rgba(28, 26, 23, .16);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 120px; line-height: 1.6; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(28, 26, 23, .35); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180, 85, 45, .12);
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}
.form-foot .note { font-size: 13px; color: var(--ink-45); font-family: var(--font-body); }

.form-status { font-size: 14px; font-family: var(--font-body); color: var(--ink-55); min-height: 1.4em; }
.form-status--ok    { color: #2f6f4f; font-weight: 600; }
.form-status--error { color: #b03526; font-weight: 600; }

.field.has-error input,
.field.has-error textarea { border-color: #b03526; }
.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(176, 53, 38, .12); }

button[type="submit"][disabled] { opacity: .6; cursor: progress; transform: none; }

/* מלכודת ספאם: מוסתרת ויזואלית ומקוראי מסך, אך נשלחת עם הטופס */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.channels { display: flex; flex-direction: column; gap: 14px; }
.channel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.channel:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(28, 26, 23, .08); }
.channel svg { flex: none; }
.channel__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.channel__value { overflow-wrap: anywhere; }
.channel__label { font-size: 13px; color: var(--ink-50); font-family: var(--font-body); }
.channel__value { font-size: 15.5px; font-weight: 600; }
.channel--dark {
  background: var(--ink);
  color: var(--cream);
  border-color: transparent;
}
.channel--dark:hover { box-shadow: 0 10px 26px -14px rgba(28, 26, 23, .5); }
.channel--dark .channel__label { color: var(--cream-55); }
.channel__badge {
  width: 22px; height: 22px; border-radius: 5px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; font-family: Arial, sans-serif; flex: none;
}

/* ------------------------------------------------------------- filters --- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.filter {
  border: 1px solid rgba(28, 26, 23, .2);
  background: transparent;
  padding: 9px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-70);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  font-weight: 600;
}
.is-hidden { display: none !important; }
.empty-state {
  padding: 40px 0;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink-55);
  text-align: center;
}
.empty-state__link { color: var(--accent); font-weight: 600; }
.section--featured { padding-block: 8px 24px; }

/* -------------------------------------------------------------- footer --- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: 56px;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}
.site-footer__title { font-size: 30px; font-weight: 800; line-height: 1.1; }
.site-footer__sub { font-size: 15px; color: var(--cream-60); font-family: var(--font-body); margin-top: 8px; }
.chevrons { display: flex; align-items: center; gap: 9px; }
.chevrons svg { animation: lv-chev-step 1.8s linear infinite; }
.chevrons svg:nth-child(1) { animation-delay: -1.8s; }
.chevrons svg:nth-child(2) { animation-delay: -1.53s; }
.chevrons svg:nth-child(3) { animation-delay: -1.26s; }

.social { display: flex; gap: 12px; }
.social a {
  width: 52px; height: 52px;
  border-radius: 8px;
  border: 1.5px solid var(--cream-28);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.social a:hover { border-color: rgba(251, 250, 247, .6); background: rgba(251, 250, 247, .06); transform: translateY(-2px); }
.social a.linkedin { font-weight: 800; font-size: 19px; font-family: Arial, sans-serif; }
.social a.linkedin:hover { background: #0a66c2; border-color: #0a66c2; }

/* ------------------------------------------------------------ lightbox --- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 18, 16, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.lightbox__btn {
  position: absolute;
  background: rgba(251, 250, 247, .1);
  border: 1px solid var(--cream-28);
  color: var(--cream);
  width: 46px; height: 46px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox__btn:hover { background: rgba(251, 250, 247, .22); }
.lightbox__close { top: 24px; inset-inline-end: 24px; font-size: 22px; line-height: 1; }
.lightbox__prev { inset-inline-start: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { inset-inline-end: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  font-size: 13px;
  font-family: var(--font-mono);
  color: rgba(251, 250, 247, .7);
}
body.lb-open { overflow: hidden; }

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 1000px) {
  :root { --pad-x: 32px; }

  .nav { grid-template-columns: 1fr auto; gap: 16px; }
  .nav__toggle { display: block; grid-column: 2; justify-self: end; }
  .nav__cta { display: none; }

  /* במובייל חיווי הזמינות עובר לתוך התפריט הנפתח (הוסר כרגע מה-HTML) */
  .nav .avail--menu {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 16px;
  }

  .nav__links {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    gap: 0;
    padding-top: 18px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    padding-block: 13px;
    border-top: 1px solid var(--line);
  }
  .nav__links a[aria-current="page"] { border-bottom: 0; padding-bottom: 13px; }
  .nav__links .nav__links-cta {
    display: inline-flex;
    margin-top: 12px;
    align-self: flex-start;
    border-top: 0;
  }

  .hero, .about-intro { grid-template-columns: 1fr; gap: 40px; padding-block: 48px 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .card--featured { grid-template-columns: 1fr; }
  .card--featured .card__media { min-height: 220px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .figure-hero { height: 320px; }
}

@media (max-width: 700px) {
  :root { --pad-x: 20px; }

  .nav__mark { width: 34px; height: 34px; border-radius: 9px; }
  .nav__name { font-size: 18px; }
  .nav__role { font-size: 11px; }

  .section { padding-block: 40px; }
  .section--tight { padding-block: 0 40px; }
  .site-footer { padding-block: 40px; }

  .grid-3, .grid-2, .gallery, .shot-grid-3 { grid-template-columns: 1fr; }
  .closing { padding-block: 64px; }
  .approach { grid-template-columns: 1fr; gap: 32px; }
  .domain { grid-template-columns: 1fr; gap: 12px; }
  .domain__name { padding-top: 0; }
  .stats { grid-template-columns: 1fr; }
  .stats__item + .stats__item { border-inline-start: 0; border-top: 1px solid var(--line); }
  .meta-strip, .results__grid { grid-template-columns: 1fr; }
  .meta-strip__cell + .meta-strip__cell { border-inline-start: 0; border-top: 1px solid var(--line); }
  .timeline__row { grid-template-columns: 1fr; gap: 6px; }
  .decisions__item { grid-template-columns: 1fr; gap: 0; padding-block: 22px; }
  .decisions__num { padding-top: 0; margin-bottom: 6px; }
  .decisions__title { font-size: 18px; }
  .decisions__body { grid-column: 1; }
  .field-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 22px; }
  .results { padding: 32px 24px; }
  .figure-hero { height: 220px; }
  .shot--260 { height: 200px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .chevrons { display: none; }
  .lightbox { padding: 16px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
}
