/* ==========================================================================
   Who we are (Ben, 2026-09-30: "את המי אנחנו מעבירים להכי למטה ושם זה יהיה גם עם אנימציות ומרשים"),
   in his words, at the foot of the page. The story is read the way it is lit: every word waits in the
   shadow and lights up as the reader reaches it (assets/js/about.js); "״אותו הטעם״" is born in gold, and
   the closing under it is that name, with the button. Beside the words, the 95 — the two of them adding
   up to it — stays in view while the story is read (a phone reads it after the story). Reduced motion
   and no script: every word lit, nothing moves.
   ========================================================================== */

.about {
  padding-block: clamp(110px, 13vw, 200px);
  /* the drifting plates stay inside; a clip, not an overflow, so the 95 can still stay in view (sticky) */
  clip-path: inset(0);
  isolation: isolate;
  background:
    radial-gradient(70% 60% at 78% 20%, rgba(230, 165, 59, .10), transparent 70%),
    radial-gradient(50% 50% at 15% 85%, rgba(230, 165, 59, .07), transparent 70%),
    #171512;
  border-top: 1px solid var(--line);
}
/* the endpapers' plates, drifting slowly behind the words (about.js moves --drift with the scroll) */
.about::before {
  content: ""; position: absolute; inset: -20% 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='128'%3E%3Cg fill='none' stroke='%23E6A53B' stroke-opacity='.10' stroke-width='1.5'%3E%3Ccircle cx='20' cy='30' r='14'/%3E%3Ccircle cx='52' cy='94' r='14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 128px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent 75%);
  transform: translate3d(0, var(--drift, 0px), 0);
}

.about__grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(36px, 6vw, 110px); align-items: start;
}
.about__eyebrow {
  margin: 0 0 18px; font-weight: 800; font-size: 18px; letter-spacing: .02em; color: var(--gold);
  display: inline-flex; align-items: center; gap: 14px;
}
.about__eyebrow::after { content: ""; inline-size: 56px; block-size: 1px; background: currentColor; opacity: .6; transform-origin: right; transform: scaleX(var(--line, 1)); }
.about__title {
  margin: 0; font-weight: 900; font-size: clamp(36px, 4.6vw, 78px); line-height: 1.06;
  text-wrap: balance; max-inline-size: 15em;
}
.about__story { margin-top: clamp(28px, 3vw, 44px); display: grid; gap: clamp(22px, 2.2vw, 34px); max-inline-size: 34em; }
.about__story p { font-weight: 600; font-size: clamp(20px, 1.85vw, 29px); line-height: 1.55; color: var(--cream); text-wrap: pretty; }
/* the words wait in the shadow until the reader reaches them (only where the page moves) */
.js .about__story .w > span { color: rgba(242, 234, 219, .2); transition: color .5s var(--ease), text-shadow .8s var(--ease); }
.js .about__story .w > span.is-lit { color: var(--cream); }
.about__born { font-weight: 900; color: var(--gold); }
.js .about__story .about__born .w > span { color: rgba(230, 165, 59, .22); }
.js .about__story .about__born .w > span.is-lit { color: var(--gold); text-shadow: 0 0 28px rgba(230, 165, 59, .55); }

/* the 95: in view the whole time the story is read, on a computer */
.about__kilo {
  position: sticky; top: max(96px, 18vh); margin: 0;
  display: grid; justify-items: center; gap: 22px; padding-block: 8px;
}
.about__num { margin: 0; display: flex; align-items: flex-end; justify-content: center; gap: .08em; line-height: .78; }
.about__odo { display: inline-flex; direction: ltr; font-family: var(--num); font-weight: 700; font-size: clamp(150px, 19vw, 330px); letter-spacing: -.04em; color: var(--gold); }
.about__unit { font-weight: 900; font-size: clamp(30px, 3.4vw, 58px); color: var(--cream); padding-bottom: .3em; }
.about__sum { margin: 0; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 28px); }
.about__part { display: grid; justify-items: center; gap: 4px; }
.about__part b { font-family: var(--num); font-weight: 700; font-size: clamp(40px, 3.8vw, 64px); line-height: 1; color: var(--cream); }
.about__part small { font-size: 17px; font-weight: 700; color: var(--cream-2); }
.about__sum i { font-style: normal; font-family: var(--num); font-weight: 600; font-size: clamp(28px, 2.6vw, 42px); color: var(--gold); padding-bottom: 26px; }
.about__kilo figcaption { max-inline-size: 26em; text-align: center; font-size: 13px; line-height: 1.6; color: var(--cream-3); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__kilo { position: static; justify-items: start; padding-top: 18px; border-top: 1px solid var(--line); }
  .about__num, .about__sum { justify-content: flex-start; }
  .about__kilo figcaption { text-align: start; }
}

/* how it works, now without the 95 beside it: the three principles side by side on a computer */
.story__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .story__how { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .story__how li { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; }
  .story__n { text-align: start; }
}
