/* =====================================================================
   SmarDac — Company pages (Leadership Team, Help & FAQs)
   Scoped with the `cp-` prefix. One file serves both pages, so the
   shared primitives are defined once instead of per page.
   ===================================================================== */

:root {
  --cp-p: #0092ff;
  --cp-p2: #3fd0ff;
  --cp-navy: #091d3e;
  --cp-ink: #1f314f;
  --cp-muted: #6b7a90;
  --cp-line: #e6ecf5;
  --cp-head: 'Sora', 'IBM Plex Sans', sans-serif;
  --cp-body: 'IBM Plex Sans', 'Roboto', sans-serif;
  --cp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* The theme floats its transparent header only over its own .page-title
   block; these heroes are not one, so they take the same treatment. */
.header.header-transparent { position: absolute; top: 0; left: 0; right: 0; width: 100%; }

.cp-section { position: relative; overflow: hidden; }
.cp-container { width: 100%; padding: 0 var(--site-gutter, clamp(20px, 5vw, 96px)); }

/* ---------- Typography helpers ---------- */
.cp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--cp-body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--cp-p); margin-bottom: 18px;
}
.cp-eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--cp-p), var(--cp-p2)); border-radius: 2px; }
.cp-h2 {
  font: 700 clamp(28px, 3.6vw, 44px)/1.15 var(--cp-head); text-transform: none;
  color: var(--cp-ink); letter-spacing: -.02em; margin: 0 0 16px;
}
.cp-lead { font: 400 17px/1.7 var(--cp-body); color: var(--cp-muted); margin: 0; }
.cp-grad { background: linear-gradient(90deg, var(--cp-p) 0%, var(--cp-p2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.cp-btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 28px; border-radius: 14px; border: 1px solid transparent;
  font: 600 15px/1 var(--cp-body); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .35s var(--cp-ease), box-shadow .35s var(--cp-ease), background .35s, color .35s, border-color .35s;
}
.cp-btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--cp-ease); }
.cp-btn:hover svg { transform: translateX(4px); }
.cp-btn:hover { transform: translateY(-2px); text-decoration: none; }
.cp-btn:focus-visible { outline: 2px solid var(--cp-p2); outline-offset: 3px; }
.cp-btn--primary { color: #fff; background: linear-gradient(135deg, #0a84ff 0%, #0092ff 45%, #22c1ff 100%); box-shadow: 0 10px 30px -10px rgba(0, 146, 255, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.cp-btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--cp-ease);
}
.cp-btn--primary:hover { color: #fff; box-shadow: 0 18px 40px -12px rgba(0, 146, 255, .9), inset 0 1px 0 rgba(255,255,255,.3); }
.cp-btn--primary:hover::after { transform: translateX(120%); }
.cp-btn--ghost { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
.cp-btn--ghost:hover { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }

/* =====================================================================
   HERO — no photograph: the brand gradient, grid and glows carry it.
   ===================================================================== */
.cp-hero {
  position: relative; min-height: clamp(460px, 62vh, 640px); padding: 200px 0 120px;
  display: flex; align-items: center; color: #fff;
  background: radial-gradient(1100px 620px at 78% 18%, #10417f 0%, #0b2452 42%, #071a38 72%, #050f24 100%);
}
.cp-hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .3;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 40% 50%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 40% 50%, #000 15%, transparent 78%);
}
.cp-hero__glow { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.cp-hero__glow--a { width: 620px; height: 620px; left: -200px; top: -120px; background: radial-gradient(circle, rgba(10,92,255,.36), rgba(10,92,255,.12) 45%, transparent 70%); }
.cp-hero__glow--b { width: 520px; height: 520px; right: -120px; bottom: -30%; background: radial-gradient(circle, rgba(18,184,255,.28), rgba(18,184,255,.08) 45%, transparent 70%); }
/* a soft floor so the white pill bar has something solid to overlap */
.cp-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,15,36,0) 0%, rgba(5,15,36,.85) 100%);
}

.cp-hero__inner { position: relative; z-index: 2; max-width: 760px; }

/* Breadcrumb: pinned just under the 135px transparent header, not part
   of the vertically centred copy block. */
.cp-hero__top { position: absolute; left: 0; right: 0; top: 150px; z-index: 3; opacity: 0; animation: cpUp .8s var(--cp-ease) .05s both; }
.cp-crumb {
  display: inline-flex; align-items: center; gap: 12px; height: 38px; padding: 0 16px 0 12px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(9, 29, 62, .38);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 600 11.5px/1 var(--cp-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.cp-crumb a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.8); text-decoration: none; transition: color .3s; }
.cp-crumb a svg { width: 15px; height: 15px; flex: none; opacity: .9; }
.cp-crumb a:hover { color: #fff; text-decoration: none; }
.cp-crumb i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.35); }
.cp-crumb [aria-current] { color: var(--cp-p2); }

.cp-hero .cp-eyebrow { color: var(--cp-p2); }
.cp-hero__title {
  font: 800 clamp(36px, 5vw, 66px)/1.06 var(--cp-head); letter-spacing: -.03em; color: #fff;
  margin: 0 0 22px; text-transform: none;
}
.cp-hero__title .cp-grad { background: linear-gradient(90deg, #4fd8ff, #0092ff 60%, #7ee0ff); -webkit-background-clip: text; background-clip: text; }
.cp-hero__lead { font: 400 clamp(16px, 1.25vw, 19px)/1.7 var(--cp-body); color: rgba(255,255,255,.78); max-width: 600px; margin: 0; }

/* Entrance */
.cp-hero__inner > * { opacity: 0; transform: translateY(18px); animation: cpUp .8s var(--cp-ease) both; }
.cp-hero__inner > :nth-child(1) { animation-delay: .15s; }
.cp-hero__inner > :nth-child(2) { animation-delay: .25s; }
.cp-hero__inner > :nth-child(3) { animation-delay: .37s; }

/* =====================================================================
   COMPANY SUB-NAV (white pill bar overlapping the hero's lower edge)
   ===================================================================== */
.cp-subnav { position: relative; z-index: 5; margin-top: -30px; }
.cp-subnav__bar {
  display: flex; gap: 6px; padding: 6px; width: max-content; max-width: 100%;
  border-radius: 16px; background: #fff; border: 1px solid var(--cp-line);
  box-shadow: 0 24px 50px -28px rgba(9, 29, 62, .55);
  overflow-x: auto; scrollbar-width: none;
}
.cp-subnav__bar::-webkit-scrollbar { display: none; }
.cp-subnav a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 11px;
  font: 600 14px var(--cp-body); color: var(--cp-ink); text-decoration: none; white-space: nowrap;
  transition: background .3s, color .3s;
}
.cp-subnav a:hover { background: #eef6ff; color: var(--cp-p); text-decoration: none; }
.cp-subnav a.is-active, .cp-subnav a.is-active:hover { background: var(--cp-navy); color: #fff; }

/* =====================================================================
   TEAM
   ===================================================================== */
.cp-team { padding: 110px 0; background: #fff; }
.cp-team__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.cp-team__head .cp-eyebrow::before { display: none; }
.cp-team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1240px; margin: 0 auto; }

.cp-member {
  position: relative; border-radius: 24px; overflow: hidden; background: #fff;
  border: 1px solid var(--cp-line); isolation: isolate;
  transition: transform .5s var(--cp-ease), box-shadow .5s var(--cp-ease), border-color .4s;
}
/* the brand hairline that traces the card on hover */
.cp-member::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 4;
  background: linear-gradient(135deg, var(--cp-p2) 0%, var(--cp-p) 45%, rgba(0,146,255,0) 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity .45s ease;
}
.cp-team__grid .cp-member:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 34px 66px -30px rgba(0, 146, 255, .45), 0 8px 20px -12px rgba(9, 29, 62, .18); }
.cp-team__grid .cp-member:hover::before { opacity: 1; }

/* ---------- Photo: black and white, full colour on hover ---------- */
.cp-member__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; }
.cp-member__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.01);
  transition: filter .6s var(--cp-ease), transform 1.1s var(--cp-ease);
}
.cp-team__grid .cp-member:hover .cp-member__photo img { filter: grayscale(0) contrast(1); transform: scale(1.07); }

/* The cut-outs sit on pure white, so nothing is laid over the plate:
   the desaturation alone carries the resting state. */
/* one diagonal sweep of light across the portrait */
.cp-member__photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.4) 50%, transparent 65%);
  transform: translateX(-110%); opacity: 0;
  transition: transform .9s var(--cp-ease), opacity .3s ease;
}
.cp-team__grid .cp-member:hover .cp-member__photo::after { transform: translateX(110%); opacity: 1; }

/* ---------- Social icons: slide up over the photo on hover ---------- */
.cp-member__social {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: center; gap: 10px; padding: 0 0 18px; margin: 0; list-style: none;
}
.cp-member__social li { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .5s var(--cp-ease); }
.cp-team__grid .cp-member:hover .cp-member__social li { opacity: 1; transform: none; }
.cp-team__grid .cp-member:hover .cp-member__social li:nth-child(1) { transition-delay: .06s; }
.cp-team__grid .cp-member:hover .cp-member__social li:nth-child(2) { transition-delay: .13s; }
.cp-member__social a {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; background: rgba(9, 29, 62, .82); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s, color .3s, transform .3s var(--cp-ease);
}
.cp-member__social a:hover { background: var(--cp-p); color: #fff; transform: translateY(-3px); text-decoration: none; }
.cp-member__social a svg { width: 16px; height: 16px; fill: currentColor; }

.cp-member__body { padding: 18px 18px 20px; text-align: center; }
.cp-member__body h3 { font: 700 17.5px var(--cp-head); text-transform: none; color: var(--cp-ink); margin: 0 0 4px; transition: color .35s; }
.cp-team__grid .cp-member:hover .cp-member__body h3 { color: var(--cp-p); }
.cp-member__body span { display: block; font: 500 13.5px var(--cp-body); color: var(--cp-muted); }
.cp-member__body span::before { content: ""; display: block; width: 24px; height: 2px; margin: 0 auto 10px; border-radius: 2px; background: linear-gradient(90deg, var(--cp-p), var(--cp-p2)); transform: scaleX(.6); transform-origin: center; transition: transform .45s var(--cp-ease); }
.cp-team__grid .cp-member:hover .cp-member__body span::before { transform: scaleX(1.6); }

/* =====================================================================
   FAQ ACCORDION
   ===================================================================== */
.cp-faq { padding: 110px 0; background: #fff; }
.cp-faq__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.cp-faq__head .cp-eyebrow::before { display: none; }
.cp-faq__list { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }

.cp-faq__item {
  border-radius: 18px; background: #fff; border: 1px solid var(--cp-line); overflow: hidden;
  transition: border-color .35s, box-shadow .45s var(--cp-ease), background .35s;
}
.cp-faq__item:hover { border-color: rgba(0,146,255,.3); }
.cp-faq__item.is-open { border-color: rgba(0,146,255,.34); background: linear-gradient(180deg, #f8fbff, #fff); box-shadow: 0 24px 50px -30px rgba(0, 146, 255, .5); }

.cp-faq__q {
  width: 100%; display: flex; align-items: center; gap: 18px; padding: 22px 24px;
  background: none; border: 0; text-align: left; cursor: pointer;
  font: 600 16.5px/1.45 var(--cp-head); color: var(--cp-ink);
  transition: color .3s;
}
.cp-faq__q:hover { color: var(--cp-p); }
.cp-faq__q:focus-visible { outline: 2px solid var(--cp-p); outline-offset: -4px; border-radius: 18px; }
.cp-faq__item.is-open .cp-faq__q { color: var(--cp-p); }
.cp-faq__q > span:first-child { flex: 1; min-width: 0; }

/* plus that rotates into a minus */
.cp-faq__mark { position: relative; flex: none; width: 34px; height: 34px; border-radius: 11px; background: #eef6ff; transition: background .35s, transform .45s var(--cp-ease); }
.cp-faq__mark::before, .cp-faq__mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; border-radius: 2px;
  background: var(--cp-p); transform: translate(-50%, -50%); transition: transform .45s var(--cp-ease), background .35s;
}
.cp-faq__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.cp-faq__item.is-open .cp-faq__mark { background: var(--cp-p); transform: rotate(180deg); }
.cp-faq__item.is-open .cp-faq__mark::before,
.cp-faq__item.is-open .cp-faq__mark::after { background: #fff; }
.cp-faq__item.is-open .cp-faq__mark::after { transform: translate(-50%, -50%) rotate(0deg); }

/* The height is animated by script, so a closed panel is simply 0 tall. */
.cp-faq__a { height: 0; overflow: hidden; transition: height .45s var(--cp-ease); }
.cp-faq__a > div { padding: 0 72px 24px 24px; font: 400 15px/1.75 var(--cp-body); color: var(--cp-muted); }
/* No script: never leave an answer unreachable. */
.no-js .cp-faq__a { height: auto; }

.cp-faq__foot { margin: 56px auto 0; max-width: 880px; text-align: center; }
.cp-faq__foot p { font: 400 16px/1.7 var(--cp-body); color: var(--cp-muted); margin: 0 0 20px; }

/* =====================================================================
   Scroll reveal + keyframes
   ===================================================================== */
.cp-io { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--cp-ease), transform .9s var(--cp-ease); transition-delay: var(--d, 0ms); }
.cp-io.in { opacity: 1; transform: none; }

@keyframes cpUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 991px) {
  .cp-hero { padding: 160px 0 110px; min-height: 0; }
  .cp-hero__top { top: 100px; }
  .cp-team { padding: 80px 0; }
  .cp-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .cp-faq { padding: 80px 0; }
}
@media (max-width: 767px) {
  /* The 80px mobile header is opaque and sits over the hero. */
  .cp-hero { padding: 140px 0 100px; display: block; }
  .cp-hero__top { top: 96px; }
  .cp-hero__title { font-size: clamp(30px, 8.6vw, 40px); }
  .cp-hero__lead { font-size: 15.5px; }

  /* Four pills never fit one row on a phone, so a 2x2 grid keeps every
     link visible instead of hiding the last behind a cut edge. */
  .cp-subnav { margin-top: -26px; }
  .cp-subnav__bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; overflow: visible; }
  .cp-subnav a { height: 42px; padding: 0 10px; font-size: 13px; justify-content: center; }

  .cp-team { padding: 64px 0; }
  .cp-team__head { margin-bottom: 36px; }
  .cp-team__grid { gap: 14px; }
  .cp-member { border-radius: 18px; }
  .cp-member__body { padding: 16px 14px 18px; }
  .cp-member__body h3 { font-size: 16px; }
  .cp-member__body span { font-size: 12.5px; }

  .cp-faq { padding: 64px 0; }
  .cp-faq__head { margin-bottom: 32px; }
  .cp-faq__q { padding: 18px 16px; gap: 14px; font-size: 15.5px; }
  .cp-faq__a > div { padding: 0 16px 20px 16px; font-size: 14.5px; }
  .cp-faq__foot { margin-top: 40px; }
  .cp-faq__foot .cp-btn { width: 100%; justify-content: center; }
}
@media (max-width: 575px) {
  .cp-eyebrow { font-size: 11px; letter-spacing: .14em; margin-bottom: 14px; }
  .cp-crumb { font-size: 10.5px; height: 34px; }
  .cp-h2 { font-size: clamp(24px, 6.6vw, 30px); }
}
@media (max-width: 399px) {
  .cp-team__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (hover: none) {
  /* No pointer: a tap would latch a portrait into its hover state, so the
     photos simply stay in colour and the card effects are dropped. */
  .cp-member__photo img { filter: none; transform: none; }
  .cp-member__photo::after { display: none; }
  .cp-member__social li { opacity: 1; transform: none; }
  .cp-member:hover, .cp-btn:hover { transform: none; }
  .cp-btn, .cp-subnav a, .cp-faq__q { -webkit-tap-highlight-color: rgba(0, 146, 255, .18); }
}
