/* ============================================================
   PRISM — Base / Reset / Typography
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5,p { margin: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); }
h1 { font-size: clamp(2.4rem, 4vw, 3.75rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.3; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--prism-indigo);
}
.lede { font-size: clamp(1.02rem, 1.2vw, 1.2rem); color: var(--text-secondary); line-height: 1.65; }
.text-muted { color: var(--text-muted); }
.text-on-dark { color: var(--text-on-dark); }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
@media (max-width: 900px) { .section { padding: 64px 0; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Focus states — accessible, on-brand */
:focus-visible {
  outline: 2px solid var(--prism-indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out-soft), transform 700ms var(--ease-out-soft); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Skeleton loading state */
.skeleton {
  position: relative; overflow: hidden; background: var(--bg-alt); border-radius: var(--radius-sm);
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

::selection { background: var(--prism-violet); color: #fff; }

/* Scrollbar (webkit) — subtle brand touch */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-hairline-strong); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--prism-violet); }
