:root {
  --bg: #e7e6e3;
  --surface: #f7f6f4;
  --text: #1b1c1f;
  --accent: #9e1b32;
  --accent2: #575c64;
  --rule: #b8b9b8;
  --heading: 'Helvetica Neue', Helvetica, Arial, 'Nimbus Sans', sans-serif;
  --body: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --gutter: clamp(20px, 4vw, 64px);
  --gap: clamp(16px, 2.2vw, 34px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: clamp(16px, 0.3vw + 15px, 19px); line-height: 1.75; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--surface); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.22em; overflow-wrap: anywhere; transition: color 160ms ease, background-color 160ms ease; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; filter: grayscale(1) contrast(1.08); }
figure { margin: 0; }
p { margin: 0 0 1.25em; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--heading); font-weight: 750; line-height: 1.08; letter-spacing: -0.035em; overflow-wrap: normal; word-break: normal; hyphens: auto; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.25vw, 84px); text-transform: uppercase; letter-spacing: -0.055em; }
h2 { font-size: clamp(27px, 2.75vw, 43px); }
h3 { font-size: clamp(23px, 2vw, 30px); }
h4, h5, h6 { font-size: 1.15rem; }
ul, ol { padding-left: 1.4em; }
li { padding-left: 0.15em; }
li::marker { color: var(--accent); }
strong, b { font-weight: 700; }
small { font-size: max(12px, 0.85em); }
hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--rule); }
blockquote { margin: 2rem 0; padding: 0.5rem 0 0.5rem 1.5rem; border-left: 3px solid var(--accent); font-size: 1.15em; }
figcaption { padding-top: 0.75rem; color: var(--accent2); font: 0.8rem/1.5 var(--heading); }
table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
th, td { padding: 0.8em; border-bottom: 1px solid var(--rule); text-align: left; overflow-wrap: anywhere; }
th { font-family: var(--heading); }
.wrap { width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }
.wrap > *, .card-grid > *, .partner-list > * { min-width: 0; }
.skip-link { position: fixed; top: 12px; left: var(--gutter); z-index: 20; padding: 12px 20px; background: var(--surface); font-family: var(--heading); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-top: 7px solid var(--accent); background: var(--surface); }
.header-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; padding-block: 26px; border-bottom: 1px solid var(--text); }
.brand { grid-column: span 4; color: var(--text); font: 800 clamp(21px, 2.1vw, 31px)/1 var(--heading); letter-spacing: -0.055em; text-transform: uppercase; text-decoration: none; }
.brand::before { content: ''; display: inline-block; width: 10px; height: 0.8em; margin-right: 12px; background: var(--accent); }
.site-nav { grid-column: span 8; font: 600 0.79rem/1.4 var(--heading); }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.site-nav li, .footer-nav li { padding: 0; }
.site-nav a { display: block; padding-block: 8px; color: var(--text); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--accent); border-bottom-color: var(--accent); }
.hero { background: var(--surface); padding-block: clamp(35px, 5vw, 76px) clamp(48px, 6vw, 96px); }
.hero-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 30px var(--gap); }
.hero-text { display: contents; }
.eyebrow { margin: 0; color: var(--accent); font: 700 0.75rem/1.5 var(--heading); letter-spacing: 0.16em; text-transform: uppercase; }
.hero .eyebrow { grid-column: 1 / -1; }
.hero h1 { grid-column: 1 / -1; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.lead { font-size: clamp(18px, 1.25vw + 5px, 24px); line-height: 1.65; }
.hero .lead { grid-column: 1 / 8; grid-row: 3; margin: 0; }
.hero-actions { grid-column: 1 / 8; grid-row: 4; align-self: start; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; max-width: 100%; padding: 16px 22px; border: 1px solid var(--accent); font: 700 0.87rem/1.4 var(--heading); text-decoration: none; }
.btn::after { content: '\2197'; font-size: 1.35em; }
.btn-primary { background: var(--accent); color: var(--surface); }
.btn:hover { background: var(--text); color: var(--surface); border-color: var(--text); }
.hero-media { grid-column: 9 / -1; grid-row: 3 / 5; align-self: stretch; }
.hero-media, .split-media, .article-figure { position: relative; overflow: hidden; border-bottom: 7px solid var(--accent); background: var(--rule); }
.hero-media::after, .split-media::after, .article-figure::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(#1b1c1f 0.5px, transparent 0.8px); background-size: 3px 3px; opacity: 0.15; }
.hero-media img { height: 100%; min-height: 280px; }
main { counter-reset: section; }
.section { padding-block: clamp(44px, 6vw, 90px); border-top: 1px solid var(--rule); counter-increment: section; }
.section > .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px var(--gap); }
.section-title { grid-column: 1 / 6; }
.section-number, .section-title::before, .article .prose h2::before { white-space: nowrap; word-break: normal; min-width: 2ch; flex-shrink: 0; }
.section-title::before { content: counter(section, decimal-leading-zero); display: block; margin-bottom: 24px; color: var(--accent); font: 600 0.8rem/1 var(--heading); letter-spacing: 0.05em; }
.section > .wrap > .prose { grid-column: 7 / -1; padding-top: 37px; }
.prose { overflow-wrap: anywhere; }
.prose > :last-child, .split-text > :last-child { margin-bottom: 0; }
.section-intro { grid-column: 7 / -1; align-self: end; max-width: 60ch; margin: 0; color: var(--accent2); }
.section-feature { background: var(--surface); }
.split { align-items: start; }
.split-text { grid-column: 1 / 7; }
.split-text .section-title { margin-bottom: 30px; }
.split-media { grid-column: 8 / -1; margin-top: 37px; }
.split-media img { aspect-ratio: 4 / 5; }
.card-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 24px; counter-reset: card; }
.card { grid-column: span 3; display: flex; flex-direction: column; align-items: start; padding: 22px 0 10px; border-top: 2px solid var(--text); counter-increment: card; }
.card::before { content: counter(card, decimal-leading-zero) ' /'; color: var(--accent); margin-bottom: 30px; font: 600 0.75rem/1 var(--heading); }
.card-title { margin-bottom: 18px; font-size: clamp(24px, 2.2vw, 33px); }
.card-text { color: var(--accent2); font-size: 0.92em; line-height: 1.65; }
.card-link { margin-top: auto; padding-block: 10px; font: 700 0.8rem/1.5 var(--heading); }
.card-link::after { content: ' \2197'; margin-left: 8px; }
.fact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-block: 30px; padding: 0; list-style: none; }
.fact { padding-block: 18px; border-top: 1px solid var(--rule); }
.fact strong { display: block; font: 700 1.6rem/1.2 var(--heading); color: var(--accent); }
.section-partners { background: var(--surface); }
.partner-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; margin: 20px 0 0; list-style: none; border-left: 1px solid var(--rule); }
.partner { padding: 23px clamp(16px, 2vw, 30px); border: 1px solid var(--rule); border-left: 0; margin-top: -1px; }
.partner-link { display: block; font: 500 0.75rem/1.55 var(--heading); overflow-wrap: anywhere; word-break: normal; }
.partner-phrase { margin: 16px 0 8px; font: 700 1rem/1.3 var(--heading); }
.partner-desc { margin: 0; color: var(--accent2); font-size: 0.84rem; line-height: 1.65; }
.article { padding-block: 28px clamp(64px, 8vw, 120px); }
.article > .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); }
.breadcrumb { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--accent2); font: 500 0.75rem/1.6 var(--heading); margin-bottom: 44px; }
.breadcrumb a { color: var(--text); }
.page-header { grid-column: 1 / -1; padding-bottom: 36px; border-bottom: 1px solid var(--text); margin-bottom: 48px; }
.page-header h1 { max-width: 24ch; font-size: clamp(35px, 4.8vw, 76px); }
.page-header .lead { max-width: 65ch; margin: 32px 0 0 auto; }
.article .prose { grid-column: 4 / 11; counter-reset: chapter; }
.article .prose h2 { position: relative; margin: 54px 0 22px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: clamp(26px, 2.6vw, 38px); counter-increment: chapter; }
.article .prose h2::before { content: counter(chapter, decimal-leading-zero); position: absolute; top: 26px; right: calc(100% + var(--gap)); color: var(--accent); font: 600 0.8rem/1 var(--heading); }
.article .prose h3 { margin: 32px 0 18px; }
.article-figure { margin-block: 16px 44px; }
.article-figure img { aspect-ratio: 3 / 2; }
.note { margin-block: 28px; padding: 24px; background: var(--surface); border-left: 4px solid var(--accent); font-size: 0.95em; }
.site-footer { padding-block: 36px 48px; border-top: 5px solid var(--text); }
.footer-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.footer-note { grid-column: span 6; max-width: 65ch; margin: 0; color: var(--accent2); font: 0.8rem/1.7 var(--heading); }
.footer-nav { grid-column: 8 / -1; font: 500 0.8rem/1.5 var(--heading); }
.footer-nav a { display: inline-block; padding-block: 6px; color: var(--text); }

@media (min-width: 1000px) {
  .hero h1 { max-width: 23ch; }
}
@media (max-width: 1000px) {
  .brand { grid-column: 1 / -1; }
  .site-nav { grid-column: 1 / -1; }
  .site-nav ul { justify-content: flex-start; }
  .header-inner { gap: 18px; padding-block: 22px 14px; }
  .hero .lead { grid-column: 1 / 8; }
  .hero-media { grid-column: 8 / -1; }
  .card { grid-column: span 6; }
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article .prose { grid-column: 3 / 12; }
}
@media (max-width: 640px) {
  .site-nav { font-size: 0.76rem; }
  .site-nav ul { gap: 3px 18px; }
  .hero-inner { gap: 24px; }
  .hero h1 { padding-bottom: 24px; }
  .hero .lead, .hero-actions, .hero-media { grid-column: 1 / -1; grid-row: auto; }
  .hero-media { margin-top: 8px; }
  .hero-media img { aspect-ratio: 4 / 3; min-height: 0; height: auto; }
  .section-title, .section-intro, .section > .wrap > .prose, .split-text, .split-media { grid-column: 1 / -1; }
  .section > .wrap > .prose { padding-top: 0; }
  .section-title::before { margin-bottom: 18px; }
  .split-media { margin-top: 0; }
  .split-media img { aspect-ratio: 4 / 3; }
  .card-grid { margin-top: 12px; }
  .card { grid-column: 1 / -1; }
  .card::before { margin-bottom: 18px; }
  .partner-list { grid-template-columns: minmax(0, 1fr); }
  .fact-list { grid-template-columns: minmax(0, 1fr); }
  .breadcrumb { margin-bottom: 32px; }
  .page-header { margin-bottom: 28px; }
  .page-header .lead { margin-top: 26px; }
  .article .prose { grid-column: 1 / -1; }
  .article .prose h2::before { position: static; display: block; margin-bottom: 16px; }
  .article .prose h2 { margin-top: 38px; }
  .footer-note, .footer-nav { grid-column: 1 / -1; }
  .footer-nav ul { justify-content: flex-start; }
}
@media (max-width: 480px) {
  h1, .page-header h1 { min-width: 0; max-width: 100%; font-size: clamp(1.2rem, 5.5vw, 1.65rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-nav, .skip-link, .hero-actions, .footer-nav { display: none; }
  .wrap { width: 100%; }
  .article .prose { grid-column: 2 / 12; }
  .hero, .section-feature, .section-partners { background: white; }
  h1 { font-size: 32pt; }
  h2, h3 { break-after: avoid; }
  figure, .partner, .card { break-inside: avoid; }
}

.page { min-width: 0; }
.page-home { isolation: isolate; }
.page-sub { background-color: var(--bg); }
