/* ============================================================
   AMP · Unicorn Layer · 2026-05-19
   Additive-only: no overrides of existing AMP tokens or classes.
   All effects gated to (prefers-reduced-motion: no-preference).
   Patterns mined from:
     - Stripe / Linear   (mouse-tracking gradient halo on cards)
     - Anthropic / Apollo (editorial figcaption · footnote metadata)
     - Vercel / Linear   (layered glass panels · backdrop-blur)
     - Runway            (slow marquee data strip)
     - Anthropic         (drop-cap · side-rule pull-quote)
   No copy mutation. No yield % introduced. No comparative claims.
   ============================================================ */

/* ------------------------------------------------------------
   1) MOUSE-TRACKING GRADIENT HALO (Stripe/Linear)
   Apply by adding class `u-spot` to any card-like element.
   The halo is gated to fine-pointer + no-reduce-motion.
------------------------------------------------------------ */
.u-spot {
  position: relative;
  isolation: isolate;
}
.u-spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 320ms ease-out;
  background: radial-gradient(
    360px circle at var(--u-x, 50%) var(--u-y, 50%),
    rgba(201, 168, 76, 0.18),
    rgba(201, 168, 76, 0.06) 28%,
    transparent 60%
  );
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .u-spot:hover::before { opacity: 1; }
}
/* Children sit above the halo */
.u-spot > * { position: relative; z-index: 1; }

/* ------------------------------------------------------------
   2) EDITORIAL FIGCAPTION / FOOTNOTE METADATA STRIP (Anthropic/Apollo)
   Use on .u-figcap below any quote / stat / chapter block.
------------------------------------------------------------ */
.u-figcap {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.55);
}
.u-figcap > span { white-space: nowrap; }
.u-figcap b {
  font-weight: 600;
  color: rgba(243, 239, 230, 0.85);
  margin-right: 6px;
}

/* ------------------------------------------------------------
   3) LAYERED GLASS PANEL (Vercel/Linear)
   Use on .u-glass — semi-transparent panel with backdrop blur.
------------------------------------------------------------ */
.u-glass {
  background: rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 64px rgba(0, 0, 0, 0.35);
}

/* ------------------------------------------------------------
   4) SLOW MARQUEE DATA STRIP (Runway)
   Use as: <div class="u-marquee"><div class="u-marquee__track">...</div></div>
------------------------------------------------------------ */
.u-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(0,16,51,0.55), rgba(0,16,51,0.25));
  mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.u-marquee__track {
  display: flex;
  gap: 64px;
  width: max-content;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.75);
  animation: u-marquee 56s linear infinite;
  will-change: transform;
}
.u-marquee__track > span { display: inline-flex; align-items: center; gap: 10px; }
.u-marquee__track > span::before {
  content: "";
  width: 6px; height: 6px;
  background: #C9A84C;
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes u-marquee {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}
@media (prefers-reduced-motion: reduce) {
  .u-marquee__track { animation: none; transform: none; }
}

/* ------------------------------------------------------------
   5) DROP-CAP + SIDE-RULE PULL-QUOTE (Anthropic editorial)
   Use class `u-pull` on a <blockquote> or <p>.
------------------------------------------------------------ */
.u-pull {
  position: relative;
  padding: 8px 0 8px 28px;
  border-left: 2px solid rgba(201, 168, 76, 0.55);
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
  color: rgba(243, 239, 230, 0.92);
  max-width: 64ch;
}
.u-pull::first-letter {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 3.4em;
  line-height: 0.9;
  float: left;
  padding: 0.08em 0.18em 0 0;
  color: #C9A84C;
}
.u-pull cite {
  display: block;
  margin-top: 18px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.55);
}

/* ------------------------------------------------------------
   Reduced-motion safety: hide halo entirely.
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .u-spot::before { display: none; }
}
