:root {
  color-scheme: dark;
  --bg: #0a0c11;
  --surface: #151922;
  --text: #ece8de;
  --muted: #b8b9bf;
  --accent: #d9a82b;
  --accent2: #8f1d2c;
  --line: #38352c;
  --heading: 'Arial Narrow', 'Helvetica Neue Condensed', Impact, 'Helvetica Neue', sans-serif;
  --body: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --octagon: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
  --cut: polygon(7% 0, 93% 0, 100% 10%, 100% 90%, 93% 100%, 7% 100%, 0 90%, 0 10%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 clamp(1rem, .96rem + .18vw, 1.125rem)/1.75 var(--body); }
::selection { color: var(--bg); background: var(--accent); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .23em; overflow-wrap: anywhere; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
a:hover { color: #f5d879; }
:focus-visible { outline: 3px solid #f5d879; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
p { margin: 0 0 1.25em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .65em; font-family: var(--heading); font-weight: 800; line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 3.8vw, 4.2rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 2.4vw, 2.65rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.35rem, 1.7vw, 1.8rem); }
h4, h5, h6 { font-size: 1.2rem; }
ul, ol { padding-left: 1.4em; }
li { padding-left: .15em; }
li::marker { color: var(--accent); }
strong, b { color: var(--text); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--accent); background: var(--surface); }
code, pre { font-family: ui-monospace, monospace; background: var(--surface); }
pre { padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: .9em; }
th, td { padding: .65em; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
th { color: var(--accent); background: var(--surface); }
input, textarea, select, button { max-width: 100%; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); padding: .65em; }
button { cursor: pointer; }
figcaption, small { color: var(--muted); font-size: .85em; }
.page { min-width: 0; }
.wrap { width: min(100% - clamp(2rem, 6vw, 7rem), 1280px); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 20; padding: .8rem 1.2rem; background: var(--accent); color: var(--bg); transform: translateY(-180%); font-weight: 700; }
.skip-link:focus { transform: translateY(0); color: var(--bg); }
.site-header { border-top: 3px solid var(--accent); border-bottom: 1px solid var(--line); background: #0d1016; }
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; flex-shrink: 0; font: 800 clamp(1.35rem, 2vw, 1.85rem)/1.1 var(--heading); text-transform: uppercase; letter-spacing: -.035em; text-decoration: none; color: var(--text); }
.brand::before { content: ''; width: 28px; height: 28px; background: var(--accent); clip-path: var(--octagon); box-shadow: inset 0 0 0 9px var(--accent2); }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: .25rem 1.5rem; }
.site-nav li, .footer-nav li { padding: 0; }
.site-nav a { display: block; padding: .8rem 0; font-size: .83rem; font-weight: 650; 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-color: var(--accent); }
.hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 40%, #302817 0, transparent 52%), var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 6vw, 6rem); }
.hero-text { min-width: 0; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.5rem; color: var(--accent); text-transform: uppercase; font-size: .75rem; font-weight: 750; letter-spacing: .2em; }
.eyebrow::before { content: ''; width: 2.5rem; height: 2px; background: var(--accent2); }
.hero h1 { text-transform: uppercase; max-width: 16ch; }
.lead { color: #cecac2; font-size: clamp(1.05rem, 1.2vw, 1.2rem); line-height: 1.75; }
.hero .lead { max-width: 57ch; margin-block: 1.6rem; font-size: 1rem; }
.hero-actions { margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; min-height: 50px; padding: .85rem 1.5rem; border: 1px solid var(--accent); font-size: .86rem; font-weight: 750; text-decoration: none; }
.btn::after { content: '\2197'; font-size: 1.2rem; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #f0c351; color: var(--bg); }
.hero-media { position: relative; width: 100%; padding: 1px; background: var(--accent); clip-path: var(--octagon); aspect-ratio: 1; }
.hero-media img { width: 100%; height: 100%; clip-path: var(--octagon); object-position: center; }
.hero-media::after { content: ''; position: absolute; inset: 5%; background: linear-gradient(135deg, #d9a82b44, transparent 45%, #d9a82b33); clip-path: var(--octagon); pointer-events: none; }
.section { padding-block: clamp(2.8rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }
.section-title { position: relative; padding-top: 1.25rem; max-width: 27ch; }
.section-title::before { content: ''; position: absolute; top: 0; left: 0; width: 3rem; height: 3px; background: var(--accent); }
.section > .wrap > p { max-width: 80ch; color: #c9c8c5; }
.section-intro { max-width: 65ch; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; counter-reset: guides; }
.card { position: relative; min-width: 0; display: flex; flex-direction: column; padding: clamp(1.2rem, 2vw, 2rem); background: var(--surface); border: 1px solid #30323a; border-top: 2px solid var(--accent); transition: transform .2s ease, border-color .2s ease; counter-increment: guides; }
.card::before { content: counter(guides, decimal-leading-zero); display: block; margin-bottom: 1.8rem; font: 800 2.4rem/1 var(--heading); color: var(--accent); }
.card::after { content: ''; position: absolute; top: 1.5rem; right: 1.5rem; width: 18px; height: 18px; background: var(--accent2); clip-path: var(--octagon); }
.card-title { font-size: clamp(1.4rem, 1.8vw, 1.8rem); }
.card-text { color: var(--muted); font-size: .94rem; line-height: 1.7; }
.card-link { align-self: flex-start; margin-top: auto; padding-block: .6rem; font-size: .85rem; font-weight: 700; }
.card-link::after { content: ' \2192'; }
.section-feature { background: var(--surface); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split-text { min-width: 0; }
.split-text p { color: #c9c8c5; }
.split-media, .article-figure { padding: 1px; background: var(--accent); clip-path: var(--cut); }
.split-media img { width: 100%; aspect-ratio: 5 / 4; clip-path: var(--cut); }
.fact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 0; list-style: none; background: var(--line); }
.fact { padding: 1.5rem; background: var(--surface); }
.fact strong { display: block; color: var(--accent); font: 800 2rem/1.2 var(--heading); }
.section-partners { background: #10131a; }
.partner-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 2rem 0 0; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partner { min-width: 0; padding: 1.25rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner-link { display: block; overflow-wrap: anywhere; word-break: normal; font-size: .76rem; line-height: 1.6; }
.partner-phrase { margin: .75rem 0 .5rem; font: 700 1.15rem/1.3 var(--heading); color: var(--text); }
.partner-desc { margin: 0; font-size: .83rem; line-height: 1.7; color: var(--muted); }
.article { padding-block: clamp(1.5rem, 3vw, 3rem) clamp(4rem, 7vw, 7rem); }
.page-sub .article > .wrap { max-width: 1040px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(2rem, 4vw, 4rem); color: var(--muted); font-size: .8rem; }
.page-header { max-width: 850px; margin-inline: auto; padding-top: 1.5rem; border-top: 2px solid var(--accent); }
.page-header h1 { max-width: 24ch; text-transform: uppercase; }
.page-header .lead { margin-block: 1.7rem 2.5rem; }
.article-figure { margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); }
.article-figure img { width: 100%; max-height: 480px; aspect-ratio: 2.15; clip-path: var(--cut); }
.prose { max-width: 72ch; margin-inline: auto; overflow-wrap: anywhere; color: #d0cec8; }
.prose h2 { color: var(--text); margin-top: 2.4rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: clamp(1.55rem, 2.2vw, 2.1rem); }
.prose h3 { margin-top: 2rem; color: var(--text); }
.prose li { margin-bottom: .6rem; }
.note { margin-block: 2rem; padding: 1.25rem 1.5rem; background: var(--surface); border-left: 4px solid var(--accent2); color: var(--text); }
.site-footer { padding-block: 2.5rem; background: #08090d; border-top: 2px solid var(--accent2); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.footer-note { max-width: 52ch; margin: 0; color: var(--muted); font-size: .8rem; }
.footer-nav ul { gap: .5rem 1.3rem; justify-content: flex-end; }
.footer-nav a { display: inline-block; padding-block: .25rem; color: #c9c8c5; font-size: .8rem; }
.footer-nav a:hover { color: var(--accent); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-4px); border-color: var(--accent); }
}
@media (min-width: 1100px) {
  .page-home .section:not(.section-feature):not(.section-partners) > .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
  .page-home .section:not(.section-feature):not(.section-partners) .section-title { grid-column: 1 / 5; grid-row: 1 / 3; }
  .page-home .section:not(.section-feature):not(.section-partners) > .wrap > p { grid-column: 5 / -1; }
  .card-grid { grid-column: 1 / -1; }
}
@media (max-width: 1050px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: .6rem; padding-block: 1.25rem .5rem; }
  .site-nav ul { gap: .25rem 1.35rem; }
  .hero-inner { gap: 2rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: column; }
  .footer-nav ul { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .hero-inner, .split { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 20ch; font-size: clamp(2.2rem, 7vw, 3.2rem); }
  .hero-media { width: min(100%, 410px); justify-self: center; }
  .hero-inner { padding-block: 2.5rem; }
  .hero .lead { font-size: 1rem; }
  .site-nav ul { gap: 0 1.1rem; }
  .site-nav a { font-size: .78rem; padding-block: .65rem; }
  .partner-list, .fact-list { grid-template-columns: minmax(0, 1fr); }
  .partner { padding: 1.2rem; }
  .partner-link { font-size: .8rem; }
  .article-figure img { aspect-ratio: 3 / 2; }
  .page-header h1 { font-size: clamp(2rem, 7.5vw, 3rem); }
  .split-media { max-width: 500px; width: 100%; justify-self: center; }
}
@media (max-width: 420px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 1.5rem; }
  .card::before { margin-bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
