/* ==========================================================================
   Section 10 · what do we build for you first. Light: on #F7F7F7
   the text is black and the one marked word («לכם») is blue. Three parts:
   1. me, not pinned: «היי, אני תמיר...» is written in as if by hand (each
      line wipes in right to left, then a hand-drawn line runs under
      «מפעיל אותה»), once, when it comes into view. No photo yet: name and line.
   2. the question, pinned for 3 screens: «מה נבנה לכם קודם?» drops in
      letter by letter and runs sideways with the scroll (as s3).
   3. one big door, not pinned: «לבנות איתי», a line, and a button that
      opens the form as a drawer from the side. The form hands the message
      to WhatsApp or to mail; nothing is stored here.
   Motion lives in js/s10.js. Every length is N * --u.
   ========================================================================== */
.s10 { position: relative; background: var(--soft-white); color: var(--black); }
.s10 .grid { background-image: linear-gradient(90deg, rgba(5,5,5,.06) var(--hair), transparent var(--hair)); }

/* ---- 1 · me ---------------------------------------------------------------- */
.s10__me { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(200 * var(--u)) var(--m); display: flex; flex-direction: column; justify-content: center; }
.s10__kicker { margin: 0; font-weight: 500; font-size: calc(22 * var(--u)); letter-spacing: .08em; color: var(--silver-dark); }
.s10__hi { margin: calc(36 * var(--u)) 0 0; font-weight: 700; font-size: calc(120 * var(--u)); line-height: 1.15; }
.s10__hi .ln { display: block; width: max-content; max-width: 100%; padding-bottom: .3em; margin-bottom: -.3em; /* room for the hand-drawn line */
               clip-path: inset(0 0 0 100%); transition: clip-path 1.25s cubic-bezier(.65, 0, .35, 1); }
.s10__hi .ln + .ln { margin-top: calc(14 * var(--u)); transition-delay: 1.05s; font-weight: 300; font-size: .7em; }
.s10__me.is-on .s10__hi .ln { clip-path: inset(0); }
.s10__mark { position: relative; white-space: nowrap; font-weight: 500; }
.s10__mark svg { position: absolute; left: -2%; width: 104%; bottom: -.22em; height: .38em; overflow: visible; }
.s10__mark path { fill: none; stroke: var(--black); stroke-width: 3.4; stroke-linecap: round; vector-effect: non-scaling-stroke;
                  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s cubic-bezier(.65, 0, .35, 1) 2.35s; }
.s10__me.is-on .s10__mark path { stroke-dashoffset: 0; }
.s10__sign { margin: calc(44 * var(--u)) 0 0; font-weight: 300; font-size: calc(26 * var(--u)); color: var(--silver-dark);
             opacity: 0; transition: opacity 1s var(--ease-rise) 3.2s; }
.s10__me.is-on .s10__sign { opacity: 1; }

/* ---- 2 · the question ------------------------------------------------------ */
.s10__stage { background: var(--soft-white); }
.s10__q {
  position: absolute; top: 50%; right: var(--m); margin: 0;
  font-weight: 700; font-size: calc(240 * var(--u)); line-height: 1.3; white-space: nowrap;
  color: var(--black); overflow: hidden; transform: translateY(-50%);
}
.s10__q.is-split .hl-blue { background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.s10__q i { display: inline-block; font-style: normal; transform: translateY(-110%); }

/* ---- 3 · the door ----------------------------------------------------------- */
.s10__door { position: relative; padding: calc(60 * var(--u)) var(--m) calc(220 * var(--u)); }
.s10__card {
  position: relative; max-width: calc(1100 * var(--u)); margin: 0 auto; padding: calc(90 * var(--u)) calc(100 * var(--u));
  border: var(--hair) solid rgba(5,5,5,.18); border-radius: calc(24 * var(--u)); background: #FFFFFF; text-align: center;
  box-shadow: 0 calc(30 * var(--u)) calc(80 * var(--u)) rgba(0,0,0,.06);
}
.s10__door-k { margin: 0; font-weight: 500; font-size: calc(20 * var(--u)); letter-spacing: .08em; color: var(--silver-dark); }
.s10__door-t { margin: calc(18 * var(--u)) 0 0; font-weight: 700; font-size: calc(96 * var(--u)); line-height: 1.1; }
.s10__door-p { margin: calc(28 * var(--u)) auto 0; max-width: calc(760 * var(--u)); font-weight: 300; font-size: calc(34 * var(--u)); line-height: 1.5; color: #2E2E2E; }
.s10__learn { margin: calc(70 * var(--u)) 0 0; text-align: center; font-weight: 300; font-size: calc(24 * var(--u)); color: var(--silver-dark); }
.s10__learn a { color: var(--black); font-weight: 500; text-underline-offset: .25em; text-decoration-thickness: var(--hair); }

/* a button that fills with colour from the point where the pointer came in */
.qx-btn {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  margin-top: calc(48 * var(--u)); padding: calc(26 * var(--u)) calc(60 * var(--u)); min-height: 44px;
  border: calc(2 * var(--u)) solid var(--black); border-radius: 999px; background: transparent; color: var(--black);
  font: inherit; font-weight: 500; font-size: calc(28 * var(--u)); cursor: pointer; transition: color .45s var(--ease-rise);
}
.qx-btn::before {
  content: ""; position: absolute; z-index: -1; left: var(--x, 50%); top: var(--y, 50%); width: 0; height: 0; border-radius: 50%;
  background: var(--black); transform: translate(-50%, -50%); transition: width .55s var(--ease-rise), height .55s var(--ease-rise);
}
.qx-btn:hover, .qx-btn:focus-visible { color: var(--soft-white); }
.qx-btn:hover::before, .qx-btn:focus-visible::before { width: 260%; height: calc(var(--bw, 400px) * 2.6); }
.qx-btn:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }

/* ---- the drawer: the form, from the side ---------------------------------- */
.s10d { position: fixed; inset: 0; z-index: 50; visibility: hidden; }
.s10d.is-open { visibility: visible; }
.s10d__shade { position: absolute; inset: 0; background: rgba(5,5,5,.5); opacity: 0; transition: opacity .45s var(--ease-rise); }
.s10d.is-open .s10d__shade { opacity: 1; }
.s10d__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(100%, calc(720 * var(--u))); overflow-y: auto;
  padding: calc(80 * var(--u)) calc(70 * var(--u)); background: var(--soft-white); color: var(--black);
  transform: translateX(-102%); transition: transform .6s var(--ease-rise);
}
.s10d.is-open .s10d__panel { transform: none; }
.s10d__x {
  position: absolute; top: calc(30 * var(--u)); left: calc(30 * var(--u)); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: none; color: var(--black); font-size: 28px; line-height: 1; cursor: pointer;
}
.s10d__x:focus-visible { outline: 2px solid var(--black); }
.s10d__t { margin: 0; font-weight: 700; font-size: calc(56 * var(--u)); line-height: 1.15; }
.s10d__p { margin: calc(16 * var(--u)) 0 0; font-weight: 300; font-size: calc(24 * var(--u)); line-height: 1.5; color: #2E2E2E; }
.s10d form { margin-top: calc(40 * var(--u)); display: grid; gap: calc(26 * var(--u)); }
.s10d label { display: grid; gap: calc(8 * var(--u)); font-weight: 500; font-size: calc(20 * var(--u)); }
.s10d label span { color: var(--silver-dark); font-weight: 300; }
.s10d input, .s10d textarea {
  width: 100%; padding: calc(18 * var(--u)) calc(20 * var(--u)); min-height: 44px; border: var(--hair) solid rgba(5,5,5,.3); border-radius: calc(12 * var(--u));
  background: #FFFFFF; color: var(--black); font: inherit; font-weight: 300; font-size: max(16px, calc(22 * var(--u)));
}
.s10d textarea { min-height: calc(160 * var(--u)); resize: vertical; }
.s10d input:focus, .s10d textarea:focus { outline: 2px solid var(--black); outline-offset: 1px; }
.s10d .qx-btn { margin-top: calc(10 * var(--u)); justify-self: start; }
.s10d__note { margin: 0; font-size: calc(17 * var(--u)); color: var(--silver-dark); line-height: 1.5; }
.s10d__done { display: none; margin-top: calc(40 * var(--u)); font-weight: 500; font-size: calc(30 * var(--u)); line-height: 1.5; }
.s10d.is-sent form { display: none; }
.s10d.is-sent .s10d__done { display: block; }
body.s10d-lock { overflow: hidden; }

/* ---- phone: the 393 frames ------------------------------------------------- */
@media (max-width: 899px) {
  .s10__me { padding: calc(100 * var(--u)) calc(24 * var(--u)); min-height: 80vh; }
  .s10__kicker { font-size: calc(14 * var(--u)); }
  .s10__hi { margin-top: calc(18 * var(--u)); font-size: calc(44 * var(--u)); }
  .s10__hi .ln { width: auto; }
  .s10__sign { margin-top: calc(22 * var(--u)); font-size: calc(15 * var(--u)); }
  .s10__q { font-size: calc(96 * var(--u)); }
  .s10__door { padding: calc(30 * var(--u)) calc(16 * var(--u)) calc(100 * var(--u)); }
  .s10__card { padding: calc(44 * var(--u)) calc(22 * var(--u)); border-radius: calc(16 * var(--u)); }
  .s10__door-k { font-size: calc(13 * var(--u)); }
  .s10__door-t { margin-top: calc(10 * var(--u)); font-size: calc(44 * var(--u)); }
  .s10__door-p { margin-top: calc(14 * var(--u)); font-size: calc(17 * var(--u)); }
  .s10__learn { margin-top: calc(36 * var(--u)); font-size: calc(14 * var(--u)); line-height: 1.6; }
  .qx-btn { margin-top: calc(26 * var(--u)); padding: calc(14 * var(--u)) calc(30 * var(--u)); font-size: calc(17 * var(--u)); }
  .s10d__panel { width: 100%; padding: calc(70 * var(--u)) calc(22 * var(--u)) calc(40 * var(--u)); }
  .s10d__t { font-size: calc(32 * var(--u)); }
  .s10d__p { font-size: calc(16 * var(--u)); }
  .s10d label { font-size: calc(15 * var(--u)); }
  .s10d__note { font-size: calc(13 * var(--u)); }
  .s10d__done { font-size: calc(19 * var(--u)); }
}

/* ---- reduced motion: no pin, no split; everything simply there ------------- */
@media (prefers-reduced-motion: reduce) {
  .s10__hi .ln { clip-path: none; transition: none; }
  .s10__mark path { stroke-dashoffset: 0; transition: none; }
  .s10__sign { opacity: 1; transition: none; }
  .s10__stage { display: grid; place-items: center; padding: calc(120 * var(--u)) var(--m); }
  .s10__q { position: relative; top: auto; right: auto; transform: none; white-space: normal; text-align: center; font-size: calc(140 * var(--u)); }
  .s10__q i { transform: none; }
  .qx-btn, .qx-btn::before, .s10d__shade, .s10d__panel { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 899px) {
  .s10__q { font-size: calc(46 * var(--u)); }
}
