/* ==========================================================================
   Section 7 · the proof. Light, not pinned:
   it plays once, in order, when it comes into view (time,
   not scroll: a scrub would end in one notch of the wheel):
   title letters drop (1.9 s) -> the image opens from the top (2.5 s) ->
   a hand-drawn line runs under «המילה הזאת» (1.3 s) -> the words rise.
   The image ripples with the speed of the scroll (js/s7.js, WebGL).
   «המכונה» is blue, on light.
   ========================================================================== */
.s7 { position: relative; background: var(--soft-white); color: var(--black); overflow: hidden; }
.s7 .grid { background-image: linear-gradient(90deg, rgba(5,5,5,.06) var(--hair), transparent var(--hair)); }
.s7__in {
  position: relative; min-height: 100vh; min-height: 100svh; padding: calc(200 * var(--u)) var(--m);
  display: grid; grid-template-columns: 1fr calc(820 * var(--u)); gap: calc(120 * var(--u)); align-items: center;
}
.s7__kicker { margin: 0; font-weight: 500; font-size: calc(22 * var(--u)); letter-spacing: .08em; color: var(--silver-dark); }
.s7__title { margin: calc(30 * var(--u)) 0 0; font-weight: 700; font-size: calc(112 * var(--u)); line-height: 1.12; }
.s7__title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.s7__title .wd { display: inline-block; white-space: nowrap; }
.s7__title i { display: inline-block; font-style: normal; transform: translateY(-110%);
               transition: transform .9s cubic-bezier(.83, 0, .17, 1); }
.s7.is-on .s7__title i { transform: none; }
.s7__title.is-split .hl-blue { background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.s7__body { margin: calc(50 * var(--u)) 0 0; max-width: calc(760 * var(--u)); font-weight: 300; font-size: calc(40 * var(--u)); line-height: 1.55; color: #2E2E2E;
            opacity: 0; transform: translateY(calc(46 * var(--u))); transition: opacity 1.15s var(--ease-rise) 1.4s, transform 1.15s var(--ease-rise) 1.4s; }
.s7.is-on .s7__body { opacity: 1; transform: none; }

/* the hand-drawn line under «המילה הזאת»: drawn right to left */
.s7__mark { position: relative; white-space: nowrap; font-weight: 500; color: var(--black); }
.s7__mark svg { position: absolute; left: -2%; right: -2%; width: 104%; bottom: -.32em; height: .42em; overflow: visible; }
.s7__mark path { fill: none; stroke: var(--black); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke;
                 stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.65, 0, .35, 1) 2.4s; }
.s7.is-on .s7__mark path { stroke-dashoffset: 0; }

/* the image: opens from the top, settling from 1.5x (the hero's reveal), then ripples on scroll */
.s7__media { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: calc(20 * var(--u)); overflow: hidden; background: #0B0B0C;
             clip-path: inset(0 0 100% 0); transition: clip-path 2.5s cubic-bezier(.22, 1, .36, 1) .5s; }
.s7.is-on .s7__media { clip-path: inset(0 0 0 0); }
.s7__img, .s7__wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 30% center; }
.s7__img { transform: scale(1.5); transition: transform 2.5s cubic-bezier(.22, 1, .36, 1) .5s; }
.s7.is-on .s7__img { transform: none; }
.s7__wave { opacity: 0; }
.s7__wave.is-live { opacity: 1; }

/* ---- phone: the 393 frames ------------------------------------------------- */
@media (max-width: 899px) {
  .s7__in { grid-template-columns: 1fr; gap: calc(40 * var(--u)); padding: calc(90 * var(--u)) calc(24 * var(--u)); }
  .s7__kicker { font-size: calc(14 * var(--u)); }
  .s7__title { margin-top: calc(14 * var(--u)); font-size: calc(50 * var(--u)); }
  .s7__body { margin-top: calc(22 * var(--u)); font-size: calc(20 * var(--u)); }
  .s7__media { aspect-ratio: 1 / 1; border-radius: calc(12 * var(--u)); }
}

/* ---- reduced motion: everything simply there ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .s7__title i { transform: none; transition: none; }
  .s7__body { opacity: 1; transform: none; transition: none; }
  .s7__mark path { stroke-dashoffset: 0; transition: none; }
  .s7__media { clip-path: none; transition: none; }
  .s7__img { transform: none; transition: none; }
}
