:root {
  --bg: #f3f1eb;
  --bg-raised: #faf8f4;
  --ink: #1a1916;
  --muted: #5c574f;
  --line: #d4cfc4;
  --accent: #8a3324;
  --accent-deep: #6f291c;
  --cream: #f6f3ec;
  --soft: #e7e2d8;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: Manrope, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --header: 4.4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
.process-btn strong,
.step span,
.band-title {
  font-family: var(--serif);
  font-weight: 450;
  letter-spacing: -0.025em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: #ead4cb;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 0.8rem;
  z-index: 50;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 241, 235, 0.92);
  backdrop-filter: blur(14px);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.mark {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 0.85rem;
  margin-left: auto;
}

.nav a,
.mobile-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover,
.mobile-nav a:hover {
  color: var(--ink);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.55rem 1rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.header-cta:hover,
.button:hover {
  background: #2a2825;
}

.button.ghost:hover {
  background: var(--soft);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  min-height: 2.4rem;
  padding: 0 0.8rem;
  cursor: pointer;
}

.mobile-nav:not([hidden]) {
  border-top: 1px solid var(--line);
  padding: 0.4rem 0 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.hero {
  padding: 1.6rem 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  column-gap: 1.25rem;
  align-items: start;
}

.hero-grid > .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0.85rem;
  padding-top: 1.35rem;
}

.hero-grid > h1 {
  grid-column: 1;
  grid-row: 2;
}

.hero-rest {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  padding-bottom: 1.5rem;
}

.hero-figure {
  grid-column: 2;
  grid-row: 1 / span 3;
  position: relative;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
}

.hero-figure::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 8%;
  top: 8%;
  bottom: 10%;
  background: radial-gradient(ellipse at 50% 42%, rgba(138, 51, 36, 0.1), transparent 68%);
  pointer-events: none;
}

.hero-figure img {
  position: relative;
  display: block;
  width: min(100%, 34rem);
  height: auto;
  max-height: min(40rem, 78vh);
  margin-left: auto;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 22px 18px rgba(26, 25, 22, 0.14));
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.2rem;
  list-style: none;
  margin: auto 0 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
}

.hero-meta b {
  display: block;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-meta span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.55rem, 5vw, 4.45rem);
  line-height: 1.02;
  max-width: 11em;
  text-wrap: balance;
}

.lead {
  margin-top: 1.4rem;
  max-width: 40rem;
  color: #3f3b36;
  font-size: 1.08rem;
}

.lead + .lead {
  margin-top: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.band {
  background: #211f1c;
  color: var(--cream);
  padding: 4.2rem 0;
}

.band-title {
  max-width: 18em;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
}

.band-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: end;
}

.band-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.band-points li {
  padding: 0.95rem 0;
  border-top: 1px solid rgba(243, 241, 235, 0.16);
}

.band-points li:last-child {
  border-bottom: 1px solid rgba(243, 241, 235, 0.16);
}

.band-points strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.band-points span,
.band-note {
  color: #d4cec3;
}

.band-note {
  margin-top: 1.3rem;
  max-width: 38rem;
}

.section {
  padding: 5.2rem 0;
}

.section-head {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.2rem 1.5rem;
  margin-bottom: 2.4rem;
  align-items: start;
}

.index {
  margin: 0.35rem 0 0;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
}

.section-head h2,
.pull {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.12;
}

.section-head p,
.intro {
  color: var(--muted);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.pillar {
  padding: 1.25rem 1.15rem 0.2rem 0;
  border-right: 1px solid var(--line);
  margin-right: 1.15rem;
}

.pillar:last-child {
  border-right: 0;
  margin-right: 0;
}

.pillar span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--accent-deep);
  font-family: var(--serif);
  font-style: italic;
}

.pillar h3 {
  font-size: 1.45rem;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.pillar p {
  color: #403c37;
  font-size: 0.96rem;
}

.pillar p + p,
.scene p + p,
.ledger p + p,
.step .yield {
  margin-top: 0.7rem;
}

.scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.scene {
  padding: 1.25rem 1.15rem 0.4rem 0;
  border-right: 1px solid var(--line);
  margin-right: 1.15rem;
}

.scene:last-child {
  border-right: 0;
  margin-right: 0;
}

.scene .label {
  margin-bottom: 0.85rem;
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scene h3 {
  font-size: 1.45rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.scene p {
  color: #403c37;
  font-size: 0.96rem;
}

.thread {
  max-width: 40rem;
  margin-top: 1.8rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.28;
}

.domains {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.domain {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 1.4rem 1.3rem 1.5rem;
  min-height: 16rem;
}

.domain .label {
  margin-bottom: 1.2rem;
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.domain h3 {
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  line-height: 1.12;
  margin-bottom: 0.8rem;
}

.domain p + p {
  margin-top: 0.75rem;
}

.proof {
  margin-top: 2.2rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem 1rem;
  margin-top: 1.2rem;
}

.proof-grid article {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.proof-grid b {
  display: block;
  font-family: var(--serif);
  font-weight: 450;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.proof-grid span {
  display: block;
  margin-top: 0.4rem;
  color: #403c37;
  font-size: 0.9rem;
}

.pull {
  max-width: 18em;
  margin-top: 2.4rem;
}

.ledger-lead {
  max-width: 40rem;
  margin: 2.4rem 0 0;
  color: #3f3b36;
}

.ledger {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.ledger article {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.ledger .label,
.asks .label {
  margin: 0.2rem 0 0;
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ledger h3,
.asks h3 {
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.ledger p {
  max-width: 42rem;
  color: #403c37;
}

.asks {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.5rem;
  margin-top: 1.8rem;
  align-items: start;
}

.asks ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.asks li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
}

.asks li:last-child {
  border-bottom: 1px solid var(--line);
}

.asks-note {
  margin-top: 0.8rem;
}

.asks li span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}

.step .yield {
  color: var(--muted);
  font-size: 0.92rem;
}

.arch {
  display: grid;
  gap: 0.8rem;
}

.arch-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.process-btn {
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  min-height: 8.2rem;
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}

.process-btn strong {
  font-size: 1.45rem;
  font-weight: 450;
  line-height: 1.1;
}

.process-btn span {
  color: var(--muted);
  font-size: 0.84rem;
}

.process-btn:hover {
  border-color: #b7b0a4;
}

.process-btn.is-related {
  background: #f4e3dc;
  border-color: #b56a56;
}

.process-btn.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.process-btn.is-selected span {
  color: #d9d3c8;
}

.arch-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 1.4rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 1.35rem 1.3rem 1.45rem;
}

.arch-detail h3 {
  margin-top: 0.35rem;
  font-size: 2rem;
  line-height: 1.1;
}

.arch-kicker {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.arch-body {
  margin-top: 0.85rem;
  color: #3f3b36;
}

.arch-detail h4 {
  margin-top: 0.2rem;
}

.role p,
.form-note,
.field span,
.step p,
.boundary li,
.arch-detail p {
  font-size: 0.96rem;
}

.arch-detail h4 {
  margin: 0 0 0.35rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.arch-detail p {
  margin: 0;
}

.arch-detail .arch-kicker {
  font-size: 0.75rem;
}

.arch-detail .arch-body {
  margin-top: 0.85rem;
  color: #3f3b36;
}

.arch-links {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 1.2rem 1.2rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
  margin-right: 1.2rem;
}

.step span {
  display: block;
  color: var(--accent-deep);
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 0.55rem;
}

.step h3 {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.step p {
  color: #403c37;
  margin: 0;
}

.roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.role {
  padding: 1.4rem 1.35rem 1.5rem;
}

.role + .role {
  border-left: 1px solid var(--line);
  background: var(--bg-raised);
}

.role .label {
  margin-bottom: 0.7rem;
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.role h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}

.role ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.role li {
  position: relative;
  padding-left: 0.95rem;
  margin: 0.45rem 0;
}

.role li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.4rem;
  height: 1px;
  background: var(--accent);
}

.boundary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.4rem;
}

.boundary article {
  padding: 1.3rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
}

.boundary h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.boundary ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #403c37;
}

.boundary li + li {
  margin-top: 0.4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin: 0.4rem 0 1rem;
}

.contact-copy p {
  color: var(--muted);
  max-width: 34rem;
}

.contact-copy p + p {
  margin-top: 0.85rem;
}

form {
  display: grid;
  gap: 0.95rem;
  padding: 1.3rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.65rem 0;
  outline: none;
  border-radius: 0;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--ink);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  max-width: 26rem;
}

.thanks {
  padding: 1.5rem 1.3rem;
  background: var(--ink);
  color: var(--cream);
}

.thanks h3 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.thanks p {
  color: #d9d3c8;
  margin-bottom: 1.1rem;
}

.thanks .button {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner strong {
  color: var(--ink);
  font-weight: 700;
}

.footer-inner a {
  color: var(--ink);
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .hero-grid > .eyebrow,
  .hero-grid > h1,
  .hero-figure,
  .hero-rest {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-grid > .eyebrow {
    padding-top: 0.2rem;
  }

  .hero-figure {
    justify-content: center;
    margin-top: 0.6rem;
  }

  .hero-figure img {
    height: auto;
    max-height: 32rem;
    margin-inline: auto;
  }

  .hero-meta {
    margin-top: 1.8rem;
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .section-head,
  .band-grid,
  .roles,
  .boundary,
  .contact-grid,
  .domains,
  .asks,
  .scenes,
  .proof-grid,
  .ledger article {
    grid-template-columns: 1fr;
  }

  .scene {
    border-right: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.15rem;
  }

  .pillars,
  .steps,
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .role + .role {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section-head p {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .arch-map {
    grid-template-columns: 1fr 1fr;
  }

  .arch-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 1.6rem));
  }

  .hero {
    padding-top: 2.4rem;
  }

  .pillars,
  .steps,
  .proof-grid,
  .arch-map,
  .arch-detail {
    grid-template-columns: 1fr;
  }

  .pillar,
  .step {
    border-right: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
  }

  .footer-inner {
    flex-direction: column;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head p {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
