/* עידן חסון
   ------------------------------------------------------------
   שני צבעים ואחד מרווה. גופן אחד. הכוח מגיע מהתמונות ומהאוויר.
   ------------------------------------------------------------ */

@font-face {
  font-family: "Assistant";
  src: url("../fonts/Assistant.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #F2F3EE;
  --ink: #3E3F3A;
  --ink-soft: rgba(62, 63, 58, 0.76);
  --line: rgba(62, 63, 58, 0.16);
  --sage: #5A645D;   /* לבן #F2F3EE עליו: 5.51:1 */
  --sage-ink: #F2F3EE;
  --sage-soft: rgba(242, 243, 238, 0.85);   /* השקיפות הגבוהה ביותר שנותנת 4.5:1 על --sage (4.52) */
  --sage-line: rgba(242, 243, 238, 0.22);

  --gutter: clamp(20px, 4vw, 72px);
  --gap: clamp(14px, 2.4vw, 40px);
  --measure: 34rem;
  --section-y: clamp(40px, 4.5vw, 72px);    /* ריפוד אנכי של מקטעים */

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (max-width: 900px) {
  :root { --section-y: clamp(32px, 7vw, 44px); }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Assistant", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
/* נסתר חזותית, זמין לקוראי מסך. מופיע בפוקוס מקלדת */
.visually-hidden:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 12px; right: var(--gutter); z-index: 60;
  padding: 8px 14px; background: var(--bg); border: 1px solid var(--ink); font-size: 14px;
}
main:focus { outline: none; }
h1, h2, h3, p, figure { margin: 0; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ---------- Header ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 72px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;   /* RTL: הלוגו (סמל ואז שם) בקצה הימני, "בואו נדבר" או "תפריט" בקצה השמאלי */
  background: rgba(242, 243, 238, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.bar.is-solid {
  background: rgba(242, 243, 238, 0.94);
  box-shadow: 0 1px 0 var(--line);
}

/* לוגו: סמל ולידו השם "עידן חסון". גובה קובע, הרוחב לפי היחס.
   יישור לפי מדידה בקבצים: הקו האמצעי של הסמל בשורות 58–69 מתוך 128 (מרכז 50%, 19px בגובה 38).
   גוף האותיות בשם, מהקו העליון עד קו הבסיס בלי הירידות של ן ו-ע, בשורות 5–73 מתוך 96 (מרכז 39.5/96, 9.875px בגובה 24).
   19 פחות 9.875 = 9.125px מראש הסמל */
.brand { display: inline-flex; align-items: flex-start; gap: 16px; }
.brand__mark { height: 38px; width: auto; }
.brand__name { height: 24px; width: auto; margin-top: 9.125px; }
/* מובייל: סמל 32 (קו אמצעי ב-16), שם 20 (מרכז האותיות ב-8.229). 16 פחות 8.229 = 7.771px */
@media (max-width: 900px) {
  .brand { gap: 12px; }
  .brand__mark { height: 32px; }
  .brand__name { height: 20px; margin-top: 7.771px; }
}

.nav { direction: rtl; display: flex; gap: 34px; font-size: 15px; }
.nav a, .bar__talk {
  position: relative;
  padding-bottom: 3px;
}
.nav a::after, .bar__talk::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after,
.bar__talk:hover::after, .bar__talk:focus-visible::after { transform: scaleX(1); }

/* "בואו נדבר": כפתור מסגרת, בלי קו תחתון */
.bar__talk {
  direction: rtl;
  font-size: 16px;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  background: none;
  border-radius: 0;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bar__talk::after { display: none; }
.bar__talk:hover, .bar__talk:focus-visible { background: var(--sage); color: var(--bg); border-color: var(--sage); }

.bar__menu { display: none; direction: rtl; font-size: 15px; }

/* ריפוד סימטרי בגובה ההדר: המרכוז לא משתנה, ובזום או במסך נמוך הקישורים לא נבלעים מתחת להדר אלא נגללים */
.mnav {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: safe center;
  padding: 64px var(--gutter);
  overflow-y: auto;
  gap: 6px;
}
.mnav[hidden] { display: none; }
.mnav a { font-size: clamp(30px, 8vw, 44px); font-weight: 200; line-height: 1.5; }

@media (min-width: 901px) {
  /* הניווט במרכז המסך בדיוק, לא ביחס לרווח בין הלוגו לכפתור */
  .nav { position: absolute; left: 50%; transform: translateX(-50%); gap: 40px; font-size: 17px; }
  .bar { padding-right: 36px; padding-left: 52px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .bar__menu { display: block; }
  .bar__talk { display: none; }
  .bar { height: 64px; }
  /* צל עדין במקום קו, כדי שלא ייווצר קו כפול עם border-top של מקטע שמגיע לראש המסך */
  .bar.is-solid { box-shadow: 0 1px 0 rgba(62, 63, 58, 0.08); }
}

/* ---------- פס "בואו נדבר" קבוע בתחתית המסך, מובייל בלבד ---------- */

.talk-bar { display: none; }
@media (max-width: 900px) {
  .talk-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: 60px;
    padding: 0 20px;
    direction: rtl;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(242, 243, 238, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .talk-bar.is-on { transform: none; visibility: visible; transition-delay: 0s, 0s; }
  .talk-bar__cta {
    font-size: 15px;
    padding: 8px 20px;
    border: 1px solid var(--ink);
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  }
  .talk-bar__cta:hover, .talk-bar__cta:focus-visible { background: var(--sage); color: var(--bg); border-color: var(--sage); }
  .talk-bar__wa { font-size: 15px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--sage);
}
.hero__frames, .hero__frames img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero__frames img {
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero__frames img.is-on { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 34%;
  /* 0.75 בתחתית: התווית הלבנה עומדת ב-4.5:1 לפחות על כל תמונות ההירו (נמדד ב-1000 עד 1920) */
  background: linear-gradient(to top, rgba(30, 32, 28, 0.75), rgba(30, 32, 28, 0));
  pointer-events: none;
}

.hero__tag {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(24px, 4vw, 48px);
  z-index: 2;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 0 10px rgba(30, 32, 28, 0.45);
}

.hero__ctrl {
  z-index: 2;
  position: absolute;
  left: calc(var(--gutter) - 8.5px);   /* הריבוע הראשון נשאר צמוד ל-gutter, שטח הלחיצה בולט ממנו */
  bottom: clamp(24px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 0;
  direction: ltr;
}
/* נקודה: ריבוע 7 בתוך שטח לחיצה 24x24. 17 פיקסל בין ריבוע לריבוע */
.hero__dot {
  width: 24px; height: 24px;
  margin-block: -1px;
  display: grid; place-items: center;
}
.hero__dot::before {
  content: "";
  width: 7px; height: 7px;
  background: rgba(255,255,255,0.45);
  transition: background 0.3s;
}
.hero__dot.is-on::before { background: #fff; }
.hero__dot:focus-visible { outline-color: #fff; outline-offset: -4px; }
/* שטח לחיצה 44x44 סביב סמל של 22. השוליים השליליים משאירים את הסמל במקומו */
.hero__pause {
  margin: -11px -11px -11px 2.5px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s var(--ease);
}
.hero__pause svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.5)) drop-shadow(0 0 1px rgba(0,0,0,0.6));
}
.hero__pause[hidden] { display: none; }
.hero__pause:hover, .hero__pause:focus-visible { opacity: 1; }
.hero__pause:focus-visible { outline-color: #fff; }

.hero .hero__arrow { display: none; }   /* חצי ההירו: מובייל בלבד */

@media (max-width: 700px) {
  .hero { height: 88svh; min-height: 480px; }
  .hero__frames img { object-position: 45% center; }
}
@media (max-width: 900px) {
  /* מובייל: תמונה 4:3 נקייה מתחת להדר, בלי תווית, נקודות או חצים. ההחלפה האוטומטית נמשכת */
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin-top: 64px;
    margin-bottom: 48px;   /* עד משפט הפתיחה, ל-.intro אין ריפוד עליון במובייל */
    padding-bottom: 0;
  }
  .hero__frames img { object-position: center; transition-duration: 1s; }
  .hero::after { display: none; }
  .hero__tag, .hero__dot, .hero .hero__arrow { display: none; }
  .hero__ctrl { left: 12px; bottom: 12px; gap: 0; }
  .hero__pause { margin: -11px; }
}

/* ---------- Sections, spacing ---------- */

section { padding-inline: var(--gutter); }

.intro {
  padding-block: clamp(96px, 16vw, 220px) clamp(72px, 10vw, 140px);
  text-align: center;
}
.intro__statement {
  text-wrap: balance;
  font-size: clamp(30px, 4.3vw, 62px);
  font-weight: 200;
  line-height: 1.25;
  letter-spacing: -0.005em;
  max-width: 62rem;
  margin-inline: auto;
}
.intro__sub {
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 50rem;
  margin-inline: auto;
  color: var(--ink-soft);
}
@media (min-width: 901px) {
  .intro { padding-block: clamp(100px, 14vw, 200px) clamp(40px, 5vw, 72px); }
  .intro__statement { font-size: clamp(34px, 4.8vw, 72px); }
}
@media (max-width: 900px) {
  .intro { padding-top: 0; }
}

/* ---------- Projects: תמונה אחת לפרויקט, הגלריה נפתחת בלחיצה ---------- */

.projects {
  padding-block: clamp(40px, 6vw, 90px) var(--section-y);
  border-top: 1px solid var(--line);
}
.project:first-child { padding-top: 0; }
@media (max-width: 900px) {
  .projects { padding-top: 24px; }
}

/* שלוש שורות בלי רווח ביניהן: התמונה על כולן, ובעמודת הטקסט: כותרת וסוג, פסקה, קישור "לכל התמונות" */
.project {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: var(--gap);
  row-gap: 0;
  align-items: start;
  padding-block: clamp(36px, 5vw, 80px);
}
.project + .project { border-top: 1px solid var(--line); }

.project__cover { grid-row: 1 / span 3; }
.project__head { grid-row: 1; }
.project__text { grid-row: 2; }
.project__more { grid-row: 3; justify-self: start; }

.album { display: block; width: 100%; cursor: zoom-in; text-align: start; }
.album img { width: 100%; }

.frame { position: relative; }
.fader { position: relative; overflow: hidden; }
.frame__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 72px;
  display: grid; place-items: center;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s var(--ease);
  direction: ltr;
}
.frame__arrow svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.5)) drop-shadow(0 0 1px rgba(0,0,0,0.6));
}
.frame__arrow--left { left: 8px; }
.frame__arrow--right { right: 8px; }
.frame__arrow:hover, .frame__arrow:focus-visible { opacity: 1; }
.frame__arrow:focus-visible { outline-color: #fff; }
.fader__img--base { position: relative; }
.fader__img:not(.fader__img--base) {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.fader__img { transition: opacity 1.4s var(--ease); }
.fader__img:not(.is-on) { opacity: 0 !important; }
/* שורת הנקודות קיימת תמיד, גם ריקה, כדי שהכיתוב שמתחת יישב באותו גובה בכל האלבומים */
.fader__dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; min-height: 6px; }
.fader__dots span { width: 6px; height: 6px; background: var(--line); transition: background 0.4s; }
.fader__dots span.is-on { background: var(--ink); }
.more__album .fader__dots { margin-top: 10px; }
.album:focus-visible { outline-offset: 6px; }

/* גריד RTL: עמודה 1 ימנית. רחבה: תמונה 8 עמודות. אנכית: 6 עמודות. כל פרויקט שני מתהפך */
.project--wide .project__cover { grid-column: 1 / span 8; }
.project--wide .project__head, .project--wide .project__text, .project--wide .project__more { grid-column: 9 / span 4; }
.project--wide.project--flip .project__cover { grid-column: 5 / span 8; }
.project--wide.project--flip .project__head, .project--wide.project--flip .project__text, .project--wide.project--flip .project__more { grid-column: 1 / span 4; }

.project--tall .project__cover { grid-column: 1 / span 6; }
.project--tall .project__head, .project--tall .project__text, .project--tall .project__more { grid-column: 8 / span 4; }
.project--tall.project--flip .project__cover { grid-column: 7 / span 6; }
.project--tall.project--flip .project__head, .project--tall.project--flip .project__text, .project--tall.project--flip .project__more { grid-column: 1 / span 4; }

.project__head { padding-top: 4px; }
.project__title {
  text-wrap: balance;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 300;
  line-height: 1.15;
}
.project__kind { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.project__body { margin-top: clamp(16px, 2vw, 26px); max-width: 30rem; }
.project__more {
  margin-top: clamp(18px, 2vw, 28px);
  font-size: 14px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
}
.project__more:hover, .project__more:focus-visible { border-color: var(--sage); }

/* מובייל: כותרת וסוג ממורכזים, תמונה מקצה לקצה, פסקה וקישור מתחתיה מיושרים לימין */
@media (max-width: 900px) {
  /* מרווחים: gap 16 בין השורות, ומעליו margin קטן כדי להגיע ל-20 (סוג→תמונה) ול-18 (נקודות→פסקה) */
  .project { grid-template-rows: none; gap: 16px; padding-block: 28px; }
  .project__cover, .project__head, .project__text, .project__more { grid-row: auto !important; grid-column: 1 / -1 !important; }
  .project__head { order: -2; text-align: center; padding-top: 0; }
  .project__cover { order: -1; margin-top: 4px; margin-inline: calc(-1 * var(--gutter)); }
  .project__text { order: 1; }
  .project__body { text-align: right; max-width: none; margin-top: 2px; }
  .project__more { order: 2; justify-self: start; margin-top: 0; }
}

/* ---------- Dark band: materials + about ---------- */

.dark {
  background: var(--sage);
  color: var(--sage-ink);
}
.dark--about { padding-bottom: var(--section-y); }

.materials {
  padding-block: var(--section-y) clamp(30px, 4.5vw, 68px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.materials__head { grid-column: 1 / span 5; }
.materials__title {
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 200;
  line-height: 1.2;
}
.materials__text {
  grid-column: 7 / span 6;
  align-self: end;
  color: var(--sage-ink);
  max-width: var(--measure);
}
.materials__row {
  grid-column: 1 / -1;
  margin-top: clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.materials__row figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.materials__row figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--sage-soft);
}
@media (min-width: 901px) {
  .materials__row figcaption { text-align: center; }
}

@media (max-width: 900px) {
  .materials__head, .materials__text { grid-column: 1 / -1; }
  .materials__text { margin-top: 14px; }
  .materials__row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .materials__row figcaption { font-size: 12px; text-align: center; }
}

.about {
  padding-top: var(--section-y);
  border-top: 1px solid var(--sage-line);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.about__portrait { grid-column: 1 / span 4; align-self: start; position: sticky; top: 100px; }
.about__portrait img { width: 100%; }
.about__portrait figcaption { margin-top: 12px; font-size: 14px; color: var(--sage-soft); }
.about__body { grid-column: 6 / span 6; max-width: 36rem; }
.about__part + .about__part { margin-top: clamp(36px, 4vw, 60px); }
.about__heading {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--sage-soft);
  margin-bottom: 12px;
}
.about__part p { font-size: 18px; line-height: 1.8; }

@media (max-width: 900px) {
  .about__portrait { grid-column: 1 / span 8; position: static; }
  .about__body { grid-column: 1 / -1; margin-top: 30px; }
}

/* ---------- Process ---------- */

.process {
  padding-block: var(--section-y);
}
.process__title {
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 200;
  line-height: 1.2;
  margin-bottom: clamp(40px, 5vw, 80px);
  text-align: center;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (min-width: 901px) {
  .step { text-align: center; }
}
.step {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}
.step__n { font-size: 13px; letter-spacing: 0.1em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.step__t { font-size: 24px; font-weight: 300; margin-top: 18px; line-height: 1.2; }
.step__p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }
.process__closing {
  margin-top: clamp(40px, 5vw, 80px);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 300;
  text-align: center;
}
@media (max-width: 900px) {
  .process__steps { grid-template-columns: 1fr; gap: 0; }
  .step {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 14px;
    border-top: 0;
    padding-block: 22px;
    text-align: start;
  }
  .step + .step { border-top: 1px solid var(--line); }
  .step__n { font-size: 13px; }
  .step__t { font-size: 22px; font-weight: 300; margin-top: 0; }
  .step__p { width: 100%; margin-top: 6px; font-size: 15px; }
  .process__title { margin-bottom: 28px; }
  /* במובייל אין משפט סוגר. מהשלב האחרון לקו המפריד: 40 */
  .process__closing { display: none; }
  .step:last-child { padding-bottom: 0; }
  .process { padding-bottom: 40px; }
}

/* ---------- More works: אלבום לכל פרויקט ---------- */

.more {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}
.more__title {
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 200;
  line-height: 1.2;
  margin-bottom: clamp(40px, 5vw, 80px);
  text-align: center;
}
.more__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px) var(--gap);
}
.more__album .fader__img--base { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.more__album figcaption {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink);
  text-align: center;
  display: flex; justify-content: center;
}
@media (min-width: 901px) {
  .more__album figcaption { font-size: 19px; font-weight: 300; }
}
@media (max-width: 900px) {
  .more__grid { grid-template-columns: repeat(2, 1fr); }
  .more__album figcaption { font-size: 15px; }
}

/* ---------- Contact ---------- */

.contact {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}
.contact__title {
  font-size: clamp(56px, 13vw, 200px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.01em;
}
.contact__links {
  margin-top: clamp(32px, 4vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 300;
}
.contact__links a {
  position: relative;
  padding-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.contact__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--line);
  transition: background 0.3s;
}
.contact__links a:hover::after, .contact__links a:focus-visible::after { background: var(--sage); }
@media (min-width: 901px) {
  .contact__title { text-align: center; }
  .contact__links { justify-content: center; }
}
@media (max-width: 900px) {
  .contact__title { text-align: center; }
  .contact__links { flex-direction: column; align-items: center; gap: 16px; }
}

/* ---------- Footer ---------- */

.foot {
  padding: clamp(48px, 6vw, 90px) var(--gutter) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.foot__logo { width: 160px; height: auto; }
.foot__small { font-size: 13px; color: var(--ink-soft); }
/* מובייל: פס "בואו נדבר" נעלם כשמקטע הקשר על המסך, ולכן בסוף העמוד אין צורך לשמור לו מקום */
@media (max-width: 900px) {
  .foot { padding-top: 56px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
  .foot__logo { width: 180px; }
  .foot__small { font-size: 16px; margin-top: 18px; }   /* עם gap של 10: 28px מהלוגו */
}

/* ---------- עמודי משנה: נגישות, פרטיות, 404 ---------- */

.page {
  padding-block: calc(72px + var(--section-y)) var(--section-y);
  max-width: 44rem;
  margin-inline: auto;
}
.page__title {
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 200;
  line-height: 1.2;
}
.page h2 { font-size: 20px; font-weight: 300; margin-top: clamp(28px, 3vw, 40px); }
.page p { margin-top: 14px; }
.page ul { margin-top: 14px; padding-inline-start: 1.2em; }
.page li + li { margin-top: 6px; }
.page a { border-bottom: 1px solid var(--line); white-space: nowrap; }
.page a:hover, .page a:focus-visible { border-color: var(--sage); }
.page__date { margin-top: clamp(28px, 3vw, 40px); font-size: 13px; color: var(--ink-soft); }
.page--center { text-align: center; max-width: none; }
.page--center .intro__sub { margin-top: clamp(24px, 3vw, 40px); }
.page--center .page__back { display: inline-block; margin-top: clamp(28px, 3vw, 40px); }
@media (max-width: 900px) {
  .page { padding-top: calc(64px + var(--section-y)); }
}

/* ---------- Reveal (תמונות בלבד) ---------- */

.rv { opacity: 0; transition: opacity 0.9s var(--ease); }
.rv.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transition: none; }
  .fader__img { transition: none; }
  .hero__frames img { transition: none; }
  .nav a::after, .contact__links a::after { transition: none; }
  .bar__talk, .talk-bar, .talk-bar__cta { transition: none; }
  /* כל שאר המעברים (רקע ההדר, נקודות, קווים בריחוף): מיידיים */
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}

/* ---------- Lightbox ---------- */

.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(242, 243, 238, 0.97);
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  padding: 24px;
  direction: ltr;
}
.lb[hidden] { display: none; }
.lb__fig { display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: calc(100vh - 48px); }
.lb__fig img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; width: auto; }
.lb__fig figcaption { font-size: 14px; color: var(--ink-soft); direction: rtl; }
.lb__close {
  position: absolute; top: 22px; right: var(--gutter);
  font-size: 15px; direction: rtl;
  border-bottom: 1px solid var(--ink);
}
.lb__nav { display: grid; place-items: center; height: 100%; }
/* אותו chevron כמו בחצי הפרויקטים, בצבע הטקסט ובלי צל (הרקע בהיר) */
.lb__nav svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round;
}
.lb__nav--prev { grid-column: 1; }
.lb__fig { grid-column: 2; }
.lb__nav--next { grid-column: 3; }
/* תמונה בודדת: החצים מוסתרים אבל נשארים בגריד כדי שהתמונה תישאר בעמודה האמצעית */
.lb__nav[hidden] { display: block; visibility: hidden; pointer-events: none; }
@media (max-width: 700px) {
  .lb { grid-template-columns: 1fr; padding: 60px 16px 24px; }
  .lb__fig { grid-column: 1; }
  .lb__nav--prev, .lb__nav--next { grid-column: auto; }
  .lb__nav { position: absolute; bottom: 12px; height: auto; padding: 17px 18px; }
  .lb__nav--prev { left: 12px; }
  .lb__nav--next { right: 12px; }
  .lb__fig img { max-height: calc(100vh - 170px); }
}

/* ---------- מובייל: שטח לחיצה של 44x44 לפחות ----------
   שכבה שקופה (::before) שמרחיבה את אזור הלחיצה בלי לשנות פריסה או מראה */
@media (max-width: 900px) {
  .brand, .bar__menu, .project__more, .foot__small a, .page a, .page__back, .talk-bar__cta, .talk-bar__wa { position: relative; }
  .brand::before, .bar__menu::before, .project__more::before, .contact__links a::before, .foot__small a::before,
  .lb__close::before, .page a::before, .page__back::before, .talk-bar__cta::before, .talk-bar__wa::before {
    content: "";
    position: absolute;
  }
  .brand::before { inset: -7px -4px; }
  .bar__menu::before { inset: -10px -6px; }
  .project__more::before { inset: -9px 0; }
  .contact__links a::before { inset: -5px 0; }
  .lb__close::before { inset: -9px -6px; }
  .page a::before { inset: -11px 0; }
  .page__back::before { inset: -8px 0; }
  .talk-bar__cta::before { inset: -2px 0; }
  .talk-bar__wa::before { inset: -9px -4px; }
  /* קישורי הפוטר צמודים זה לזה ("נגישות, פרטיות"): כל אחד מתרחב לצד החיצוני שלו כדי שלא יחפפו */
  .foot__small a::before { inset: -13px -12px -13px -2px; }
  .foot__small a + a::before { inset: -13px -2px -13px -12px; }
}

/* גופן בדסקטופ בלבד. במובייל הגדלים לא משתנים */
@media (min-width: 901px) {
  body { font-size: 18px; }
  .intro__sub { font-size: 20px; }
  .project__kind { font-size: 15px; }
  .project__body { font-size: 19px; }
  .about__part p { font-size: 19px; }
  .step__p { font-size: 17px; }
}
