*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}
:root {
  --ink: #0a0a0a;
  --paper: #f5f2eb;
  --cream: #ede9de;
  --lime: #c8f23a;
  --lime-dark: #a8d020;
  --muted: #6b6560;
  --link-underline: rgba(10,10,10,.3);
  --border: rgba(10, 10, 10, 0.12);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width:768px) {
  .container {
    padding: 0 20px;
  }
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}
header.scrolled {
  padding: 12px 0;
}
/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--cream);
}
.nav-cta {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 22px;
  border-radius: 40px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--lime);
  color: var(--ink);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.hamburger.active span {
  background: var(--ink);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
@media (max-width:1064px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--paper);
  transition: color 0.2s;
  line-height: 1;
}
.mobile-nav a:hover {
  color: var(--lime);
}
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 40px;
  font-size: 2rem;
  color: var(--paper);
  background: none;
  border: none;
  cursor: pointer;
}
/* ── Breadcrumbs ── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 40px
}
.breadcrumbs a {
  text-decoration: none;
  color: var(--muted);
  transition: color .2s
}
.breadcrumbs a:hover {
  color: var(--ink)
}
.breadcrumbs .sep {
  opacity: .4
}
.breadcrumbs .active {
  color: var(--ink);
  font-weight: 600;
  position: relative;
}
.breadcrumbs .active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--lime);
  border-radius: 999px;
}
/* ── Hero ── */
.hero {
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(40px, 9vw, 130px);
  font-weight: 800;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10, 10, 10, .05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--muted)
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  letter-spacing: -.04em;
  line-height: 1.02;
  margin-bottom: 22px
}
.hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink)
}
.hero-sub {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 700px
}
.hero-sub a {
  color: var(--ink);
  text-decoration-color: var(--link-underline);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted)
}
.hero-meta strong {
  color: var(--ink);
  font-weight: 600
}
.hero-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime)
}
/* ── Article layout ── */
.article-wrap {
  padding: 60px 0 110px
}
.article-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: start
}
@media(max-width:1024px) {
  .article-inner {
    grid-template-columns: 1fr
  }
}
/* ── TOC ── */
.toc {
  position: sticky;
  top: 90px;
  background: var(--cream);
  border-radius: 12px;
  padding: 28px 24px;
  max-height: calc(100vh - 120px);
  overflow-y: auto
}
@media(max-width:1024px) {
  .toc {
    position: static;
    max-height: none
  }
}
.toc-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px
}
.toc-label::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--muted)
}
.toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: toc-counter
}
.toc ol li {
  counter-increment: toc-counter
}
.toc ol a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .8rem;
  line-height: 1.4;
  text-decoration: none;
  color: var(--muted);
  transition: background .2s, color .2s
}
.toc ol a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: .65rem;
  font-weight: 700;
  color: var(--lime-dark);
  flex-shrink: 0
}
.toc ol a:hover {
  background: var(--paper);
  color: var(--ink)
}
.toc ol a.toc-active {
  background: var(--ink);
  color: var(--paper)
}
.toc ol a.toc-active::before {
  color: var(--lime)
}
/* ── Article body ── */
.article-body {
  min-width: 0
}
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--ink);
  margin: 70px 0 24px;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px
}
.article-body h2:first-child {
  margin-top: 0
}
.article-body h2 .section-num {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--lime-dark);
  flex-shrink: 0;
  font-family: var(--font-display)
}
.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: #3a3632;
  margin-bottom: 16px
}
.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(10, 10, 10, .3)
}
.article-body a:hover {
  text-decoration-color: var(--ink)
}
/* ── Conclusion ── */
.conclusion {
  margin-top: 60px;
  padding: 28px 28px 30px;
  background: var(--ink);
  border-radius: 12px;
  color: var(--paper)
}
.conclusion h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.03em;
  color: var(--lime);
  margin-bottom: 14px
}
.conclusion p {
  font-size: .95rem;
  line-height: 1.8;
  color: rgba(245, 242, 235, .75);
  margin-bottom: 10px
}
.conclusion p:last-child {
  margin-bottom: 0
}
/* ── References ── */
.references {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border)
}
.references h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 12px
}
.references p {
  font-size: .86rem;
  line-height: 1.9;
  color: var(--muted)
}
.references a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(107, 101, 96, .3);
  transition: color .2s
}
.references a:hover {
  color: var(--ink)
}
/* ── Article footer ── */
.article-footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted)
}
.article-footer strong {
  color: var(--ink)
}
/* ── Contact band ── */
.contact-band {
  background: var(--ink);
  color: var(--paper);
  padding: 90px 0;
  text-align: center
}
.contact-band-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  color: rgba(245, 242, 235, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px
}
.contact-band-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: rgba(245, 242, 235, .4)
}
.contact-band .section-title-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.04em;
  line-height: 1.05;
  color: var(--paper);
  max-width: 640px;
  margin: 0 auto 20px
}
.contact-band>div>p {
  color: rgba(245, 242, 235, .6);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.8
}
.btn-primary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  background: var(--lime);
  color: var(--ink);
  padding: 16px 32px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background .22s, transform .22s
}
.btn-primary:hover {
  background: #dffb50;
  transform: translateY(-2px)
}
/* Tablet + mobile */
@media (max-width:768px) {
  .btn-primary {
    font-size: 0.74rem;
    padding: 13px 22px;
    letter-spacing: 0.04em;
    gap: 8px;
  }
}
/* ── Footer ── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(245, 242, 235, .08);
  padding: 60px 0 30px;
  color: rgba(245, 242, 235, .5)
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px
}
@media (max-width:900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 20px;
  }
}
@media (max-width:600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
}
.footer-brand .logo {
  color: var(--paper);
  margin-bottom: 14px;
  display: block
}
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(245, 242, 235, .3);
  margin-bottom: 16px
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px
}
.footer-col a {
  font-size: .88rem;
  text-decoration: none;
  color: rgba(245, 242, 235, .5);
  transition: color .2s
}
.footer-col a:hover {
  color: var(--paper)
}
.footer-sub {
  position: relative;
  padding-left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
}
.footer-sub::before {
  content: '›';
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
}
.footer-sub a {
  display: inline-block;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(245, 242, 235, .08);
  font-size: .8rem
}
.footer-bottom a {
  color: rgba(245, 242, 235, .4);
  text-decoration: none
}
.footer-bottom a:hover {
  color: var(--paper)
}
/* ─── Misc ─── */
/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: var(--ink);
  border-radius: 2px;
}
/* ─── SELECTION ──────────────────────────────── */
::selection {
  background: var(--lime);
  color: var(--ink);
}
/* ─── TOC ──────────────────────────────── */
.toc ol a.toc-active {
  background: var(--ink);
  color: var(--paper);
}
.toc ol a.toc-active::before {
  color: var(--lime);
}
