:root {
  --ink: #101315;
  --muted: #5c6670;
  --line: #d9ded7;
  --paper: #f8f6ef;
  --surface: #ffffff;
  --green: #29483f;
  --deep: #172622;
  --copper: #9e613b;
  --sage: #dfe8df;
  --gold: #c7a15a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
  background: rgba(248, 246, 239, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.logo-mark {
  overflow: hidden;
  border: 1px solid rgba(41, 72, 63, 0.18);
  background: #fff;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.8);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--green);
}

.language-link {
  color: var(--green);
  font-weight: 760;
}

.nav-menu {
  position: relative;
}

.nav-menu > summary {
  cursor: pointer;
  list-style: none;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-menu > summary::after {
  content: "▾";
  margin-left: 5px;
  font-size: 10px;
}

.nav-menu[open] > summary {
  color: var(--green);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 230px;
  padding: 10px;
  border: 1px solid rgba(17, 19, 21, 0.12);
  background: #fbfaf5;
  box-shadow: 0 18px 44px rgba(17, 19, 21, 0.12);
}

.nav-dropdown a {
  padding: 10px 12px;
  color: var(--muted);
}

.nav-dropdown a:hover {
  color: var(--green);
  background: rgba(41, 72, 63, 0.07);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 520px);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
  padding: 50px clamp(18px, 5vw, 64px) 34px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.65rem;
  font-weight: 500;
  line-height: 0.97;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.45rem;
  font-weight: 500;
  line-height: 1.03;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.lead {
  max-width: 760px;
  color: #333a41;
  font-size: 1.21rem;
  line-height: 1.56;
}

.emphasis {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1.5;
}

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

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--green);
  font-size: 14px;
  font-weight: 760;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  color: var(--green);
  background: transparent;
}

.muted-button {
  color: var(--muted);
  border-color: rgba(17, 19, 21, 0.18);
  background: rgba(255, 255, 255, 0.58);
  cursor: default;
}

.boundary-diagram,
.architecture-map,
.layer-stack {
  border: 1px solid rgba(41, 72, 63, 0.25);
  background:
    linear-gradient(90deg, rgba(41, 72, 63, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(41, 72, 63, 0.08) 1px, transparent 1px),
    #fbfaf5;
  background-size: 40px 40px;
}

.hero-diagram {
  display: grid;
  gap: 6px;
  min-height: 392px;
  padding: 24px 28px;
  align-content: center;
}

.diagram-layer,
.arch-layer,
.layer-stack div {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 10px 16px;
  border: 1px solid rgba(17, 19, 21, 0.13);
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-weight: 780;
}

.focus-layer,
.layer-stack .highlight {
  color: #fff;
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green), #1f5c4f);
  box-shadow: 0 12px 28px rgba(41, 72, 63, 0.22);
  transform: scale(1.035);
}

.execution-layer {
  border-color: rgba(158, 97, 59, 0.38);
}

.diagram-arrow,
.arch-arrow {
  display: grid;
  place-items: center;
  min-height: 10px;
  line-height: 1;
  color: var(--copper);
  font-weight: 900;
}

.execution-boundary,
.arch-boundary,
.boundary-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  color: var(--deep);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.execution-boundary::before,
.arch-boundary::before,
.boundary-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 3px double var(--copper);
  transform: translateY(-50%);
}

.execution-boundary span,
.arch-boundary span,
.boundary-line span {
  position: relative;
  z-index: 1;
  padding: 4px 11px;
  border: 1px solid rgba(158, 97, 59, 0.38);
  background: #fbfaf5;
  box-shadow: 0 0 0 6px #fbfaf5;
}

.boundary-line {
  min-height: 32px;
}

.layer-stack .boundary-line {
  display: flex;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
}

.diagram-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 64px);
}

.problem-grid article,
.definition-panel,
.program-grid article,
.dual-focus article {
  background: var(--surface);
  border: 1px solid rgba(17, 19, 21, 0.08);
}

.problem-grid article {
  min-height: 260px;
  padding: 28px;
}

.problem-grid span,
.program-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.problem-grid h2 {
  font-size: 2rem;
}

.problem-grid p,
.section p,
.architecture-map li,
.program-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: clamp(72px, 9vw, 118px) clamp(18px, 5vw, 64px);
}

.split,
.definition-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(30px, 6vw, 74px);
  align-items: start;
}

.missing-layer {
  background: #eef1eb;
}

.layer-stack {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.definition-panel {
  padding: 28px;
  border-left: 6px solid var(--green);
  font-size: 18px;
}

.definition-panel p {
  margin-bottom: 14px;
}

.definition-panel p:last-child {
  margin-bottom: 0;
}

.definition-name {
  margin: 0 0 18px;
  color: var(--green);
  font-weight: 760;
  letter-spacing: 0;
}

.principle {
  color: #fff;
  background: var(--deep);
}

.principle .section-kicker {
  color: var(--sage);
}

.principle h2 {
  max-width: 1080px;
}

.principle p {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.76);
}

.architecture-map {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.arch-core {
  padding: 22px;
  color: #fff;
  background: var(--green);
}

.arch-core h3 {
  margin-bottom: 16px;
}

.arch-core ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.arch-core li {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.arch-core strong {
  color: #fff;
}

.dual-focus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
}

.dual-focus article {
  min-height: 300px;
  padding: clamp(28px, 5vw, 46px);
}

.program-entry {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1.22fr);
  gap: 42px;
  background: #eef1eb;
}

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

.program-grid article {
  min-height: 240px;
  padding: 24px;
}

.program-entry .program-grid article {
  display: flex;
  flex-direction: column;
}

.program-entry .program-grid article .section-actions {
  margin-top: auto;
  padding-top: 24px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 46px clamp(18px, 5vw, 64px);
  color: #fff;
  background: var(--green);
}

.contact .eyebrow {
  color: var(--sage);
}

.contact h2 {
  max-width: 820px;
  margin: 0;
  font-size: 2.75rem;
}

.contact .button {
  border-color: #fff;
  color: var(--green);
  background: #fff;
  white-space: nowrap;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.4fr);
  gap: 28px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid rgba(17, 19, 21, 0.1);
  background: #fbfaf5;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: cover;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand span,
.footer-group {
  color: var(--muted);
  font-size: 14px;
}

.footer-group strong {
  color: var(--ink);
  font-size: 13px;
}

.footer-group a:hover {
  color: var(--green);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: end;
  padding: 72px clamp(18px, 5vw, 64px) 54px;
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
}

.page-hero h1 {
  font-size: 4.2rem;
}

.page-label {
  padding: 24px;
  border-left: 6px solid var(--green);
  background: rgba(255, 255, 255, 0.72);
}

.page-label p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.content-section {
  padding: clamp(62px, 8vw, 104px) clamp(18px, 5vw, 64px);
}

.content-narrow {
  max-width: 980px;
}

.content-narrow p,
.content-grid p,
.note-panel p,
.timeline p {
  color: var(--muted);
  line-height: 1.72;
}

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

.content-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid article,
.note-panel,
.timeline li {
  border: 1px solid rgba(17, 19, 21, 0.08);
  background: var(--surface);
}

.content-grid article {
  min-height: 230px;
  padding: 26px;
}

.content-grid.compact-grid article {
  min-height: 176px;
  padding: 22px;
}

.term-grid {
  align-items: start;
}

.content-grid.term-grid article {
  min-height: 0;
  padding: 20px 22px;
}

.content-grid.term-grid article p {
  line-height: 1.58;
}

.principles-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.content-grid.principles-grid article {
  min-height: 168px;
  padding: 18px 20px;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.content-grid.principles-grid article h3 {
  font-size: 1.02rem;
  line-height: 1.22;
}

.content-grid.principles-grid article p {
  line-height: 1.5;
}

.academy-path-grid article {
  min-height: 210px;
}

.roadmap-grid article {
  min-height: 238px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
}

.roadmap-grid article h3 {
  min-height: 2.5em;
}

.note-panel {
  padding: 30px;
  border-left: 6px solid var(--green);
}

.implementation-note {
  margin-top: 18px;
}

.qr-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.qr-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px;
  border: 1px solid rgba(17, 19, 21, 0.08);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  width: min(100%, 190px);
  aspect-ratio: 1;
  border: 1px dashed rgba(41, 72, 63, 0.36);
  background: #fff;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
}

.qr-card strong {
  color: var(--ink);
}

.qr-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.quiet-update {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.72;
}

.resource-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.resource-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(17, 19, 21, 0.08);
  background: var(--surface);
}

.resource-meta {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-row span {
  padding: 7px 10px;
  border: 1px solid rgba(41, 72, 63, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--green);
  font-size: 13px;
  font-weight: 720;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(17, 19, 21, 0.08);
  background: var(--surface);
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 19, 21, 0.18);
  background: #fbfaf5;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.quote-band {
  padding: clamp(54px, 8vw, 90px) clamp(18px, 5vw, 64px);
  color: #fff;
  background: var(--deep);
}

.quote-band h2 {
  max-width: 1100px;
  margin-bottom: 0;
}

.quote-band p {
  max-width: 900px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.65;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.timeline strong {
  color: var(--green);
}

.section-heading {
  max-width: 840px;
  margin: 0 0 24px;
}

.section-heading h2 {
  margin-bottom: 0;
}

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

.statement-qa details {
  border: 1px solid rgba(17, 19, 21, 0.08);
  background: var(--surface);
}

.statement-qa summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 20px 22px;
  color: var(--ink);
  font-weight: 760;
  line-height: 1.32;
  cursor: pointer;
  list-style: none;
  overflow-wrap: anywhere;
}

.statement-qa summary::-webkit-details-marker {
  display: none;
}

.statement-qa summary::after {
  content: "+";
  grid-column: 3;
  grid-row: 1;
  width: 28px;
  height: 28px;
  margin-top: 0;
  border: 1px solid rgba(41, 72, 63, 0.22);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
}

.statement-qa details[open] summary::after {
  content: "-";
}

.statement-qa summary span {
  grid-column: 1;
  grid-row: 1;
  color: var(--green);
  font-family: "Georgia", serif;
  font-size: 1.18rem;
}

.statement-qa details p {
  margin: 0;
  padding: 0 22px 18px 78px;
  color: var(--muted);
  line-height: 1.66;
}

.statement-qa details p + p {
  padding-top: 0;
}

.faq-accordion {
  align-items: start;
}

.faq-accordion details {
  display: grid;
  break-inside: avoid;
  min-height: 124px;
}

.faq-accordion summary {
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  min-height: 124px;
  align-items: center;
}

.faq-accordion summary span {
  width: 44px;
  text-align: left;
}

.faq-accordion details p {
  padding-right: 24px;
}

.glossary-accordion {
  align-items: start;
}

.glossary-accordion details {
  display: grid;
  min-height: 86px;
  break-inside: avoid;
}

.glossary-accordion summary {
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  min-height: 86px;
  align-items: center;
}

.glossary-accordion summary span {
  width: 44px;
  text-align: left;
}

.glossary-accordion details p {
  padding-right: 24px;
}

.page-logo-panel {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px solid rgba(41, 72, 63, 0.25);
  background: #fff;
}

.page-logo-panel img {
  width: min(260px, 74%);
  height: auto;
}

.founder-photo-panel {
  width: min(100%, 300px);
  margin: 0;
  padding: 18px;
  justify-self: end;
  border: 1px solid rgba(41, 72, 63, 0.22);
  background: #fff;
}

.founder-photo-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.founder-photo-panel figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

@media (max-width: 980px) {
  .site-header,
  .contact,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .nav-dropdown {
    left: 0;
    right: auto;
  }

  .hero,
  .split,
  .definition-grid,
  .program-entry,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .problem-grid,
  .dual-focus,
  .program-grid,
  .content-grid,
  .content-grid.two-col,
  .field-grid,
  .resource-item {
    grid-template-columns: 1fr;
  }

  .hero-diagram {
    min-height: 360px;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .statement-qa {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .footer-groups {
    grid-template-columns: 1fr;
  }

  .founder-photo-panel {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: static;
  }

  h1 {
    font-size: 3rem;
  }

  .page-hero h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .problem-grid h2,
  .contact h2 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .hero-diagram {
    min-height: 330px;
    padding: 18px;
    gap: 5px;
  }

  .diagram-layer,
  .arch-layer,
  .layer-stack div {
    min-height: 46px;
    padding: 9px 12px;
  }

  .statement-qa summary {
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    min-height: 76px;
    padding: 18px;
  }

  .statement-qa details p {
    padding: 0 18px 16px;
  }
}
