* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--color-surface-inverse); }
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 19px;
  line-height: 1.5;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 10%, var(--color-accent-a05), transparent 29%),
    radial-gradient(circle at 14% 72%, var(--color-accent-a05), transparent 34%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
::selection { background: var(--gold); color: var(--color-on-accent); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 300;
  padding: 11px 16px;
  background: var(--gold);
  color: var(--color-on-accent);
  font-family: var(--fm);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}
.skip:focus { top: 12px; }
.report-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  backdrop-filter: blur(18px);
}
.report-header-inner,
.report-main,
.report-footer-inner {
  width: min(100% - 64px, 1180px);
  margin: 0 auto;
}
.report-header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-lockup img {
  width: 48px;
  height: 48px;
  padding: 6px;
  border: 1px solid var(--color-accent-a45);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--color-accent-a05), inset 0 0 18px var(--color-accent-a06);
}
.brand-lockup span {
  display: flex;
  align-items: baseline;
  gap: 14px;
  line-height: 1;
}
.brand-lockup strong,
.brand-lockup small {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.brand-lockup small { margin: 0; color: var(--gold); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fd);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.header-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line2);
  border-radius: 5px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.header-actions a:last-child {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: var(--color-on-accent);
}
.header-actions a:hover {
  border-color: var(--gold);
  background: var(--color-accent-a08);
  color: var(--text);
  transform: translateY(-1px);
}
.header-actions a:last-child:hover { background: linear-gradient(135deg, var(--gold-deep), var(--gold)); color: var(--color-on-accent); }
.report-main { padding: 82px 0 92px; }
.report-title {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 52px;
  align-items: end;
  padding: 18px 0 64px;
}
.report-title::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -42%;
  width: 520px;
  height: 520px;
  z-index: -1;
  border: 1px solid var(--color-accent-a14);
  border-radius: 50%;
  box-shadow: 0 0 0 76px var(--color-accent-a05), 0 0 0 152px var(--color-accent-a05);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
.report-main h1, .report-main h2, .report-main h3 {
  font-family: var(--fd);
  text-transform: uppercase;
}
.report-main h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(50px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}
.report-main h2 {
  margin-bottom: 12px;
  font-size: clamp(31px, 3.3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}
.report-main h3 { margin-bottom: 10px; font-size: 21px; letter-spacing: 0.015em; line-height: 1.1; }
.lede { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 22px; line-height: 1.46; }
.report-date {
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line2);
  color: var(--dim);
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-align: left;
}
.score-band {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line2);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(145deg, var(--panel2), var(--bg));
  box-shadow: var(--sh-lg);
}
.score-block {
  position: relative;
  min-height: 252px;
  display: grid;
  place-content: center;
  border-right: 1px solid var(--line2);
  color: var(--text);
  text-align: center;
}
.score-block::before {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px dashed var(--color-accent-a60);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--color-accent-a05);
}
.score-block strong {
  position: relative;
  color: var(--gold-deep);
  font-family: var(--fd);
  font-size: 82px;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.score-block span {
  position: relative;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.score-summary { padding: 48px 52px; }
.status-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  color: var(--green);
  font-family: var(--fm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--color-success-a60); }
.score-summary p:last-child { max-width: 740px; margin-bottom: 0; color: var(--muted); font-size: 19px; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--color-surface-a70);
}
.metric { min-height: 124px; padding: 28px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; color: var(--gold); font-family: var(--fd); font-size: 36px; line-height: 1; }
.metric span { color: var(--muted); font-family: var(--fm); font-size: 10px; letter-spacing: 0.055em; text-transform: uppercase; }
.report-section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 860px; margin-bottom: 36px; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 20px; }
.readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
}
.readiness-item {
  min-height: 188px;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.readiness-item:nth-child(3n) { border-right: 0; }
.readiness-item:nth-child(n+4) { border-bottom: 0; }
.readiness-item .state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.readiness-item .state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.readiness-item.ready .state { color: var(--green); }
.readiness-item.ready .state::before { background: var(--green); box-shadow: 0 0 10px var(--color-success-a60); }
.readiness-item.review .state { color: var(--gold-deep); }
.readiness-item.review .state::before { border: 1px solid var(--gold); }
.readiness-item p { margin-bottom: 0; color: var(--muted); font-size: 17px; }
.evidence-table { width: 100%; border-collapse: collapse; background: var(--color-surface-a68); }
.evidence-table th,
.evidence-table td { padding: 20px 22px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.evidence-table th {
  width: 31%;
  background: var(--color-accent-a05);
  color: var(--gold-deep);
  font-family: var(--fd);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.evidence-table td { color: var(--muted); font-size: 18px; }
.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
  background: linear-gradient(90deg, var(--color-accent-a05), transparent 52%);
}
.priority-item { min-height: 214px; padding: 32px 28px; border-right: 1px solid var(--line); }
.priority-item:last-child { border-right: 0; }
.priority-number { display: block; margin-bottom: 24px; color: var(--gold); font-family: var(--fm); font-size: 10px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.priority-item p { margin-bottom: 0; color: var(--muted); font-size: 17px; }
.boundary {
  position: relative;
  padding: 34px 38px 34px 42px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 5px 5px 0;
  background: linear-gradient(90deg, var(--color-accent-a10), var(--color-accent-a05) 58%, transparent);
}
.boundary h2 { color: var(--gold-deep); font-size: 28px; }
.boundary p:last-child { max-width: 970px; margin-bottom: 0; color: var(--muted); }
.report-footer { border-top: 1px solid var(--line); background: var(--bg2); color: var(--text); }
.report-footer-inner { min-height: 138px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.report-footer p { margin: 0; color: var(--dim); font-size: 16px; }
.report-footer strong { color: var(--text); font-family: var(--fd); font-size: 18px; letter-spacing: 0.035em; text-transform: uppercase; }
.report-footer a { color: var(--gold); font-family: var(--fd); font-size: 13px; letter-spacing: 0.045em; text-transform: uppercase; text-underline-offset: 5px; }

@media (max-width: 820px) {
  .report-header-inner, .report-main, .report-footer-inner { width: min(100% - 40px, 1180px); }
  .report-header-inner { min-height: 80px; }
  .brand-lockup strong, .brand-lockup small { font-size: 18px; }
  .header-actions a:first-child { display: none; }
  .report-main { padding-top: 58px; }
  .report-title { grid-template-columns: 1fr; gap: 24px; align-items: start; padding-bottom: 48px; }
  .report-title::after { right: -54%; top: -25%; width: 430px; height: 430px; }
  .score-band { grid-template-columns: 230px minmax(0, 1fr); }
  .score-block::before { inset: 25px; }
  .score-summary { padding: 36px 34px; }
  .readiness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readiness-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .readiness-item:nth-child(2n) { border-right: 0; }
  .readiness-item:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .readiness-item:nth-child(n+5) { border-bottom: 0; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .report-header-inner, .report-main, .report-footer-inner { width: calc(100% - 30px); }
  .report-header-inner { min-height: 74px; gap: 12px; }
  .brand-lockup { gap: 9px; }
  .brand-lockup img { width: 41px; height: 41px; }
  .brand-lockup span { gap: 8px; }
  .brand-lockup strong, .brand-lockup small { font-size: 15px; }
  .header-actions a { min-height: 42px; padding: 9px 12px; font-size: 10px; }
  .report-main { padding: 46px 0 64px; }
  .report-title { padding-top: 8px; }
  .report-title::after { display: none; }
  .report-main h1 { font-size: clamp(43px, 12vw, 58px); }
  .report-main h2 { font-size: clamp(30px, 9vw, 40px); }
  .lede { font-size: 20px; }
  .score-band { grid-template-columns: 1fr; }
  .score-block { min-height: 214px; border-right: 0; border-bottom: 1px solid var(--line2); }
  .score-block::before { width: 160px; height: 160px; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
  .score-summary { padding: 32px 24px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 112px; padding: 23px 20px; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .report-section { padding: 64px 0; }
  .readiness-grid { grid-template-columns: 1fr; }
  .readiness-item, .readiness-item:nth-child(2n), .readiness-item:nth-child(3n) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .readiness-item:last-child { border-bottom: 0; }
  .evidence-table, .evidence-table tbody, .evidence-table tr, .evidence-table th, .evidence-table td { display: block; width: 100%; }
  .evidence-table tr { border: 1px solid var(--line); border-bottom: 0; }
  .evidence-table tr:last-child { border-bottom: 1px solid var(--line); }
  .evidence-table th, .evidence-table td { border: 0; }
  .evidence-table th { padding-bottom: 8px; }
  .evidence-table td { padding-top: 6px; }
  .priority-grid { grid-template-columns: 1fr; }
  .priority-item { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .priority-item:last-child { border-bottom: 0; }
  .boundary { padding: 28px 24px; }
  .report-footer-inner { min-height: 150px; align-items: flex-start; flex-direction: column; justify-content: center; }
}

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

@media print {
  @page { size: Letter; margin: 0.5in; }
  body.interior-theme {
    color-scheme: light;
    --bg: var(--brand-warm-white);
    --bg2: var(--color-surface-inverse);
    --panel: var(--color-surface);
    --panel2: var(--color-surface-soft);
    --text: var(--color-text);
    --muted: var(--color-text-muted);
    --dim: var(--color-text-subtle);
    --gold: var(--brand-gold-dark);
    --gold-deep: var(--brand-gold-dark);
    --line: var(--color-border);
    --line2: var(--color-border-strong);
  }
  body { background: var(--panel); color: var(--text); font-size: 14px; }
  body::before, body::after, .report-title::after { display: none; }
  .report-header { position: static; border-bottom: 2px solid var(--text); background: var(--panel); }
  .brand-lockup img { border: 0; box-shadow: none; }
  .brand-lockup small { color: var(--gold-deep); }
  .skip, .header-actions, .report-footer { display: none; }
  .report-main { width: 100%; padding: 28px 0 0; }
  .report-title { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: 0 0 26px; }
  .report-date { text-align: right; }
  .report-main h1 { font-size: 34px; }
  .report-main h2 { font-size: 24px; }
  .lede { font-size: 16px; }
  .score-band { grid-template-columns: 180px minmax(0, 1fr); border-radius: 0; background: var(--panel); box-shadow: none; }
  .score-block { min-height: 180px; border-right: 1px solid var(--line2); border-bottom: 0; }
  .score-block::before { inset: 24px; }
  .score-block strong { font-size: 58px; }
  .score-summary { padding: 24px; }
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--panel); }
  .metric { min-height: 86px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 0; }
  .metric:last-child { border-right: 0; }
  .report-section { padding: 28px 0; break-inside: auto; }
  .report-section[aria-labelledby="next-sequence"] { break-before: page; padding-top: 0; }
  .section-heading p, .readiness-item p, .priority-item p, .evidence-table td, .boundary p:last-child { font-size: 13px; }
  .readiness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readiness-item { min-height: 0; padding: 16px; }
  .priority-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--panel); }
  .priority-item { min-height: 150px; padding: 16px; border-right: 1px solid var(--line); border-bottom: 0; }
  .evidence-table { background: var(--panel); }
  .readiness-item, .metric, .priority-item, .boundary { break-inside: avoid; }
}
