/* ============================================================
   "Our people" page styles. Brand tokens: colors_and_type.css.
   Shared chrome (nav/footer/base/focus): site.css.
   This file = page components (extracted from the design's inline
   styles) + the scroll-reveal machinery + the responsive layer.
   Behaviour: js/our-people.js. Reveal is progressive enhancement.
   ============================================================ */

body { margin: 0; background: var(--ax-ink-2); color: #fff; }
a { color: var(--ax-turquoise); text-decoration: none; }
a:hover { text-decoration: none; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.op-root { position: relative; background: var(--ax-ink); color: #fff; font-family: var(--font-text); overflow: hidden; }
.op-nav-wrap { position: relative; z-index: 20; margin-bottom: -78px; }
.op-container { position: relative; max-width: 1560px; margin: 0 auto 0 6vw; }
.op-section { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 96px) clamp(24px, 4vw, 56px); }
.op-section--dark { background: var(--ax-ink); color: #fff; border-top: 1px solid rgba(26,206,188,.14); }
.op-section--light { background: var(--ax-mist); color: var(--ax-ink-2); }
.op-divider { height: 2px; background: linear-gradient(to right, transparent, rgba(26,206,188,.75), transparent); }

/* ============================================================
   TYPE COMPONENTS
   ============================================================ */
.op-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .22em; color: var(--ax-turquoise); margin: 0 0 18px; }
.op-eyebrow--light { color: var(--ax-turquoise-ink); }
.mono { font-family: 'IBM Plex Mono', monospace; }

.op-h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; margin: 0; }
.op-h2 .hl { color: var(--ax-turquoise); }
.op-h2--light .hl { color: var(--ax-turquoise-ink); }

/* Inline highlight span — colour follows the section context. */
.hl { color: var(--ax-turquoise); }
.op-section--light .hl { color: var(--ax-turquoise-ink); }

/* Section intro block (eyebrow + h2 + lead). */
.op-sec-head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 56px); }
.op-sec-head__title { margin: 0 0 16px; max-width: 22ch; }
.op-sec-head__title--wide { max-width: 24ch; }
.op-sec-head__lead { font-weight: 300; font-size: clamp(17px, 2vw, 19px); line-height: 1.65; color: rgba(4,20,27,.72); margin: 0; text-wrap: pretty; }
.op-sec-head__lead--dark { color: rgba(255,255,255,.76); line-height: 1.7; }

/* ============================================================
   BUTTONS
   ============================================================ */
.op-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; border-radius: 999px; padding: 14px 30px; text-decoration: none; white-space: nowrap;
      transition: transform .2s var(--ease, ease), box-shadow .2s var(--ease, ease), background .2s var(--ease, ease), border-color .2s var(--ease, ease); }
.op-btn__icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.op-btn--primary { color: var(--ax-black); background: var(--ax-turquoise); box-shadow: none; }
.op-btn--dark { color: #fff; background: var(--ax-black); box-shadow: none; }
.op-btn--dark:hover { box-shadow: none; }
.op-btn--ghost { color: #fff; border: 1px solid rgba(26,206,188,.4); box-shadow: none; }
.op-btn--ghost:hover { border-color: rgba(26,206,188,.85); }
/* Ghost button on a light section needs dark text + darker border. */
.op-section--light .op-btn--ghost { color: var(--ax-ink-2); border-color: rgba(4,20,27,.28); }
.op-section--light .op-btn--ghost:hover { border-color: var(--ax-turquoise-ink); }
.op-btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.op-btn-row--center { justify-content: center; }

/* LinkedIn glyph (used in badges + team links). */
.op-li { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* ============================================================
   HERO
   ============================================================ */
.op-hero { position: relative; overflow: hidden; min-height: clamp(620px, 42vw, 1000px);
      background-image: linear-gradient(rgba(26,206,188,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(26,206,188,.05) 1px, transparent 1px);
      background-size: 48px 48px; }
.op-hero__media { position: absolute; isolation: isolate; top: 0; right: 1.5%; width: 46%; height: 88%;
      max-height: clamp(560px, 37.33vw, 896px); overflow: hidden; pointer-events: none;
      /* Shared hero-art mask — see site.css. Keeps the art clear of the nav. */
      -webkit-mask-image: var(--hero-art-mask); mask-image: var(--hero-art-mask);
      -webkit-mask-composite: source-in; mask-composite: intersect; }
.op-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; filter: brightness(1.5) saturate(1.2); }
.op-hero__media-wash1 { position: absolute; inset: 0; background: linear-gradient(200deg, rgba(4,20,27,.1), rgba(2,12,16,.5) 66%, var(--ax-ink) 100%); mix-blend-mode: multiply; }
.op-hero__media-wash2 { position: absolute; inset: 0; background: radial-gradient(90% 90% at 88% 12%, rgba(26,206,188,.18), transparent 62%); }
.op-hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(to bottom, #020C10 0%, #020C10 14%, rgba(2,12,16,.72) 22%, rgba(2,12,16,.32) 32%, transparent 44%),
  radial-gradient(115% 100% at 52% 42%, rgba(2,12,16,.32) 0%, rgba(2,12,16,.78) 62%, rgba(2,12,16,.9) 100%); }
.op-hero__inner { position: relative; z-index: 2; max-width: 1560px; margin: 0 auto 0 6vw; padding: clamp(120px, 16vw, 200px) clamp(24px, 4vw, 56px) clamp(88px, 12vw, 104px); }
.op-hero__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(44px, 5.2vw, 116px); line-height: .98; letter-spacing: -.02em; margin: 0; max-width: 17ch; }
.op-hero__title .hl { color: var(--ax-turquoise); text-shadow: 0 0 32px rgba(26,206,188,.6); }
.op-hero__lead { font-weight: 300; font-size: clamp(18px, 1.33vw, 28px); line-height: 1.6; color: rgba(255,255,255,.82); max-width: 58ch; margin: 26px 0 0; }

/* ============================================================
   LEADERSHIP (light) — LinkedIn cards with hover bio
   ============================================================ */
.op-lead { scroll-margin-top: 78px; }
.op-lead-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 34px; }

.op-pcard { position: relative; display: block; color: inherit; border: 1px solid rgba(26,206,188,.16); border-radius: 10px;
      background: #fff; overflow: hidden;
      box-shadow: 0 1px 2px rgba(4,20,27,.05);
      transition: transform .24s var(--ease, ease), box-shadow .24s var(--ease, ease), border-color .24s var(--ease, ease), background .24s var(--ease, ease); }
.op-pcard:hover { border-color: rgba(26,206,188,.9); background: #fff; transform: translateY(-4px);
      box-shadow: 0 0 0 1px rgba(26,206,188,.35), 0 14px 34px rgba(4,20,27,.1); }
.op-pcard-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #E7EBEC; }
.op-pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
      transition: transform .5s var(--ease, ease); }
.op-pcard:hover .op-pcard-media img { transform: scale(1.04); }
.op-pcard-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,12,16,.62), transparent 58%); pointer-events: none; }
.op-pcard-badge { position: absolute; left: 18px; bottom: 16px; width: 44px; height: 44px; border-radius: 999px;
      border: 1px solid rgba(255,255,255,.65); color: #fff; display: flex; align-items: center; justify-content: center;
      backdrop-filter: blur(2px); transition: transform .24s var(--ease, ease), background .24s var(--ease, ease), border-color .24s var(--ease, ease), color .24s var(--ease, ease); }
.op-pcard:hover .op-pcard-badge { background: var(--ax-turquoise); border-color: var(--ax-turquoise); color: var(--ax-black); transform: scale(1.06); }
.op-pcard-bio { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; padding: 24px; overflow: auto;
      background: linear-gradient(to top, rgba(2,12,16,.95), rgba(2,12,16,.9) 55%, rgba(2,12,16,.82));
      opacity: 0; transform: translateY(8px); pointer-events: none;
      transition: opacity .24s ease, transform .24s var(--ease, ease); }
.op-pcard:hover .op-pcard-bio, .op-pcard:focus-visible .op-pcard-bio { opacity: 1; transform: none; }
.op-pcard-bio p { font-weight: 300; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.9); margin: 0; text-wrap: pretty; }
@media (hover: none) { .op-pcard-bio { display: none; } }
.op-pcard-body { padding: 22px 24px 24px; }
.op-pcard-role { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .16em; color: var(--ax-turquoise-ink); margin: 0 0 12px; }
.op-pcard-name { font-family: var(--font-display); font-weight: 300; font-size: 24px; line-height: 1.2; margin: 0 0 18px; color: var(--ax-ink-2); }
.op-pcard-connect { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ax-turquoise-ink); white-space: nowrap; }
.op-pcard-arrow { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .24s var(--ease, ease); }
.op-pcard:hover .op-pcard-arrow { transform: translateX(5px); }

/* ============================================================
   SELECTED TEAM (dark) — headshot tiles, some with hover bio
   ============================================================ */
.op-team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 34px; }
.op-person { transition: transform .3s var(--ease, ease); }
.op-person:hover { transform: translateY(-4px); }
.op-pslot { position: relative; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: #0A1D24;
      border: 1px solid rgba(26,206,188,.18); }
.op-pslot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease, ease); }
.op-person:hover .op-pslot img { transform: scale(1.04); }
.op-person:hover .op-pslot { border-color: rgba(26,206,188,.55); }
.op-pbio { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; padding: 22px; overflow: auto;
      background: linear-gradient(to top, rgba(2,12,16,.95), rgba(2,12,16,.9) 55%, rgba(2,12,16,.82));
      opacity: 0; transform: translateY(8px); pointer-events: none;
      transition: opacity .24s ease, transform .24s var(--ease, ease); }
.op-person--bio:hover .op-pbio, .op-person--bio:focus-within .op-pbio { opacity: 1; transform: none; }
.op-pbio p { font-weight: 300; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.9); margin: 0; text-wrap: pretty; }
@media (hover: none) { .op-pbio { display: none; } }
.op-ptoken { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .14em; color: var(--ax-turquoise); margin: 20px 0 8px; }
.op-pname { font-family: var(--font-display); font-weight: 300; font-size: 24px; line-height: 1.2; margin: 0 0 12px; color: #fff; }
.op-plink { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.72); white-space: nowrap; }
.op-plink:hover { color: var(--ax-turquoise); }
.op-plink .op-li { width: 15px; height: 15px; }

/* ============================================================
   REFERRAL (light, centred)
   ============================================================ */
.op-referral { text-align: center; }
.op-referral__inner { position: relative; }
.op-referral__title { margin: 0 auto 18px; max-width: 24ch; }
.op-referral__lead { color: rgba(4,20,27,.72); max-width: 54ch; margin: 0 auto 34px; font-weight: 300; line-height: 1.6; }

/* ============================================================
   SCROLL-REVEAL — added by js/our-people.js
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .06s } .reveal[data-d="2"] { transition-delay: .12s }
.reveal[data-d="3"] { transition-delay: .18s } .reveal[data-d="4"] { transition-delay: .24s }

/* ============================================================
   RESPONSIVE LAYER
   Most sizing is fluid via clamp() above; these handle the
   structural collapses that clamp() can't express (4 -> 2 -> 1).
   ============================================================ */
@media (max-width: 1180px) {
  .op-lead-grid, .op-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .op-container,
  .op-hero__inner { margin-left: auto; margin-right: auto; }
}
@media (max-width: 620px) {
  .op-lead-grid, .op-team-grid { grid-template-columns: minmax(0, 1fr); }
  .op-btn { padding: 13px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .op-pcard, .op-pcard-media img, .op-pcard-badge, .op-pcard-arrow,
  .op-person, .op-pslot img, .op-pbio, .op-pcard-bio { transition: none !important; }
}
