/* AX Quantitative — shared design system */

:root {
  --bg:           #ffffff;
  --bg-alt:       #f4f3f0;
  --bg-hero:      #0f1923;
  --surface:      #ffffff;
  --surface-2:    #f4f3f0;
  --text:         #0f1923;
  --text-muted:   #5a6270;
  --text-on-dark: #f5f5f0;
  --text-muted-on-dark: rgba(245,245,240,0.65);
  --rule:         #e2e0da;
  --rule-dark:    rgba(255,255,255,0.12);
  --accent:       #1a4b8c;
  --accent-light: #2563b0;

  --font-serif:   "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-content:  75rem;
  --prose-width:  65ch;

  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.75rem;
  --space-lg:   3rem;
  --space-xl:   5rem;
  --space-2xl:  7rem;

  --nav-height: 4rem;

  --shadow-sm: 0 1px 3px rgba(15,25,35,0.08), 0 1px 2px rgba(15,25,35,0.04);
  --shadow-md: 0 4px 16px rgba(15,25,35,0.10), 0 2px 6px rgba(15,25,35,0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ─── Site Header ────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  height: var(--nav-height);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-sm);
  height: 100%;
  gap: var(--space-md);
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--accent);
}

/* ─── Site Nav ───────────────────────────────────────────────────────────── */

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--text-muted);
  background: none;
  border: none;
  line-height: 1;
}

.nav-toggle-label:hover {
  color: var(--text);
}

.nav-toggle-label svg {
  display: block;
  width: 22px;
  height: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Mobile nav */
@media (max-width: 639px) {
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--rule);
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-md);
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.875rem;
  }

  #nav-toggle:checked ~ .site-header .site-nav {
    display: flex;
  }
}

/* ─── Layout wrapper ─────────────────────────────────────────────────────── */

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--space-md); }
}

@media (min-width: 960px) {
  .container { padding: 0 var(--space-lg); }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-hero);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  filter: grayscale(20%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15,25,35,0.82) 0%,
    rgba(15,25,35,0.55) 55%,
    rgba(15,25,35,0.30) 100%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-sm) var(--space-xl);
  width: 100%;
}

@media (min-width: 640px) {
  .hero__inner { padding: var(--space-2xl) var(--space-md) var(--space-xl); }
}

@media (min-width: 960px) {
  .hero__inner { padding: var(--space-2xl) var(--space-lg) var(--space-xl); }
}

.hero__eyebrow {
  display: block;
  margin: 0 0 var(--space-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.55);
}

.hero h1 {
  margin: 0 0 var(--space-md);
  max-width: 20ch;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-on-dark);
}

.hero__lede {
  margin: 0 0 var(--space-lg);
  max-width: 58ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-muted-on-dark);
}

.hero__rule {
  width: 3rem;
  height: 2px;
  background: rgba(245,245,240,0.3);
  border: none;
  margin: 0 0 var(--space-lg);
}

/* ─── Stat Strip ─────────────────────────────────────────────────────────── */

.stat-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background-color: var(--rule);
  border: 1px solid var(--rule);
  margin-top: var(--space-xl);
}

@media (min-width: 640px) {
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
}

.stat {
  padding: var(--space-md) var(--space-sm);
  background-color: var(--bg);
}

@media (min-width: 640px) {
  .stat { padding: var(--space-lg) var(--space-md); }
}

.stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.stat__caption {
  display: block;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ─── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding: var(--space-xl) 0;
}

.section--alt {
  background-color: var(--surface-2);
}

.section--dark {
  background-color: var(--bg-hero);
}

.section__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 640px) {
  .section__inner { padding: 0 var(--space-md); }
}

@media (min-width: 960px) {
  .section { padding: var(--space-xl) 0; }
  .section__inner { padding: 0 var(--space-lg); }
}

/* ─── Section with side image (two-col layout) ───────────────────────────── */

.section--image {
  overflow: hidden;
}

.section--image .section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 960px) {
  .section--image .section__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .section--image.image-right .section__image {
    order: 2;
  }
  .section--image.image-right .section__content {
    order: 1;
  }
}

.section__image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.section__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 960px) {
  .section__image img {
    height: 520px;
  }
}

.section__image--svg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-radius: 0;
}

.section__image--svg svg {
  width: 100%;
  height: auto;
  max-height: 420px;
}

/* ─── Eyebrow / Titles ───────────────────────────────────────────────────── */

.section-eyebrow {
  display: block;
  margin: 0 0 var(--space-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-eyebrow--light {
  color: rgba(245,245,240,0.45);
}

.section-title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-title--light {
  color: var(--text-on-dark);
}

/* ─── Prose ──────────────────────────────────────────────────────────────── */

.prose {
  max-width: var(--prose-width);
}

.prose p {
  margin: 0 0 var(--space-sm);
  color: var(--text-muted);
  line-height: 1.8;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose--light p {
  color: var(--text-muted-on-dark);
}

/* ─── CTA Link ───────────────────────────────────────────────────────────── */

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
  margin-top: var(--space-md);
}

.cta-link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-light);
}

.cta-link--light {
  color: var(--text-on-dark);
  border-bottom-color: rgba(245,245,240,0.25);
}

.cta-link--light:hover {
  color: var(--text-on-dark);
  border-bottom-color: var(--text-on-dark);
}

/* ─── Pillars ────────────────────────────────────────────────────────────── */

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 640px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}

.pillar {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  background-color: var(--bg);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.section--alt .pillar {
  background-color: var(--surface);
}

/* Risk list — single bordered block with stacked rows */
.risk-list {
  margin: var(--space-lg) 0 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
}

.risk-list__item {
  padding: var(--space-md) var(--space-md);
  border-bottom: 1px solid var(--rule);
}

.risk-list__item:last-child {
  border-bottom: none;
}

.risk-list__item dt {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.risk-list__num {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-muted);
  flex-shrink: 0;
}

.risk-list__item dd {
  margin: 0;
  padding-left: calc(var(--space-sm) + 2ch);
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pillar__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.pillar h3 {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
}

.pillar p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ─── Pullquote ──────────────────────────────────────────────────────────── */

.pullquote {
  margin: var(--space-lg) 0 0;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section--dark .pullquote {
  border-top-color: var(--rule-dark);
  border-bottom-color: var(--rule-dark);
}

.pullquote p,
.pullquote__text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  max-width: 48ch;
}

.pullquote--light .pullquote__text,
.section--dark .pullquote__text {
  color: var(--text-on-dark);
}

/* ─── Band image section ─────────────────────────────────────────────────── */

.image-band {
  position: relative;
  height: 420px;
  overflow: hidden;
}

@media (min-width: 960px) {
  .image-band { height: 560px; }
}

.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(15,25,35,0.7) 100%);
  pointer-events: none;
}

.image-band__caption {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-content);
  padding: 0 var(--space-sm);
}

@media (min-width: 640px) {
  .image-band__caption { padding: 0 var(--space-md); }
}

@media (min-width: 960px) {
  .image-band__caption { padding: 0 var(--space-lg); }
}

.image-band__caption p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-on-dark);
  margin: 0;
  max-width: 44ch;
}

/* ─── Disclaimer ─────────────────────────────────────────────────────────── */

.disclaimer {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─── Site Footer ────────────────────────────────────────────────────────── */

.site-footer {
  background-color: var(--bg-hero);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

@media (min-width: 640px) {
  .site-footer__inner { padding: 0 var(--space-md); }
}

@media (min-width: 960px) {
  .site-footer__inner { padding: 0 var(--space-lg); }
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-md);
}

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .site-footer__grid { grid-template-columns: 3fr 1fr 1fr; }
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-on-dark);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-sm);
}

.footer-brand:hover {
  opacity: 0.8;
}

.footer-col .disclaimer {
  color: rgba(245,245,240,0.38);
}

.footer-col__heading {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.35);
  margin-bottom: var(--space-sm);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(245,245,240,0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--text-on-dark);
}

.footer-contact a {
  font-size: 0.875rem;
  color: rgba(245,245,240,0.55);
  text-decoration: none;
  transition: color 0.15s ease;
  display: block;
  margin-bottom: var(--space-xs);
}

.footer-contact a:hover {
  color: var(--text-on-dark);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(245,245,240,0.3);
  white-space: nowrap;
}

/* ─── Utility ────────────────────────────────────────────────────────────── */

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

.rule-hr {
  margin: 0;
  border: none;
  border-top: 1px solid var(--rule);
}

/* ─── Print ──────────────────────────────────────────────────────────────── */

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .nav-toggle-label { display: none; }
  .hero { min-height: auto; background: none; }
  .hero h1, .hero__lede { color: #000; }
  .hero__bg, .hero__overlay, .hero__rule { display: none; }
  .section--alt { background: none; }
  .section--dark { background: #f0f0f0; }
  .section-title--light, .pullquote--light .pullquote__text { color: #000; }
  a { color: #000; }
}
