:root {
  --cream: #f5efe5;
  --cream-deep: #e9dfd0;
  --paper: #fbf8f2;
  --olive: #7d8366;
  --olive-deep: #555c3e;
  --terracotta: #b85e38;
  --terracotta-deep: #8d4329;
  --brown: #4a281b;
  --brown-soft: #6d4a3c;
  --line: rgba(74, 40, 27, 0.24);
  --display-serif: Didot, "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  --body-serif: Baskerville, "Baskerville Old Face", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --italic-serif: Baskerville, "Baskerville Old Face", "Iowan Old Style", Georgia, serif;
  --serif: var(--display-serif);
  --sans: var(--body-serif);
  --content: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--body-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.008em;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--brown);
  color: white;
  padding: 0.65rem 1rem;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 0.55rem clamp(1.25rem, 3vw, 3.4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 239, 229, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 72px;
  overflow: hidden;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 220px;
  max-width: none;
  margin: -23px 0;
}

.brand-mark {
  position: relative;
  display: block;
  width: 70px;
  height: 70px;
  overflow: hidden;
  background: transparent;
}

.brand-mark img {
  position: absolute;
  top: -14px;
  left: -32px;
  width: 135px;
  max-width: none;
}

.brand-name {
  font-family: var(--display-serif);
  font-size: 1.75rem;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.brand-name small {
  display: block;
  margin: 0 0 0.28rem 0.15rem;
  font-family: var(--body-serif);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.main-nav > a:not(.button) {
  position: relative;
  font-family: var(--body-serif);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
}

.main-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  left: 0;
  height: 1px;
  background: var(--terracotta);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav > a:not(.button):hover::after,
.main-nav > a:not(.button):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--brown);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--olive-deep);
  border-radius: 999px;
  background: var(--olive-deep);
  color: #fff;
  padding: 0.75rem 1.45rem;
  font-family: var(--body-serif);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover:not(:disabled) {
  background: transparent;
  color: var(--olive-deep);
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  font-size: 0.84rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  min-height: calc(100svh - 92px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-photo-wrap {
  position: relative;
  min-height: calc(100svh - 92px);
  overflow: hidden;
  background: #d9ddd8;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: saturate(0.86) contrast(0.98);
}

.hero-photo-wrap::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(52, 45, 34, 0.2));
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(4rem, 7vw, 8rem) clamp(2.5rem, 8vw, 8rem);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--terracotta-deep);
  font-family: var(--italic-serif);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--display-serif);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.05;
  text-transform: uppercase;
}

h1 {
  width: 100%;
  max-width: 780px;
  margin-bottom: 2.3rem;
  font-size: clamp(3rem, 4.7vw, 5.2rem);
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 1.8rem;
  font-size: clamp(2.9rem, 4.7vw, 5rem);
}

h3 {
  font-size: clamp(1.65rem, 2.5vw, 2.5rem);
}

p {
  font-family: var(--body-serif);
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 1.8;
}

.section {
  padding: clamp(5rem, 10vw, 10rem) max(1.25rem, calc((100vw - var(--content)) / 2));
}

.about-space {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
  overflow: hidden;
  background: var(--paper);
}

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

.about-copy {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 4vw, 4rem);
}

.about-copy p {
  margin: 0 0 1.4rem;
  max-width: 64ch;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  font-weight: 400;
  line-height: 1.85;
}

.people {
  background: var(--cream);
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.section-intro h2 {
  margin-bottom: 1rem;
}

.person-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
  margin-bottom: clamp(5rem, 10vw, 10rem);
}

.person-card:last-child {
  margin-bottom: 0;
}

.person-card-alt {
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
}

.person-card-alt .person-photo {
  grid-column: 2;
  grid-row: 1;
}

.person-card-alt .person-copy {
  grid-column: 1;
  grid-row: 1;
}

.person-photo {
  position: sticky;
  top: 120px;
  aspect-ratio: 0.78;
  overflow: hidden;
  border-radius: 3px;
  background: #dfe2df;
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.98);
}

.person-photo-marcela img {
  object-position: center 44%;
  transform: none;
}

.person-photo-felipe img {
  object-position: center 54%;
  transform: none;
}

.person-copy {
  max-width: 720px;
}

.person-role {
  margin: 0 0 0.8rem;
  color: var(--terracotta-deep);
  font-family: var(--body-serif);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.person-copy h3 {
  margin-bottom: 2rem;
}

.person-copy p:not(.person-role) {
  max-width: 64ch;
  color: var(--brown-soft);
  font-weight: 400;
  line-height: 1.85;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--brown);
  padding: 0 0 0.25rem;
  font-family: var(--body-serif);
  font-weight: 400;
  text-align: left;
}

.pending-link:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.profile-contact {
  margin-top: 1.2rem;
  background: #555c3e;
  color: #fff;
}

.profile-contact:disabled,
.contact-actions .button:disabled {
  border-color: #555c3e;
  background: #555c3e;
  color: #fff;
  opacity: 0.9;
}

.therapy {
  background: var(--olive-deep);
  color: var(--cream);
}

.therapy-heading {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.therapy-heading .eyebrow {
  color: #e9b49f;
}

.therapy-heading h2 {
  max-width: 800px;
  margin-bottom: 0;
}

.therapy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(245, 239, 229, 0.3);
  border-left: 1px solid rgba(245, 239, 229, 0.3);
}

.therapy-card {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 240px;
  border-right: 1px solid rgba(245, 239, 229, 0.3);
  border-bottom: 1px solid rgba(245, 239, 229, 0.3);
  padding: clamp(1.5rem, 3vw, 3rem);
  transition: background 200ms ease, color 200ms ease;
}

.therapy-card:hover {
  background: var(--cream);
  color: var(--brown);
}

.therapy-card h3 {
  min-height: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(1.4rem, 1.9vw, 1.9rem);
  line-height: 1.12;
  overflow-wrap: normal;
  text-align: center;
  word-break: normal;
}

.contact {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(3rem, 8vw, 9rem);
  border-top: 1px solid var(--line);
  background: #e6e8df;
  color: var(--brown);
}

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

.contact-intro > p {
  max-width: 48ch;
  font-size: 1.12rem;
  line-height: 1.85;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.contact-actions .button {
  width: 100%;
  max-width: 420px;
}

.contact .button {
  border-color: var(--olive-deep);
  background: var(--olive-deep);
  color: #fff;
}

.contact .button-light {
  border-color: #555c3e;
  background: #555c3e;
  color: #fff;
}

.contact-card {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(251, 248, 242, 0.52);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.contact-card-label {
  display: block;
  margin-bottom: 1rem;
  color: var(--terracotta-deep);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card-title {
  max-width: 15ch;
  margin: 0 0 1.5rem;
  font-family: var(--italic-serif);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(74, 40, 27, 0.42);
  border-radius: 0;
  background: transparent;
  color: var(--brown);
  padding: 0.65rem 0.15rem;
  font-size: 1rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--olive-deep);
}

.field textarea {
  min-height: 105px;
  resize: vertical;
}

.field textarea::placeholder {
  color: rgba(74, 40, 27, 0.58);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.select-wrap select {
  appearance: none;
  padding-right: 1.75rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--brown-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  accent-color: var(--olive-deep);
}

.form-submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.25rem;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 1.6rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-status.is-success {
  color: var(--olive-deep);
}

.form-status.is-error {
  color: var(--terracotta-deep);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.contact-note {
  margin: 2.25rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  color: var(--brown-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 4rem max(1.25rem, calc((100vw - var(--content)) / 2)) 2rem;
  background: var(--brown);
  color: var(--cream);
}

.footer-brand strong {
  font-family: var(--display-serif);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.91rem;
}

.site-footer a {
  display: block;
  margin-bottom: 0.25rem;
  text-underline-offset: 0.2em;
}

.site-footer .footer-inline-link {
  display: inline;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(245, 239, 229, 0.25);
  padding-top: 1.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .main-nav {
    gap: 1rem;
  }

  .main-nav > a:not(.button) {
    font-size: 0.84rem;
  }

  .hero {
    grid-template-columns: 0.88fr 1.12fr;
  }

  h1 {
    font-size: clamp(2.6rem, 4.2vw, 3.3rem);
  }

  .therapy-card h3 {
    font-size: 1.25rem;
  }

  .about-space {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .therapy-card {
    min-height: 430px;
  }

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

@media (max-width: 820px) {
  html {
    scroll-padding-top: 80px;
  }

  .site-header {
    min-height: 76px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  .brand {
    height: 60px;
  }

  .brand-logo {
    width: 205px;
    margin: -22px 0;
  }

  .brand-mark img {
    top: -12px;
    left: -27px;
    width: 112px;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    height: calc(100dvh - 76px);
    background: var(--cream);
    padding: 3rem 1.25rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .main-nav > a:not(.button) {
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 0;
    font-family: var(--serif);
    font-size: 1.8rem;
  }

  .main-nav .button {
    margin-top: 1rem;
  }

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

  .hero-photo-wrap {
    min-height: 64svh;
    max-height: 740px;
  }

  .hero-content {
    min-height: 520px;
    padding: 4.5rem 1.25rem;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 4rem);
  }

  h1 span {
    white-space: normal;
  }

  .about-space {
    grid-template-columns: 1fr;
  }

  .about-copy {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 2rem;
    padding-left: 0;
  }

  .section-intro,
  .therapy-heading {
    grid-template-columns: 1fr;
  }

  .person-card,
  .person-card-alt {
    grid-template-columns: 1fr;
  }

  .person-card-alt .person-photo,
  .person-card-alt .person-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .person-photo {
    position: relative;
    top: auto;
    width: min(100%, 480px);
    aspect-ratio: 1.05;
  }

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

  .therapy-card {
    min-height: 210px;
  }

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

@media (max-width: 560px) {
  .brand-name {
    font-size: 1.22rem;
  }

  .brand-logo {
    width: 182px;
    margin: -19px 0;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
  }

  .brand-mark img {
    top: -11px;
    left: -25px;
    width: 105px;
  }

  .hero-photo-wrap {
    min-height: 58svh;
  }

  .hero-photo {
    object-position: center 55%;
  }

  .section {
    padding-top: 5.2rem;
    padding-bottom: 5.2rem;
  }

  h2 {
    font-size: clamp(2.4rem, 11vw, 3.8rem);
  }

  .therapy-grid,
  .contact-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .therapy-card {
    min-height: 170px;
  }

  .therapy-card h3 {
    min-height: 0;
  }

  .contact-card {
    border-radius: 3px;
  }

  .field-full,
  .form-submit {
    grid-column: 1;
  }

  .form-submit {
    width: 100%;
  }

  .contact-actions,
  .contact-actions .button {
    width: 100%;
  }

  .copyright {
    grid-column: 1;
  }
}

@media (max-width: 360px) {
  h2 {
    font-size: 2.05rem;
  }

  .therapy-grid,
  .therapy-card {
    min-width: 0;
  }

  .therapy-card h3 {
    min-height: 0;
    font-size: 1.12rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
