:root {
  --paper: #f3f1eb;
  --paper-bright: #fbfaf7;
  --ink: #101820;
  --ink-soft: #3e4851;
  --rule: #c9c7bf;
  --blue: #1746d1;
  --blue-dark: #0b2c8f;
  --orange: #f05a28;
  --moss: #496149;
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Century Gothic", "Trebuchet MS", sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --page: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(16, 24, 32, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 32, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 46rem);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(23, 70, 209, .35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--ink);
  background: rgba(243, 241, 235, .94);
  backdrop-filter: blur(12px);
}

.nav-shell {
  width: var(--page);
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
}

.brand-word {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-dot {
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
}

.site-nav .nav-contact {
  margin-left: 8px;
  padding-inline: 16px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.site-nav .nav-contact:hover {
  color: var(--ink);
  background: transparent;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 18px;
  height: 2px;
  display: block;
  content: "";
  background: currentColor;
  transition: transform .2s ease;
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(4px);
}

.eyebrow,
.section-label,
.article-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label::before,
.article-kicker::before {
  width: 22px;
  height: 2px;
  display: inline-block;
  margin: 0 9px 3px 0;
  content: "";
  background: var(--orange);
}

.hero {
  min-height: 690px;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}

.hero-inner {
  width: var(--page);
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr);
  grid-template-rows: 1fr auto;
  column-gap: 60px;
  align-items: center;
  padding-top: 42px;
}

.hero-copy {
  padding: 42px 0 54px;
}

.hero h1 {
  max-width: 930px;
  margin: 22px 0 26px;
  font-family: var(--serif);
  font-size: clamp(58px, 7.6vw, 112px);
  font-weight: 600;
  line-height: .91;
  letter-spacing: 0;
}

.hero h1 em {
  color: var(--blue);
  font-weight: 400;
}

.hero-summary {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.38;
}

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

.button-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.button-link::after {
  content: "\2197";
  font-size: 17px;
}

.button-link:hover {
  color: var(--blue);
  background: transparent;
}

.button-link.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.button-link.secondary:hover {
  color: #fff;
  background: var(--ink);
}

.impact-figure {
  position: relative;
  min-height: 430px;
  align-self: stretch;
  border-inline: 1px solid var(--rule);
}

.impact-figure::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(145deg, transparent 0 48%, rgba(240, 90, 40, .22) 48% 49%, transparent 49% 100%),
    radial-gradient(circle at 52% 42%, rgba(23, 70, 209, .18) 0 17%, transparent 17.5%),
    linear-gradient(90deg, transparent 49.7%, var(--rule) 50%, transparent 50.3%),
    linear-gradient(transparent 49.7%, var(--rule) 50%, transparent 50.3%);
  background-size: auto, auto, 72px 72px, 72px 72px;
}

.impact-number {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border: 12px solid var(--paper);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 70px;
  transform: translate(-50%, -50%);
}

.impact-note {
  position: absolute;
  right: 18px;
  bottom: 24px;
  max-width: 190px;
  padding: 12px;
  color: #fff;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-ledger {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.ledger-item {
  min-height: 92px;
  padding: 18px 20px;
  border-right: 1px solid var(--rule);
}

.ledger-item:first-child {
  padding-left: 0;
}

.ledger-item:last-child {
  border-right: 0;
}

.ledger-item strong,
.ledger-item span {
  display: block;
}

.ledger-item strong {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}

.ledger-item span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.section {
  border-bottom: 1px solid var(--rule);
}

.section-inner {
  width: var(--page);
  margin: 0 auto;
  padding: 104px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, .38fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-bottom: 64px;
}

.section-heading h2 {
  max-width: 850px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 74px);
  font-weight: 500;
  line-height: 1.02;
}

.section-heading p {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--ink-soft);
}

.service-ledger {
  border-top: 1px solid var(--ink);
}

.service-row {
  display: grid;
  grid-template-columns: 90px minmax(210px, .8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}

.service-row:hover .service-number {
  color: var(--orange);
}

.service-number {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.service-row h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.16;
}

.service-row p {
  max-width: 690px;
  margin: 0;
  color: var(--ink-soft);
}

.method-band {
  color: #fff;
  background: var(--ink);
}

.method-band .section-label,
.method-band .section-heading p {
  color: #c9d0d6;
}

.method-band .section-heading h2 {
  color: #fff;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #44505a;
}

.method-step {
  min-height: 300px;
  padding: 26px;
  border-right: 1px solid #44505a;
}

.method-step:last-child {
  border-right: 0;
}

.method-step span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
}

.method-step h3 {
  margin: 82px 0 14px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.method-step p {
  margin: 0;
  color: #b8c0c7;
  font-size: 14px;
}

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

.insight-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper-bright);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.insight-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(16, 24, 32, .10);
}

.insight-image {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: var(--blue);
  border-bottom: 1px solid var(--rule);
}

.insight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(.92);
  mix-blend-mode: screen;
  opacity: .76;
}

.insight-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(23, 70, 209, .20), rgba(240, 90, 40, .52));
  mix-blend-mode: multiply;
}

.insight-image.signal {
  background:
    linear-gradient(90deg, transparent 0 30%, var(--paper-bright) 30% 31%, transparent 31% 64%, var(--paper-bright) 64% 65%, transparent 65%),
    linear-gradient(153deg, var(--blue) 0 46%, var(--orange) 46% 49%, var(--moss) 49% 100%);
}

.insight-image.signal::before {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: 88px;
  height: 88px;
  content: "";
  border: 14px solid rgba(255,255,255,.86);
  border-radius: 50%;
}

.insight-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.insight-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.insight-card h3 {
  margin: 24px 0 12px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
}

.insight-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.insight-card .read-link {
  margin-top: auto;
  padding-top: 24px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.insight-card .read-link::after {
  content: "  \2192";
}

.insight-more {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

.contact-band {
  color: #fff;
  background: var(--blue);
  border-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 70px;
  align-items: end;
}

.contact-layout h2 {
  max-width: 760px;
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6.6vw, 88px);
  font-weight: 500;
  line-height: .98;
}

.contact-panel {
  padding: 28px;
  color: var(--ink);
  background: var(--paper-bright);
}

.contact-panel p {
  margin: 0 0 22px;
}

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-address {
  margin-top: 24px;
  padding-top: 20px;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.site-footer {
  color: #cdd2d6;
  background: #091016;
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  padding: 48px 0;
}

.footer-brand {
  color: #fff;
  font-family: var(--serif);
  font-size: 28px;
}

.footer-copy {
  max-width: 540px;
  margin: 12px 0 0;
  color: #9fa8af;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 14px 22px;
  font-size: 12px;
}

.footer-links a {
  color: #fff;
}

.footer-bottom {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 28px;
  border-top: 1px solid #303941;
  color: #7f8a92;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

/* Editorial index */
.page-hero {
  border-bottom: 1px solid var(--ink);
}

.page-hero-inner {
  width: var(--page);
  margin: 0 auto;
  padding: 96px 0 74px;
}

.page-hero h1 {
  max-width: 960px;
  margin: 20px 0 18px;
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 500;
  line-height: .92;
}

.page-hero p:last-child {
  max-width: 660px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 22px;
}

.filter-bar {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.filter-chip {
  padding: 8px 12px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12px;
}

.filter-chip.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.insights-index {
  width: var(--page);
  margin: 0 auto;
  padding: 58px 0 110px;
}

.insight-list {
  border-top: 1px solid var(--ink);
}

.insight-row {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr) minmax(220px, .45fr) 28px;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.insight-row:hover {
  color: inherit;
  background: rgba(255,255,255,.35);
}

.insight-row time,
.insight-row .topic {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.insight-row h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.08;
}

.insight-row .arrow {
  color: var(--blue);
  font-size: 22px;
}

/* Long-form editorial pages, including preserved article shells */
.article-page,
body:has(.shell > article) {
  background: var(--paper-bright);
}

.article-header {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.article-header-inner {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .32fr);
  gap: 54px;
  padding: 88px 0 68px;
}

.article-header h1 {
  max-width: 940px;
  margin: 20px 0 22px;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  line-height: .98;
}

.article-dek {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.42;
}

.article-facts {
  align-self: end;
  margin: 0;
  border-top: 1px solid var(--ink);
}

.article-facts div {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.article-facts dt,
.article-facts dd {
  margin: 0;
}

.article-facts dt {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.article-facts dd {
  margin-top: 3px;
  font-size: 13px;
  font-weight: 700;
}

.article-layout {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  gap: 64px;
  justify-content: center;
  padding: 70px 0 110px;
}

.article-aside {
  position: sticky;
  top: 28px;
  align-self: start;
}

.article-aside p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.article-aside a {
  display: block;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.article-content,
.shell > article {
  min-width: 0;
  color: #202a33;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.78;
}

.article-content > p:first-child::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  color: var(--blue);
  font-size: 4.2em;
  font-weight: 600;
  line-height: .76;
}

.article-content h2,
.shell > article h2 {
  margin: 2.2em 0 .7em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.12;
}

.article-content h3,
.shell > article h3 {
  margin: 1.8em 0 .55em;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.25;
}

.article-content p,
.article-content ul,
.article-content ol,
.shell > article p,
.shell > article ul,
.shell > article ol {
  margin: 1em 0;
}

.article-content li,
.shell > article li {
  margin: .45em 0;
}

.article-content blockquote {
  margin: 2em 0;
  padding: 1px 0 1px 24px;
  color: var(--blue-dark);
  border-left: 5px solid var(--orange);
  font-size: 24px;
  line-height: 1.45;
}

.article-content .framework {
  margin: 2em 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
}

.framework div {
  padding: 20px;
  border-right: 1px solid var(--rule);
}

.framework div:last-child {
  border-right: 0;
}

.framework strong {
  display: block;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.framework span {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
}

.article-content table,
.shell > article table {
  width: 100% !important;
  display: block;
  margin: 2em 0 !important;
  border-collapse: collapse;
  overflow-x: auto;
  font-family: var(--sans);
  font-size: 13px !important;
}

.article-content th,
.article-content td,
.shell > article th,
.shell > article td {
  padding: 11px 12px !important;
  border: 1px solid var(--rule) !important;
}

.article-content th,
.shell > article th {
  color: #fff !important;
  background: var(--ink) !important;
}

.article-content img,
.shell > article img {
  width: auto;
  max-height: 600px;
  margin: 2em auto;
  border: 1px solid var(--rule) !important;
  border-radius: 2px !important;
  box-shadow: 0 14px 30px rgba(16,24,32,.10);
}

.article-cta {
  margin-top: 3em;
  padding: 28px;
  color: #fff;
  background: var(--blue);
}

.article-cta h2 {
  margin-top: 0;
  color: #fff;
}

.article-cta a {
  color: #fff;
  font-weight: 800;
}

.related-reading {
  margin-top: 3em;
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}

.related-reading h2 {
  margin-top: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.related-reading a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* Preserved article shell enhancement */
.shell {
  width: min(860px, calc(100vw - 48px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 0 90px !important;
}

.shell > header {
  margin: 0 0 58px !important;
  padding: 24px 0 !important;
  border-bottom: 1px solid var(--ink) !important;
}

.shell > header a {
  color: var(--ink) !important;
  font-family: var(--mono);
  font-size: 11px !important;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.shell > article h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 76px);
  font-weight: 500;
  line-height: 1;
}

.shell > article .meta {
  margin-bottom: 42px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.shell > footer {
  margin-top: 60px !important;
  padding: 24px 0 !important;
  color: var(--ink-soft) !important;
  border-top: 1px solid var(--ink) !important;
  font-family: var(--mono);
  font-size: 10px !important;
  text-transform: uppercase;
}

/* Legal pages */
.legal-page {
  background: var(--paper-bright);
}

.legal-layout {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 72px;
  justify-content: center;
  padding: 72px 0 110px;
}

.legal-nav {
  position: sticky;
  top: 24px;
  align-self: start;
  border-top: 1px solid var(--ink);
}

.legal-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.legal-copy {
  font-family: var(--serif);
  font-size: 17px;
}

.legal-copy h2 {
  margin: 2.2em 0 .65em;
  font-size: 34px;
  line-height: 1.15;
}

.legal-copy h3 {
  margin: 1.8em 0 .5em;
  font-family: var(--sans);
  font-size: 18px;
}

.legal-copy p,
.legal-copy ul {
  margin: 1em 0;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  :root {
    --page: min(100% - 32px, 760px);
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 16px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--rule);
  }

  .site-nav .nav-contact {
    margin: 8px 0 0;
    padding: 13px 14px;
    text-align: center;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .impact-figure {
    min-height: 310px;
    border-top: 1px solid var(--rule);
  }

  .hero-ledger {
    grid-template-columns: repeat(2, 1fr);
  }

  .ledger-item:first-child {
    padding-left: 20px;
  }

  .section-heading,
  .contact-layout,
  .article-header-inner {
    grid-template-columns: 1fr;
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-step:nth-child(2) {
    border-right: 0;
  }

  .method-step:nth-child(-n+2) {
    border-bottom: 1px solid #44505a;
  }

  .insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout,
  .legal-layout {
    grid-template-columns: minmax(0, 760px);
  }

  .article-aside,
  .legal-nav {
    position: static;
  }

  .article-aside {
    display: none;
  }

  .legal-nav {
    display: flex;
    gap: 18px;
  }

  .legal-nav a {
    border: 0;
  }

  .insight-row {
    grid-template-columns: 100px minmax(0, 1fr) 24px;
  }

  .insight-row .topic {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --page: calc(100% - 28px);
  }

  .nav-shell {
    min-height: 72px;
  }

  .site-nav {
    top: 72px;
  }

  .brand-mark {
    font-size: 26px;
  }

  .brand-word {
    display: none;
  }

  .hero-inner {
    padding-top: 18px;
  }

  .hero-copy {
    padding: 42px 0;
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 76px);
  }

  .hero-ledger,
  .method-grid,
  .insight-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ledger-item,
  .ledger-item:first-child {
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .section-inner {
    padding: 74px 0;
  }

  .section-heading {
    gap: 26px;
    margin-bottom: 44px;
  }

  .section-heading h2 {
    font-size: 46px;
  }

  .service-row {
    grid-template-columns: 46px 1fr;
    gap: 18px;
  }

  .service-row p {
    grid-column: 2;
  }

  .method-step,
  .method-step:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #44505a;
  }

  .method-step h3 {
    margin-top: 44px;
  }

  .contact-layout {
    gap: 36px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 8px;
  }

  .page-hero-inner {
    padding: 74px 0 58px;
  }

  .page-hero h1 {
    font-size: 58px;
  }

  .insight-row {
    grid-template-columns: 1fr 24px;
    gap: 12px;
  }

  .insight-row time {
    grid-column: 1 / -1;
  }

  .article-header-inner {
    gap: 32px;
    padding: 64px 0 50px;
  }

  .article-header h1 {
    font-size: 50px;
  }

  .article-layout,
  .legal-layout {
    padding: 50px 0 78px;
  }

  .article-content,
  .shell > article {
    font-size: 17px;
  }

  .article-content h2,
  .shell > article h2 {
    font-size: 32px;
  }

  .article-content .framework {
    grid-template-columns: 1fr;
  }

  .framework div {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .framework div:last-child {
    border-bottom: 0;
  }

  .shell {
    width: calc(100vw - 28px) !important;
  }
}
/* Narrow-screen containment */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  :root {
    --page: calc(100% - 32px);
  }

  .site-header,
  .hero,
  .section,
  .site-footer,
  main {
    width: 100%;
    max-width: 100%;
  }

  .nav-shell,
  .section-inner,
  .page-hero-inner,
  .filter-bar,
  .insights-index,
  .article-header-inner,
  .article-layout,
  .legal-layout,
  .footer-inner,
  .footer-bottom {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
  }

  .hero-inner {
    width: 100%;
    max-width: 100%;
    display: block;
    padding: 16px 16px 0;
    overflow: hidden;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
    padding: 34px 0 38px;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    margin: 18px 0 22px;
    font-size: clamp(44px, 13.5vw, 56px);
    line-height: .96;
    overflow-wrap: anywhere;
  }

  .hero-summary {
    width: 100%;
    max-width: 100%;
    font-size: 19px;
    line-height: 1.42;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button-link {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    white-space: normal;
    text-align: center;
  }

  .impact-figure {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 270px;
    border: 1px solid var(--rule);
    border-bottom: 0;
    overflow: hidden;
  }

  .impact-number {
    width: 118px;
    height: 118px;
    border-width: 9px;
    font-size: 52px;
  }

  .impact-note {
    right: 12px;
    bottom: 14px;
    left: 12px;
    max-width: none;
  }

  .hero-ledger {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .service-row,
  .section-heading,
  .contact-layout,
  .article-header-inner,
  .insight-card,
  .insight-row {
    min-width: 0;
  }

  .contact-email,
  .article-content a,
  .legal-copy a {
    overflow-wrap: anywhere;
  }
}
/* Preserved legal-page shell */
.legacy-legal .loading,
.legacy-legal > header.header {
  display: none !important;
}

.legacy-legal .navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.legacy-legal .navbar .container {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legacy-legal .navbar .container::before {
  content: "HDL Impact Marketing";
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
}

.legacy-legal .navbar-toggler {
  display: none;
}

.legacy-legal .navbar .collapse {
  display: block;
}

.legacy-legal .navbar-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legacy-legal .navbar-nav .nav-item:not(:has(a)) {
  display: none;
}

.legacy-legal .navbar-nav a {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.legacy-legal section.about {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-bright);
}

.legacy-legal section.about > .container {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 104px;
  font-family: var(--serif);
  font-size: 17px;
}

.legacy-legal section.about h1 {
  margin: 0 0 36px;
  font-size: clamp(46px, 7vw, 78px);
  font-weight: 500;
  line-height: 1;
}

.legacy-legal section.about h2 {
  margin: 2em 0 .6em;
  font-size: 34px;
  line-height: 1.15;
}

.legacy-legal section.about h3 {
  margin: 1.7em 0 .5em;
  font-family: var(--sans);
  font-size: 18px;
}

.legacy-legal section.about p,
.legacy-legal section.about ul {
  margin: 1em 0;
}

.legacy-legal > footer {
  padding: 28px 16px;
  color: #cdd2d6;
  background: var(--ink);
  text-align: center;
  font-size: 12px;
}

.legacy-legal > footer a {
  color: #fff;
}

@media (max-width: 640px) {
  .legacy-legal .navbar {
    min-height: 68px;
  }

  .legacy-legal .navbar .container::before {
    font-size: 21px;
  }

  .legacy-legal .navbar .collapse {
    display: none;
  }

  .legacy-legal section.about > .container {
    padding: 54px 0 72px;
  }

  .legacy-legal section.about h1 {
    font-size: 46px;
    overflow-wrap: anywhere;
  }

  .legacy-legal section.about h2 {
    font-size: 29px;
  }
}
@media (max-width: 640px) {
  .hero-copy,
  .hero-copy > * {
    min-width: 0;
    max-width: calc(100vw - 32px);
  }

  .hero-summary {
    width: auto;
    padding-right: 4px;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .eyebrow {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }
}
@media (max-width: 640px) {
  .hero-summary {
    width: calc(100vw - 56px);
    max-width: calc(100vw - 56px);
    padding-right: 0;
    font-size: 18px;
  }
}
@media (max-width: 640px) {
  .filter-bar {
    flex-wrap: wrap;
    overflow: visible;
  }

  .filter-chip {
    min-width: 0;
  }

  .shell > article,
  .shell > article * {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .shell > article table {
    overflow-x: auto;
    overflow-wrap: normal;
  }
}
@media (max-width: 640px) {
  .shell > article table {
    width: 100% !important;
    table-layout: fixed;
  }

  .shell > article th,
  .shell > article td {
    min-width: 0 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}
