:root {
  --bg: #f4f0e8;
  --ink: #14202b;
  --muted: #617080;
  --line: rgba(20, 32, 43, 0.12);
  --line-strong: rgba(20, 32, 43, 0.22);
  --paper: rgba(255, 252, 247, 0.9);
  --paper-strong: #fffdfa;
  --navy: #16324a;
  --forest: #1e4f4e;
  --sand: #b68449;
  --rose: #93524d;
  --shadow: 0 28px 80px rgba(25, 31, 40, 0.12);
  --shadow-soft: 0 18px 36px rgba(25, 31, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Avenir Next", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(22, 50, 74, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(30, 79, 78, 0.12), transparent 20%),
    linear-gradient(180deg, #efe8dd 0%, #f7f4ee 38%, #fbfaf7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 620px), rgba(255, 255, 255, 0.24) calc(50% - 620px), rgba(255, 255, 255, 0.24) calc(50% + 620px), transparent calc(50% + 620px), transparent 100%);
}

.page-shell {
  position: relative;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 96px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.kicker,
.section-tag,
.metric-label,
.decision-label,
.report-type {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.meta-chip,
.confidence-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.meta-chip-strong {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.banner-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.banner-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.72);
  box-shadow: var(--shadow-soft);
  min-height: 134px;
}

.banner-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.04rem;
}

.banner-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.banner-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-dark,
.panel-light,
.metric-panel,
.insight-card,
.table-shell,
.anchor-card,
.side-panel,
.report-link {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.panel-dark {
  border-radius: 34px;
  padding: 42px;
  color: #f7f5f0;
  background:
    linear-gradient(135deg, rgba(19, 39, 58, 0.97), rgba(28, 61, 83, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.panel-dark .section-tag,
.panel-dark .hero-summary {
  color: rgba(247, 245, 240, 0.76);
}

.panel-light,
.metric-panel,
.insight-card,
.table-shell,
.anchor-card,
.side-panel,
.report-link {
  background: var(--paper);
  backdrop-filter: blur(10px);
}

.hero-side {
  border-radius: 30px;
  padding: 26px;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
.topbar-title,
.side-panel h3,
.report-link strong,
.decision-item strong,
.metric-panel strong,
.anchor-card h3,
.insight-card h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

h1 {
  margin-bottom: 18px;
  max-width: 11ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0;
  max-width: 20ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.22rem;
}

.hero-summary,
.decision-item p,
.metric-panel p,
.insight-card p,
.list-clean,
.anchor-card p,
.list-numbered,
td,
th,
.report-link p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-summary {
  max-width: 58ch;
  font-size: 1.06rem;
}

.hero-summary strong {
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-light {
  background: #f7f5f0;
  color: var(--navy);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.decision-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.muted {
  margin-bottom: 0;
}

.decision-list {
  display: grid;
  gap: 14px;
}

.decision-item {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.decision-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.decision-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.45rem;
  color: var(--ink);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.metric-panel {
  border-radius: 22px;
  padding: 22px;
}

.metric-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2.2rem;
  line-height: 1;
}

.metric-panel p {
  margin-bottom: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 18px;
  margin-top: 34px;
}

.main-column,
.side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.section-block {
  padding-top: 6px;
}

.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.insight-card,
.anchor-card,
.side-panel,
.report-link {
  border-radius: 24px;
  padding: 24px;
}

.insight-card-priority {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(246, 240, 231, 0.92));
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(22, 50, 74, 0.08);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.list-clean,
.list-numbered {
  margin-bottom: 0;
  padding-left: 18px;
}

.table-shell {
  overflow: hidden;
  border-radius: 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-strong);
}

th,
td {
  padding: 18px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(20, 32, 43, 0.08);
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(22, 50, 74, 0.04);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pill-green {
  color: var(--forest);
  background: rgba(30, 79, 78, 0.12);
}

.pill-amber {
  color: var(--sand);
  background: rgba(182, 132, 73, 0.14);
}

.pill-red {
  color: var(--rose);
  background: rgba(147, 82, 77, 0.12);
}

.anchor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.anchor-name {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-panel {
  box-shadow: var(--shadow);
}

.side-panel-accent {
  background: linear-gradient(180deg, rgba(22, 50, 74, 0.96), rgba(30, 61, 82, 0.94));
  color: #f7f5f0;
}

.side-panel-accent .section-tag,
.side-panel-accent p {
  color: rgba(247, 245, 240, 0.8);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.report-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}

.report-link strong {
  font-size: 1.2rem;
  line-height: 1.15;
}

.report-link p {
  margin-bottom: 0;
}

.report-link-featured {
  background: linear-gradient(135deg, rgba(22, 50, 74, 0.98), rgba(31, 73, 92, 0.94));
  color: #f7f5f0;
}

.report-link-featured .report-type,
.report-link-featured p {
  color: rgba(247, 245, 240, 0.8);
}

.home-main {
  display: grid;
  gap: 28px;
}

.hero-compact {
  align-items: stretch;
}

.hero-compact .hero-main,
.hero-compact .hero-side {
  display: grid;
  align-content: start;
}

.hero-compact .hero-summary {
  max-width: 46ch;
}

.focus-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.focus-card h2 {
  max-width: none;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
}

.focus-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.74;
}

.narrative-section,
.proof-section {
  display: grid;
  gap: 18px;
}

.narrative-lead {
  display: grid;
  gap: 10px;
  max-width: 840px;
}

.narrative-lead h2 {
  max-width: 16ch;
}

.narrative-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.narrative-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.narrative-columns p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.8;
}

.narrative-columns p:last-child,
.proof-intro {
  color: var(--muted);
}

.value-panel {
  padding: 22px 28px;
  border: 1px solid rgba(22, 50, 74, 0.1);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(22, 50, 74, 0.96), rgba(31, 73, 92, 0.93));
  box-shadow: var(--shadow-soft);
  color: rgba(247, 245, 240, 0.92);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.52;
}

.proof-intro {
  max-width: 62ch;
  margin-bottom: 0;
  font-size: 1.02rem;
  line-height: 1.72;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proof-grid .report-link {
  min-height: 0;
  gap: 8px;
}

.metric-panel,
.insight-card,
.anchor-card,
.side-panel,
.report-link,
.panel-light {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.metric-panel:hover,
.insight-card:hover,
.anchor-card:hover,
.side-panel:hover,
.report-link:hover,
.panel-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 54px rgba(25, 31, 40, 0.13);
}

@media (min-width: 1280px) {
  .page-shell {
    width: min(1440px, calc(100% - 72px));
    padding-top: 34px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.7fr) minmax(360px, 0.95fr);
  }

  .content-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  }

  .banner-strip {
    grid-template-columns: 1.15fr 1.15fr 0.9fr;
  }

  .hero-main {
    padding-bottom: 46px;
  }

  .panel-dark {
    padding: 52px;
  }

  .hero-side {
    padding: 30px;
  }

  .metrics-grid {
    gap: 16px;
  }

  .metric-panel,
  .insight-card,
  .anchor-card,
  .side-panel,
  .report-link,
  .banner-card {
    border-radius: 26px;
  }

  .report-grid {
    grid-template-columns: 1.15fr 0.95fr 0.95fr 0.95fr;
  }

  .hero-summary {
    max-width: 60ch;
  }

  .decision-item strong {
    font-size: 1.55rem;
  }

  .metric-panel strong {
    font-size: 2.45rem;
  }

  .report-link strong {
    font-size: 1.28rem;
  }
}

@media (max-width: 1080px) {
  .hero,
  .content-grid,
  .narrative-columns,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .banner-strip,
  .metrics-grid,
  .anchor-grid,
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .hero-main {
    padding-bottom: 34px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1320px);
    padding-top: 16px;
    padding-bottom: 72px;
  }

  .topbar {
    flex-direction: column;
    margin-bottom: 18px;
  }

  .topbar-meta {
    justify-content: flex-start;
  }

  .home-main {
    gap: 22px;
  }

  .panel-dark,
  .hero-side,
  .metric-panel,
  .insight-card,
  .anchor-card,
  .side-panel,
  .report-link {
    padding: 18px;
  }

  .panel-dark {
    padding: 22px;
  }

  .panel-dark,
  .hero-side,
  .table-shell {
    border-radius: 24px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.3rem, 12vw, 3.6rem);
    line-height: 0.97;
  }

  h2 {
    font-size: 1.7rem;
    max-width: none;
  }

  .hero-actions,
  .button,
  .metrics-grid,
  .banner-strip,
  .anchor-grid,
  .report-grid {
    width: 100%;
  }

  .hero-actions {
    gap: 10px;
  }

  .button,
  .metrics-grid,
  .banner-strip,
  .anchor-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .banner-strip {
    margin-top: 12px;
  }

  .banner-card {
    min-height: 0;
    padding: 16px;
  }

  .banner-card strong {
    font-size: 0.98rem;
  }

  .banner-card p {
    font-size: 0.92rem;
  }

  .metrics-grid {
    margin-top: 14px;
  }

  .metric-panel strong {
    font-size: 1.9rem;
  }

  .topbar-title {
    font-size: 1.08rem;
  }

  .focus-card h2 {
    font-size: 1.5rem;
  }

  .hero-summary {
    font-size: 0.96rem;
  }

  .narrative-section,
  .proof-section {
    gap: 14px;
  }

  .narrative-panel,
  .value-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .narrative-columns {
    gap: 14px;
  }

  .value-panel {
    font-size: 1.02rem;
    line-height: 1.58;
  }

  .hero-summary,
  .focus-card p,
  .narrative-columns p,
  .proof-intro,
  .decision-item p,
  .metric-panel p,
  .insight-card p,
  .anchor-card p,
  .list-clean,
  .list-numbered,
  td,
  th,
  .report-link p {
    line-height: 1.62;
  }

  .table-shell {
    border-radius: 20px;
  }

  .decision-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-shell {
    overflow: visible;
  }

  thead {
    display: none;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper-strong);
  }

  td {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(20, 32, 43, 0.08);
    text-align: right;
  }

  td::before {
    content: attr(data-label);
    flex: 0 0 92px;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
  }

  tr td:last-child {
    border-bottom: 0;
  }
}
