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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  background-color: var(--paper);
  position: relative;
}

/* Atmospheric background. Rendered as a fixed pseudo-element so the browser
   compositor can keep it as its own layer and never repaint during scroll.
   Using background-attachment: fixed on body forces a full-page repaint every
   frame, which kills scroll performance once the page is taller than ~3000px. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 600px at 12% -8%, rgba(46, 123, 232, 0.07), transparent 65%),
    radial-gradient(700px 500px at 92% 18%, rgba(176, 67, 42, 0.05), transparent 62%),
    radial-gradient(800px 700px at 50% 60%, rgba(46, 123, 232, 0.04), transparent 70%),
    linear-gradient(180deg, #FAF5E8 0%, var(--paper) 18%, var(--paper) 82%, #F0E9D7 100%);
  background-repeat: no-repeat;
  will-change: transform;
}

/* Grain overlay. mix-blend-mode forced its own stacking context which during
   scroll makes the compositor recompose the entire page. Drop the blend mode
   and use a pre-blended low-opacity dot pattern instead. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: calc(0.045 + var(--noise) * 0.06);
  background-image: radial-gradient(rgba(16, 42, 86, 0.18) 0.65px, transparent 0.65px);
  background-size: 4px 4px;
  will-change: transform;
}

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

a { color: inherit; }

button, input, select { font: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--stasher-blue);
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: var(--stasher-blue);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  background: var(--stasher-navy);
  transition: transform var(--dur-fast) var(--ease);
}

.noscript-banner {
  position: relative;
  z-index: 2001;
  padding: 14px clamp(18px, 4vw, 52px);
  color: #fff;
  background: var(--stasher-navy);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(16, 42, 86, 0.09);
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: blur(18px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.brand img { width: 154px; height: auto; display: block; }

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 28px);
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(16, 42, 86, 0.72);
}

.site-nav a {
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: var(--stasher-navy);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(16, 42, 86, 0.18);
}

.section {
  position: relative;
  padding-top: clamp(72px, 12vh, 140px);
  padding-bottom: clamp(72px, 12vh, 140px);
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

/* Sections that stack multiple .section-inner blocks (spectrum, weight, methodology)
   were rendering with the inner blocks butted against each other. Reserve a clear
   editorial gap between sibling inners. */
.section-inner + .section-inner {
  margin-top: clamp(36px, 6vh, 64px);
}

.section-copy {
  width: 100%;
  max-width: 660px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
}

h1 {
  max-width: 930px;
  font-size: clamp(2.8rem, 6.2vw, 5.6rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-weight: 700;
  font-family: var(--font-display);
}

h2 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(2.0rem, 4.4vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 700;
  font-family: var(--font-display);
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-weight: 600;
  font-family: var(--font-display);
}

.tabular, [data-tabular], td.score, td.rank, .score-value {
  font-variant-numeric: tabular-nums;
}

p { margin: 0 0 14px; color: var(--muted); }
p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .site-nav { display: none; }
  .brand img { width: 132px; }
  .header-cta { font-size: 0.82rem; padding: 0 13px; }
}

@media (max-width: 560px) {
  h1, h2, h3 {
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  h2 {
    font-size: clamp(2.35rem, 10vw, 3.1rem);
  }
}

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