/* עמוד "הסיפור שלנו". נטען רק ב-/about/ דרך build-website.mjs.
   הרעיון: חוט אחד רציף שנמשך לאורך כל הסיפור, עם נקודות עיגון בכל תחנה.
   זו גם הצורה וגם האנימציה היחידה בעמוד. כל הצבעים מטוקני האתר הקיימים. */

body[data-page-type="about"] .s-reading { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
body[data-page-type="about"] .s-prose { font-size: 20px; }

.s-story-full { margin-inline: calc(50% - 50vw); width: 100vw; max-width: 100vw; }
.s-story-in { width: min(1240px, 100%); padding-inline: 48px; margin-inline: auto; }

/* ====== פתיח ====== */
.s-story-hero {
  background: var(--navy);
  color: #fff;
  padding: 118px 0 132px;
  position: relative;
  overflow: hidden;
}
.s-story-hero .s-story-in { position: relative; z-index: 2; }
.s-story-hero h1 {
  font-size: clamp(40px, 5.6vw, 82px);
  line-height: 1.03;
  letter-spacing: -.038em;
  font-weight: 700;
  max-width: 16ch;
  margin: 0;
  color: #fff;
}
.s-story-hero > .s-story-in > p {
  font-size: 22px;
  line-height: 1.65;
  color: #c3d6e1;
  max-width: 46ch;
  margin: 34px 0 0;
}
.s-story-ribbons {
  position: absolute; inset: -14% -6%; z-index: 1;
  display: flex; gap: 36px; align-items: center; justify-content: flex-start;
  padding-right: 56%; transform: rotate(-28deg); opacity: .18; pointer-events: none;
}
.s-story-ribbons i { display: block; width: 80px; height: 900px; background: var(--ribbon); transform: skewY(-25deg); }
.s-story-ribbons i:nth-child(2) { height: 730px; opacity: .7; }
.s-story-ribbons i:nth-child(3) { height: 560px; opacity: .45; }

/* ====== החוט ====== */
.s-thread {
  position: relative;
  padding: 0 0 40px;
}
/* המסילה: קו דק שעובר לאורך כל הסיפור */
.s-thread:before {
  content: "";
  position: absolute;
  top: 0; bottom: 120px;
  right: calc(50% - 1px);
  width: 2px;
  background: var(--line);
}
/* החוט עצמו, נמשך לפי הגלילה. גובהו נקבע ב-JS. */
.s-thread:after {
  content: "";
  position: absolute;
  top: 0;
  right: calc(50% - 1px);
  width: 2px;
  height: var(--thread, 0px);
  background: var(--ribbon);
  transition: height .18s linear;
}
@media (prefers-reduced-motion: reduce) {
  .s-thread:after { transition: none; }
}

/* ====== תחנה בציר ====== */
.s-stop {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  align-items: center;
  padding: 104px 0;
}
.s-stop:first-child { padding-top: 76px; }
/* נקודת העיגון על החוט */
.s-stop > i {
  grid-column: 2;
  justify-self: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  position: relative;
  z-index: 2;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s cubic-bezier(.2,.9,.3,1.4);
}
.s-stop.is-lit > i {
  border-color: var(--ribbon);
  box-shadow: 0 0 0 7px #b8735518;
  transform: scale(1.25);
}
.s-stop > figure { grid-row: 1; margin: 0; }
.s-stop > div { grid-row: 1; }
/* ברירת מחדל: תמונה ימין, טקסט שמאל */
.s-stop > figure { grid-column: 1; }
.s-stop > div { grid-column: 3; }
/* ולסירוגין — זה מה שלא עבד קודם, כי figure היה ממילא ראשון */
.s-stop:nth-of-type(even) > figure { grid-column: 3; }
.s-stop:nth-of-type(even) > div { grid-column: 1; }

.s-stop figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.s-stop figure.is-product {
  background: var(--paper);
  padding: 38px;
}
.s-stop figure.is-product img { object-fit: contain; aspect-ratio: 16/11; mix-blend-mode: multiply; }

.s-stop b {
  display: block;
  font-size: clamp(46px, 5vw, 76px);
  line-height: .92;
  font-weight: 700;
  letter-spacing: -.055em;
  color: var(--navy);
  opacity: .22;
}
.s-stop h2 {
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.22;
  margin: 14px 0 16px;
  max-width: 19ch;
}
.s-stop p { margin: 0; font-size: 19px; line-height: 1.75; color: var(--muted); max-width: 44ch; }
.s-stop em {
  display: block; margin-top: 20px; font-style: normal;
  font-size: 17px; line-height: 1.65; color: var(--muted);
  border-right: 2px solid var(--copper); padding-right: 16px; max-width: 44ch;
}

/* ====== רגע הציטוט, יושב על החוט ====== */
.s-voice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  align-items: center;
  padding: 96px 0 104px;
}
.s-voice > i {
  grid-column: 2; justify-self: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--navy);
  position: relative; z-index: 2;
  transition: box-shadow .35s ease, transform .35s cubic-bezier(.2,.9,.3,1.4);
}
.s-voice.is-lit > i { box-shadow: 0 0 0 9px #102e4415; transform: scale(1.3); }
.s-voice > figure { grid-column: 1; grid-row: 1; margin: 0; }
.s-voice > figure img {
  width: 100%; max-width: 330px; height: auto; aspect-ratio: 300/355;
  object-fit: cover; object-position: center top;
  margin-right: auto; display: block;
  border-bottom: 5px solid var(--copper);
}
.s-voice > div { grid-column: 3; grid-row: 1; }
.s-voice blockquote {
  margin: 0; padding: 0; border: 0;
  font-size: clamp(28px, 3.1vw, 46px);
  line-height: 1.2; font-weight: 700; letter-spacing: -.028em;
  max-width: 15ch; color: var(--navy);
}
.s-voice cite {
  display: block; margin-top: 24px; font-style: normal;
  font-size: 19px; font-weight: 650; color: var(--navy);
}
.s-voice cite span { display: block; font-weight: 400; font-size: 17px; color: var(--muted); margin-top: 5px; }
.s-voice > div > p { margin: 24px 0 0; font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 44ch; }

/* ====== מה שאנחנו עושים היום ====== */
.s-today { padding: 104px 0; background: var(--paper); }
.s-today h2 { font-size: clamp(29px, 3vw, 42px); margin: 0 0 14px; max-width: 18ch; }
.s-today > .s-story-in > p { margin: 0 0 54px; font-size: 20px; color: var(--muted); max-width: 56ch; }
.s-today dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 72px; margin: 0; }
.s-today dt {
  font-size: 22px; font-weight: 680; margin-bottom: 10px;
  padding-right: 18px; border-right: 3px solid var(--copper);
}
.s-today dd { margin: 0; padding-right: 18px; font-size: 18px; line-height: 1.7; color: var(--muted); }

/* ====== לקוחות ====== */
.s-proof { padding: 104px 0; }
.s-proof h2 { font-size: clamp(29px, 3vw, 42px); margin: 0 0 14px; max-width: 16ch; }
.s-proof > .s-story-in > p { margin: 0 0 48px; font-size: 20px; color: var(--muted); max-width: 60ch; }
.s-proof-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px; align-items: center; }
.s-proof-logos img { width: 100%; height: 76px; object-fit: contain; }

/* ====== בחירת ספק ====== */
.s-choose { padding: 104px 0; border-top: 1px solid var(--line); }
.s-choose h2 { font-size: clamp(29px, 3vw, 42px); margin: 0 0 14px; max-width: 16ch; }
.s-choose > .s-story-in > p { font-size: 20px; color: var(--muted); max-width: 56ch; margin: 0 0 50px; }
.s-choose ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.s-choose li {
  display: grid; grid-template-columns: 92px minmax(0, 1fr);
  gap: 32px; align-items: baseline;
  padding: 30px 0; margin: 0;
  border-top: 1px solid var(--line);
}
.s-choose li:last-child { border-bottom: 1px solid var(--line); }
.s-choose li b { font-size: 21px; font-weight: 650; color: var(--copper); }
.s-choose li strong { display: block; font-size: 22px; margin-bottom: 8px; font-weight: 680; }
.s-choose li p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 58ch; }
.s-choose-note { margin-top: 42px; font-size: 20px; max-width: 56ch; line-height: 1.7; }

/* ====== סיום ====== */
.s-story-end { background: var(--navy); color: #fff; padding: 110px 0; }
.s-story-end p { margin: 0; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.28; max-width: 20ch; font-weight: 700; letter-spacing: -.028em; }
.s-story-end p + p { margin-top: 30px; font-size: 19px; font-weight: 400; color: #c3d6e1; max-width: 48ch; letter-spacing: 0; line-height: 1.7; }
.s-story-end strong { color: var(--copper); font-weight: 700; }

@media (max-width: 1150px) {
  .s-story-in { padding-inline: 30px; }
  .s-stop, .s-voice { grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr); padding: 84px 0; }
}

@media (max-width: 950px) {
  /* החוט עובר לימין, והתוכן נערם לצדו. תמיד תמונה ואז טקסט, כך שבגלילה
     מתקבל טקסט-תמונה-טקסט ולא שתי תמונות זו מעל זו. */
  .s-thread:before, .s-thread:after { right: 7px; }
  .s-stop, .s-voice {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 0 20px;
    padding: 56px 0;
  }
  .s-stop > i, .s-voice > i { grid-column: 1; grid-row: 1; justify-self: start; margin-top: 10px; }
  .s-stop > figure, .s-stop:nth-of-type(even) > figure { grid-column: 2; grid-row: 1; margin-bottom: 26px; }
  .s-stop > div, .s-stop:nth-of-type(even) > div { grid-column: 2; grid-row: 2; }
  .s-voice > figure { grid-column: 2; grid-row: 1; margin-bottom: 26px; }
  .s-voice > div { grid-column: 2; grid-row: 2; }
  .s-today dl { grid-template-columns: 1fr; gap: 34px; }
  .s-proof-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
}

@media (max-width: 760px) {
  .s-story-in { padding-inline: 22px; }
  .s-story-hero { padding: 70px 0 78px; }
  .s-story-hero > .s-story-in > p { font-size: 20px; margin-top: 26px; }
  .s-stop, .s-voice { padding: 44px 0; }
  .s-stop p, .s-voice > div > p { font-size: 18px; }
  .s-today, .s-proof, .s-choose { padding: 62px 0; }
  .s-today dt { font-size: 20px; }
  .s-proof-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .s-proof-logos img { height: 58px; }
  .s-choose li { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .s-choose li b { font-size: 18px; }
  .s-story-end { padding: 68px 0; }
}
