/* ==========================================================================
   About, Contact and Insights (rebuilt 27 September 2026, evening)
   Loaded on those pages after services.css, which supplies the shared
   colours, buttons, headings, scroll reveal, prompt box and keyframes.
   Shared here: the dark hero, the rising headline, links, avatars and tilt.
   Each page then adds about.css, contact.css or insights.css.
   Classes here start "pg-" (plus .aia-avatar and .screen-reader-text).
   Motion stops for visitors who ask for reduced motion (bottom of this file
   and of services.css) and pauses in sections that are off screen.
   ========================================================================== */

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* The dark hero ------------------------------------------------------------ */
.pg-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: 88px 0 76px;
  background:
    radial-gradient(1000px 620px at 82% 8%, rgba(47, 123, 255, 0.34), transparent 62%),
    radial-gradient(760px 460px at -6% 104%, rgba(245, 174, 49, 0.15), transparent 60%),
    linear-gradient(180deg, var(--svc-ink) 0%, var(--svc-deep) 100%);
}
.pg-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 11, 28, 0.84) 0%, rgba(4, 11, 28, 0.42) 50%, rgba(4, 11, 28, 0.12) 100%);
}
.pg-hero .svc-hero-floor { height: 34%; opacity: 0.75; }
.pg-hero-inner { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 44px; align-items: center; }
.pg-hero-copy { max-width: 620px; }
.pg-title {
  color: #fff; font-size: clamp(2.4rem, 4.6vw, 3.75rem); line-height: 1.05;
  letter-spacing: -0.025em; margin: 24px 0 22px;
}
.pg-title .hm-w { display: inline-block; animation: pg-rise 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
.pg-title .hm-nw { white-space: nowrap; }
.pg-lead { animation: pg-fade-up 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both; }
.pg-actions { animation: pg-fade-up 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s both; }

/* Light sections: warmer eyebrow, softer lead ------------------------------- */
.pg-page > section:not(.svc-dark):not(.pg-hero):not(.svc-cta):not(.in-brief) .svc-eyebrow { color: #8F5800; }
.pg-page > section:not(.svc-dark):not(.pg-hero):not(.svc-cta):not(.in-brief) .svc-head .lead { color: #51607A; }

/* Links --------------------------------------------------------------------- */
.pg-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.pg-link .svc-i { width: 16px; height: 16px; transition: transform 0.2s ease; }
.pg-link:hover { color: #8F5800; }
.pg-link:hover .svc-i { transform: translateX(3px); }
.svc-dark .pg-link { color: #D8ECFF; }
.svc-dark .pg-link:hover { color: var(--svc-amber); }
.pg-page a:focus-visible, .pg-page button:focus-visible, .pg-page textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Round portraits (photo, initials, or the Alliance mark) ------------------- */
.aia-avatar {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--s, 48px); height: var(--s, 48px); border-radius: 50%; overflow: hidden;
  background: #0E428C; color: #fff; font: 800 0.95rem/1 'Montserrat', 'Inter', sans-serif; letter-spacing: 0.02em;
}
.aia-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aia-avatar.is-initials { background: linear-gradient(135deg, #0E428C, #2F7BFF); }
.aia-avatar.is-initials.o-nk { background: linear-gradient(135deg, #0A6E8C, #3FB6D9); }
.aia-avatar.is-initials.o-acs { background: linear-gradient(135deg, #C98410, #F5AE31); color: #0A2A5E; }
.aia-avatar.is-mark { background: #fff; }
.aia-avatar.is-mark img { width: 80%; height: 80%; object-fit: contain; }

/* Cards that lean towards the pointer (pages.js) ----------------------------- */
[data-tilt] { transform-style: preserve-3d; will-change: auto; }
.svc-js [data-tilt].is-settled { transition: transform 0.25s ease, box-shadow 0.4s ease; transition-delay: 0ms; }

/* The closing prompt section ------------------------------------------------ */
.pg-cta .svc-prompt { margin-top: 38px; }

/* Keyframes ----------------------------------------------------------------- */
@keyframes pg-rise { from { opacity: 0; transform: translateY(0.45em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pg-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pg-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pg-flow { to { stroke-dashoffset: -14; } }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .pg-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .pg-hero-copy { max-width: 700px; }
}
@media (max-width: 900px) {
  .pg-hero { padding: 66px 0 60px; }
}
@media (max-width: 600px) {
  .pg-title { font-size: 2.35rem; }
  .pg-actions .btn { width: 100%; justify-content: center; }
}

/* Reduced motion: a still page (services.css also stops every animation) ----- */
@media (prefers-reduced-motion: reduce) {
  .pg-title .hm-w, .pg-lead, .pg-actions { opacity: 1; transform: none; filter: none; }
}
