/* =========================================================================
   <AboutHero /> — §1 of /about
   Build Packet 21 v2 — Section 3.
   Deep Navy. Two-column: text left, founder portrait right with lime ring.
   ========================================================================= */

.ab-hero {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.ab-hero::before {
  content: "";
  position: absolute;
  inset: -12%;                       /* overscan so the drifting wash never reveals an edge */
  background:
    radial-gradient(700px 500px at 50% -6%, rgba(255,255,255,0.045), transparent 60%),
    radial-gradient(1100px 580px at 88% 18%, rgba(232,180,0,0.10), transparent 70%),
    radial-gradient(900px 480px at 4% 100%, rgba(255,255,255,0.03), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ab-hero-aurora 22s ease-in-out infinite;
  will-change: transform;
}
/* "felt, not seen" — a slow, sub-2% drift so the navy never reads dead-flat */
@keyframes ab-hero-aurora {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(1.8%, -1.4%, 0) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .ab-hero::before { animation: none; }
}

.ab-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 160px var(--container-pad) 120px;
}

/* ---------- text column (centered stack) ---------------------------------- */
.ab-hero__text {
  min-width: 0;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.ab-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 28px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.ab-hero__eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--color-accent);
}
/* Underline-draw: the lime hairline grows in as the eyebrow reveals. Only when
   JS arms the page (.ab-reveal-armed); no-JS visitors see the full 28px rule. */
.ab-reveal-armed .ab-hero__eyebrow::before {
  width: 0;
  transition: width 520ms var(--ease-out-soft) 220ms;
}
.ab-reveal-armed .ab-hero__eyebrow.is-visible::before { width: 28px; }
@media (prefers-reduced-motion: reduce) {
  .ab-reveal-armed .ab-hero__eyebrow::before { width: 28px; transition: none; }
}

.ab-hero__title {
  margin: 0 auto 28px;
  font-family: var(--font-display);   /* → Anybody (scoped #main token) */
  font-weight: 800;
  font-size: clamp(30px, 5.6vw, 62px); /* lower floor: Anybody is wider than Inter — keeps mobile in-bounds */
  line-height: 1.05;
  letter-spacing: -0.03em;            /* Anybody runs heavy/wide — tighten at display size */
  color: #fff;
  text-wrap: balance;
  max-width: 18ch;
}
/* Lime highlighter — navy text on a lime block (AAA contrast), identical to
   the homepage .vh-mark so every heading marker on the site matches exactly. */
.ab-hero__title em {
  font-style: normal;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 900;
  padding: 0.04em 0.14em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ab-hero__sub {
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  text-wrap: pretty;
}

/* Tiny longevity strip below the sub. */
.ab-hero__chips {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.ab-hero__chips li {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.78);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.ab-hero__chips li strong {
  color: var(--color-accent);
  font-weight: 700;
  margin-right: 6px;
  letter-spacing: 0;
}
/* Count-up numbers: Anybody for punch, tabular figures so digits don't jitter.
   Only the animating "100%" chip (the one with a suffix) reserves width and
   right-aligns, so the count never reflows the row — the others stay natural. */
.ab-hero__chip-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.ab-hero__chip-num[data-count-suffix] {
  display: inline-block;
  min-width: 3.2ch;
  text-align: right;
}

/* ---------- image gallery (floating "studio trio") ----------------------- */
/* Three full-frame studio photos floating freely on the navy, each wrapped in a
   rich gold halo. No enclosing panel — the photos read as luminous, levitating
   evidence cards. Shown at their native 11:6 ratio so nothing is cropped. */
.ab-hero__gallery {
  margin: 72px auto 0;
  max-width: 1200px;
  display: grid;
  /* unequal columns → varied card sizes (a = biggest lead shot, b smallest, c mid) */
  grid-template-columns: 1.32fr 0.9fr 1.06fr;
  gap: 26px;
  /* start-aligned so the per-card margin-top offsets stagger the heights */
  align-items: start;
}
.ab-hero__shot {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  /* Branded empty state: diagonal hatch over a navy gradient. A real photo
     dropped into the <img> covers this; if the file is missing the <img> is
     removed (onerror) and this designed placeholder remains. */
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 16px),
    linear-gradient(155deg, #16264D 0%, #0A1A3F 60%, #07153A 100%);
  /* rich gold halo: crisp ring → soft inner bloom → radiant glow → float shadow */
  box-shadow:
    0 0 0 1px rgba(232,180,0,0.55),
    0 0 0 4px rgba(232,180,0,0.12),
    0 0 28px -2px rgba(232,180,0,0.50),
    0 0 70px -10px rgba(232,180,0,0.34),
    0 26px 50px -22px rgba(0,0,0,0.60);
  /* cloud-like levitation — buoyant rise/fall + faint breathing scale.
     transform-only → GPU; per-card duration set below; off for reduced-motion. */
  animation: ab-float 7s ease-in-out infinite;
  transition: box-shadow .4s var(--ease-out-soft);
}
@keyframes ab-float {
  0%   { transform: translateY(-11px) scale(1);     }
  50%  { transform: translateY(9px)   scale(1.012); }
  100% { transform: translateY(-11px) scale(1);     }
}
/* designed placeholder layer */
.ab-hero__shot-ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ab-hero__shot-ph::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(232,180,0,0.5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.ab-hero__shot-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 12vw, 116px);
  line-height: 1;
  color: rgba(232,180,0,0.16);
  user-select: none;
}
/* Slot label — lifted ABOVE the photo (z-index 3) so 01·Team / 02·Build /
   03·Founder stay legible once a real image drops in, not just on the
   placeholder. Sits on the scrim for guaranteed contrast over any photo. */
.ab-hero__shot-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 3;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  padding: 5px 10px;
  border: 1px solid rgba(232,180,0,0.42);
  border-radius: 999px;
  background: rgba(7,21,58,0.42);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}
/* photo (when present) sits above the placeholder; a slow zoom on hover gives
   the collage life (transform-only → GPU, reduced-motion-guarded below). */
.ab-hero__shot img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s var(--ease-out-soft);
}
.ab-hero__shot:hover img { transform: scale(1.06); }
/* Bottom scrim (z-index 2) — sits over the photo, under the label, so the
   tag keeps ≥4.5:1 contrast on bright or busy images. Harmless over the
   placeholder (a faint base shade). */
.ab-hero__shot-scrim {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(7,21,58,0.86) 0%,
    rgba(7,21,58,0.46) 42%,
    rgba(7,21,58,0) 100%
  );
}
/* Framing ring drawn ABOVE the photo so the edge + gold hover frame read on
   real images, not just the placeholder. */
.ab-hero__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
  transition: box-shadow .4s var(--ease-out-soft);
}
.ab-hero__shot:hover::after {
  box-shadow: inset 0 0 0 1.5px rgba(232,180,0,0.65);
}
/* All three full-frame at native 11:6 — every photo seen in full, no crop. */
.ab-hero__shot--a,
.ab-hero__shot--b,
.ab-hero__shot--c { aspect-ratio: 11 / 6; }
/* desync the float — different periods + phases read as three independent clouds.
   margin-top staggers each card's resting level (not transform → float bob is free). */
.ab-hero__shot--a { animation-duration: 7s;   animation-delay: 0s;    margin-top: 40px; }
.ab-hero__shot--b { animation-duration: 8.5s; animation-delay: -3s;   margin-top: 0; }
.ab-hero__shot--c { animation-duration: 7.6s; animation-delay: -1.5s; margin-top: 74px; }
/* tiny per-slot variation so the ghost monograms aren't identical */
.ab-hero__shot--a .ab-hero__shot-mark { transform: rotate(-6deg); }
.ab-hero__shot--b .ab-hero__shot-mark { transform: rotate(4deg) scale(1.08); }
.ab-hero__shot--c .ab-hero__shot-mark { transform: rotate(-2deg) scale(0.94); }
/* hover: hold the float in place and bloom the halo brighter/wider (the lift is
   expressed through light, not a transform that would fight the keyframe) */
.ab-hero__shot:hover {
  animation-play-state: paused;
  box-shadow:
    0 0 0 1.5px rgba(244,192,28,0.80),
    0 0 0 6px rgba(232,180,0,0.16),
    0 0 36px 0 rgba(232,180,0,0.62),
    0 0 96px -6px rgba(232,180,0,0.45),
    0 30px 60px -22px rgba(0,0,0,0.62);
}

/* ---------- responsive ---------------------------------------------------- */
@media (max-width: 900px) {
  .ab-hero__inner {
    padding: 128px var(--container-pad) 96px;
  }
  .ab-hero__gallery {
    margin-top: 56px;
    gap: 18px;
  }
  /* keep the scatter but with gentler offsets so the taller collage still fits */
  .ab-hero__shot--a { margin-top: 24px; }
  .ab-hero__shot--b { margin-top: 0; }
  .ab-hero__shot--c { margin-top: 44px; }
}
@media (max-width: 540px) {
  .ab-hero__inner { padding: 104px 18px 72px; }
  .ab-hero__gallery {
    margin-top: 44px;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 440px;
  }
  /* phones: tidy equal stack — reset sizes & offsets, keep native 11:6 (full image) */
  .ab-hero__shot--a,
  .ab-hero__shot--b,
  .ab-hero__shot--c { aspect-ratio: 11 / 6; margin-top: 0; }
  /* trim the glow radius so the halo doesn't bleed to the screen edges */
  .ab-hero__shot {
    box-shadow:
      0 0 0 1px rgba(232,180,0,0.55),
      0 0 0 3px rgba(232,180,0,0.12),
      0 0 22px -2px rgba(232,180,0,0.46),
      0 0 48px -10px rgba(232,180,0,0.30),
      0 18px 36px -18px rgba(0,0,0,0.58);
  }
}

/* respect reduced-motion: hold the cards still (halo stays) */
@media (prefers-reduced-motion: reduce) {
  .ab-hero__shot {
    animation: none;
    transform: none;
  }
}

/* =========================================================================
   Hero CTA pair + trust line — the conversion path the hero was missing.
   One dominant action (lime pill) + one quiet secondary (ghost outline).
   ========================================================================= */
.ab-hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 40px 0 0;
}
.ab-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;                 /* ≥44px touch target */
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease-out-soft),
              box-shadow 220ms var(--ease-out-soft),
              background 220ms var(--ease-out-soft),
              border-color 220ms var(--ease-out-soft),
              color 220ms var(--ease-out-soft);
}
/* primary — lime pill, navy text, the single dominant action */
.ab-hero__cta--primary {
  background: linear-gradient(180deg, var(--color-accent-hi), var(--color-accent));
  color: var(--color-primary);
  box-shadow: 0 8px 28px -10px rgba(232, 180, 0, 0.45);
}
.ab-hero__cta--primary:hover {
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-dark));
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -10px rgba(232, 180, 0, 0.55);
}
.ab-hero__cta--primary:active { transform: translateY(0) scale(0.985); }
.ab-hero__cta--primary:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.ab-hero__cta-arrow {
  display: inline-block;
  transition: transform 200ms var(--ease-out-soft);
}
.ab-hero__cta--primary:hover .ab-hero__cta-arrow { transform: translateX(4px); }

/* secondary — ghost / outline, visually subordinate */
.ab-hero__cta--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  font-weight: 600;
}
.ab-hero__cta--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(232, 180, 0, 0.55);
  transform: translateY(-2px);
}
.ab-hero__cta--ghost:active { transform: translateY(0); }
.ab-hero__cta-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(232, 180, 0, 0.16);
  flex: 0 0 auto;
}
.ab-hero__cta-play svg { width: 12px; height: 12px; fill: var(--color-accent); margin-left: 1px; }

/* Availability micro-line — mirrors the footer booking truth, lime ping dot.
   Honest soft-scarcity, no fabricated "N slots left." */
.ab-hero__avail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 20px auto 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
}
.ab-hero__avail-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  flex: 0 0 auto;
}
.ab-hero__avail-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-accent);
  animation: ab-hero-ping 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ab-hero-ping {
  0%        { transform: scale(1);   opacity: 0.7; }
  75%, 100% { transform: scale(2.6); opacity: 0;   }
}

/* Gold corner-tick — lifted to the shot itself (z-index 3) so it frames the
   real photo as an intentional editorial mark, not just the empty placeholder. */
.ab-hero__shot::before {
  content: "";
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  width: 16px; height: 16px;
  border-top: 2px solid rgba(232, 180, 0, 0.7);
  border-left: 2px solid rgba(232, 180, 0, 0.7);
  border-radius: 3px 0 0 0;
  pointer-events: none;
}
.ab-hero__shot:active { transform: scale(0.99); }

@media (max-width: 540px) {
  .ab-hero__title {
    font-size: clamp(26px, 7.4vw, 34px);
    max-width: 100%;
    text-wrap: pretty;              /* balance can overflow with the inline highlighter on narrow widths */
    overflow-wrap: break-word;
  }
  .ab-hero__cta-row { flex-direction: column; align-items: stretch; }
  .ab-hero__cta { justify-content: center; }
  .ab-hero__avail {
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    max-width: 92%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ab-hero__avail-dot::after { animation: none; }
  .ab-hero__cta,
  .ab-hero__cta-arrow { transition: none; }
  .ab-hero__cta:active,
  .ab-hero__shot:active { transform: none; }
  .ab-hero__shot img { transition: none; }
  .ab-hero__shot:hover img { transform: none; }
}
