/* ============================================================
   ARRAY Innovation — Marketing Components
   ------------------------------------------------------------
   Extends the Updated Design System (Obra shadcn) with the
   marketing-forward patterns this public site uses. The DS keeps
   product surfaces neutral — prism only on AI-affordant chrome —
   so none of the below should leak back into Spectrum AI.

   Load order: colors_and_type.css → styles.css → THIS FILE, so
   these rules override DS defaults where needed.
   ============================================================ */

/* Hero background video — shared by the home hero and the .page-hero bands.
   Keep `filter`/`mix-blend-mode` on the .hero-bg-video-layer wrapper, never on
   the <video>: either one directly on a video element drops iOS Safari off
   hardware decode, and under a long autoplaying loop that meant heat and
   "A problem repeatedly occurred" crashes. Blending the wrapper leaves the
   decode on the fast path. Mirrors the R&D globe/globe-video split. */
.hero-bg-video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  filter: saturate(0.9) brightness(0.98);
  mix-blend-mode: screen;
  mask-image: radial-gradient(
    ellipse 1700px 1080px at 50% 30%,
    #000 0%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 1700px 1080px at 50% 30%,
    #000 0%,
    transparent 75%
  );
}
.hero-bg-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Subpage heroes (.page-hero) reuse the same video + halo treatment as the home
   hero. The globe variant (R&D) has its own background layer, so it opts out. The
   copy sits in .container, lifted above the halo (z-index:2) with z-index:3. */
.page-hero:not(.page-hero--globe) > .container {
  z-index: 3;
}
/* Scrim above the video (below the hero content) so the motion only peeks
   through. The content wrapper (.hero-inner / .page-hero .container) sits above
   this. */
.hero::after,
.page-hero:not(.page-hero--globe)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Navy corner vignette — clear in the centre, deepening to navy at the
       edges so the video motion fades into the bloom-less corners (mirrors
       v3's inset-shadow vignette). Painted below .hero::before, so the violet
       and teal blooms still glow on top of it. */
    radial-gradient(
      ellipse 92% 88% at 50% 44%,
      transparent 52%,
      color-mix(in srgb, var(--bg-hero-navy) 80%, transparent) 100%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-hero-navy) 28%, transparent) 0%,
      color-mix(in srgb, var(--bg-hero-navy) 40%, transparent) 100%
    );
}
/* Corner halos — violet top-left, indigo bottom-right, centre left clear for
   the copy. Shares z-index:2 with .hero-inner but paints first (earlier in the
   DOM), so the text stays on top. Tune the alphas or ellipse sizes to taste. */
.hero::before,
.page-hero:not(.page-hero--globe)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(
      circle 300px at 16% 28%,
      rgba(126, 40, 245, 0.34),
      transparent 70%
    ),
    radial-gradient(
      ellipse 520px 440px at 100% 102%,
      rgba(48, 170, 182, 0.3),
      transparent 72%
    );
}
/* Still heroes (no background video — the legal pages and contact) have no
   motion competing with the glow, so the corner blooms read hotter there. Mute
   them a touch. Keyed off the ABSENCE of .hero-bg-video, so this applies on its
   own to any videoless hero and reverts automatically the moment a video is
   added — no modifier class to keep in sync, no !important. */
.page-hero:not(.page-hero--globe):not(:has(.hero-bg-video))::before {
  background:
    radial-gradient(
      circle 300px at 16% 28%,
      rgba(126, 40, 245, 0.15),
      transparent 70%
    ),
    radial-gradient(
      ellipse 520px 440px at 100% 102%,
      rgba(48, 170, 182, 0.12),
      transparent 72%
    );
}

/* ============================================================
   M-03 · Prism headline emphasis
   ------------------------------------------------------------
   Italic prism-clipped word emphasis used inside marketing
   headlines (h1/h2). Explicitly NOT for product copy — the DS
   forbids gradient text on Spectrum AI surfaces.
   Usage:  <h1>Turn data into <span class="prism-text">unfair advantage</span>.</h1>
   ============================================================ */
.prism-text {
  background: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
  padding-right: 0.08em;
}

/* ------------------------------------------------------------
   M-03a · Prism-clipped impact stats (company page)
   Applies the prism gradient to the first two impact-card
   numbers only (1,000+ and 500+). Marketing-only treatment;
   loads after styles.css so it overrides the base fg-1 color.
   ------------------------------------------------------------ */
.impact-cards .impact-card:nth-child(1) .impact-card-num,
.impact-cards .impact-card:nth-child(2) .impact-card-num {
  background: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   M-06 · Marketing eyebrow pill
   ------------------------------------------------------------
   A bordered round-pill variant of the eyebrow, used as a
   standalone tag above hero/CTA copy. Differs from the DS
   .eyebrow (which is plain uppercase text + dot).
   Usage:  <span class="mkt-eyebrow-pill">ASSEMBLED IN BAHRAIN</span>
   ============================================================ */
.mkt-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-1);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  line-height: 1.33;
}
/* Line break inside an eyebrow label; only active on phones (see below). */
.eyebrow-br {
  display: none;
}
@media (max-width: 767px) {
  .cta-block {
    container-type: inline-size;
  }
  .cta-block .mkt-eyebrow-pill--fit {
    white-space: nowrap;
    /* Tighten the tracking so the label can sit larger while still fitting. */
    letter-spacing: 0.07em;
    font-size: clamp(10px, 3.4cqi, 12px);
    padding: 8px 12px;
  }
  /* Services page keeps a smaller eyebrow than the shared default. */
  .page-services .mkt-eyebrow-pill--fit {
    display: inline-block;
    font-size: 11px;
    padding: 8px 16px;
  }
  /* The eyebrow-br only forces its line break on phones. inline-block
     above lets the <br> take effect (the base inline-flex pill ignores it). */
  .page-services .eyebrow-br {
    display: inline;
  }
}

/* ============================================================
   M-08 · Contact layout — form + direct lines
   ------------------------------------------------------------
   Two-column contact grid used on contact/index.html.
   Left: a lifted-glass form card. Right: direct-line routing
   rows, an office card and social links. Inputs follow the
   Obra field spec (h40, 8px radius, hairline border, prism
   focus ring) so they stay consistent with product surfaces.
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Inline email link + leading icon within contact content (de-inlined). */
.contact-inline-link {
  color: var(--fg-1);
  text-decoration: underline;
}
.contact-inline-icon {
  vertical-align: -2px;
  margin-right: 4px;
}

/* --- form card --- */
.contact-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 36px;
}
@media (max-width: 767px) {
  .contact-card {
    padding: 24px;
  }
}
.contact-card-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 0 0 4px;
}
.contact-card-sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.5;
  margin: 0 0 28px;
}

.contact-form {
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 8px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 767px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.field label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-2);
}
.field label .req {
  color: var(--prism-stop-violet);
  margin-left: 2px;
}
.field input,
.field select,
.field textarea {
  color-scheme: dark;
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-2);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: -0.01em;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea {
  height: auto;
  min-height: 132px;
  padding: 12px 16px;
  line-height: 1.55;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-3);
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--fg-3);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--focus-ring);
  background: rgba(0, 0, 0, 0.35);
}
/* select chevron */
.field-select {
  position: relative;
}
.field-select select {
  padding-right: 40px;
  cursor: pointer;
}
.field-select .field-chevron {
  position: absolute;
  right: 12px;
  bottom: 12px;
  pointer-events: none;
  color: var(--fg-3);
  width: 16px;
  height: 16px;
  transition: transform 140ms ease;
}

@supports (appearance: base-select) {
  .field select,
  .field select::picker(select) {
    appearance: base-select;
  }
  .field select {
    display: flex;
    align-items: center;
    min-block-size: 0;
    padding: 0 40px 0 16px;
  }
  .field select::picker(select) {
    background: var(--surface-well);
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    padding: 6px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }
  .field select option {
    padding: 9px 12px;
    border-radius: calc(var(--r-md) - 4px);
    color: var(--fg-2);
  }
  .field select option:hover,
  .field select option:focus {
    background: var(--bg-elevated);
    color: var(--fg-1);
  }
  .field select option:checked {
    color: var(--fg-1);
    font-weight: 600;
  }
  /* Hide the arrow this mode draws; .field-chevron is the one every browser shows.
     The per-option checkmark goes too — weight marks the current value. */
  .field select::picker-icon,
  .field select option::checkmark {
    display: none;
  }
  .field-select:has(select:open) .field-chevron {
    transform: rotate(180deg);
  }
}
.contact-form .btn {
  width: 100%;
  height: 44px;
  margin-top: 4px;
}
/* Inline qualifier on a label — the accepted types and size limit belong next
   to the control, not in a paragraph underneath it. */
.field-hint {
  font-weight: 400;
  color: var(--fg-3);
  font-size: 12px;
}
.contact-form input[type='file'] {
  display: flex;
  align-items: center;
  height: auto;
  padding: 9px 10px;
  border: 1px dashed var(--border-2);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.25);
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
}
.contact-form input[type='file']:hover {
  border-color: var(--fg-3);
}
.contact-form input[type='file']::file-selector-button {
  flex: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  /* gap on the flex parent handles the spacing */
  margin: 0 14px 0 0;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg-1);
  cursor: pointer;
  transition:
    background 140ms ease,
    border-color 140ms ease;
}
.contact-form input[type='file']::file-selector-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--fg-3);
}

/* Honeypot. Deliberately NOT display:none — bots that skip hidden fields would
   sail past it, so it is removed from the layout while remaining a real, filled-
   in-able input. aria-hidden + tabindex="-1" in the markup keep it away from
   screen readers and the tab order, so only a scripted submit ever fills it.
   Absolute positioning with clip-path avoids the horizontal scroll that a
   left:-9999px offset can cause. */
.cf-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Submission failure, shown in place rather than as an alert() so it can sit
   next to the button that caused it. Hidden via the [hidden] attribute until
   there is something to say. */
.contact-error {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: #f08a80;
  background: rgba(240, 138, 128, 0.08);
  border: 1px solid rgba(240, 138, 128, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0;
}
.contact-error[hidden] {
  display: none;
}

.contact-form .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-consent {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.5;
  text-align: center;
}
.contact-consent a {
  color: var(--fg-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* success state */
.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  min-height: 360px;
}
.contact-success.show {
  display: flex;
}
.contact-success .cs-mark {
  width: 64px;
  height: 64px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--prism-stop-violet) 14%, transparent);
  border: 1px solid
    color-mix(in srgb, var(--prism-stop-violet) 40%, transparent);
  color: var(--prism-stop-violet);
}
.contact-success .cs-mark svg {
  width: 30px;
  height: 30px;
}
.contact-success h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 0;
}
.contact-success p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg-3);
  margin: 0;
  max-width: 38ch;
  line-height: 1.55;
}

/* --- direct lines / info column --- */
.contact-aside {
  display: grid;
  gap: 16px;
}
.contact-routes {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 12px;
}
.contact-route {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 140ms ease;
}
.contact-route + .contact-route {
  border-top: 1px solid var(--border-1);
  border-radius: 0;
}
.contact-route:hover {
  background: rgba(255, 255, 255, 0.03);
}
.contact-route-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--prism-stop-violet) 12%, transparent);
  border: 1px solid
    color-mix(in srgb, var(--prism-stop-violet) 28%, transparent);
  color: var(--prism-stop-violet);
}
.contact-route-icon svg {
  width: 18px;
  height: 18px;
}
.contact-route-meta {
  display: grid;
  gap: 1px;
}
.contact-route-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: -0.01em;
}
.contact-route-value {
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  color: var(--fg-3);
}
.contact-route-arrow {
  margin-left: auto;
  color: var(--fg-3);
  width: 16px;
  height: 16px;
  transition: transform 140ms ease;
}
.contact-route:hover .contact-route-arrow {
  transform: translateX(3px);
  color: var(--fg-1);
}

.contact-office {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--border-1);
  border-radius: 16px;
  padding: 24px;
}
.contact-office h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 0 0 12px;
}
.contact-office h4 svg {
  width: 16px;
  height: 16px;
  color: var(--prism-stop-teal);
}
.contact-office address {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
}
.contact-office .office-hours {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-1);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.5;
}
.contact-social {
  display: flex;
  gap: 12px;
}
.contact-social a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    background 140ms ease,
    color 140ms ease,
    border-color 140ms ease;
}
.contact-social a:hover {
  background: color-mix(in srgb, var(--prism-stop-violet) 10%, transparent);
  border-color: color-mix(in srgb, var(--prism-stop-violet) 35%, transparent);
  color: var(--fg-1);
}
.contact-social a svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   M-09 · Vision & Mission statement cards
   ============================================================ */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 767px) {
  .vm-grid {
    grid-template-columns: 1fr;
  }
}
.vm-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid var(--border-1);
  border-radius: 18px;
  padding: var(--card-pad);
  position: relative;
  overflow: hidden;
}
.vm-card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 99px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--prism-stop-violet) 16%, transparent),
    transparent 70%
  );
  pointer-events: none;
}
.vm-card .eyebrow {
  margin-bottom: 16px;
}
.vm-card h3 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--fg-1);
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   M-10 · Leadership team grid
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
.team-card {
  display: flex;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--border-1);
  border-radius: 16px;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}
.team-card:hover {
  border-color: color-mix(in srgb, var(--prism-stop-violet) 40%, transparent);
  transform: translateY(-2px);
}

/* Photo fills the left column. Three stacked layers by z-index:
   ::before initials fallback (1) < .media-skeleton::after shimmer (1, later
   in tree so it paints above the initials) < img (3). The shimmer + reveal come
   from the shared .media-skeleton mechanism (styles.css); initMediaSkeletons()
   in app.js adds .is-loaded once the image settles and .is-error if it fails —
   revealing the initials underneath. */
.team-photo {
  position: relative;
  flex: 0 0 38%;
  min-width: 128px;
  align-self: stretch;
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--prism-stop-violet) 35%, transparent),
    color-mix(in srgb, var(--prism-stop-teal) 30%, transparent)
  );
}
.team-photo::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--neutral-0);
}
.team-photo img {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-photo.is-error img {
  display: none;
}
.team-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--card-pad);
}
@media (max-width: 1024px) {
  .team-card {
    flex-direction: column;
  }
  .team-photo {
    flex-basis: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}
.team-meta {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}
.team-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
.team-role {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--prism-stop-teal);
}
.team-bio {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-3);
  margin: 0 0 16px;
}
.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-tags span {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-1);
}

/* ============================================================
   M-11 · Culture values + social feed embeds
   ============================================================ */

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1024px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}

.social-tabs {
  display: none;
}
@media (max-width: 1024px) {
  .social-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: var(--r-lg);
    background: rgba(23, 23, 23, 0.96);
    border: 1px solid var(--border-1);
    position: sticky;
    top: 68px;
    z-index: 5;
    margin-bottom: 16px;
  }
  .social-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--r-md);
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-3);
    cursor: pointer;
    transition:
      background 140ms ease,
      color 140ms ease;
  }
  .social-tab svg {
    width: 16px;
    height: 16px;
  }
  .social-tab:hover {
    color: var(--fg-1);
  }
  .social-tab[aria-selected='true'] {
    background: rgba(255, 255, 255, 0.1);
    color: var(--fg-1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  .social-grid .social-embed[data-social-panel] {
    display: none;
  }
  .social-grid .social-embed[data-social-panel].is-active-panel {
    display: flex;
  }
}
.social-embed {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--border-1);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.social-embed-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-1);
}
.social-embed-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--neutral-0);
  overflow: hidden;
}
.social-embed-icon.li {
  background: #0a66c2;
}
.social-embed-icon.ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
}
.social-embed-icon svg {
  width: 20px;
  height: 20px;
}
.social-embed-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.social-embed-meta {
  display: grid;
  gap: 1px;
}
.social-embed-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-1);
}
.social-embed-handle {
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  color: var(--fg-3);
}
.social-embed-follow {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-2);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 140ms ease,
    border-color 140ms ease;
}
.social-embed-follow:hover {
  background: color-mix(in srgb, var(--prism-stop-violet) 12%, transparent);
  border-color: color-mix(in srgb, var(--prism-stop-violet) 35%, transparent);
}
.social-feed {
  padding: 16px;
  display: grid;
  gap: 12px;
}

/* Progressive disclosure — the culture feed reuses the shared collapse in
   styles.css: initShowMore tags it .is-collapsible, so it's capped at the first
   3 posts behind the "Show more" toggle on tablet/mobile only, and shows the
   full list on laptop/desktop. Post-type-agnostic, no !important. Only the
   button placement differs here: center it under the card, since the shared
   justify-self:start is a grid property that's inert in this flex column. */
@media (max-width: 1024px) {
  .social-feed + .show-more-btn {
    align-self: center;
    margin: 2px 16px 16px;
  }
}
.social-post {
  display: block;
  padding: var(--card-pad);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-1);
  text-decoration: none;
  color: inherit;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}
a.social-post:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.social-post .sp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.social-post .sp-dot {
  width: 26px;
  height: 26px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-2);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--fg-3);
  overflow: hidden;
}
.social-post .sp-dot svg {
  width: 13px;
  height: 13px;
}
.social-post .sp-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.social-post .sp-by {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-2);
}
.social-post .sp-time {
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  color: var(--fg-3);
  margin-left: auto;
}
.social-post p {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0;
  white-space: pre-line;
}
/* ============================================================
   M-12 · Events slideshow
   ------------------------------------------------------------
   Image carousel of ARRAY's event highlights: a large stage with
   prev/next controls and a live counter, a scrollable thumbnail
   strip, and a position bar. Auto-advances while on screen, pauses
   on hover. The detailed .events-list beside it stays the
   accessible source of truth; this is its visual companion.
   All slides/thumbs are injected from RND_EVENTS by rnd.js.
   ============================================================ */
.events-slideshow {
  position: relative;
  border: 1px solid var(--border-1);
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse 60% 80% at 60% 35%,
      color-mix(in srgb, var(--prism-stop-violet) 8%, transparent),
      transparent 70%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.008)
    );
  padding: 16px;
  margin-bottom: 28px;
}

/* image stage */
.ess-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  aspect-ratio: 16 / 10;
}
.ess-slides {
  position: absolute;
  inset: 0;
}
.ess-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms ease;
}
.ess-slide.active {
  opacity: 1;
  visibility: visible;
}
.ess-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* caption over the image: blurb + "name · location · year".
   A bottom scrim keeps the text legible over any photo. */
.ess-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 40px 20px 16px;
  background: linear-gradient(
    to top,
    rgba(8, 8, 12, 0.88) 0%,
    rgba(8, 8, 12, 0.55) 45%,
    transparent 100%
  );
  color: var(--fg-1);
}
.ess-caption-lead {
  margin: 0;
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1.35;
}
.ess-caption-meta {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--fg-3);
}

/* counter chip */
.ess-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-1);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(10, 10, 14, 0.75);
}

/* prev / next controls */
.ess-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.75);
  color: var(--fg-1);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}
.ess-nav:hover {
  background: color-mix(
    in srgb,
    var(--prism-stop-violet) 40%,
    rgba(10, 10, 14, 0.55)
  );
  border-color: color-mix(in srgb, var(--prism-stop-violet) 60%, transparent);
}
.ess-nav:active {
  transform: translateY(-50%) scale(0.94);
}
.ess-nav:focus-visible {
  outline: 2px solid var(--prism-stop-teal);
  outline-offset: 2px;
}
.ess-nav svg {
  width: 20px;
  height: 20px;
}
.ess-prev {
  left: 12px;
}
.ess-next {
  right: 12px;
}

/* thumbnail strip */
.ess-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.ess-thumbs::-webkit-scrollbar {
  display: none;
}
.ess-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.55;
  transition:
    opacity 160ms ease,
    border-color 160ms ease;
}
.ess-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ess-thumb:hover {
  opacity: 0.85;
}
.ess-thumb.active {
  opacity: 1;
  border-color: var(--prism-stop-violet);
}
.ess-thumb:focus-visible {
  outline: 2px solid var(--prism-stop-teal);
  outline-offset: 2px;
}

/* position bar (prism gradient, fills with the current index) */
.ess-progress {
  margin-top: 12px;
  height: 3px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ess-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--prism-stop-violet),
    var(--prism-stop-teal)
  );
  transition: width 400ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .ess-slide {
    transition: none;
  }
  .ess-progress-bar {
    transition: none;
  }
  .ess-thumbs {
    scroll-behavior: auto;
  }
}

/* slideshow + events list side-by-side.
   minmax(0, …) lets each track shrink below its content's min-width —
   without it the non-wrapping thumbnail strip forces the slideshow
   track to its full scroll width and the whole grid overflows. */
.events-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}
.events-split .events-slideshow {
  margin-bottom: 0;
  position: sticky;
  top: 90px;
}
@media (max-width: 1024px) {
  .events-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .events-split .events-slideshow {
    position: static;
    margin: 0 auto 28px;

    max-width: min(480px, 100%);
  }
}
.events-split .events-list {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   M-13 · About sub-section band heading
   ============================================================ */
.about-band {
  margin: 40px 0 24px;
}
.about-band .eyebrow {
  margin-bottom: 12px;
}
.about-band h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 0 0 8px;
  line-height: 1.2;
}
.about-band p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-3);
  margin: 0;
  max-width: 62ch;
}

/* ============================================================
   M-14 · Expanded social post (image + engagement)
   ------------------------------------------------------------
   Used on the Culture page feed — each post carries a photo
   placeholder and an engagement row.
   ============================================================ */
.sp-photo {
  margin: 8px 0 12px;
  height: 440px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--border-1);
  background:
    radial-gradient(
      circle at 28% 32%,
      color-mix(in srgb, var(--prism-stop-violet) 28%, transparent),
      transparent 60%
    ),
    radial-gradient(
      circle at 75% 70%,
      color-mix(in srgb, var(--prism-stop-teal) 24%, transparent),
      transparent 60%
    ),
    var(--surface-well);
}
.sp-photo svg {
  width: 30px;
  height: 30px;
  position: relative;
}
.sp-photo img,
.sp-photo video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* opt-in per image: crop tight instead of letterboxing (set image.fit = "cover").
   Optionally set image.position (e.g. "center 30%") to choose which part of
   the image survives the crop — defaults to centered. */
.sp-photo.is-cover img,
.sp-photo.is-cover video {
  object-fit: cover;
}
.sp-engage {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-1);
}
.sp-engage span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-3);
}
.sp-engage svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   M-15 · Investor feature (Mumtalakat)
   ------------------------------------------------------------
   Photo + governance copy, replacing the plain investor strip
   in the About section.
   ============================================================ */
.investor-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border: 1px solid var(--border-1);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  margin-bottom: 28px;
}
@media (max-width: 1024px) {
  .investor-feature {
    grid-template-columns: 1fr;
  }
}
.investor-feature .if-media {
  position: relative;
  min-height: 100%;
  border-right: 1px solid var(--border-1);
  background: #0d0d12;
}
@media (max-width: 1024px) {
  .investor-feature .if-media {
    border-right: 0;
    border-bottom: 1px solid var(--border-1);
  }
}
.investor-feature .if-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.investor-feature .if-body {
  padding: var(--card-pad-feature);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.investor-feature .if-body .eyebrow {
  margin-bottom: 16px;
}
.investor-feature .if-body h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg-1);
  margin: 0 0 12px;
  text-wrap: pretty;
}
.investor-feature .if-body p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
}
.investor-feature .if-body strong {
  color: var(--fg-1);
}
