/* ============================================================
   THE TRIBE — About page
   Built on the v2 token system (Anton + Hanken, ink + lime, the dot
   signature). New section layouts only; everything inherits the homepage
   colour, type, spacing, button and card language.
   ============================================================ */

.about-page {
  --ab-card: linear-gradient(165deg, rgba(20,20,34,0.92), rgba(9,9,20,0.96));
}

/* Eyebrows are hidden site-wide on the homepage; the About page uses them. */
.about-page .eyebrow { display: inline-flex; }

/* ---- Ambient atmosphere: faint dot grid + drifting lime signals ---- */
.ab-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 82% -5%, rgba(193,253,58,0.06), transparent 55%),
    radial-gradient(90% 60% at 5% 105%, rgba(123,97,255,0.06), transparent 60%);
}
.ab-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.045) 1.1px, transparent 1.1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(125% 90% at 50% 18%, #000 28%, transparent 82%);
  mask-image: radial-gradient(125% 90% at 50% 18%, #000 28%, transparent 82%);
}
/* ---- Section rhythm ---- */
.ab-sec { position: relative; padding-block: clamp(64px, 10vw, 148px); }

/* ---- Shared section head ---- */
.ab-head { max-width: 940px; margin-bottom: clamp(34px, 5vw, 62px); }
.ab-head .eyebrow { margin-bottom: 20px; color: var(--muted); }
.ab-head .eyebrow .dot { box-shadow: 0 0 0 4px rgba(193,253,58,0.14); }
.ab-h { color: var(--white); margin-bottom: 22px; }
.ab-head__copy { max-width: 62ch; }
.ab-lime { color: var(--lime); }

.ab-head--split {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 64px); align-items: end; max-width: none;
}
.ab-head--split .ab-h { margin-bottom: 0; }
.ab-head--split .ab-head__copy { padding-bottom: 6px; }

/* ============================================================
   1. HERO — copy + interactive activation stage
   ============================================================ */
.ab-hero {
  position: relative; overflow: hidden;
  padding-top: clamp(120px, 16vh, 196px);
  padding-bottom: clamp(56px, 9vw, 116px);
}
.ab-hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 62px); align-items: center;
}
.ab-hero__copy { position: relative; z-index: 2; }
.ab-hero__copy .eyebrow { margin-bottom: 26px; color: var(--lime); }
.ab-hero__copy .eyebrow .dot { box-shadow: 0 0 0 4px rgba(193,253,58,0.16); }
.ab-hero__title {
  font-size: clamp(40px, 5.6vw, 90px); line-height: 0.9;
  margin-bottom: clamp(22px, 2.6vw, 34px);
}
.ab-hero__lead { max-width: 46ch; display: grid; gap: 15px; }
.ab-hero__lead p { color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; }
.ab-hero__lead b { color: var(--white); font-weight: 700; }
.ab-hero__cta {
  margin-top: clamp(26px, 3vw, 38px);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px;
}

/* ---- Section-spanning activation background ---- */
.ab-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ab-hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  will-change: transform;
}
.ab-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 3%, rgba(6,6,22,0.86) 30%, rgba(6,6,22,0.34) 60%, rgba(6,6,22,0.58) 100%),
    linear-gradient(180deg, rgba(6,6,22,0.3), transparent 28%, rgba(6,6,22,0.5));
}

/* ---- Stage: positioning layer for orbit rings + pills over the booth ---- */
.ab-stage { position: relative; z-index: 1; aspect-ratio: 1 / 1.05; width: 100%; }

/* Dashed orbit rings + pulsing signal nodes */
.ab-stage__orbits { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.ab-orbit {
  position: absolute; top: 47%; left: 57%; translate: -50% -50%;
  aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(193,253,58,0.32);
}
.ab-orbit--1 { width: 50%; animation: abSpin 46s linear infinite; }
.ab-orbit--2 { width: 78%; border-color: rgba(193,253,58,0.2); animation: abSpin 78s linear infinite reverse; }
.ab-orbit--3 { width: 110%; border-color: rgba(255,255,255,0.07); animation: abSpin 118s linear infinite; }
@keyframes abSpin { to { rotate: 360deg; } }
.ab-node {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 14px rgba(193,253,58,0.9);
  animation: blip 1900ms ease-out infinite;
}
.ab-node--1 { top: 15%; left: 87%; }
.ab-node--2 { top: 72%; left: 7%; animation-delay: -900ms; }

/* Icon pills float around the stage (positioned by --N) */
.ab-pills { position: absolute; inset: 0; pointer-events: none; }
.ab-pill {
  position: absolute; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 16px 11px 11px; border-radius: 16px;
  background: rgba(11,11,24,0.74); border: 1px solid var(--line-2);
  box-shadow: 0 22px 46px -26px rgba(0,0,0,0.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translate(var(--px, 0px), calc(var(--py, 0px) - var(--lift, 0px)));
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform; animation: floaty 7s ease-in-out infinite;
}
.ab-pill__ic {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center; color: var(--lime);
  background: rgba(193,253,58,0.08); border: 1px solid rgba(193,253,58,0.22);
  transition: background var(--dur) var(--ease);
}
.ab-pill__ic svg { width: 21px; height: 21px; }
.ab-pill__tx { width: 6.6em; font-weight: 600; font-size: 14px; line-height: 1.12; color: var(--white); }
.ab-pill:hover {
  --lift: 7px; border-color: rgba(193,253,58,0.5);
  box-shadow: 0 28px 56px -22px rgba(0,0,0,1), 0 0 0 1px rgba(193,253,58,0.16);
}
.ab-pill:hover .ab-pill__ic { background: rgba(193,253,58,0.18); }

.ab-pill--1 { top: 3%;   left: 1%;  animation-delay: 0s; }
.ab-pill--2 { top: 12%;  right: 0%;  animation-delay: -1.3s; }
.ab-pill--3 { top: 45%;  left: -5%;  animation-delay: -2.6s; }
.ab-pill--4 { top: 54%;  right: -4%; animation-delay: -3.8s; }
.ab-pill--5 { bottom: 6%; left: 5%;  animation-delay: -5.1s; }

/* ============================================================
   2. MOMENT-BUILDING SYSTEM — the pipeline
   ============================================================ */
.ab-flow { display: flex; align-items: stretch; }
.ab-step {
  flex: 1 1 0; min-width: 0; position: relative;
  background: var(--ab-card); border: 1px solid var(--line-2); border-radius: 18px;
  padding: clamp(15px, 1.5vw, 22px);
  display: flex; flex-direction: column; gap: 8px;
}
.ab-step__idx {
  font-family: var(--f-display); font-size: 13px; color: var(--lime); letter-spacing: 0.06em;
}
.ab-step__label {
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(19px, 2vw, 30px); line-height: 1; color: var(--white);
}
.ab-step__note { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.ab-conn {
  flex: 0 0 clamp(18px, 3vw, 52px); align-self: center;
  height: 2px; position: relative;
  background: linear-gradient(90deg, rgba(193,253,58,0.55), rgba(193,253,58,0.18));
}
.ab-conn::after {
  content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  border-left: 6px solid var(--lime);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.ab-conn__pulse {
  position: absolute; top: 50%; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 10px rgba(193,253,58,0.9);
  transform: translate(-50%, -50%);
  animation: abPulse 2.6s var(--ease) infinite; animation-delay: var(--d, 0s);
}
@keyframes abPulse {
  0% { left: 0; opacity: 0; } 14% { opacity: 1; }
  86% { opacity: 1; } 100% { left: 100%; opacity: 0; }
}

/* ============================================================
   3. SAUDI MARKET — compact truth cards
   ============================================================ */
.ab-mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.ab-mcard {
  position: relative; background: var(--ab-card); border: 1px solid var(--line);
  border-radius: 20px; padding: clamp(18px, 1.9vw, 28px);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ab-mcard:hover { border-color: rgba(193,253,58,0.4); transform: translateY(-4px); }
.ab-mcard__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 4px rgba(193,253,58,0.14); display: block; margin-bottom: 16px;
}
.ab-mcard__title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(18px, 1.6vw, 25px); line-height: 1.02; color: var(--white); margin-bottom: 9px;
}
.ab-mcard__note { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ============================================================
   4. SCREEN TO STREET — 2x2 bridge cards
   ============================================================ */
.ab-bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 1.5vw, 20px); }
.ab-bcard {
  position: relative; overflow: hidden;
  background: var(--ab-card); border: 1px solid var(--line);
  border-radius: 22px; padding: clamp(22px, 2.4vw, 38px);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ab-bcard::before {
  content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 3px; background: var(--lime);
}
.ab-bcard:hover { border-color: rgba(193,253,58,0.4); transform: translateY(-4px); }
.ab-bcard__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 16px;
}
.ab-bcard__title {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(24px, 2.5vw, 40px); line-height: 1; color: var(--white); margin-bottom: 12px;
}
.ab-bcard__note { font-size: 14.5px; color: var(--muted); line-height: 1.5; max-width: 44ch; }

/* ============================================================
   5. BELIEF — typography moment
   ============================================================ */
.ab-belief {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(193,253,58,0.035) 50%, transparent);
}
.ab-belief__inner { max-width: 1000px; margin-inline: auto; }
.ab-belief__title {
  font-size: clamp(34px, 5.4vw, 82px); line-height: 0.96; color: var(--white); margin-bottom: 28px;
}
.ab-underline { position: relative; white-space: nowrap; }
.ab-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.04em; height: 0.08em;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform 950ms var(--ease) 220ms;
}
.reveal.is-in .ab-underline::after { transform: scaleX(1); }
.ab-belief__copy {
  max-width: 56ch; margin-inline: auto; color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55;
}

/* ============================================================
   6. DISCIPLINES — staggered tilt tags
   ============================================================ */
.ab-tags { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.2vw, 18px); max-width: 1040px; }
.ab-tag {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 14px 22px; border-radius: 16px;
  background: var(--ab-card); border: 1px solid var(--line-2);
  font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(16px, 1.5vw, 23px); letter-spacing: 0.01em; color: var(--white);
  transition: transform var(--dur) var(--ease-snap), border-color var(--dur) var(--ease);
}
.ab-tag:nth-child(odd)  { transform: rotate(-2deg); }
.ab-tag:nth-child(even) { transform: rotate(1.6deg) translateY(8px); }
.ab-tag:nth-child(3n)   { transform: rotate(-1deg) translateY(-6px); }
.ab-tag:hover { transform: rotate(0) translateY(-3px); border-color: var(--lime); }

/* ============================================================
   7. CTA — inherits .cta from v2.css; smaller headline + spacing
   ============================================================ */
.ab-cta .cta__title { font-size: clamp(36px, 5.4vw, 84px); line-height: 0.92; }
.ab-cta .cta__actions { flex-wrap: wrap; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .ab-head--split { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .ab-mgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .ab-hero__inner { grid-template-columns: 1fr; gap: 38px; }

  /* Hero: strongly darkened section background + static pill grid */
  .ab-hero__bg img { object-position: 62% 24%; }
  .ab-hero__bg::after { background: linear-gradient(180deg, rgba(6,6,22,0.8), rgba(6,6,22,0.93)); }
  .ab-stage { aspect-ratio: auto; }
  .ab-stage__orbits { display: none; }
  .ab-pills { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ab-pill { position: static; display: flex; transform: none; animation: none; }
  .ab-pill--1, .ab-pill--2, .ab-pill--3, .ab-pill--4, .ab-pill--5 {
    position: static; top: auto; left: auto; right: auto; bottom: auto;
  }
  .ab-pill__tx { width: auto; }

  /* Pipeline becomes vertical */
  .ab-flow { flex-direction: column; align-items: stretch; }
  .ab-conn {
    flex: 0 0 auto; width: 2px; height: clamp(20px, 6vw, 34px);
    align-self: flex-start; margin-left: clamp(22px, 7vw, 32px);
    background: linear-gradient(180deg, rgba(193,253,58,0.55), rgba(193,253,58,0.18));
  }
  .ab-conn::after {
    right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%);
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 6px solid var(--lime); border-bottom: none;
  }
  .ab-conn__pulse { left: 50%; top: 0; animation-name: abPulseV; }

  .ab-bgrid { grid-template-columns: 1fr; }
}
@keyframes abPulseV {
  0% { top: 0; opacity: 0; } 14% { opacity: 1; }
  86% { opacity: 1; } 100% { top: 100%; opacity: 0; }
}

@media (max-width: 560px) {
  .ab-mgrid { grid-template-columns: 1fr; }
  .ab-tag { padding: 12px 17px; font-size: 16px; }
  .ab-tag:nth-child(odd),
  .ab-tag:nth-child(even),
  .ab-tag:nth-child(3n) { transform: none; }
  .ab-tag:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .ab-pill, .ab-conn__pulse,
  .ab-orbit, .ab-node { animation: none !important; }
  .ab-underline::after { transition: none; transform: scaleX(1); }
}
