:root {
  --indigo: #20255a;
  --indigo-2: #343a72;
  --gold: #e39a2f;
  --clay: #c65d3b;
  --turf: #2e7054;
  --paper: #fff7e8;
  --paper-deep: #f1e4c9;
  --ink: #25262e;
  --muted: #67635b;
  --line: #d9c9a8;
  --white: #fffdf8;
  --shadow: 0 22px 70px rgba(32, 37, 90, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(227,154,47,.19), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(46,112,84,.13), transparent 25rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  background: var(--gold); color: var(--indigo); padding: .75rem 1rem; border-radius: .8rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(32,37,90,.96);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: min(1180px, calc(100% - 2rem)); margin: auto;
  min-height: 76px; display: flex; align-items: center; gap: 1.2rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--white); }
.brand img { width: 46px; height: 46px; border-radius: 13px; }
.brand strong { display: block; font-size: 1rem; letter-spacing: .02em; }
.brand small { display: block; color: #edc778; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.nav-links a {
  color: #f7f1e5; text-decoration: none; font-weight: 720; font-size: .88rem;
  padding: .65rem .78rem; border-radius: .75rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(255,255,255,.12); color: #ffd781; }
.menu-button { display: none; margin-left: auto; border: 1px solid rgba(255,255,255,.3); background: transparent; color: white; border-radius: .75rem; padding: .55rem .8rem; }

.hero {
  width: min(1280px, calc(100% - 2rem)); margin: 2rem auto 0;
  min-height: 650px; border-radius: 2.2rem; overflow: hidden; position: relative;
  background: var(--indigo); box-shadow: var(--shadow); isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,25,72,.95) 0%, rgba(25,31,78,.78) 43%, rgba(25,31,78,.1) 78%),
              linear-gradient(0deg, rgba(20,25,72,.55), transparent 60%);
  z-index: -1;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-copy { width: min(680px, 92%); padding: clamp(3rem, 8vw, 7.6rem) clamp(1.5rem, 6vw, 5rem); color: var(--white); }
.eyebrow { color: var(--gold); font-weight: 850; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
h1, h2, h3 { line-height: 1.08; color: var(--indigo); margin-top: 0; }
.hero h1 { color: var(--white); font-size: clamp(3.3rem, 8vw, 7.2rem); letter-spacing: -.055em; margin: .7rem 0 1rem; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 57ch; color: #f0eadf; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px;
  padding: .75rem 1.1rem; border-radius: .85rem; text-decoration: none; font-weight: 850;
  border: 1px solid var(--indigo); transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.button.gold { background: var(--gold); color: var(--indigo); border-color: var(--gold); }
.button.light { color: var(--white); border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.button.indigo { background: var(--indigo); color: white; }

.section { width: min(1120px, calc(100% - 2rem)); margin: clamp(4rem, 8vw, 7rem) auto; }
.section-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); letter-spacing: -.04em; margin-bottom: 0; }
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.grid { display: grid; gap: 1rem; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: rgba(255,253,248,.88); border: 1px solid var(--line); border-radius: 1.35rem;
  padding: 1.35rem; box-shadow: 0 12px 35px rgba(59,49,30,.06);
}
.card h3 { margin: .5rem 0 .6rem; font-size: 1.45rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: .9rem; margin-bottom: 1rem; }
.number { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--gold); color: var(--indigo); font-weight: 900; }
.mini-link { display: inline-block; color: var(--clay); font-weight: 850; margin-top: 1rem; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.over-strip { background: var(--indigo); color: white; border-radius: 2rem; padding: clamp(1.5rem, 5vw, 4rem); box-shadow: var(--shadow); }
.over-strip h2 { color: white; font-size: clamp(2.1rem, 5vw, 4rem); }
.score-line { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; margin-top: 2rem; }
.ball { min-height: 112px; padding: .8rem; border-radius: 1rem; display: grid; align-content: center; text-align: center; font-weight: 850; background: var(--gold); color: var(--indigo); }
.ball:nth-child(2) { background: var(--clay); color: white; }
.ball:nth-child(3) { background: var(--turf); color: white; }
.ball:nth-child(4) { background: #7281b8; color: white; }
.ball:nth-child(5) { background: #a45a86; color: white; }
.ball:nth-child(6) { background: #79573f; color: white; }
.ball small { display: block; opacity: .85; letter-spacing: .08em; }

.page-hero { width: min(1120px, calc(100% - 2rem)); margin: 3.5rem auto 2rem; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6.2rem); letter-spacing: -.055em; margin: .55rem 0 .8rem; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 72ch; }
.policy-snapshot { background: var(--indigo); color: #f7f0e2; border-radius: 1.6rem; padding: clamp(1.4rem, 4vw, 2.8rem); margin: 2rem 0; }
.policy-snapshot h2 { color: white; font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: .8rem; }
.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.policy-card { background: var(--white); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.35rem; scroll-margin-top: 100px; }
.policy-card h2 { font-size: 1.33rem; margin-bottom: .6rem; }
.policy-card p { margin: 0; color: var(--muted); }

.source-card { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; align-items: start; }
.source-index { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 1rem; background: var(--indigo); color: var(--gold); font-weight: 900; }
.source-card code { display: block; margin-top: .8rem; overflow-wrap: anywhere; color: var(--turf); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.callout { padding: 1.4rem; border-left: 7px solid var(--gold); background: var(--paper-deep); border-radius: 0 1rem 1rem 0; }
.timeline { border-left: 3px solid var(--line); margin-left: 1rem; padding-left: 1.7rem; }
.timeline article { position: relative; margin-bottom: 2rem; }
.timeline article::before { content: ""; position: absolute; width: .9rem; height: .9rem; border-radius: 50%; background: var(--clay); left: -2.27rem; top: .35rem; box-shadow: 0 0 0 6px var(--paper); }

.site-footer { background: var(--indigo); color: #eae3d5; margin-top: 6rem; }
.footer-grid { width: min(1120px, calc(100% - 2rem)); margin: auto; padding: 3rem 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h2, .footer-grid h3 { color: white; }
.footer-grid a { color: #efc877; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .35rem 0; }
.fine-print { width: min(1120px, calc(100% - 2rem)); margin: auto; padding: 1rem 0 2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .84rem; color: #c6c0b5; }

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

@media (max-width: 860px) {
  .menu-button { display: block; }
  .nav-links { display: none; position: absolute; left: 1rem; right: 1rem; top: 68px; padding: .7rem; background: var(--indigo); border: 1px solid rgba(255,255,255,.16); border-radius: 1rem; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .section-head, .grid.three, .grid.two, .policy-grid, .footer-grid { grid-template-columns: 1fr; }
  .score-line { grid-template-columns: repeat(3, 1fr); }
  .hero { min-height: 600px; }
}

@media (max-width: 520px) {
  .brand small { display: none; }
  .hero { border-radius: 1.3rem; }
  .hero::after { background: linear-gradient(0deg, rgba(20,25,72,.96), rgba(20,25,72,.36)); }
  .hero-copy { padding-top: 15rem; }
  .hero h1 { font-size: 3.2rem; }
  .score-line { grid-template-columns: repeat(2, 1fr); }
  .source-card { grid-template-columns: 1fr; }
}

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