/* =========================================================================
   <Charter /> — §5 of /about (Wedge W8)
   Build Packet 21 v2 — Section 7.
   Deep Navy. 3×2 grid of six commitments. Lime border-top per tile.
   ========================================================================= */

.ab-charter {
  /* === LIGHT SPEC-SHEET BAND (white) ==================================
     A clean "contract/document" ground; tiles step down to off-white so
     they read as elevated cards. Revert by restoring the navy values. */
  --band-bg:      var(--color-primary);       /* light: var(--color-surface-elev) */
  --band-ink:     #fff;                        /* light: var(--color-ink)          */
  --band-body:    rgba(255,255,255,.72);       /* light: var(--color-ink-soft)     */
  --band-muted:   rgba(255,255,255,.55);       /* light: var(--color-muted)        */
  --band-tile:    #1A2A4F;                     /* light: var(--color-surface)      */
  --band-tile-up: #1F2D49;                     /* light: var(--color-surface-elev) */
  --band-border:  rgba(255,255,255,.06);       /* light: var(--color-border)       */

  position: relative;
  background: var(--band-bg);
  color: var(--band-ink);
  overflow: hidden;
  isolation: isolate;
}
.ab-charter::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(232,180,0,0.05), transparent 70%),
    radial-gradient(700px 400px at 0% 100%, rgba(10,26,63,0.02), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* navy hairline seam at the top edge (mission navy → charter light) */
.ab-charter::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.02) 12%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.02) 88%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.ab-charter__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 140px) var(--container-pad);
}

.ab-charter__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
  margin: 0 0 56px;
}

.ab-charter__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--band-body);          /* text→ink-soft on light; hairline stays lime */
}
.ab-charter__eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--color-accent);
}

.ab-charter__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--band-ink);
  text-wrap: balance;
  max-width: 18ch;
}
/* Lime highlighter — identical to the homepage .vh-mark for a consistent
   heading marker across the site. */
.ab-charter__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-charter__sub {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--band-body);
  max-width: 44ch;
  text-wrap: pretty;
  align-self: end;
}

/* ---------- grid --------------------------------------------------------- */
.ab-charter__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: ct;
}

/* ---------- tile --------------------------------------------------------- */
.ab-ct {
  position: relative;
  counter-increment: ct;
  background: var(--band-tile);
  border-radius: 14px;
  /* signature lime top-bar (inset, so all corners stay round) + hairline frame
     + real elevation so the tile floats off the white ground */
  box-shadow:
    inset 0 2px 0 0 var(--color-accent),
    inset 0 0 0 1px var(--band-border),
    var(--elev-2);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition:
    background 220ms var(--ease-out-soft),
    transform 220ms var(--ease-out-soft),
    box-shadow 220ms var(--ease-out-soft);
}
.ab-ct:hover {
  background: var(--band-tile-up);
  transform: translateY(-3px);
  box-shadow:
    inset 0 3px 0 0 var(--color-accent),       /* top-bar grows 2px → 3px */
    inset 0 0 0 1px rgba(232,180,0,0.45),
    var(--elev-3);
}
.ab-ct:active { transform: scale(0.985); }
.ab-ct::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(closest-side, rgba(232,180,0,0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}
.ab-ct:hover::after { opacity: 1; }
/* oversized ghost numeral behind the content — designed spec-sheet rhythm */
.ab-ct::before {
  content: counter(ct, decimal-leading-zero);
  position: absolute;
  top: 8px; right: 18px;
  font-family: var(--font-display);            /* Anybody */
  font-weight: 900;
  font-size: 66px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 0;
}
/* keep real content above the ghost numeral */
.ab-ct__num, .ab-ct__name, .ab-ct__body { position: relative; z-index: 1; }

.ab-ct__num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--color-accent);                  /* lime reads on navy */
  margin: 0;
}
.ab-ct__num::after {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(232,180,0,0.7);
}

.ab-ct__name {
  margin: 0;
  font-family: "Inter", var(--font-body);   /* small heading — Inter, not chunky Anybody */
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--band-ink);
  text-wrap: balance;
}

.ab-ct__body {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--band-body);
  text-wrap: pretty;
}

/* Bottom commitment sentence — a centred "sealed commitment" focal card. */
.ab-charter__seal {
  position: relative;
  overflow: hidden;
  margin: 64px auto 0;
  max-width: 720px;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  border-radius: 18px;
  /* Elevated navy panel under the gold gloss → reads as a real "sealed" card,
     not just a glow on the band. */
  background:
    radial-gradient(130% 120% at 50% -10%, rgba(232,180,0,0.13), rgba(232,180,0,0.02) 55%, transparent 80%),
    linear-gradient(180deg, #1B2B50, #15223E);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  box-shadow:
    0 36px 80px -36px rgba(0,0,0,0.72),     /* deep elevation off the navy ground */
    0 0 70px -28px rgba(232,180,0,0.28),    /* warm gold ambient halo            */
    inset 0 1px 0 rgba(255,255,255,0.06);   /* crisp top highlight               */
}
/* Solid gradient gold hairline frame (replaces the old dashed border). Brightest
   at the top edge → echoes the gold top-bar signature of the .ab-ct tiles. */
.ab-charter__seal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(232,180,0,0.7), rgba(232,180,0,0.14) 45%, rgba(255,255,255,0.05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.ab-charter__seal-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  /* Stamped gold "seal": solid gold disc + navy check, double-ring halo + sheen. */
  color: #0A1A3F;
  background: linear-gradient(160deg, #F4C01C, #E8B400 55%, #CC9E00);
  box-shadow:
    0 0 0 1px rgba(232,180,0,0.55),
    0 0 0 6px rgba(232,180,0,0.10),         /* outer halo ring → stamp impression */
    0 12px 26px -10px rgba(232,180,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.45);   /* top sheen on the disc             */
}
.ab-charter__seal-badge svg { width: 30px; height: 30px; stroke-width: 2; }
.ab-charter__seal-text {
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.4;
  color: var(--band-ink);
  text-wrap: balance;
  max-width: 46ch;
}
.ab-charter__seal-text em {
  font-style: normal;
  color: var(--band-ink);
  background: linear-gradient(transparent 60%, rgba(232,180,0,0.55) 0);
}

@media (prefers-reduced-motion: reduce) {
  .ab-ct:active { transform: none; }
}

/* ---------- responsive --------------------------------------------------- */
@media (max-width: 1024px) {
  .ab-charter__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .ab-charter__inner { padding: 96px 24px; }
  .ab-charter__head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
}
@media (max-width: 480px) {
  .ab-charter__grid { grid-template-columns: 1fr; }
  .ab-ct { padding: 26px 22px 22px; }
  .ab-charter__seal { max-width: 100%; }
}
