/* RAIN · About page
   On top of rain.css. The motion lives in about.js and is gated on .about-js,
   so the page reads complete if the script never runs, and holds still under
   prefers-reduced-motion. */

:root {
  --gold-ink: #7a5f22;      /* gold dark enough for small text on cream */
  --muted-ink: #5b5a57;     /* small grey text that still clears 4.5:1 on the sunken cream */
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Hero ---------- */
.about-hero .h-display { max-width: 15ch; }
.about-hero .lead-lg { max-width: 640px; }

/* ============================ PRESS ============================ */
.press-head { max-width: 1060px; margin-bottom: clamp(26px, 3.6vw, 44px); }
.press-src {
  margin-top: 20px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-ink);
}
.press-title { margin-top: 12px; max-width: 21ch; font-size: clamp(32px, 4.4vw, 62px); line-height: 1.02; }
.press-title a {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat; background-position: 0 94%; background-size: 0% 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.press-title a:hover,
.press-title a:focus-visible { background-size: 100% 2px; outline: none; }

.press-figure { margin: 0; }
.press-frame {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--navy);
  box-shadow: 0 40px 80px -40px rgba(8, 19, 42, 0.55), 0 18px 36px -24px rgba(8, 19, 42, 0.32);
}
.press-media { position: relative; aspect-ratio: 16 / 9; }
.press-media picture,
.press-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.press-media img { display: block; object-fit: cover; }

/* Curtain: the photo opens out of the navy frame once, as it scrolls in. */
.about-js .press-media {
  clip-path: inset(6% 4% 6% 4% round 28px);
  transform: scale(1.05);
  transition: clip-path 1.5s cubic-bezier(0.22, 1, 0.36, 1), transform 1.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-js .press-figure.is-in .press-media { clip-path: inset(0 0 0 0 round 0px); transform: none; }

/* Faces: a ring and a name tag on hover, focus or tap. */
.press-spots { position: absolute; inset: 0; }
.spot {
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  width: 6.6%; min-width: 26px; aspect-ratio: 1;
  margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
}
.spot::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 5px rgba(204, 156, 79, 0.5), 0 10px 26px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: scale(1.3);
  transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.spot:focus-visible { outline: none; }
.spot.is-on { z-index: 3; }
.spot.is-on::before,
.spot:focus-visible::before { opacity: 1; transform: scale(1); }
.spot.is-sweep::before { opacity: 0.85; transform: scale(1); transition-duration: 0.16s, 0.3s; }
/* The ring and the name also answer plain CSS hover, so a face lights up
   under the cursor without waiting on any script event. */
@media (hover: hover) {
  .spot:hover { z-index: 3; }
  .spot:hover::before { opacity: 1; transform: scale(1); }
  .spot:hover .spot-tag { opacity: 1; transform: translate(calc(-50% + var(--dx, 0px)), 0); }
}

.spot-tag {
  position: absolute; left: 50%; top: calc(100% + 10px);
  width: max-content; max-width: min(300px, 64vw);
  padding: 10px 14px 11px; border-radius: 12px;
  background: rgba(8, 19, 42, 0.93); color: #f6f3ec; text-align: left;
  box-shadow: 0 0 0 1px rgba(204, 156, 79, 0.38), 0 16px 34px -12px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transform: translate(calc(-50% + var(--dx, 0px)), 6px);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.spot.is-up .spot-tag { top: auto; bottom: calc(100% + 10px); transform: translate(calc(-50% + var(--dx, 0px)), -6px); }
.spot.is-on .spot-tag { opacity: 1; transform: translate(calc(-50% + var(--dx, 0px)), 0); }
.spot-tag b { display: block; font-family: var(--sans); font-weight: 600; font-size: 14px; line-height: 1.3; }
.spot-tag i {
  display: block; margin-top: 3px;
  font-family: var(--sans); font-style: normal; font-size: 12.5px; line-height: 1.4;
  color: rgba(243, 242, 238, 0.76);
}

.press-cap { margin-top: 20px; display: grid; gap: 8px; }
.press-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: baseline;
  font-size: 14.5px; line-height: 1.65; color: var(--muted-ink);
}
.pr-k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-ink); white-space: nowrap;
}
.pr-names button {
  font: inherit; line-height: inherit; color: var(--ink-2);
  margin: 0; padding: 0; border: 0; cursor: pointer;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0% 1.5px;
  transition: color 0.2s ease, background-size 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.pr-names button:hover,
.pr-names button:focus-visible,
.pr-names button.is-on { color: var(--ink); background-size: 100% 1.5px; outline: none; }
.press-credit { margin-top: 2px; font-size: 12.5px; color: var(--muted-ink); }

.press-cta {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
}
.press-hint { font-size: 14px; color: var(--muted-ink); }

/* ============================ HOW IT WORKS ============================ */
.hub-wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 84px); align-items: center;
}
.hub { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin: 0 auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.hub-orbit-g { transform-box: view-box; transform-origin: 50% 50%; }
.hub.is-live .hub-orbit-g { animation: hub-orbit 90s linear infinite; }
@keyframes hub-orbit { to { transform: rotate(360deg); } }
.hub-orbit { fill: none; stroke: rgba(10, 10, 10, 0.18); stroke-width: 0.28; stroke-dasharray: 0.5 1.4; }

.hub-spoke {
  fill: none; stroke: rgba(10, 10, 10, 0.2); stroke-width: 0.5; stroke-linecap: round;
  transition: stroke 0.45s ease, stroke-width 0.45s ease;
}
.hub-spoke.is-on { stroke: var(--gold); stroke-width: 0.75; }
.hub-pulse { fill: var(--accent); }
.hub-pulse.is-on { fill: var(--gold-deep); }

.hub-node {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  transform: translate(-50%, -50%);
  padding: 13px 18px; border: 0; border-radius: var(--r-pill);
  font-family: var(--sans); font-weight: 600; font-size: clamp(13px, 1.25vw, 15.5px); line-height: 1;
  white-space: nowrap; color: var(--ink); cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #f3f1eb 100%);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(10, 10, 10, 0.06),
              0 6px 14px rgba(10, 10, 10, 0.08), 0 18px 32px -14px rgba(10, 10, 10, 0.24);
  /* Fill and label colour switch together and at once, so the label never
     passes through a low-contrast midpoint. */
  transition: box-shadow 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
.hub-node:hover { transform: translate(-50%, -50%) translateY(-2px); }
.hub-node.is-on {
  background: var(--navy); color: #f6f3ec;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 7px rgba(204, 156, 79, 0.14), 0 18px 34px -14px rgba(8, 19, 42, 0.55);
}
.hub-node:focus-visible,
.hub-core:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.hub-core {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  margin: 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7%;
  background: radial-gradient(120% 120% at 30% 18%, #1c3266 0%, #0f1f44 52%, #08132a 100%);
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(204, 156, 79, 0.35),
              0 30px 60px -26px rgba(8, 19, 42, 0.65);
  transition: box-shadow 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
.hub-core svg { width: 19%; height: auto; }
.hub-core span {
  font-family: var(--display); font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 100, "wght" 400;
  font-size: clamp(17px, 2vw, 25px); line-height: 1; color: var(--gold);
}
.hub-core:hover { transform: translate(-50%, -50%) scale(1.03); }
.hub-core.is-on {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 2px var(--gold),
              0 0 0 10px rgba(204, 156, 79, 0.12), 0 30px 60px -26px rgba(8, 19, 42, 0.65);
}

/* Entrance: spokes draw out from the arms, then the pills land. */
.about-js .hub-spoke { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.45s ease, stroke-width 0.45s ease; }
.about-js .hub.is-drawn .hub-spoke { stroke-dashoffset: 0; }
.about-js .hub-node,
.about-js .hub-core { opacity: 0; }
.about-js .hub-node { transform: translate(-50%, -50%) scale(0.86); transition-delay: calc(0.25s + var(--d, 0) * 0.1s); }
.about-js .hub-core { transform: translate(-50%, -50%) scale(0.8); }
.about-js .hub.is-drawn .hub-node,
.about-js .hub.is-drawn .hub-core { opacity: 1; transform: translate(-50%, -50%); }
.about-js .hub.is-settled .hub-node { transition-delay: 0s; }
.about-js .hub.is-drawn .hub-node:hover { transform: translate(-50%, -50%) translateY(-2px); }
.about-js .hub.is-drawn .hub-core:hover { transform: translate(-50%, -50%) scale(1.03); }

.hub-panel { position: relative; display: grid; padding-top: 24px; }
.hub-progress { display: none; }
.about-js .hub-progress {
  display: block; position: absolute; left: 0; top: 0; width: 120px; height: 2px; overflow: hidden;
  border-radius: 2px; background: rgba(10, 10, 10, 0.09);
  transition: opacity 0.4s ease;
}
.hub-progress i { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left center; }
.hub-progress.is-run i { animation: hub-prog var(--hub-dur, 5200ms) linear forwards; }
.hub-progress.is-off { opacity: 0; }
@keyframes hub-prog { to { transform: scaleX(1); } }

.hub-card { min-width: 0; }
.hub-card + .hub-card { margin-top: 40px; }
.about-js .hub-card { grid-area: 1 / 1; align-self: start; margin-top: 0; }
.about-js .hub-card {
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.4s;
}
.about-js .hub-card.is-on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.5s ease 0.06s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.06s, visibility 0s;
}
.hub-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.hub-card h3 {
  margin: 14px 0 0;
  font-family: var(--display); font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 40, "wght" 400;
  font-size: clamp(30px, 3.3vw, 46px); line-height: 1.03; letter-spacing: -0.022em; color: var(--ink);
}
.hub-card h3 .ser { font-style: italic; font-variation-settings: "opsz" 72, "SOFT" 100, "wght" 400; }
.hub-card p { margin-top: 16px; max-width: 44ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--ink-2); }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hub-chips span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); padding: 7px 10px; border-radius: 8px; background: rgba(10, 10, 10, 0.055);
}
.hub-card .btn { margin-top: 26px; }

/* ============================ STORY ============================ */
.tl-wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 110px); align-items: start;
}
.tl-head { position: sticky; top: 132px; margin-bottom: 0; }
.tl { position: relative; list-style: none; margin: 0; padding: 6px 0 0 44px; }
.tl::before {
  content: ""; position: absolute; left: 11px; top: 14px; bottom: 30px; width: 2px;
  border-radius: 2px; background: rgba(10, 10, 10, 0.1);
}
.tl-fill {
  position: absolute; left: 11px; top: 14px; bottom: 30px; width: 2px; list-style: none;
  border-radius: 2px; background: linear-gradient(180deg, var(--gold) 0%, var(--accent) 100%);
  transform-origin: top center; transform: scaleY(var(--p, 1));
}
.tl-item { position: relative; padding-bottom: clamp(36px, 5.5vh, 60px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -38px; top: 4px; width: 12px; height: 12px;
  border-radius: 2px; transform: rotate(45deg);
  background: var(--gold); box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 5px rgba(204, 156, 79, 0.15);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.tl-when {
  display: block; font-family: var(--mono); font-size: 12px; line-height: 1.6;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink);
}
.tl-what {
  margin-top: 10px; max-width: 28ch;
  font-family: var(--display); font-weight: 400;
  font-variation-settings: "opsz" 48, "SOFT" 40, "wght" 400;
  font-size: clamp(22px, 2.15vw, 31px); line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink); transition: color 0.6s ease;
}
.tl-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0;
  color: var(--accent);
}
.tl-link .arr { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.tl-link:hover .arr { transform: translateX(4px); }
/* With the script: the line fills as you read, and each stop lights as it passes. */
.about-js .tl-fill { transform: scaleY(var(--p, 0)); }
.about-js .tl-item::before { background: var(--bg); box-shadow: inset 0 0 0 2px rgba(10, 10, 10, 0.22); }
.about-js .tl-item .tl-what { color: #777673; }
.about-js .tl-item.is-past::before { background: var(--gold); box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 5px rgba(204, 156, 79, 0.15); }
.about-js .tl-item.is-past .tl-what { color: var(--ink); }

/* ============================ PEOPLE ============================ */
.pc-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.pc-copy .h-1 { max-width: 16ch; font-size: clamp(32px, 4.2vw, 58px); }
.face-pile {
  list-style: none; margin: 0; padding: 0 0 0 16px;
  display: flex; flex-wrap: wrap; row-gap: 14px;
}
.face-pile li {
  position: relative; flex-shrink: 0;
  width: clamp(60px, 6.2vw, 86px); aspect-ratio: 1; margin-left: -16px;
  border-radius: 50%; background: #0f1f44; outline: none; cursor: default;
  box-shadow: 0 0 0 4px var(--bg), 0 12px 24px -12px rgba(10, 10, 10, 0.45);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}
.face-pile li img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.face-pile li.is-mono {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 30% 18%, #1b2f60 0%, #0f1f44 55%, #0a1733 100%);
}
.face-pile li.is-mono span[aria-hidden] {
  font-family: var(--display); font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100, "wght" 400;
  font-size: clamp(19px, 2vw, 27px); line-height: 1; color: var(--gold);
}
.face-pile li:hover,
.face-pile li:focus { z-index: 4; transform: translateY(-8px) scale(1.06); }
.face-pile li:focus-visible { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent); }
.face-pile li::after {
  content: attr(data-name);
  position: absolute; left: 50%; bottom: calc(100% + 12px);
  transform: translate(-50%, 6px); white-space: nowrap;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: #f6f3ec;
  padding: 7px 11px; border-radius: 9px; background: var(--navy);
  box-shadow: 0 10px 24px -10px rgba(8, 19, 42, 0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.face-pile li.tip-left::after { left: 0; transform: translate(0, 6px); }
.face-pile li.tip-right::after { left: auto; right: 0; transform: translate(0, 6px); }
.face-pile li:hover::after,
.face-pile li:focus::after { opacity: 1; transform: translate(-50%, 0); }
.face-pile li.tip-left:hover::after, .face-pile li.tip-left:focus::after,
.face-pile li.tip-right:hover::after, .face-pile li.tip-right:focus::after { transform: translate(0, 0); }
/* Entrance: the faces drop in one after another. */
.about-js .face-pile li {
  opacity: 0; transform: translateY(16px) scale(0.86);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.about-js .face-pile.is-in li { opacity: 1; transform: none; }
.about-js .face-pile.is-settled li { transition-delay: 0s; }
.about-js .face-pile.is-in li:hover,
.about-js .face-pile.is-in li:focus { transform: translateY(-8px) scale(1.06); }

/* ============================ LAYOUT ============================ */
@media (max-width: 900px) {
  .hub-wrap { grid-template-columns: 1fr; }
  .hub { max-width: 460px; }
  .hub-panel { max-width: 600px; }
  .pc-card { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .tl-wrap { grid-template-columns: 1fr; gap: 28px; }
  .tl-head { position: static; }
  .tl { padding-left: 38px; }
  .tl::before, .tl-fill { left: 9px; }
  .tl-item::before { left: -34px; }
}
@media (max-width: 640px) {
  .press-frame { margin: 0 calc(12px - var(--pad-x)); border-radius: 20px; }
  .about-js .press-media { clip-path: inset(5% 3% 5% 3% round 18px); }
  .press-row { grid-template-columns: 1fr; gap: 2px; font-size: 14px; }
  .spot { width: 8.5%; min-width: 24px; }
  .spot-tag { max-width: min(250px, 72vw); padding: 8px 11px 9px; border-radius: 10px; }
  .spot-tag b { font-size: 13px; }
  .spot-tag i { font-size: 11.5px; }
  .press-cta .btn { width: 100%; justify-content: center; }
  .press-hint { width: 100%; text-align: center; }
  .hub-node { padding: 11px 14px; font-size: 13px; }
  .hub-core span { font-size: 16px; }
  .hub-card .btn { width: 100%; justify-content: center; }
  .tl-what { font-size: 21px; }
  .face-pile { padding-left: 14px; }
  .face-pile li { width: 56px; margin-left: -14px; box-shadow: 0 0 0 3px var(--bg), 0 10px 20px -10px rgba(10, 10, 10, 0.45); }
}
@media (hover: none), (pointer: coarse) {
  .hub-node:hover,
  .about-js .hub.is-drawn .hub-node:hover { transform: translate(-50%, -50%); }
  .hub-core:hover,
  .about-js .hub.is-drawn .hub-core:hover { transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .about-js .press-media { clip-path: none; transform: none; transition: none; }
  .about-js .hub-spoke { stroke-dashoffset: 0; transition: none; }
  .about-js .hub-node,
  .about-js .hub-core { opacity: 1; transform: translate(-50%, -50%); transition: none; }
  .about-js .hub-card { transition: none; transform: none; }
  .about-js .face-pile li { opacity: 1; transform: none; transition: none; }
  .hub.is-live .hub-orbit-g { animation: none; }
  .about-js .hub-progress { display: none; }
}

/* Pulses wait for the spokes; before their first lap SMIL leaves them at 0,0. */
.hub-pulses { opacity: 0; transition: opacity 0.6s ease 0.6s; }
.hub.is-drawn .hub-pulses { opacity: 1; }
@media (max-width: 640px) {
  .press-src { font-size: 11px; letter-spacing: 0.1em; }
}
