/* ==========================================================================
   Section 9 · questions I hear a lot. Dark, not pinned, no big
   effect: the title and the questions rise in once (data-reveal), and each
   question opens in place: the answer's row grows from 0 to its height and
   the words rise gently into it. One open at a time (js/s9.js).
   «שומע» is chrome, on black. Every length is N * --u.
   ========================================================================== */
.s9 { position: relative; background: var(--black); color: var(--soft-white); }
.s9__in {
  padding: calc(200 * var(--u)) var(--m) calc(220 * var(--u));
  display: grid; grid-template-columns: calc(620 * var(--u)) 1fr; gap: calc(120 * var(--u)); align-items: start;
}
.s9__head { position: sticky; top: calc(140 * var(--u)); }
.s9__kicker { margin: 0; font-weight: 500; font-size: calc(22 * var(--u)); letter-spacing: .08em; color: var(--silver-dark); }
.s9__title { margin: calc(28 * var(--u)) 0 0; font-weight: 700; font-size: calc(96 * var(--u)); line-height: 1.1; }

.s9__list { margin: 0; padding: 0; list-style: none; border-top: var(--hair) solid rgba(255,255,255,.2); }
.s9__item { border-bottom: var(--hair) solid rgba(255,255,255,.2); }
/* the questions come up one after another */
.s9__item:nth-child(2) { transition-delay: 0.07s; }
.s9__item:nth-child(3) { transition-delay: 0.14s; }
.s9__item:nth-child(4) { transition-delay: 0.21s; }
.s9__item:nth-child(5) { transition-delay: 0.28s; }
.s9__item:nth-child(6) { transition-delay: 0.35s; }
.s9__item:nth-child(7) { transition-delay: 0.42s; }
.s9__q {
  width: 100%; margin: 0; padding: calc(40 * var(--u)) 0; border: 0; background: none; color: inherit; cursor: pointer;
  display: grid; grid-template-columns: calc(70 * var(--u)) 1fr calc(40 * var(--u)); gap: calc(20 * var(--u)); align-items: center;
  font: inherit; text-align: right;
}
.s9__n { font-weight: 500; font-size: calc(20 * var(--u)); letter-spacing: .08em; color: var(--silver-dark); }
.s9__qt { font-weight: 500; font-size: calc(38 * var(--u)); line-height: 1.3; transition: color .3s; }
.s9__q:hover .s9__qt, .s9__item.is-open .s9__qt { color: #FFFFFF; }
.s9__q:focus-visible { outline: 2px solid var(--silver); outline-offset: calc(6 * var(--u)); }
/* plus that turns into a minus */
.s9__x { position: relative; width: calc(28 * var(--u)); height: calc(28 * var(--u)); justify-self: end; }
.s9__x::before, .s9__x::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: calc(2 * var(--u)); min-height: 1px; margin-top: calc(-1 * var(--u));
  background: var(--chrome); transition: transform .45s var(--ease-rise);
}
.s9__x::after { transform: rotate(90deg); }
.s9__item.is-open .s9__x::after { transform: rotate(0deg); }

/* the answer: a row that grows to its own height */
.s9__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-rise); }
.s9__item.is-open .s9__a { grid-template-rows: 1fr; }
.s9__a > div { overflow: hidden; min-height: 0; }
.s9__a p {
  margin: 0; padding: 0 calc(90 * var(--u)) calc(44 * var(--u)) calc(60 * var(--u));
  font-weight: 300; font-size: calc(30 * var(--u)); line-height: 1.6; color: var(--silver);
  opacity: 0; transform: translateY(calc(24 * var(--u)));
  transition: opacity .5s var(--ease-rise), transform .7s var(--ease-rise);
}
.s9__item.is-open .s9__a p { opacity: 1; transform: none; transition-delay: .12s; }

/* ---- phone: the 393 frames ------------------------------------------------- */
@media (max-width: 899px) {
  .s9__in { grid-template-columns: 1fr; gap: calc(36 * var(--u)); padding: calc(100 * var(--u)) calc(24 * var(--u)) calc(110 * var(--u)); }
  .s9__head { position: static; }
  .s9__kicker { font-size: calc(14 * var(--u)); }
  .s9__title { margin-top: calc(12 * var(--u)); font-size: calc(42 * var(--u)); }
  .s9__q { padding: calc(22 * var(--u)) 0; grid-template-columns: calc(30 * var(--u)) 1fr calc(22 * var(--u)); gap: calc(10 * var(--u)); }
  .s9__n { font-size: calc(12 * var(--u)); }
  .s9__qt { font-size: calc(19 * var(--u)); }
  .s9__x { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
  .s9__a p { padding: 0 calc(40 * var(--u)) calc(24 * var(--u)) 0; font-size: calc(16 * var(--u)); }
}

/* ---- reduced motion: it opens at once ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .s9__a, .s9__a p, .s9__x::before, .s9__x::after { transition: none; }
  .s9__a p { transform: none; }
}
