/* Pxier Design System
   Tokens, base reset, typography, shared components
   Loaded on every redesigned page via headerxtn.htm */

:root {
  --ink: #0d1b2a;
  --ink-soft: #41566b;
  --ink-faint: #7a8ca0;
  --ink-dark: #0d1b2a;
  --brand: #1f6feb;
  --brand-deep: #1850b8;
  --brand-tint: #eaf2ff;
  --accent: #16b8a6;
  --accent-tint: #e6faf6;
  --warn: #f5a623;
  --line: #e4ebf2;
  --line-soft: #eef2f7;
  --surface: #ffffff;
  --bg: #f6f9fc;

  --shadow-sm: 0 1px 2px rgba(13,27,42,.04), 0 4px 14px rgba(13,27,42,.05);
  --shadow-md: 0 8px 24px -8px rgba(13,27,42,.12), 0 4px 12px rgba(13,27,42,.06);
  --shadow-lg: 0 18px 50px -12px rgba(13,27,42,.18), 0 6px 18px rgba(13,27,42,.06);

  --r: 16px;
  --r-sm: 11px;
  --r-lg: 22px;

  --container: 1200px;
  --container-pad: 28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; }

.display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -.01em;
}
.display em { font-style: italic; color: var(--brand); }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 6px 14px;
  border-radius: 99px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(22,184,166,.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(31,111,235,.55);
}
.btn-primary:hover { background: var(--brand-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-soft {
  background: var(--brand-tint);
  color: var(--brand);
}
.btn-soft:hover { background: #dbe8ff; color: var(--brand-deep); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; fill: none; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin-bottom: 14px;
}
.section-head h2 em { font-style: italic; color: var(--brand); }
.section-head p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ----- Logo marquee (shared) -----
   Animation only starts once images load (pxier-ui.js adds .ready).
   This prevents judder from width:max-content being calculated
   before images give the track its real width. */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  align-items: center;
  animation: none;
}
.marquee.ready .marquee-track {
  animation: pxier-scroll 50s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes pxier-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track img {
  height: 38px;
  width: auto;
  opacity: .7;
  filter: grayscale(100%);
  transition: opacity .25s, filter .25s;
  flex-shrink: 0;
}
.marquee-track img:hover { opacity: 1; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
