:root {
  --bg: #f8f8f6;
  --bg-1: #111211;
  --bg-2: #f0f1ee;
  --bg-card: #ffffff;
  --bg-elevated: #e9ebe7;
  --text: #151615;
  --text-muted: #5f625f;
  --text-dim: #6b6e69;
  --border: rgba(21, 22, 21, 0.1);
  --border-strong: rgba(21, 22, 21, 0.2);
  --blue: #315fba;
  --blue-soft: rgba(49, 95, 186, 0.1);
  --danger: #b42318;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-card: 0 22px 60px rgba(30, 32, 30, 0.07);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 3%, rgba(49,95,186,.08), transparent 30%),
    radial-gradient(circle at 8% 18%, rgba(255,255,255,.9), transparent 34%);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.shell { width: min(100% - 40px, 1240px); margin-inline: auto; }
.narrow { max-width: 800px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 3000; background: #fff; color: #000; padding: 10px 14px; }
.skip-link:focus { top: 16px; }

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(248,248,246,.96), rgba(248,248,246,.68));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-nav.scrolled { background: rgba(248,248,246,.94); border-color: var(--border); box-shadow: 0 8px 30px rgba(20,22,20,.04); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: flex-start; color: var(--text); }
.brand-word {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.68rem;
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.045em;
}
.brand-ai {
  margin-left: .12em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .05em;
  opacity: .78;
  transform: translateY(-.08em);
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-muted); font-size: .9rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid #151615;
  border-radius: var(--radius-md);
  background: #151615;
  color: #ffffff;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s var(--ease), opacity .2s var(--ease), border-color .2s var(--ease);
}
.nav-cta:hover, .button:hover { transform: translateY(-1px); opacity: .88; }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.button.secondary:hover { border-color: var(--text); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); }
.mobile-menu { display: none; }

.subpage-hero {
  min-height: 76vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 150px 0 90px;
}
.subpage-hero::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -210px;
  top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,.11), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}
.compact-hero { min-height: 58vh; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: center; gap: 70px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-weight: 500; }
h1 { max-width: 900px; margin-bottom: 22px; font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; letter-spacing: -.045em; }
h2 { margin-bottom: 18px; font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { margin-bottom: 10px; font-size: 1.14rem; line-height: 1.3; }
.lede { max-width: 720px; margin-bottom: 28px; color: var(--text-muted); font-size: clamp(1rem, 1.6vw, 1.18rem); }
.microcopy, .small { color: var(--text-dim); font-size: .82rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.hero-card, .card, .download-card, .form-card, .score-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.hero-card { padding: 30px; }

.section { padding: 100px 0; position: relative; }
.section-soft { background: var(--bg-2); }
.section-dark {
  --bg-card: #191a19;
  --bg-elevated: #252625;
  --text: #f7f7f4;
  --text-muted: #bfc1bb;
  --text-dim: #8b8e88;
  --border: rgba(255,255,255,.11);
  --border-strong: rgba(255,255,255,.24);
  --blue: #91b7ff;
  --blue-soft: rgba(145,183,255,.12);
  --danger: #fca5a5;
  --shadow-card: 0 24px 64px rgba(0,0,0,.24);
  background: var(--bg-1);
  color: var(--text);
  border-block: 1px solid rgba(255,255,255,.08);
}
.section-dark .button { background: #fff; border-color: #fff; color: #111; }
.section-dark .button.secondary { background: transparent; color: #fff; border-color: var(--border-strong); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 44px; }
.section-head > p { max-width: 540px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 28px; }
.card p:last-child { margin-bottom: 0; }
.card-number, .tag { display: inline-flex; margin-bottom: 18px; padding: 4px 9px; border: 1px solid rgba(96,165,250,.25); border-radius: var(--radius-sm); background: var(--blue-soft); color: var(--blue); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.muted { color: var(--text-muted); }
.check-list, .plain-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.check-list li, .plain-list li { position: relative; padding-left: 24px; color: var(--text-muted); }
.check-list li::before, .plain-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px rgba(96,165,250,.65); }
.notice { margin-top: 24px; padding: 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); color: var(--text-muted); font-size: .86rem; }
.notice strong { color: var(--text); }
.notice.draft { border-style: solid; border-color: rgba(180, 35, 24, .24); background: rgba(180, 35, 24, .05); color: #7a271a; }
.identity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.identity-grid .card { min-height: 100%; }

.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.download-card { display: flex; min-height: 340px; flex-direction: column; justify-content: space-between; padding: 32px; }
.download-card.featured { border-color: rgba(96,165,250,.35); box-shadow: 0 0 50px rgba(96,165,250,.07); }
.download-card .button { align-self: flex-start; margin-top: 24px; }
.resource-use { margin-top: 22px; color: var(--text-muted); }
.download-card[hidden] { display: none; }

.deliverable-grid, .boundary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.deliverable-grid article, .boundary-grid div { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); box-shadow: 0 14px 36px rgba(30,32,30,.04); }
.deliverable-grid span { display: block; margin-bottom: 14px; color: var(--blue); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.timeline { display: grid; gap: 12px; }
.timeline article { display: grid; grid-template-columns: 84px 1fr auto; align-items: start; gap: 24px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); }
.timeline article > span { color: var(--blue); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.timeline article > strong { color: var(--text-muted); font-size: .8rem; text-align: right; }
.callout { padding: 40px; border: 1px solid rgba(49,95,186,.18); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(49,95,186,.1), rgba(255,255,255,.72)); }
.faq-list { display: grid; gap: 10px; }
details { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); }
summary { padding: 20px 22px; cursor: pointer; font-weight: 650; }
details p { padding: 0 22px 22px; color: var(--text-muted); }

.score-wrap { width: min(100% - 40px, 920px); margin-inline: auto; }
.wizard-heading { margin-bottom: 28px; }
.progress { height: 4px; margin-bottom: 28px; background: var(--bg-elevated); overflow: hidden; }
.progress span { display: block; height: 100%; width: 8.333%; background: var(--blue); transition: width .25s var(--ease); }
.score-form { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset[hidden] { display: none; }
legend { width: 100%; margin-bottom: 26px; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; }
.answer { display: flex; gap: 14px; padding: 16px; margin-top: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255,255,255,.025); cursor: pointer; }
.answer:hover { border-color: var(--border-strong); }
.answer:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.answer input { margin-top: 5px; accent-color: var(--blue); }
.answer span { color: var(--text-muted); }
.answer strong { color: var(--text); display: block; }
.wizard-controls { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.wizard-controls .button:last-child { margin-left: auto; }
.button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.form-error { color: var(--danger); font-size: .84rem; }
.form-status { min-height: 1.4em; margin: 12px 0 0; color: var(--text-muted); font-size: .84rem; }
.form-status[data-state="success"] { color: #2f6a45; }
.form-status[data-state="error"] { color: var(--danger); }
.email-fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.email-fallback p { width: 100%; margin: 0; color: var(--text-muted); font-size: .88rem; }
.score-panel { padding: 34px; }
.score-lockup { display: flex; align-items: end; gap: 10px; margin-bottom: 20px; }
.score-lockup strong { font-size: 4.5rem; line-height: .9; }
.dimension-list { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dimension-list li { padding: 12px; background: var(--bg-elevated); border-radius: var(--radius-sm); }
.dimension-list span { display: block; color: var(--text-dim); font-size: .68rem; text-transform: capitalize; }
.text-button { margin: 18px 0 0; padding: 0; border: 0; background: transparent; color: var(--text-muted); text-decoration: underline; cursor: pointer; }

.form-card { padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 650; }
.field input, .field textarea {
  width: 100%;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 13px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.field input:disabled, .field textarea:disabled { background: #f0f1ee; color: var(--text-dim); cursor: not-allowed; }
.checkbox { display: grid; grid-template-columns: auto 1fr; align-items: start; }
.checkbox input { width: auto; margin-top: 6px; }
.checkbox label { color: var(--text-muted); font-weight: 400; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }

.prose { max-width: 820px; line-height: 1.8; }
.prose h2 { margin-top: 48px; font-size: 1.8rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose a:not(.button) { color: var(--text); text-decoration: underline; }

.module-stack, .article-stack { display: grid; gap: 14px; }
.module-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 26px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.module-card > span { color: var(--blue); font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.module-card h3 { margin-bottom: 7px; }
.module-card p { margin-bottom: 0; color: var(--text-muted); }

.long-guide {
  max-width: 900px;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.long-guide + .long-guide { margin-top: 30px; }
.long-guide h3 { margin-top: 28px; }
.long-guide p { color: var(--text-muted); }
.long-guide .notice { color: var(--text-muted); }
.answer-block {
  margin-bottom: 38px;
  padding: 24px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--blue-soft);
}
.answer-block .eyebrow { margin-bottom: 10px; }
.answer-block h2 { margin-bottom: 12px; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.answer-block p:last-child { margin-bottom: 0; color: var(--text); }
.article-related {
  max-width: 900px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.article-related .eyebrow { margin-bottom: 12px; }
.article-related-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.article-related a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.article-related a:hover { color: var(--text); }

.answer-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.answer-entry { padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); }
.answer-entry h2 { font-size: clamp(1.45rem, 2.8vw, 2.15rem); }
.answer-entry p:not(.eyebrow) { color: var(--text-muted); }
.answer-entry a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.evidence-record {
  display: grid;
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
  gap: 40px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.evidence-value { display: flex; flex-direction: column; justify-content: center; }
.evidence-value strong { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(4rem, 10vw, 7rem); font-weight: 500; line-height: .85; }
.evidence-value span { margin-top: 14px; color: var(--text-muted); }

.site-footer {
  --text: #f7f7f4;
  --text-muted: #bfc1bb;
  --text-dim: #8b8e88;
  --border: rgba(255,255,255,.1);
  padding: 54px 0 38px;
  border-top: 1px solid var(--border);
  background: #111211;
  color: var(--text);
}
.footer-grid { display: grid; grid-template-columns: minmax(280px, 1fr) auto; align-items: start; gap: 40px; }
.footer-grid .small { max-width: 580px; margin: 18px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 16px 24px; }
.footer-links a { display: inline-block; padding: 7px 0; color: var(--text-muted); font-size: .84rem; }

/* Hidden state only when scripting is available — no-JS visitors and print get visible content. */
@media (scripting: enabled) {
  .js-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
}
.reveal.active { opacity: 1; transform: none; }
/* Hero copy must be visible before the first observer callback. */
.js-ready .hero .reveal,
.js-ready .subpage-hero .reveal,
.js-ready .ambient-heading .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 900px) {
  .nav-links, .site-nav > .shell > .nav-cta { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .mobile-menu { position: fixed; inset: 0 0 auto; z-index: 900; padding: 92px 24px 28px; background: rgba(248,248,246,.98); border-bottom: 1px solid var(--border); transform: translateY(-110%); transition: transform .3s var(--ease); }
  .mobile-menu.open { display: grid; transform: none; gap: 8px; }
  .mobile-menu a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .hero-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 34px; }
  .section-head { display: block; }
  .grid-3, .deliverable-grid, .boundary-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .shell, .score-wrap { width: min(100% - 28px, 1240px); }
  .subpage-hero { min-height: auto; padding: 130px 0 72px; }
  .section { padding: 76px 0; }
  .grid-3, .resource-grid, .deliverable-grid, .boundary-grid, .form-grid, .identity-grid, .answer-library { grid-template-columns: 1fr; }
  .timeline article { grid-template-columns: 1fr; gap: 8px; }
  .timeline article > strong { text-align: left; }
  .dimension-list { grid-template-columns: 1fr 1fr; }
  .wizard-controls { align-items: stretch; flex-wrap: wrap; }
  .wizard-controls .button { width: 100%; margin-left: 0 !important; }
  .footer-links { justify-content: start; }
  .module-card, .evidence-record { grid-template-columns: 1fr; }
  .long-guide { padding: 26px; }
}

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

.sample-pack-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.sample-pack-preview figure { min-width: 0; margin: 0; }
.sample-pack-preview a { display: block; }
.sample-pack-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 6px; }
.sample-pack-preview figcaption { margin-top: 8px; color: var(--text-muted); font-size: 0.75rem; line-height: 1.4; }
@media (max-width: 600px) { .sample-pack-preview { grid-template-columns: 1fr; } }
