:root {
  --ink: #101318;
  --muted: #5f6874;
  --paper: #f7f5ee;
  --surface: #ffffff;
  --line: #d8d5ca;
  --gold: #b48a3c;
  --green: #2f6f5e;
  --blue: #315fff;
  --coral: #bd563f;
  --black: #050505;
  --soft-blue: #e8eefc;
  --soft-green: #dff1e7;
  --soft-gold: #f2e6c9;
  --soft-coral: #f3ddd4;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 245, 238, 0.95);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  font-size: 18px;
  font-weight: 850;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
}

p {
  margin: 0;
}

.eyebrow,
.tag,
.panel-label {
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 14px;
}

.tag {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 18px;
  min-height: 34px;
  padding: 8px 13px;
}

.marquee {
  align-items: flex-end;
  background: var(--black);
  color: white;
  display: flex;
  height: calc(100vh - 132px);
  max-height: 690px;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.marquee::after {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.74) 42%, rgba(5, 5, 5, 0.22) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.58) 0%, rgba(5, 5, 5, 0) 55%);
  content: "";
  inset: 0;
  position: absolute;
}

.marquee-visual {
  filter: saturate(0.85);
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0.74;
  position: absolute;
  width: 100%;
}

.marquee-copy {
  max-width: 860px;
  padding: 84px 32px 78px;
  position: relative;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.28);
  width: min(100%, 1180px);
  z-index: 1;
}

.marquee h1 {
  font-size: 70px;
  max-width: 780px;
}

.marquee h1 span {
  color: #f7d77b;
}

.marquee p:last-child {
  color: rgba(255, 255, 255, 0.84);
  font-size: 21px;
  margin-top: 24px;
  max-width: 710px;
}

.about-section {
  align-items: center;
  display: grid;
  gap: 68px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 94px 32px;
}

.about-section + .about-section {
  border-top: 1px solid var(--line);
}

.about-section.flip {
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1fr);
}

.section-copy h2 {
  font-size: 48px;
  max-width: 650px;
}

.section-copy p:last-child {
  color: var(--muted);
  font-size: 19px;
  margin-top: 22px;
  max-width: 620px;
}

.visual-panel {
  border: 1px solid rgba(16, 19, 24, 0.12);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(16, 19, 24, 0.10);
  min-height: 430px;
  overflow: hidden;
  padding: 30px;
  position: relative;
}

.panel-label {
  color: rgba(16, 19, 24, 0.64);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 24px;
}

.map-panel {
  background:
    linear-gradient(135deg, var(--soft-blue) 0%, #fbfbf7 54%, var(--soft-gold) 100%);
}

.stacked-map {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.stacked-map span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 19, 24, 0.11);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 19, 24, 0.08);
  color: var(--ink);
  display: flex;
  font-size: 18px;
  font-weight: 850;
  min-height: 68px;
  padding: 20px;
}

.stacked-map span:nth-child(2) {
  border-left-color: var(--blue);
  margin-left: 18px;
}

.stacked-map span:nth-child(3) {
  border-left-color: var(--gold);
  margin-left: 36px;
}

.stacked-map span:nth-child(4) {
  border-left-color: var(--coral);
  margin-left: 54px;
}

.source-panel {
  background:
    linear-gradient(135deg, #f9fbff 0%, var(--soft-green) 48%, var(--soft-blue) 100%);
  display: flex;
  flex-direction: column;
}

.source-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-grid span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 19, 24, 0.12);
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
  padding: 16px;
}

.merge-line {
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  height: 2px;
  margin: 34px 0;
  width: 100%;
}

.source-panel strong {
  align-self: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 20px;
  justify-content: center;
  margin-top: auto;
  min-height: 62px;
  padding: 17px 24px;
  width: min(100%, 300px);
}

.loop-panel {
  background:
    linear-gradient(135deg, var(--soft-gold) 0%, #fffaf0 45%, var(--soft-coral) 100%);
}

.loop-list {
  counter-reset: loop;
  display: grid;
  gap: 12px;
}

.loop-list span {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 19, 24, 0.1);
  border-radius: 8px;
  display: grid;
  font-size: 17px;
  font-weight: 850;
  gap: 14px;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 58px;
  padding: 10px 14px;
}

.loop-list span::before {
  align-items: center;
  background: var(--blue);
  border-radius: 50%;
  color: white;
  content: counter(loop);
  counter-increment: loop;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.contribution-panel {
  background:
    linear-gradient(135deg, #f8fbf8 0%, var(--soft-green) 44%, var(--soft-gold) 100%);
  display: flex;
  flex-direction: column;
}

.flow {
  display: grid;
  gap: 14px;
}

.flow span {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 19, 24, 0.11);
  border-radius: 8px;
  display: flex;
  font-size: 17px;
  font-weight: 850;
  min-height: 58px;
  padding: 16px 18px;
  position: relative;
}

.flow span + span::before {
  border-left: 2px solid rgba(47, 111, 94, 0.36);
  content: "";
  height: 14px;
  left: 28px;
  position: absolute;
  top: -15px;
}

.panel-note {
  border-top: 1px solid rgba(16, 19, 24, 0.14);
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  margin-top: auto;
  padding-top: 24px;
}

.roles-panel {
  background:
    linear-gradient(135deg, var(--soft-blue) 0%, #fbf7f4 50%, var(--soft-coral) 100%);
  display: grid;
  gap: 0;
  padding-bottom: 18px;
  padding-top: 18px;
}

.role-card {
  border-bottom: 1px solid rgba(16, 19, 24, 0.12);
  display: grid;
  gap: 8px;
  min-height: 94px;
  padding: 22px 12px;
}

.role-card:last-child {
  border-bottom: 0;
}

.role-card strong {
  font-size: 20px;
}

.role-card span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.closing-band {
  background: var(--ink);
  color: white;
  margin-top: 24px;
  padding: 92px 32px;
  text-align: center;
}

.closing-band .eyebrow {
  color: #f7d77b;
}

.closing-band h2,
.closing-band p {
  margin-left: auto;
  margin-right: auto;
  max-width: 780px;
}

.closing-band h2 {
  font-size: 48px;
}

.closing-band p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
  font-size: 20px;
  margin-top: 20px;
}

.button {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
  margin-top: 34px;
}

.button.primary:hover {
  background: #255c4e;
  border-color: #255c4e;
}

.section,
.page,
.article-shell {
  margin: 0 auto;
  max-width: 1160px;
  padding: 72px 32px;
}

.page-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 48px;
}

.page-heading h1,
.article h1 {
  font-size: 46px;
}

.post-list article {
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}

.post-list time,
.article-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.post-list h2 {
  font-size: 30px;
  margin-top: 8px;
}

.post-list p,
.article p {
  color: var(--muted);
  font-size: 18px;
  margin: 14px 0 0;
}

.post-list a,
.article a {
  color: var(--green);
  font-weight: 850;
}

.article-shell {
  max-width: 840px;
  width: 100%;
}

.article {
  background: var(--surface);
  border-top: 5px solid var(--green);
  overflow-wrap: anywhere;
  padding: 48px;
  width: 100%;
}

.article p {
  color: var(--ink);
}

.article h2 {
  font-size: 28px;
  margin-top: 42px;
}

.article ul,
.article ol {
  color: var(--ink);
  font-size: 18px;
  margin: 18px 0 0;
  padding-left: 26px;
}

.article li + li {
  margin-top: 8px;
}

.article-meta {
  margin: 14px 0 32px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 32px;
}

@media (max-width: 900px) {
  .about-section,
  .about-section.flip {
    gap: 38px;
    grid-template-columns: 1fr;
    padding-bottom: 78px;
    padding-top: 78px;
  }

  .about-section.flip .section-copy {
    order: -1;
  }

  .visual-panel {
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: 112px;
    padding: 18px 20px;
  }

  nav {
    gap: 18px;
  }

  .marquee {
    height: calc(100vh - 170px);
    max-height: 620px;
    min-height: 500px;
  }

  .marquee::after {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.78) 100%),
      linear-gradient(0deg, rgba(5, 5, 5, 0.48) 0%, rgba(5, 5, 5, 0) 58%);
  }

  .marquee-visual {
    opacity: 0.58;
  }

  .marquee-copy,
  .about-section,
  .section,
  .page,
  .article-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .marquee-copy {
    padding-bottom: 54px;
    padding-top: 64px;
    width: 100%;
  }

  .marquee h1,
  .section-copy h2,
  .closing-band h2,
  .page-heading h1,
  .article h1 {
    font-size: 40px;
  }

  .marquee p:last-child,
  .section-copy p:last-child,
  .closing-band p:not(.eyebrow) {
    font-size: 18px;
  }

  .about-section,
  .about-section.flip {
    padding-bottom: 64px;
    padding-top: 64px;
  }

  .visual-panel {
    min-height: 0;
    padding: 22px;
  }

  .stacked-map span:nth-child(n) {
    margin-left: 0;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }

  .closing-band {
    padding: 72px 20px;
  }

  .post-list h2 {
    font-size: 27px;
  }

  .article {
    padding: 32px 24px;
  }

  .article p,
  .article ul,
  .article ol {
    font-size: 17px;
  }
}
