:root {
  --ink: #0a0a0a;
  --paper: #f1efe9;
  --muted: #a7a49d;
  --orange: #df5a0a;
  --rule: rgba(10, 10, 10, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(22px, 4vw, 64px);
  color: white;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: "DM Mono", monospace; font-size: .82rem; letter-spacing: .12em; }
.brand img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); font-size: .88rem; }
nav a { text-decoration: none; }
.nav-cta { border: 1px solid rgba(255,255,255,.6); padding: 10px 16px; border-radius: 999px; }
.instagram-link { font-family: "DM Mono", monospace; color: var(--orange); }
.menu-toggle { display: none; color: inherit; border: 0; background: transparent; font: inherit; }

.hero { min-height: 900px; height: 100svh; background: #050505; color: white; display: grid; grid-template-columns: 1.02fr .98fr; overflow: hidden; }
.hero-copy { align-self: end; padding: 150px clamp(28px, 6vw, 96px) clamp(58px, 8vh, 110px); }
.eyebrow, .section-label, .atlas-note, .fine-print { font-family: "DM Mono", monospace; letter-spacing: .12em; font-size: .75rem; text-transform: uppercase; }
.eyebrow { color: #aaa; margin-bottom: 28px; }
h1, h2 { margin: 0; font-weight: 500; letter-spacing: -.05em; line-height: .98; }
h1 { font-size: clamp(3.3rem, 6.5vw, 7.8rem); max-width: 11ch; }
.dek { max-width: 510px; font-size: clamp(1.08rem, 1.6vw, 1.45rem); color: #c9c7c1; margin: 34px 0 38px; }
.accent-underline {
  background-image: linear-gradient(var(--orange), var(--orange));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: .12em;
}
.text-link { display: inline-flex; gap: 14px; align-items: center; text-decoration: none; border-bottom: 1px solid var(--orange); padding-bottom: 8px; }
.text-link span { color: var(--orange); }
.hero-visual { position: relative; margin: 0; min-height: 100%; background: #000; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; filter: saturate(.72) contrast(1.05); }
.hero-visual:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #050505 0%, transparent 20%, transparent 80%, rgba(0,0,0,.25) 100%); }

section:not(.hero) { padding-left: clamp(24px, 6vw, 96px); padding-right: clamp(24px, 6vw, 96px); }
.ruled { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.intro { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding-top: clamp(80px, 12vw, 170px); padding-bottom: clamp(80px, 12vw, 170px); }
.section-label { margin: 0; color: #68655f; }
.intro h2, .section-head h2, .process > h2, .participate h2 { font-size: clamp(2.6rem, 5.5vw, 6.6rem); }
.intro div { max-width: 900px; }
.intro p:not(.section-label) { max-width: 690px; font-size: clamp(1.08rem, 1.55vw, 1.4rem); }

.atlas { background: var(--ink); color: white; padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(70px, 10vw, 130px); }
.section-head { display: grid; grid-template-columns: .65fr 1.35fr 1fr; gap: 36px; align-items: end; margin-bottom: 84px; }
.section-head .section-label { color: #8d8982; align-self: start; }
.section-head p:last-child { color: #aaa; max-width: 390px; margin: 0; }
.country-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #323232; border-left: 1px solid #323232; }
.country-grid li { min-height: 128px; border-right: 1px solid #323232; border-bottom: 1px solid #323232; transition: background .2s, color .2s; }
.country-grid a { min-height: 127px; padding: 18px; color: inherit; text-decoration: none; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; }
.country-grid li:hover { background: var(--orange); color: #070707; }
.country-grid span, .country-grid small { font-family: "DM Mono", monospace; color: #74716b; font-size: .72rem; }
.country-grid li:hover span, .country-grid li:hover small { color: #070707; }
.country-grid strong { grid-column: 1 / -1; align-self: end; font-size: clamp(1rem, 1.3vw, 1.25rem); font-weight: 500; }
.atlas-note { color: #77736c; margin: 22px 0 0; }

.process { padding-top: clamp(90px, 12vw, 170px); padding-bottom: clamp(90px, 12vw, 170px); }
.process > h2 { max-width: 1100px; margin: 42px 0 90px; }
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.process-grid li { padding: 18px 30px 0 0; }
.process-grid span { color: var(--orange); font-family: "DM Mono", monospace; font-size: .75rem; }
.process-grid h3 { margin: 42px 0 12px; font-size: 1.25rem; font-weight: 500; }
.process-grid p { color: #5f5c56; max-width: 280px; }
.fine-print { margin-top: 80px; color: #77736c; }

.participate { background: var(--orange); display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; padding-top: clamp(90px, 12vw, 170px); padding-bottom: clamp(90px, 12vw, 170px); }
.participate .section-label { color: #1a120d; margin-bottom: 46px; }
.participation-list { border-top: 1px solid rgba(0,0,0,.6); }
.participation-list div { padding: 24px 0; border-bottom: 1px solid rgba(0,0,0,.32); display: grid; grid-template-columns: 150px 1fr; gap: 30px; }
.participation-list span, .coming-soon { font-family: "DM Mono", monospace; font-size: .75rem; letter-spacing: .08em; }
.participation-list p { margin: 0; }
.coming-soon { margin-top: 44px !important; text-transform: uppercase; }
.participate-actions { margin-top: 34px; display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; padding: 0 !important; border: 0 !important; }
.participate-actions a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,.45); text-decoration: none; font-weight: 600; }
.participate-actions a span { font-family: inherit; font-size: 1rem; }

.instagram-feed { background: var(--paper); color: var(--ink); padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 11vw, 150px); }
.instagram-intro { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; max-width: 1180px; margin: 0 auto 56px; }
.instagram-intro .section-label { margin-bottom: 22px; }
.instagram-intro h2 { max-width: 10ch; margin: 0; font-size: clamp(3rem, 6vw, 6.8rem); font-weight: 500; letter-spacing: -.055em; line-height: .96; }
.instagram-intro > a { font-family: "DM Mono", monospace; font-size: .78rem; letter-spacing: .08em; text-decoration-color: var(--orange); text-underline-offset: 8px; }
.instagram-embed { max-width: 720px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(7,7,7,.22); }
.instagram-embed iframe { display: block; width: 100%; min-height: 780px; border: 0; background: white; }
.instagram-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 22px 24px; background: var(--ink); color: white; text-decoration: none; }
.instagram-cta span { font-size: 1rem; }
.instagram-cta strong { color: var(--orange); font-family: "DM Mono", monospace; font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.instagram-cta:hover strong { color: white; }

.site-footer { background: var(--ink); color: white; padding: clamp(64px, 8vw, 112px) clamp(24px, 6vw, 96px) 30px; }
.footer-top { display: grid; grid-template-columns: 1fr 1.2fr .8fr; gap: clamp(40px, 7vw, 110px); align-items: start; padding-bottom: clamp(70px, 9vw, 130px); }
.footer-brand { display: flex; align-items: center; gap: 18px; font-family: "DM Mono", monospace; font-size: .75rem; letter-spacing: .13em; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.footer-top > p { margin: 0; max-width: 12ch; font-size: clamp(2.2rem, 4vw, 4.8rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.social-links { display: grid; gap: 4px; }
.social-links a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: white; border-bottom: 1px solid #333; text-decoration: none; }
.social-links svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.social-links .solid { fill: var(--orange); stroke: none; }
.social-links a:hover { color: var(--orange); }
.footer-bottom { display: grid; grid-template-columns: 1fr auto auto; gap: 40px; padding-top: 24px; border-top: 1px solid #333; color: #85817a; font-family: "DM Mono", monospace; font-size: .72rem; letter-spacing: .08em; }
.footer-bottom a { color: white; text-decoration: none; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; }
  .brand span { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-transform: uppercase; font-family: "DM Mono", monospace; letter-spacing: .1em; font-size: .75rem; }
  .menu-toggle i, .menu-toggle i:before { width: 22px; height: 1px; background: currentColor; display: block; content: ""; transition: transform .2s; }
  .menu-toggle i:before { transform: translateY(7px); }
  .menu-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:before { transform: rotate(-90deg); }
  nav { position: absolute; top: 96px; left: 20px; right: 20px; display: none; padding: 22px; background: rgba(5,5,5,.96); border: 1px solid #303030; flex-direction: column; align-items: stretch; gap: 0; }
  nav.is-open { display: flex; }
  nav a { padding: 14px 4px; border-bottom: 1px solid #303030; }
  nav .nav-cta { border: 0; border-bottom: 1px solid #303030; border-radius: 0; }
  .social-links { position: static; display: grid; padding: 0; background: transparent; border: 0; }
  .social-links a { padding: 10px 0; }
  .site-header .brand img { width: 56px; height: 56px; }
  #main-nav { z-index: 20; }
  .hero { height: auto; min-height: 100svh; grid-template-columns: 1fr; }
  .hero-copy { position: relative; z-index: 2; min-height: 70svh; align-content: end; display: grid; padding-top: 140px; background: linear-gradient(180deg, transparent, #050505 90%); }
  .hero-visual { height: 68svh; margin-top: -10svh; }
  .hero-visual:after { background: linear-gradient(180deg, #050505 0%, transparent 15%, rgba(0,0,0,.2) 100%); }
  .intro, .section-head, .participate, .instagram-intro, .footer-top { grid-template-columns: 1fr; }
  .section-head { gap: 28px; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 56px 0; }
  .instagram-embed iframe { min-height: 720px; }
  .instagram-cta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 12px; }
}

.chapter-page { min-height: 100vh; background: var(--ink); color: white; }
.chapter-page .site-header { position: relative; }
.chapter { padding: clamp(60px, 8vw, 110px) clamp(24px, 6vw, 96px) 110px; }
.chapter-kicker { color: var(--orange); font-family: "DM Mono", monospace; letter-spacing: .12em; font-size: .75rem; }
.chapter h1 { margin-top: 28px; max-width: none; }
.chapter-status { margin-top: 34px; color: #a7a49d; font-family: "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.chapter-grid { margin-top: 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-top: 28px; border-top: 1px solid #333; }
.chapter-grid h2 { font-size: clamp(2.4rem, 5vw, 5.4rem); }
.chapter-grid p { color: #bbb7b0; max-width: 620px; font-size: 1.1rem; }
.chapter-path { margin: 44px 0 0; padding: 0; list-style: none; border-top: 1px solid #333; }
.chapter-path li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid #333; color: #8f8b84; font-family: "DM Mono", monospace; font-size: .76rem; text-transform: uppercase; }
.back-link { display: inline-block; margin-top: 60px; color: white; text-decoration: none; border-bottom: 1px solid var(--orange); padding-bottom: 7px; }

@media (max-width: 700px) {
  .chapter-grid { grid-template-columns: 1fr; gap: 44px; margin-top: 60px; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .hero-copy { padding-left: 22px; padding-right: 22px; }
  .country-grid { grid-template-columns: 1fr; }
  .country-grid li { min-height: 102px; }
  .process-grid { grid-template-columns: 1fr; }
  .participation-list div { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
