/* One original sixteen-tooth wheel per side. Their centers stay fixed. */
.gear-field {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.gear-pair {
  --wheel: clamp(245px, 25vw, 420px);
  position: absolute;
  width: var(--wheel);
  height: var(--wheel);
  z-index: -1;
  opacity: .075;
  pointer-events: none;
  transform: rotate(-24deg);
}
.gear-pair::before,
.gear-pair::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/cog.png") center / contain no-repeat;
}
.gear-pair::before {
  transform: rotate(var(--turn, 0deg));
}
.gear-pair::after {
  left: 89%;
  right: -89%;
  transform: rotate(calc(11.25deg - var(--turn, 0deg)));
}
.garden-hero > .gear-pair {
  left: 12%;
  bottom: -18%;
}
#aboutus > .gear-pair {
  top: 8%;
  right: 10%;
  transform: rotate(35deg);
}
#services > .gear-pair {
  top: 35px;
  left: -8%;
  transform: rotate(-30deg);
}
#contactus > .gear-pair {
  bottom: -13%;
  left: -5%;
}
#history > .gear-pair {
  right: calc(var(--wheel) * .22);
  top: -12%;
  transform: rotate(48deg);
}
.courtyard #history { padding-block: clamp(34px, 4.2vw, 64px); }
.courtyard #history h2 {
  text-align: left;
  padding-right: 0;
  margin-bottom: clamp(16px, 1.6vw, 24px);
}
.history-portrait {
  flex: 0 0 clamp(210px, 22vw, 290px);
  width: clamp(210px, 22vw, 290px);
  max-width: 100%;
}
.history-portrait img {
  width: 100%;
  height: auto;
  border-radius: 50% 50% 4px 4px / 32.25% 32.25% 4px 4px;
}
.history-portrait figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: #4e5e50;
}
@media (max-width: 720px) {
  .history-story { display: contents; }
  .courtyard #history h2 { order: -1; margin: 0; }
  .courtyard .history-body { gap: 18px; }
  .history-story p + p { margin: 0; }
  .history-portrait { flex: none; width: min(60vw, 225px); }
}
#services {
  background-color: #f6f5ed;
}
#services-title {
  text-align: center;
}
.service-menu {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(32px, 5vw, 85px);
  max-width: 1180px;
  margin: 0 auto;
}
.service-column {
  display: grid;
  align-content: start;
  gap: 32px;
}
.service-card {
  border-top: 1px solid #939e8a;
  padding-top: 18px;
}
.service-card h3 {
  font-size: clamp(26px, 3vw, 43px);
  margin-bottom: 15px;
}
.service-card h3 small {
  display: block;
  font: 500 13px/1.5 Inter, Arial, sans-serif;
  letter-spacing: .01em;
  margin-top: 8px;
}
.service-card > p {
  font-size: 13px;
  margin: 10px 0 18px;
}
.service-card .rate {
  padding-block: 9px;
}
#red-light-therapy {
  max-width: 1180px;
  margin: clamp(50px, 7vw, 100px) auto 0;
  scroll-margin-top: 24px;
}
.therapy-feature {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  align-items: stretch;
  background: #f1e7dc;
  color: #442e2e;
  overflow: hidden;
  border-radius: clamp(55px, 8vw, 118px) 6px 6px 6px;
}
.therapy-photo {
  position: relative;
  min-height: clamp(390px, 39vw, 560px);
  min-width: 0;
}
.therapy-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.therapy-intro {
  align-self: center;
  padding: clamp(25px, 4vw, 60px);
}
#therapy-name {
  font-family: "DM Serif", Georgia, serif;
  font-size: clamp(48px, 5.9vw, 90px);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.055em;
  color: #512f32;
  margin-bottom: 24px;
  text-wrap: balance;
}
#therapy-name em {
  font-family: Playfair, Georgia, serif;
  font-weight: 400;
  color: #833f47;
}
.therapy-intro p, .therapy-benefits p, .therapy-benefits li {
  line-height: 1.73;
}
.therapy-rates {
  margin-top: 25px;
  border-top: 1px solid #bba79a;
}
.therapy-rates .rate {
  align-items: baseline;
  border-bottom: 1px solid #cbbbab;
  padding-block: 11px;
}
.therapy-benefits {
  margin: clamp(26px, 4vw, 56px) auto 0;
  max-width: 1000px;
}
.therapy-benefits h4 {
  margin: 0 0 16px;
  color: #512f32;
  font: 400 clamp(28px, 3.4vw, 48px)/1.1 "DM Serif", Georgia, serif;
  letter-spacing: -.035em;
}
.therapy-benefits > p {
  max-width: 74ch;
}
.therapy-benefits ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(22px, 4vw, 56px);
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.therapy-benefits li {
  position: relative;
  border-top: 1px solid #cbc7b8;
  padding: 16px 0 16px 18px;
}
.therapy-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #905b5d;
}
@media (max-width: 720px) {
  .gear-pair { --wheel: clamp(180px, 50vw, 285px); }
  .service-menu, .therapy-feature, .therapy-benefits ul {
    grid-template-columns: 1fr;
  }
  .service-card h3 {
    font-size: 30px;
  }
  .therapy-photo { min-height: 0; }
  .therapy-photo img {
    position: static;
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: 360px;
  }
  .therapy-intro {
    padding: 24px 20px;
  }
  #therapy-name {
    font-size: clamp(42px, 10vw, 62px);
  }
  .garden-hero > .gear-pair {
    bottom: auto;
    top: 17%;
    left: -26%;
  }
  #aboutus > .gear-pair {
    top: 15px;
    right: -6%;
  }
  #services > .gear-pair {
    top: 12px;
    left: -23%;
  }
  #contactus > .gear-pair {
    top: 20px;
    bottom: auto;
    left: 64%;
  }
  #history > .gear-pair {
    top: 15%;
    right: 0;
    transform: rotate(67deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gear-pair::before { transform: none; }
  .gear-pair::after { transform: rotate(11.25deg); }
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
  text-decoration: none;
}
.social-links a:hover {
  text-decoration: underline;
}
.play-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 15px;
  background: #3a5047;
  border-radius: 4px;
}
.play-icon::after {
  content: "";
  border-block: 4px solid transparent;
  border-left: 6px solid #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(32px, 6vw, 90px);
  max-width: 1180px;
  margin-inline: auto;
}
.contact-details p + p { margin-top: 8px; }
.contact-details .social-links { margin-top: 18px; }
.contact-form {
  min-width: 0;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3.4vw, 48px);
  border: 1px solid #c2cab9;
  border-radius: 32px 8px 32px 8px;
  background: #f9f8f0;
}
.contact-form h3 { font-size: clamp(30px, 3vw, 44px); }
.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 550;
}
.contact-fields input, .contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #929f8c;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fffef9;
  color: var(--ink);
  font: 400 16px/1.5 Inter, Arial, sans-serif;
}
.contact-form textarea { resize: vertical; }
.contact-form :is(input, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.contact-form .turnstile-preview {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(300px, 100%);
  min-height: 65px;
  padding: 10px;
  border: 1px solid #c0c1bd;
  border-radius: 4px;
  background: #fafafa;
  color: #252621;
  font: 400 13px/1.35 Arial, sans-serif;
  cursor: pointer;
}
.turnstile-preview input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.turnstile-brand { margin-left: auto; font-weight: 700; text-align: right; }
.turnstile-brand small { display: block; font-size: 10px; font-weight: 400; }
.contact-form button { justify-self: start; border: 0; }
.contact-form output { font-size: 12px; color: #53604f; }
@media (max-width: 800px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); }
}

#schedule .scheduled-class + .scheduled-class { margin-top: 12px; }
.scheduled-class time { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.scheduled-class p, .scheduled-class small { overflow-wrap: anywhere; }
.scheduled-class small { display: block; color: #51604f; line-height: 1.4; }
#lightbox [data-step][hidden] { display:none; }

.section-page-link { display: inline-block; margin-top: 1rem; font-weight: 550; }
.studio-detail header nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; background: transparent; padding: 0; border: 0; }
.studio-detail nav a:last-child { border: 0; padding: 0; }
.studio-detail nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.studio-detail main { width: min(100% - 2 * var(--gutter), 1050px); margin: auto; }
.detail-intro { display: grid; grid-template-columns: 1fr minmax(140px,30%); align-items: center; gap: 6%; padding-block: clamp(32px,5vw,70px); }
.detail-intro h1 { font-size: clamp(44px,7vw,90px); letter-spacing: -.055em; margin: .15em 0 .25em; }
.detail-intro img { width: 100%; aspect-ratio: 1.4; object-fit: cover; border-radius: 70px 4px 4px 4px; }
.detail-list { padding-block: 24px; border-block: 1px solid var(--line); }
.studio-detail main h2 { font-size: clamp(28px,4vw,44px); margin-bottom: 16px; }
.detail-list h2 small { display: block; margin-top: 8px; font: 500 15px/1.4 Inter, sans-serif; }
.detail-list .rate { gap: 18px; }
.detail-list .notes { margin: 24px 0 0; }
.studio-detail .days { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(160px,100%),1fr)); gap: 24px; }
.detail-list .scheduled-class + .scheduled-class { margin-top: 12px; }
.detail-contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 32px 48px; }
.detail-contact > div:last-child { display: grid; gap: 12px; justify-items: start; }
@media(max-width: 640px) {
  .studio-detail header { flex-wrap: wrap; gap: 10px; }
  .studio-detail header nav a { display: inline; padding: 5px 0; }
  .detail-intro { grid-template-columns: 1fr; gap: 18px; }
  .detail-intro img { max-height: 160px; }
}
