:root {
  --ivory: #f3eee6;
  --cream: #fbf7f2;
  --paper: #fffcf8;
  --sage: #7e9278;
  --sage-deep: #3e5344;
  --sage-wash: #e4ebe0;
  --forest: #1b3329;
  --forest-mid: #2c4a3c;
  --forest-deep: #14261e;
  --terracotta: #b86b52;
  --peach: #f0d2c4;
  --peach-soft: #f7e6dc;
  --ink: #24312a;
  --muted: #4e5a53;
  --line: rgba(27, 51, 41, 0.12);
  --line-strong: rgba(27, 51, 41, 0.22);
  --shadow: 0 24px 50px rgba(27, 51, 41, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --radius: 1.5rem;
  --header: 4.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

details:not([open]) > :not(summary) {
  display: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
}

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

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  text-wrap: balance;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

::selection {
  background: #d9e4d4;
  color: var(--forest);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--forest);
  color: var(--cream);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 238, 230, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--forest);
  text-decoration: none;
}

.logo::after {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-left: 0.28rem;
  border-radius: 50%;
  background: var(--terracotta);
  transform: translateY(-0.55rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--forest);
  text-decoration: none;
  font-size: 0.98rem;
}

.site-nav ul a:hover {
  color: var(--sage-deep);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  cursor: pointer;
}

.nav-check {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--forest);
  position: relative;
  border-radius: 1px;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before {
  top: -6px;
}

.bars::after {
  top: 6px;
}

.header-bar:has(.nav-check:checked) .bars {
  background: transparent;
}

.header-bar:has(.nav-check:checked) .bars::before {
  top: 0;
  transform: rotate(45deg);
}

.header-bar:has(.nav-check:checked) .bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle:focus-within {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--forest);
  font: 500 0.98rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--forest);
  color: #fbf7f2;
}

.btn-primary:hover {
  background: var(--forest-mid);
  color: #fbf7f2;
}

.site-nav .btn-primary,
.site-nav .btn-primary:hover,
.prose a.btn-primary,
.prose a.btn-primary:hover {
  color: #fbf7f2;
}

.btn-secondary {
  border-color: var(--line-strong);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--forest);
  background: rgba(27, 51, 41, 0.04);
}

.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.section {
  padding: clamp(4.25rem, 8vw, 7rem) 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--sage-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 1px;
  margin-right: 0.7rem;
  background: var(--terracotta);
  vertical-align: middle;
}

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
}

.hero-grid,
.split,
.join-grid,
.steps,
.problem-grid,
.principles,
.footer-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

h1,
.section h2,
.subpage h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--forest);
  line-height: 1.08;
}

h1,
.subpage h1 {
  font-size: clamp(2.7rem, 5.5vw, 4.7rem);
}

.section h2 {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  max-width: 18ch;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.trust {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  color: var(--sage-deep);
  font-size: 0.98rem;
}

.hero-photo,
.frame-photo {
  margin: 0;
  position: relative;
}

.hero-photo img,
.frame-photo img {
  width: 100%;
  border-radius: 1.75rem;
  object-fit: cover;
  border: 1px solid rgba(27, 51, 41, 0.08);
  box-shadow: var(--shadow);
}

.hero-photo::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 46%;
  height: 42%;
  right: 0;
  bottom: 3.4rem;
  background: var(--peach);
  border-radius: 1.6rem;
}

.hero-photo img {
  position: relative;
  z-index: 1;
  width: calc(100% - 1.1rem);
  aspect-ratio: 3 / 4;
}

.frame-photo img {
  aspect-ratio: 4 / 3;
}

figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.problem-grid,
.steps,
.principles {
  margin-top: 2.5rem;
}

.problem-grid,
.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-card,
.step,
.principle,
.form-card,
.interest-card,
.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.problem-card,
.step,
.principle {
  padding: 1.5rem 1.4rem 1.45rem;
}

.problem-card h3,
.feature-list h3,
.step h3,
.principle h3 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--forest);
  line-height: 1.2;
}

.card-index,
.step-num {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--terracotta);
  letter-spacing: -0.03em;
}

.problem-card p,
.step p,
.principle p,
.feature-list p,
.faq-body p {
  margin: 0;
  color: var(--muted);
}

.split {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.feature-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.feature-list li {
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.feature-list h3 {
  font-size: 1.35rem;
}

.caveat {
  margin: 1.25rem 0 0;
  color: var(--sage-deep);
  font-size: 0.98rem;
}

.band {
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin-top: 2.5rem;
  padding: 0;
}

.section-cta {
  margin-top: 2rem;
}

.section-note {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.philosophy {
  background: var(--sage-wash);
}

.philosophy .section h2,
.philosophy h2 {
  max-width: 18ch;
}

.principles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}

.principle {
  background: rgba(255, 252, 248, 0.72);
}

.principle h3 {
  font-size: 1.25rem;
}

.therapist-layout {
  align-items: start;
}

.interest-card {
  background: transparent;
  border: none;
  padding: 0;
}

.interest-card[open] {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.interest-card summary {
  width: fit-content;
  max-width: 100%;
  list-style: none;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.interest-card summary .open-label {
  display: none;
}

.interest-card[open] summary .closed-label {
  display: none;
}

.interest-card[open] summary .open-label {
  display: inline;
}

.interest-card summary::-webkit-details-marker {
  display: none;
}

.interest-card[open] summary {
  margin-bottom: 1.1rem;
}

.stack-form,
.field {
  display: grid;
  gap: 0.4rem;
}

.stack-form {
  gap: 0.95rem;
}

label,
.consent {
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--forest);
  flex: none;
}

.field-error {
  margin: 0;
  color: #8c3d32;
  font-size: 0.88rem;
}

.field-error:empty {
  display: none;
}

.prototype-flag {
  margin: 0;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fine-print,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.form-status:not(:empty) {
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  background: var(--sage-wash);
  color: var(--forest);
}

.fine-print a,
.prose a,
.section-note a {
  color: var(--sage-deep);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 0.2rem 1.15rem;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.6rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--forest);
}

.faq-item summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--forest);
  border-bottom: 1.5px solid var(--forest);
  transform: rotate(45deg);
  flex: none;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
}

.faq-body {
  padding: 0 1.75rem 1rem 0;
  max-width: 44rem;
}

.join {
  background: var(--forest);
  color: #f4efe6;
}

.join h2 {
  color: #f7f3ec;
  max-width: 14ch;
}

.join .lead {
  color: #e4ebe4;
}

.join .btn-primary {
  background: #f7f3ec;
  color: var(--forest);
}

.join .btn-primary:hover {
  background: #fff;
}

.join .section-note {
  color: #e4ebe4;
}

.join-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  align-items: start;
}

.form-card {
  padding: 1.4rem;
  color: var(--ink);
}

.site-footer {
  background: var(--forest-deep);
  color: #e7eee8;
  padding: 3.25rem 0 1.5rem;
  border-top: 1px solid rgba(243, 238, 230, 0.12);
}

.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr;
}

.footer-logo {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: #f7f3ec;
}

.footer-tagline,
.footer-position {
  margin: 0.7rem 0 0;
  max-width: 24rem;
}

.footer-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d7c2b6;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: #f4efe6;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.footer-note {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(243, 238, 230, 0.12);
}

.footer-note p {
  margin: 0;
  max-width: 46rem;
  color: #d5ddd6;
  font-size: 0.92rem;
}

.subpage {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  letter-spacing: -0.02em;
  color: var(--forest);
  line-height: 1.2;
}

.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.7;
}

.prose ul {
  padding-left: 1.15rem;
}

.draft-banner,
.project-card {
  border: 1px solid rgba(184, 107, 82, 0.35);
  background: var(--peach-soft);
  border-radius: 1.1rem;
  padding: 1rem 1.15rem;
}

.draft-banner {
  margin: 1.5rem 0 0;
  color: var(--forest);
}

.project-card {
  margin-top: 2.5rem;
  background: var(--paper);
  padding: 1.5rem;
}

.project-card h2 {
  margin: 0.35rem 0 0.75rem;
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  color: var(--forest);
  line-height: 1.12;
}

.kicker {
  margin: 0;
  color: var(--terracotta);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.call-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

@media (max-width: 980px) {
  .principles,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    z-index: 40;
    padding: 0.4rem 0 1.15rem;
    background: #fbf7f2;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(27, 51, 41, 0.06);
  }

  .header-bar:has(.nav-check:checked) .site-nav {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav ul a,
  .site-nav .btn {
    padding: 0.85rem 0;
  }

  .site-nav .btn {
    width: fit-content;
    margin-top: 0.35rem;
  }

  .hero-grid,
  .split,
  .join-grid,
  .problem-grid,
  .steps,
  .principles,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section h2,
  .join h2,
  .project-card h2 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .btn {
    width: 100%;
  }

  .site-nav .btn,
  .interest-card summary.btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
