:root {
  --terracotta: #9a3d22;
  --ink: #231f1c;
  --paper: #fbf8f5;
  --warm: #f6efe9;
  --clay: #c7a18f;
  --green: #4e6b61;
  --muted: #7b6d66;
  --line: rgba(154, 61, 34, 0.18);
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(154, 61, 34, 0.03) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(251, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header img {
  width: min(220px, 42vw);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--terracotta);
}

.section {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.section > h2 {
  max-width: 22ch;
  margin-bottom: 36px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.98;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 76px);
}

.hero-copy h1 {
  max-width: 14ch;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero-acronym {
  margin-top: 16px;
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-copy .lead {
  max-width: 52ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.button-primary {
  background: var(--terracotta);
  color: white;
}

.button-secondary {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 0;
  overflow: hidden;
  background: var(--warm);
  border: 1px solid var(--line);
}

.hero-illustration {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.manifesto {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  background: var(--warm);
}

.manifesto-header h2 {
  max-width: 14ch;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
}

.manifesto-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.manifesto-figure {
  margin: 0;
  height: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: white;
}

.manifesto-figure img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
}

.manifesto-quote {
  margin: 0;
  padding: clamp(24px, 4vw, 40px);
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--terracotta);
}

.manifesto-quote p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  color: var(--muted);
}

.manifesto-quote p + p {
  margin-top: 18px;
}

.manifesto-pull {
  padding: 18px 0 18px 22px;
  border-left: 2px solid var(--clay);
  color: var(--ink) !important;
  font-size: clamp(20px, 2.2vw, 26px) !important;
  font-weight: 600;
  line-height: 1.45 !important;
}

.manifesto-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.manifesto-highlights article {
  padding-top: 18px;
  border-top: 2px solid var(--terracotta);
}

.manifesto-highlights span {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.1;
}

.manifesto-highlights p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.pyramid {
  display: grid;
  gap: 48px;
}

.pyramid-intro {
  max-width: 70ch;
}

.pyramid-intro h2 {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.95;
}

.pyramid-intro p {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.pyramid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.pyramid-steps {
  display: grid;
  gap: 12px;
}

.pyramid-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  transform: translateX(calc((var(--level) - 1) * 4%));
  transition: transform 180ms ease, border-color 180ms ease;
}

.pyramid-step:hover {
  transform: translateX(calc((var(--level) - 1) * 4% + 6px));
  border-color: rgba(154, 61, 34, 0.45);
}

.pyramid-step .index {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--warm);
  color: var(--terracotta);
  font-size: 14px;
  font-weight: 700;
}

.pyramid-step .module-label {
  margin: 0 0 6px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.pyramid-step h3 {
  font-size: 20px;
  line-height: 1.2;
}

.pyramid-step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.pyramid-step .focus {
  margin-top: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.pyramid-diagram {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--green);
  color: white;
}

.pyramid-diagram h3 {
  font-size: 28px;
  line-height: 1.05;
}

.pyramid-diagram p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.pyramid-shape {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.pyramid-shape .tier {
  display: grid;
  place-items: center;
  min-height: 34px;
  margin-inline: auto;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pyramid-shape .tier:nth-child(1) { width: 100%; }
.pyramid-shape .tier:nth-child(2) { width: 80%; }
.pyramid-shape .tier:nth-child(3) { width: 60%; }
.pyramid-shape .tier:nth-child(4) { width: 40%; }
.pyramid-shape .tier:nth-child(5) { width: 22%; background: var(--terracotta); }

.reasons-grid,
.program-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.reasons-grid {
  margin-top: 36px;
}

.reasons-grid .program-card:nth-child(4),
.reasons-grid .program-card:nth-child(5) {
  grid-column: span 1;
}

@media (min-width: 961px) {
  .reasons-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .reasons-grid .program-card {
    grid-column: span 2;
  }

  .reasons-grid .program-card:nth-child(4),
  .reasons-grid .program-card:nth-child(5) {
    grid-column: span 3;
  }
}

.program-card,
.info-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
}

.program-card span,
.info-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.program-card h3,
.info-card h3 {
  font-size: 28px;
  line-height: 1.05;
}

.program-card p,
.info-card p,
.info-card li {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.info-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.identity {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  background: var(--paper);
}

.identity-figure {
  margin: 0;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--warm);
  overflow: hidden;
}

.identity-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.identity-copy {
  align-self: center;
}

.identity-copy h2 {
  margin-bottom: 18px;
  max-width: 16ch;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.98;
}

.identity-copy p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.cta {
  display: grid;
  gap: 24px;
  place-items: center;
  text-align: center;
  background: var(--terracotta);
  color: white;
}

.cta h2 {
  max-width: 16ch;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
}

.cta p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.5;
}

.cta .button-secondary {
  color: var(--ink);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 64px) 40px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .hero,
  .manifesto-body,
  .manifesto-highlights,
  .identity,
  .pyramid-layout,
  .reasons-grid,
  .program-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .pyramid-diagram {
    position: static;
  }

  .pyramid-step {
    transform: none;
  }

  .pyramid-step:hover {
    transform: translateX(4px);
  }

  .site-nav {
    display: none;
  }
}

/* ——— CMS inline editor ——— */

body.cms-editing {
  padding-top: 56px;
}

#cms-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(35, 31, 28, 0.94);
  color: #fbf8f5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cms-toolbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px clamp(16px, 4vw, 40px);
}

.cms-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f0c9b5;
}

.cms-status {
  flex: 1;
  font-size: 0.85rem;
  color: rgba(251, 248, 245, 0.72);
}

.cms-status[data-kind="warn"] {
  color: #f0c9b5;
}

.cms-status[data-kind="ok"] {
  color: #9dcfb8;
}

.cms-status[data-kind="error"] {
  color: #f0a090;
}

.cms-actions,
.cms-login-actions {
  display: flex;
  gap: 8px;
}

.cms-btn {
  appearance: none;
  border: 1px solid rgba(251, 248, 245, 0.28);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
}

.cms-btn-primary {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}

.cms-btn:hover {
  filter: brightness(1.08);
}

.cms-editable {
  outline: 1px dashed rgba(154, 61, 34, 0.45);
  outline-offset: 3px;
  cursor: text;
}

.cms-editable:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  background: rgba(154, 61, 34, 0.04);
}

.cms-editable-media {
  cursor: pointer;
  outline: 1px dashed rgba(78, 107, 97, 0.55);
  outline-offset: 4px;
}

.cms-editable-media:hover {
  outline-color: var(--green);
}

#cms-login {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(35, 31, 28, 0.55);
  backdrop-filter: blur(4px);
}

#cms-login[hidden] {
  display: none;
}

.cms-login-card {
  width: min(100%, 420px);
  background: var(--paper);
  color: var(--ink);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(35, 31, 28, 0.18);
}

.cms-login-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.cms-login-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cms-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}

#cms-password {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  margin-bottom: 12px;
}

.cms-error {
  color: var(--terracotta);
  font-size: 0.85rem;
  margin: 0 0 12px;
}
