:root {
  color-scheme: dark;
  --bg: #1f0f33;
  --surface: #2e1949;
  --text: #f1e8f7;
  --accent: #f2b64b;
  --accent2: #4fd0b0;
  --muted: #c7b7d3;
  --rule: rgb(242 182 75 / 36%);
  --heading: Palatino, 'Palatino Linotype', 'Book Antiqua', 'Iowan Old Style', serif;
  --body: 'Gill Sans', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: clamp(1rem, .94rem + .25vw, 1.1875rem); line-height: 1.75; }
.page { min-height: 100vh; }
.page-sub { background: var(--bg); }
.section-feature { background: var(--surface); }
::selection { background: var(--accent); color: var(--bg); }
main, header, footer, section, article, nav, figure { min-width: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 1rem; min-width: 0; max-width: 100%; font-family: var(--heading); font-weight: 400; line-height: 1.15; text-wrap: balance; overflow-wrap: normal; word-break: normal; hyphens: manual; }
:is(h1, h2, h3, h4, h5, h6) a { overflow-wrap: normal; word-break: normal; hyphens: manual; }
h1 { font-size: clamp(2.5rem, 2rem + 3vw, 5.5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 1.4rem + 1.8vw, 3.5rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.5rem, 1.2rem + .8vw, 2.2rem); }
h4, h5, h6 { font-size: 1.3rem; }
p { margin: 0 0 1.4em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; overflow-wrap: anywhere; transition: color 160ms ease, background-color 160ms ease; }
a:hover { color: var(--accent2); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary: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; }
figcaption { margin-top: .8rem; color: var(--muted); font-size: .875rem; }
ul, ol { padding-inline-start: 1.5rem; }
li { padding-inline-start: .2rem; }
li::marker { color: var(--accent); }
strong, b { font-weight: 700; }
hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--rule); }
blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--accent); font-family: var(--heading); font-size: 1.4em; }
code, pre { font-family: ui-monospace, monospace; font-size: .9em; background: var(--surface); overflow-wrap: anywhere; }
pre { padding: 1rem; white-space: pre-wrap; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { padding: .8rem; border-bottom: 1px solid var(--rule); text-align: start; overflow-wrap: anywhere; }
th { color: var(--accent); }
input, button, textarea, select { max-width: 100%; padding: .7rem; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--rule); }
button, summary { cursor: pointer; }
.wrap { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .65rem 1.2rem; background: var(--accent); color: var(--bg); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--bg); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.6rem; }
.brand { font-family: var(--heading); font-size: clamp(1.4rem, 1.2rem + .6vw, 1.9rem); letter-spacing: -.025em; text-decoration: none; }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-nav li, .footer-nav li { padding: 0; }
.site-nav a { display: inline-block; padding-block: .35rem; color: var(--text); font-size: .95rem; text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--rule); background: var(--bg); }
.hero-inner { display: grid; place-items: center; min-height: 690px; padding-block: clamp(4rem, 8vw, 8rem); }
.hero-text { width: min(100%, 1050px); text-align: center; }
.hero h1 { max-width: 100%; margin: 0 auto 1.6rem; }
.eyebrow { margin-bottom: 1.8rem; color: var(--accent); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.eyebrow::before { content: ''; display: block; width: 3rem; height: 1px; margin: 0 auto 1.5rem; background: var(--accent); }
.lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.5rem); line-height: 1.65; }
.hero .lead { max-width: 66ch; margin-inline: auto; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { height: 100%; object-position: center 55%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(22 11 32 / 78%), rgb(22 11 32 / 72%) 55%, rgb(31 15 51 / 94%)); }
.hero-actions { margin-top: 2.2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.1rem; max-width: 100%; min-height: 48px; padding: .85rem 1.5rem; border: 1px solid var(--accent); font-size: 1rem; font-weight: 600; text-decoration: none; line-height: 1.5; }
.btn::after { content: '\2192'; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #ffce75; color: var(--bg); }
.page-home main { counter-reset: chapter; }
.section { counter-increment: chapter; padding-block: clamp(4rem, 7vw, 7rem); border-bottom: 1px solid var(--rule); }
.page-home .section:nth-of-type(odd) { background: var(--surface); }
.section-title { display: flex; align-items: baseline; gap: clamp(1rem, 2.5vw, 2.5rem); margin-bottom: 1.5rem; }
.section-title::before { content: counter(chapter, decimal-leading-zero); flex: 0 0 auto; font-size: clamp(3rem, 5vw, 5.5rem); line-height: 1; color: var(--accent); }
.section-intro { max-width: 65ch; margin-bottom: 2.8rem; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); counter-reset: entry; border-top: 1px solid var(--accent); }
.card { position: relative; display: grid; grid-template-columns: clamp(3rem, 6vw, 6rem) minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: clamp(1rem, 2.5vw, 2.5rem); row-gap: .6rem; padding: 2rem .5rem; border-bottom: 1px solid var(--rule); counter-increment: entry; transition: background-color 180ms ease; }
.card::before { content: counter(entry, decimal-leading-zero); grid-column: 1; grid-row: 1 / 3; color: var(--accent); font: 400 clamp(2rem, 3vw, 3.2rem)/1.1 var(--heading); }
.card-title { grid-column: 2; grid-row: 1; margin: 0; font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); }
.card-text { grid-column: 2; grid-row: 2; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.card-link { grid-column: 3; grid-row: 1 / 3; align-self: center; display: inline-flex; align-items: center; gap: 1.2rem; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.card-link::before { content: ''; position: absolute; inset: 0; }
.card-link::after { content: '\2197'; color: var(--accent2); font-size: 1.8rem; transition: transform 180ms ease; }
.card:hover, .card:focus-within { background: var(--surface); }
.card:hover .card-link::after { transform: translate(2px, -2px); }
.card:focus-within { outline: 2px solid var(--accent2); outline-offset: 3px; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-text { min-width: 0; }
.split-text p { max-width: 65ch; }
.split-text p:last-child { margin-bottom: 0; }
.split-media { padding-block: 1rem; border-block: 1px solid var(--rule); }
.split-media img { aspect-ratio: 4 / 5; object-position: center; }
.fact-list { max-width: 90ch; list-style: none; padding: 0; margin: 2.5rem 0 0 auto; border-top: 1px solid var(--rule); }
.fact { position: relative; margin: 0; padding: 1.4rem 0 1.4rem 1.8rem; border-bottom: 1px solid var(--rule); }
.fact::before { content: ''; position: absolute; left: 0; top: 2.1rem; width: .4rem; height: .4rem; border: 1px solid var(--accent2); transform: rotate(45deg); }
.section-partners { color: var(--muted); }
.section-partners .section-title { color: var(--text); }
.section-partners .section-intro { font-size: 1rem; }
.partner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem clamp(2rem, 6vw, 6rem); padding: 0; margin: 0; list-style: none; }
.partner { min-width: 0; padding: 1.5rem 0 0; border-top: 1px solid var(--rule); font-size: .9375rem; line-height: 1.7; }
.partner-link { color: var(--muted); overflow-wrap: anywhere; }
.partner-phrase { margin: .7rem 0 .4rem; color: var(--text); }
.partner-desc { margin: 0; }
.article { padding-block: clamp(2rem, 4vw, 4rem) clamp(5rem, 9vw, 9rem); }
.article > .wrap { max-width: 68ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .3rem .7rem; margin-bottom: clamp(2.5rem, 5vw, 5rem); color: var(--muted); font-size: .85rem; line-height: 1.6; }
.breadcrumb span { min-width: 0; overflow-wrap: anywhere; }
.page-header { padding-bottom: 2.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid var(--accent); }
.page-header h1 { font-size: clamp(2.4rem, 1.5rem + 3vw, 3.5rem); margin-bottom: 1.7rem; }
.page-header .lead { margin-bottom: 0; color: var(--muted); }
.prose { counter-reset: article-chapter; overflow-wrap: anywhere; }
.prose h2 { counter-increment: article-chapter; margin: 3.5rem 0 1.5rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.8rem); }
.prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h2::before { content: counter(article-chapter, decimal-leading-zero); display: block; margin-bottom: .8rem; color: var(--accent); font-size: .65em; letter-spacing: .04em; }
.prose h3 { margin-top: 2.5rem; }
.prose > p:first-of-type::first-letter { float: left; padding: .07em .12em 0 0; color: var(--accent); font-family: var(--heading); font-size: 4.2em; line-height: .82; }
.prose-figure { margin-block: 3rem; padding-block: 1rem; border-block: 1px solid var(--rule); }
.prose-figure img { aspect-ratio: 3 / 2; }
.note { margin: 2.7rem 0; padding: 1.5rem clamp(1.2rem, 3vw, 2.5rem); background: var(--surface); border-left: 3px solid var(--accent); font-family: var(--heading); font-size: clamp(1.2rem, 1rem + .5vw, 1.5rem); line-height: 1.65; }
.note p:last-child { margin-bottom: 0; }
.site-footer { padding-block: 3rem; background: #180c28; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 2rem 4rem; }
.footer-note { max-width: 65ch; margin: 0; }
.footer-nav { flex-shrink: 0; max-width: 100%; }
.footer-nav ul { gap: .4rem 1.1rem; }
.footer-nav a { display: inline-block; padding-block: .25rem; color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }

@media (min-width: 1400px) {
  .card { grid-template-columns: 5rem minmax(0, .85fr) minmax(0, 1.15fr) auto; align-items: center; }
  .card::before, .card-title, .card-text, .card-link { grid-row: 1; }
  .card-text { grid-column: 3; }
  .card-link { grid-column: 4; }
}
@media (max-width: 1050px) {
  .header-inner { flex-direction: column; gap: .65rem; }
  .site-nav ul { justify-content: center; }
  .footer-inner { flex-direction: column; gap: 1.4rem; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-text p { max-width: 68ch; }
  .split-media img { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .header-inner { padding-block: 1.15rem; }
  .site-nav ul { gap: .2rem 1rem; }
  .site-nav a { font-size: .85rem; }
  .hero-inner { min-height: 0; padding-block: 4.5rem; }
  .hero h1 { font-size: clamp(2.35rem, 8.5vw, 3.5rem); }
  .hero .lead { font-size: 1.05rem; }
  .eyebrow { font-size: .75rem; letter-spacing: .14em; }
  .section-title { align-items: start; }
  .section-title::before { font-size: 2.6rem; }
  .card { grid-template-columns: 2.3rem minmax(0, 1fr); column-gap: 1rem; padding-block: 1.6rem; }
  .card::before { font-size: 1.9rem; grid-row: 1 / 4; }
  .card-link { grid-column: 2; grid-row: 3; justify-self: start; margin-top: .3rem; }
  .card-text { font-size: .95rem; }
  .partner-list { grid-template-columns: minmax(0, 1fr); }
  .breadcrumb { font-size: .8rem; }
  .page-header h1 { font-size: clamp(2.2rem, 8vw, 3.3rem); }
  .note { margin-inline: 0; }
}
@media (max-width: 480px) {
  h1, .hero h1, .page-header h1 { font-size: clamp(1.2rem, 5.5vw, 1.65rem); }
  .hero h1 { max-width: 100%; }
  h2, .prose h2 { font-size: clamp(1.2rem, 5.5vw, 1.65rem); }
  h3, .card-title { font-size: clamp(1rem, 5vw, 1.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
