:root {
  color-scheme: dark;
  --bg: #0d1a21;
  --surface: #14262f;
  --text: #e4eef1;
  --muted: #aec3cb;
  --accent: #4fd1c5;
  --accent2: #ffb454;
  --line: #2b545b;
  --heading: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: Charter, 'Iowan Old Style', Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  --gutter: clamp(1.25rem, 3.5vw, 3.75rem);
}

* { box-sizing: border-box; }
html, body { height: auto; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 1rem + .2vw, 1.2rem);
  line-height: 1.75;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
.page { min-height: 100svh; display: flex; flex-direction: column; }
main { height: auto; min-height: 0; flex: 1; min-width: 0; }
::selection { background: var(--accent); color: var(--bg); }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent2); }
a, button { -webkit-tap-highlight-color: #4fd1c533; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 5px; }
img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); line-height: 1.15; font-weight: 600; text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: auto; }
h1 { margin: 0 0 1.5rem; font-size: clamp(2.5rem, 4.6vw, 4.8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 2.6vw, 2.75rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.3rem, 1.5vw, 1.65rem); letter-spacing: -.02em; }
h4, h5, h6 { font-size: 1.15rem; }
p { margin: 0 0 1.25rem; }
ul, ol { padding-left: 1.4em; }
li { padding-left: .15em; }
li::marker { color: var(--accent); }
strong, b { font-weight: 700; }
small, figcaption { font-size: max(.75rem, .875em); color: var(--muted); }
figcaption { margin-top: .75rem; }
hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
blockquote { margin: 2rem 0; padding: .5rem 0 .5rem 1.5rem; border-left: 2px solid var(--accent); }
code, pre, kbd, samp { font-family: var(--mono); font-size: max(.75rem, .9em); }
code { color: var(--accent2); }
pre { padding: 1.25rem; background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem; border-bottom: 1px solid var(--line); text-align: left; }
th { font-family: var(--heading); }
button, input, textarea, select { max-width: 100%; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); padding: .6rem .8rem; }
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 20; padding: .6rem 1rem; background: var(--accent); color: var(--bg); font-family: var(--heading); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding-block: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; font: 650 clamp(1.05rem, 1.4vw, 1.3rem)/1.3 var(--heading); letter-spacing: -.035em; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand::before { content: ''; width: 23px; height: 28px; border: 1px solid var(--accent); background: repeating-linear-gradient(115deg, transparent 0 6px, var(--accent) 6px 7px, transparent 7px 12px); transform: skewY(-12deg); }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.35rem; list-style: none; padding: 0; margin: 0; }
.site-nav li, .footer-nav li { padding: 0; }
.site-nav a { display: inline-block; padding-block: .35rem; color: var(--text); font: 500 1rem/1.6 var(--heading); text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current='page'] { border-color: var(--accent); color: var(--accent); }

.hero { position: relative; border-bottom: 1px solid var(--line); background-image: linear-gradient(#4fd1c509 1px, transparent 1px), linear-gradient(90deg, #4fd1c509 1px, transparent 1px); background-size: 64px 64px; }
.hero-inner { width: 100%; margin: 0; padding-left: max(var(--gutter), calc((100% - 1320px) / 2)); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; }
.hero-text { padding: clamp(3.5rem, 7vw, 7rem) clamp(1.75rem, 4vw, 4rem) clamp(3.5rem, 7vw, 7rem) 0; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: .75rem; color: var(--accent); font: 500 .75rem/1.7 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.75rem; }
.eyebrow::before { content: ''; width: 1.5rem; height: 1px; background: var(--accent); flex-shrink: 0; }
.hero h1 { max-width: 12ch; }
.lead { font-size: clamp(1.2rem, 1.1rem + .45vw, 1.55rem); line-height: 1.6; color: var(--muted); max-width: 48ch; }
.hero-actions { margin-top: 2.2rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 1rem; padding: .95rem 1.25rem; border: 1px solid var(--accent); font: 600 .9rem/1.5 var(--heading); text-decoration: none; transition: background-color .2s, box-shadow .2s; }
.btn::after { content: '\2197'; font-size: 1.25rem; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #80e4da; color: var(--bg); box-shadow: 0 0 26px #4fd1c521; }
.hero-media { position: relative; min-width: 0; overflow: hidden; border-left: 1px solid var(--line); }
.hero-media img { height: 100%; position: absolute; inset: 0; object-position: 55% center; }
.hero-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #0d1a2155, transparent 35%), linear-gradient(0deg, #0d1a2166, transparent 40%); border: 1px solid #4fd1c51a; }

.section { padding-block: clamp(3.5rem, 6.5vw, 6.5rem); }
.section-title { margin: 0 0 1.1rem; }
.section-intro { max-width: 62ch; color: var(--muted); margin-bottom: 2.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: topics; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: clamp(1.4rem, 2.5vw, 2.3rem); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .2s; counter-increment: topics; }
.card::before { content: '0' counter(topics); font: .8rem/1 var(--mono); color: var(--accent2); margin-bottom: 2.2rem; }
.card::after { content: ''; position: absolute; top: -1px; right: -1px; width: 18px; height: 18px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.card-title { margin: 0 0 1rem; }
.card-text { color: var(--muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.75rem; }
.card-link { font: 600 .9rem/1.6 var(--heading); text-decoration: none; align-self: flex-start; padding-block: .25rem; border-bottom: 1px solid #4fd1c566; }
.card .card-link { margin-top: auto; }
.card-link::after { content: '\2192'; margin-left: .8rem; }
.card:focus-within { border-color: var(--accent); box-shadow: 0 0 24px #4fd1c512; }
.section-feature { border-block: 1px solid var(--line); background: var(--surface); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.split-text { min-width: 0; }
.split-text p { color: var(--muted); }
.split-text p:last-child { margin-bottom: 0; }
.split-media { padding: .6rem; border: 1px solid var(--line); position: relative; }
.split-media::after { content: ''; position: absolute; bottom: -.4rem; left: 1.7rem; width: 4rem; height: .4rem; background: var(--accent2); }
.split-media img { aspect-ratio: 1.15; object-fit: cover; }
.fact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); counter-reset: facts; }
.fact { counter-increment: facts; padding: 1.5rem 1.5rem 0 0; margin-right: 1.5rem; font-size: 1.1rem; line-height: 1.6; }
.fact::before { content: '0' counter(facts) ' /'; display: block; font: .75rem/1 var(--mono); color: var(--accent); margin-bottom: 1.25rem; }
.section-partners { padding-bottom: 4rem; border-top: 1px solid var(--line); background: #10212a; }
.partner-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); padding: 0; margin: 0; }
.partner { min-width: 0; padding: 2rem 0; border-top: 1px solid var(--line); }
.partner-link { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font: 500 1rem/1.6 var(--mono); letter-spacing: -.025em; word-break: normal; hyphens: none; text-decoration: none; }
.partner-link:hover { text-decoration: underline; }
.partner-phrase { margin: .65rem 0 .35rem; color: var(--accent2); font: 500 .85rem/1.6 var(--heading); }
.partner-desc { color: var(--muted); font-size: 1rem; line-height: 1.7; margin: 0; max-width: 55ch; }

.article { padding-block: clamp(2rem, 4vw, 4rem) 4rem; background-image: linear-gradient(90deg, transparent calc(100% - 1px), #4fd1c507 1px); background-size: 80px 100%; }
.page-sub .article > .wrap { max-width: 68ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem .7rem; color: var(--muted); font: .75rem/1.8 var(--mono); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.breadcrumb a { text-decoration: none; }
.page-header { border-bottom: 1px solid var(--line); padding-bottom: 2rem; margin-bottom: 2.5rem; position: relative; }
.page-header::after { content: ''; width: 4rem; height: 2px; background: var(--accent); position: absolute; bottom: -1px; left: 0; }
.page-header h1 { font-size: clamp(2.3rem, 4.3vw, 4.1rem); max-width: 20ch; }
.page-header .lead { max-width: none; margin: 0; }
.article-figure { margin: 0 0 2.75rem; padding: .5rem; border: 1px solid var(--line); background: var(--surface); }
.article-figure img { aspect-ratio: 3 / 2; object-fit: cover; }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.5rem; }
.prose h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin: 2.75rem 0 1.1rem; }
.prose h3 { margin: 2rem 0 1rem; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin-block: 1.5rem; }
.prose li { margin-bottom: .6rem; }
.prose a { overflow-wrap: anywhere; }
dl { margin: 0; }
dt { border-top: 1px solid var(--line); padding-top: 1.4rem; color: var(--accent); font: 600 1.15rem/1.5 var(--heading); }
dd { margin: .5rem 0 1.5rem; color: var(--muted); }
.note { padding: 1.25rem 1.5rem; margin-block: 2rem; background: var(--surface); border-left: 3px solid var(--accent2); }
.site-footer { margin-top: 0; border-top: 1px solid var(--line); padding-block: 2.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem 4rem; }
.footer-note { color: var(--text); max-width: 65ch; font-size: 1rem; line-height: 1.65; margin: 0; }
.footer-nav { flex-shrink: 0; }
.footer-nav a { display: inline-block; padding-block: .25rem; font: 1rem/1.7 var(--heading); color: var(--text); }
.footer-nav a:hover { color: var(--accent); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 6px 28px #4fd1c512; }
}
@media (min-width: 1500px) {
  .hero-inner { grid-template-columns: minmax(0, 650px) minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .site-nav ul { gap: .25rem 1.5rem; }
  .hero h1 { font-size: clamp(2.5rem, 5.2vw, 3.75rem); }
  .footer-inner { flex-direction: column; gap: 1.25rem; }
}
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding: 3.5rem var(--gutter) 3rem 0; }
  .hero h1 { max-width: 18ch; font-size: clamp(2.5rem, 7vw, 3.75rem); }
  .hero .lead { max-width: 52ch; }
  .hero-media { min-height: 280px; height: clamp(280px, 55vw, 420px); border-top: 1px solid var(--line); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-media img { aspect-ratio: 16 / 10; }
  .fact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
  .partner-link { font-size: .9375rem; }
}
@media (max-width: 540px) {
  .header-inner { padding-block: 1.2rem; }
  .site-nav { width: 100%; }
  .site-nav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem .55rem; }
  .site-nav a { font-size: .9375rem; padding-block: .45rem; }
  .eyebrow { font-size: .75rem; letter-spacing: .07em; }
  .card-grid, .partner-list { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 1.5rem; }
  .card::before { margin-bottom: 1.5rem; }
  .fact { margin-right: .75rem; padding-right: .25rem; font-size: 1rem; }
  .partner-link { font-size: .9375rem; }
  .partner { padding: 1.25rem 0; }
  .footer-nav { flex-shrink: 1; }
  .footer-nav ul { gap: .5rem 1.1rem; }
}
@media (max-width: 480px) {
  .hero-text, .header-inner > *, .footer-inner > * { min-width: 0; max-width: 100%; }
  h1, .page-header h1 { max-width: 100%; font-size: clamp(1.6rem, 8vw, 2.25rem); }
  .hero h1 { max-width: 100%; font-size: clamp(2rem, 9.75vw, 2.75rem); }
  h2, .prose h2 { font-size: clamp(1.2rem, 5.5vw, 1.6rem); }
  h3 { font-size: clamp(1.2rem, 5vw, 1.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.page-home .section-title::before { content: ''; display: inline-block; width: .45rem; height: .45rem; margin: 0 .75rem .16em 0; background: var(--accent); box-shadow: 0 0 12px #4fd1c530; }

/* Balanced editorial layouts keep the available desktop width in use. */
@media (min-width: 801px) {
  .page-home .section:not(.section-feature):not(.section-partners) > .wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 3rem;
    align-items: start;
  }
  .page-home .section:not(.section-feature):not(.section-partners) .section-title,
  .page-home .section .card-grid { grid-column: 1 / -1; }
  .page-home .section:not(.section-feature):not(.section-partners) .section-title { margin-bottom: .25rem; }
  .page-home .section:not(.section-feature):not(.section-partners) .section-intro { max-width: none; margin: 0; }
  .page-home .section-intro:nth-last-child(2):nth-child(4) { grid-column: 1 / -1; }
  .page-home .card-grid { margin-top: 1rem; }
}
@media (min-width: 1101px) {
  .page-sub .article > .wrap {
    max-width: 1320px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem 3.5rem;
    align-items: start;
  }
  .article .breadcrumb { grid-column: 1 / -1; margin-bottom: 0; }
  .article .page-header { margin: 0; }
  .article .page-header h1 { font-size: clamp(2.5rem, 3.4vw, 3.5rem); }
  .article-figure { margin: 0; }
  .article-figure img { aspect-ratio: 4 / 5; }
  .article .prose { grid-column: 1 / -1; max-width: none; columns: 2; column-gap: 3.5rem; }
  .prose h2, .prose h3, .prose dt { break-after: avoid; }
  .prose p { orphans: 3; widows: 3; }
  .article > .wrap:not(:has(.article-figure)) .page-header { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  body { line-height: 1.65; }
  .section { padding-block: 2.75rem; }
  .section-intro { margin-bottom: 1.1rem; }
  .section-intro:last-child { margin-bottom: 0; }
  .hero-text { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero .lead, .page-header .lead { font-size: 1.125rem; line-height: 1.65; }
  .eyebrow { margin-bottom: 1.25rem; }
  .prose p { margin-bottom: 1rem; }
  .prose h2 { margin-top: 2rem; margin-bottom: .85rem; }
  .breadcrumb { margin-bottom: 1.75rem; font-size: .875rem; }
  .page-header { padding-bottom: 1.5rem; margin-bottom: 1.75rem; }
  .partner-desc { line-height: 1.6; }
}
