/* /research/ hero (H8 photo arch), 1 Dec 2026. Sixteen project photos form an arch around the research question. */
#main .rhx { --ink: var(--g-ink, #0f1519); --paper: var(--g-paper, #eef0eb); --soft: #4a5258; --line: rgba(15, 21, 25, .14); --interfaces: var(--g-indigo, #5659e3);
  --tw: 110px; --rx: 600px; --ry: 420px; --lift: 300px; --n: 15; --sweep: 150deg;
  position: relative; box-sizing: border-box; margin: 0; padding: 104px clamp(16px, 2.4vw, 40px) 0; background: var(--paper); color: var(--ink); overflow: clip; }
#main .rhx *, #main .rhx *::before, #main .rhx *::after { box-sizing: border-box; }
body #main#main#main .rhx :is(h1, p, ul, li, dl, dt, dd) { margin: 0 !important; padding: 0 !important; color: inherit !important; background: none !important; text-transform: none !important; letter-spacing: normal; list-style: none; }
#main .rhx-panel { position: relative; max-width: 1392px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 48px) 0; border-radius: 36px; background: #fbfbf9; box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 60px -36px rgba(15,21,25,.28); }

/* the arch: each tile sits on an ellipse and turns to follow it */
#main .rhx-arch { position: relative; height: calc(var(--ry) + var(--tw) * .9 + 18px); margin: 0 auto; pointer-events: none; }
#main .rhx-arch li { --k: var(--i); --a: calc(90deg + var(--sweep) / 2 - var(--k) * var(--sweep) / var(--n));
  position: absolute; left: 50%; bottom: 0; width: var(--tw); aspect-ratio: 4 / 5; pointer-events: auto;
  transform: translate(-50%, 0) translate(calc(cos(var(--a)) * var(--rx)), calc(sin(var(--a)) * var(--ry) * -1)) rotate(calc((90deg - var(--a)) * .92)); }
#main .rhx-arch a { position: relative; display: block; width: 100%; height: 100%; border-radius: calc(var(--tw) * .2); overflow: hidden; background: #dfe3dc;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 14px 28px -16px rgba(15,21,25,.45);
  /* No delay and no backwards fill: an animation that never starts (a background tab, a page not yet painted) applies nothing,
     so the tiles always show. The sweep comes from each tile's own duration instead of a delay. */
  animation: rhx-in calc(.55s + var(--k) * 45ms) var(--g-ease, cubic-bezier(.2,.8,.2,1));
  transition: scale .25s var(--g-ease, cubic-bezier(.2,.8,.2,1)), box-shadow .25s; }
#main .rhx-arch img { display: block; width: 100%; height: 100%; object-fit: cover; }
#main .rhx-arch .rhx-tag { position: absolute; left: 8px; top: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--g-r-ctl, 11px); display: grid; place-items: center;
  font: 650 12px/1 GoldstineSynonym, sans-serif; color: var(--g-ink, #0f1519); background: rgba(251,251,249,.92); }
#main .rhx-arch a:hover, #main .rhx-arch a:focus-visible { scale: 1.07; z-index: 2; box-shadow: 0 22px 36px -18px rgba(15,21,25,.6); }
#main .rhx-arch li:has(a:hover, a:focus-visible) { z-index: 3; }
#main .rhx-arch a:focus-visible { outline: 3px solid var(--interfaces); outline-offset: 3px; }
/* Tiles are always visible: the reveal only moves and scales them, so a stalled animation still shows the arch. */
@keyframes rhx-in { from { translate: 0 22px; scale: .9; } }

/* copy sits inside the arch, rising into its opening */
#main .rhx-copy { position: relative; z-index: 1; max-width: 780px; margin: calc(var(--lift) * -1) auto 0; text-align: center; }
body #main#main#main .rhx .rhx-eyebrow { font: 650 12px/1 GoldstineSynonym, sans-serif !important; letter-spacing: var(--g-track-label, .16em); text-transform: uppercase !important; color: #8a3a1f !important; margin-bottom: 18px !important; }
body #main#main#main .rhx h1 { font: 300 clamp(44px, 5.8vw, 86px)/.98 GoldstineChillax, sans-serif !important; letter-spacing: -.035em; max-width: 15ch; margin: 0 auto !important; text-wrap: balance; }
body #main#main#main .rhx .rhx-lede { font: 450 clamp(16px, 1.2vw, 19px)/1.5 GoldstineSynonym, sans-serif !important; color: var(--soft) !important; max-width: 600px; margin: 22px auto 0 !important; }
#main .rhx-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
body #main#main#main .rhx .rhx-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--g-r-pill, 999px); text-decoration: none !important;
  font: 560 16px/1 GoldstineSynonym, sans-serif !important; transition: background .2s, color .2s, translate .2s; }
body #main#main#main .rhx .rhx-btn { background: var(--ink) !important; color: #fbfbf9 !important; padding-right: 8px; }
#main .rhx-btn i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fbfbf9; color: var(--ink); transition: translate .2s; }
#main .rhx-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#main .rhx-btn:hover i { translate: 3px 0; }
body #main#main#main .rhx .rhx-ghost { color: var(--ink) !important; border: 1px solid var(--line); background: transparent !important; }
body #main#main#main .rhx .rhx-ghost:hover { background: rgba(15,21,25,.06) !important; }
#main .rhx-links a:focus-visible { outline: 3px solid var(--interfaces); outline-offset: 3px; }

/* three facts about the programme */
#main .rhx-facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0 0 clamp(28px, 3vw, 40px) !important; }
#main .rhx-facts > div { padding: 4px clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); text-align: center; }
#main .rhx-facts > div:first-child { border-left: 0; }
body #main#main#main .rhx dt { font: 500 clamp(18px, 1.4vw, 22px)/1.2 GoldstineChillax, sans-serif !important; letter-spacing: -.01em; }
body #main#main#main .rhx dd { font: 450 15px/1.45 GoldstineSynonym, sans-serif !important; color: var(--soft) !important; margin-top: 6px !important; }

@media (max-width: 1180px) { #main .rhx { --tw: 86px; --rx: 440px; --ry: 318px; --lift: 206px; } }
@media (max-width: 809px) {
  #main .rhx { --tw: 50px; --rx: 136px; --ry: 124px; --lift: 0px; --n: 9; --sweep: 156deg; padding: 92px 10px 0; }
  #main .rhx-panel { padding: 14px 16px 0; border-radius: var(--g-r-card, 26px); }
  #main .rhx-arch li { --k: var(--m); }
  #main .rhx-arch li:not([style*="--m"]) { display: none; }
  #main .rhx-arch .rhx-tag { left: 4px; top: 4px; min-width: 18px; height: 18px; font-size: 12px; padding: 0 4px; }
  #main .rhx-copy { text-align: left; }
  body #main#main#main .rhx h1 { font-size: var(--g-t-h2, clamp(38px, 11.4vw, 52px)) !important; margin: 0 !important; }
  body #main#main#main .rhx .rhx-lede { margin: 16px 0 0 !important; }
  #main .rhx-links { justify-content: flex-start; }
  #main .rhx-facts { grid-template-columns: 1fr; margin-top: 32px; }
  #main .rhx-facts > div { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { #main .rhx-arch a { animation: none; transition: none; } #main .rhx-btn i { transition: none; } }
