/* How I can help: "big answers" with photographs in the letters. Option E1 (Phil, 25 Nov 2026).
   Each row: the heading and paragraph on the left, the answer in large type on the right,
   centred between the two rules. The emirates and the goals are filled with a development
   render; "The developer." is solid red. Phones stack the answer under its paragraph. */
.hx { padding-block: clamp(40px, 6vw, 90px) clamp(80px, 11vw, 160px); }
.hx .hx-head h2 { font-size: clamp(46px, 5.6vw, 92px); }
.hx-rows { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; border-bottom: 1.5px solid var(--ink); }
.hx-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(32px, 3.2vw, 46px) 0 clamp(36px, 3.4vw, 50px); border-top: 1.5px solid var(--ink); }
.hx-q { min-width: 0; }
.hx-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 50%; font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace; }
.hx-q h3 { margin-top: 14px; font-size: clamp(24px, 2.3vw, 34px); font-weight: 640; letter-spacing: -.04em; line-height: 1.05; text-wrap: balance; }
.hx-q p { margin-top: 12px; max-width: 44ch; color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; }
.hx-a { min-width: 0; }
.hx-big { font-size: clamp(36px, 4.6vw, 68px); font-weight: 900; line-height: 1.04; letter-spacing: -.05em; color: var(--ink); text-wrap: balance; }
.hx-big .sl { color: var(--red); font-weight: 400; }

/* the photograph inside the letters; ink shows if the picture is missing */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hx-photo { color: transparent; -webkit-text-fill-color: transparent; background-color: var(--ink); background-size: cover; background-position: 50% 100%; -webkit-background-clip: text; background-clip: text; }
  .hx-photo .sl { color: var(--red); -webkit-text-fill-color: var(--red); }
}
.hx-photo--oasis { background-image: url("/assets/home-v2/media/help-letters-oasis.webp"); }
.hx-photo--bayn { background-image: url("/assets/home-v2/media/help-letters-bayn.webp"); background-position: 85% 100%; }

.hx-red { color: var(--red); font-size: clamp(48px, 6.2vw, 96px); font-weight: 640; }
.hx-red .m { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.hx-red .w { display: inline-block; }
/* the big words already say "The developer."; the paragraph does not repeat it (Phil, 25 Nov, phones and desktop) */
.hx-dup { display: none; }
.hx-note { margin-top: 16px; font: 500 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; color: var(--muted); }

/* motion, once, when the section is seen: the picture drifts in the letters; "The developer." rises */
@media (prefers-reduced-motion: no-preference) {
  .hx.is-in .hx-photo { animation: hx-pan 9s ease-in-out both; }
  /* "The developer." waits below its line until the section is seen, then rises once. It starts hidden
     (set by the script), so nothing snaps away and back as it comes in (Phil, 25 Nov: "jump and flash"). */
  .hx.js-ready .hx-red .w { transform: translateY(108%); transition: transform 760ms cubic-bezier(.23,1,.32,1); transition-delay: calc(var(--i) * 70ms + 200ms); }
  .hx.js-ready.is-in .hx-red .w { transform: none; }
}
@keyframes hx-pan { from { background-position-y: 100%; } to { background-position-y: 86%; } }

/* Phones: photo cards, option P1 (Phil, 25 Nov 2026). Each point is a tall card on a development photo,
   the answer in big white type above its paragraph; the fee card is solid red. */
@media (max-width: 720px) {
  .hx-rows { display: grid; gap: 12px; margin-inline: calc(-1 * var(--gutter) + 8px); border-bottom: 0; }
  .hx-row { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-height: 470px; padding: 22px 20px 24px; border-top: 0; color: var(--paper); background: var(--ink); }
  .hx-row::before { content: ""; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 50% 60%; }
  .hx-row::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(11,11,10,.45) 0%, rgba(11,11,10,.05) 32%, rgba(11,11,10,.35) 55%, rgba(11,11,10,.88) 100%); }
  .hx-row--oasis::before { background-image: url("/assets/home-v2/media/help-letters-oasis.webp"); }
  .hx-row--bayn::before { background-image: url("/assets/home-v2/media/help-letters-bayn.webp"); background-position: 70% 50%; }
  .hx-row--fee { min-height: 0; background: var(--red); color: var(--ink); }
  .hx-row--fee .hx-a > .hx-big { padding-top: 20px; }
  /* phones: the red card says it once; the sentence under "The developer." goes (Phil, 25 Nov) */
  .hx-row--fee .hx-q p { display: none; }
  .hx-row--fee::before, .hx-row--fee::after { display: none; }
  /* heading at the top, then the answer, then the paragraph at the foot */
  .hx-q { display: contents; }
  .hx-num { order: 1; border-color: var(--paper); margin-bottom: 12px; }
  .hx-row--fee .hx-num { border-color: var(--ink); }
  .hx-q h3 { order: 2; margin: 0; font-size: 26px; color: inherit; }
  .hx-a { display: contents; }
  .hx-a > .hx-big { order: 3; margin-top: auto; padding-top: 28px; }
  .hx-note { order: 5; }
  .hx-q p { order: 4; margin-top: 14px; font-size: 15px; color: rgba(255,253,241,.82); }
  .hx-row--fee .hx-q p { color: rgba(11,11,10,.85); }
  .hx-big, .hx-photo { font-size: clamp(38px, 11.8vw, 48px); line-height: 1; color: var(--paper); -webkit-text-fill-color: var(--paper); background: none; -webkit-background-clip: border-box; background-clip: border-box; animation: none; }
  .hx-big .em { display: block; }
  .hx-big .sl { display: none; }
  .hx-red { font-size: clamp(46px, 14.4vw, 58px); color: var(--paper); font-weight: 900; }
  .hx-note { font-size: 13px; color: var(--ink); }
}
/* Phones: each card waits just below, already hidden, then eases up once as it reaches the screen;
   its photo settles from a slight zoom. Transitions from a hidden start, never a snap (Phil, 25 Nov). */
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .hx.js-ready .hx-row { opacity: 0; transform: translateY(28px); transition: opacity 650ms ease-out, transform 800ms cubic-bezier(.23,1,.32,1); }
  .hx.js-ready .hx-row.is-in { opacity: 1; transform: none; }
  .hx.js-ready .hx-row::before { transform: scale(1.06); transition: transform 1.8s cubic-bezier(.23,1,.32,1); }
  .hx.js-ready .hx-row.is-in::before { transform: none; }
  .hx.is-in .hx-photo { animation: none; }
}
