:root {
  --paper: #f4efe8;
  --paper-strong: #efe7dc;
  --paper-soft: #f4efe8;
  --ink: #171714;
  --muted: #67675f;
  --green: #315a4c;
  --green-dark: #1f4939;
  --green-deep: #17382d;
  --green-soft: #dfe8df;
  --gold: #aa8f60;
  --line: rgba(36, 36, 31, .2);
  --white: #fff;
  --serif: "Cormorant SC", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --container: 1240px;
  --header-height: 150px;
  --header-scrolled-height: max(46px, calc(var(--header-height) / 2));
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input):focus-visible {
  outline: 3px solid #d5ab61;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--green-deep);
  transform: translateY(-160%);
}

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

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

.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

.narrow {
  max-width: 850px;
}

.centered {
  text-align: center;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}

h2 {
  margin-bottom: 18px;
  font-size: 56px;
  line-height: 1.08;
}

.section-lead {
  max-width: 600px;
  margin: 0 auto 42px;
  color: var(--ink);
  line-height: 1.45;
}

.button {
  display: inline-flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  border: 1px solid transparent;
  border-radius: 36px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

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

.button-primary:hover {
  background: var(--green-dark);
}

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

.button-secondary:hover {
  color: var(--white);
  background: var(--ink);
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: var(--header-height);
  color: var(--ink);
  transition: background-color .2s ease;
}

.site-header.is-scrolled {
  position: fixed;
  height: var(--header-scrolled-height);
  background: rgba(247, 243, 236, .96);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
}

.brand-logo {
  width: 36px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

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

.nav-account {
  color: var(--green-dark);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.hero {
  position: relative;
  min-height: min(92svh, 1014px);
  overflow: hidden;
  background-color: #e8e1d5;
  background-image: url("../images/hero-mountain-garden.png");
  background-position: center right;
  background-size: cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: min(92svh, 1014px);
  align-items: center;
  padding-top: 90px;
  padding-bottom: 80px;
}

.hero-copy {
  width: min(560px, 52%);
}

.hero h1 {
  margin-bottom: 42px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 120px;
  line-height: .86;
}

.hero-lead {
  max-width: 540px;
  margin-bottom: 58px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  width: min(362px, 100%);
  flex-direction: column;
  gap: 10px;
}

.hero-actions .button {
  padding-inline: 20px;
}

.section-intro {
  position: relative;
  overflow: hidden;
  padding: 64px 0 58px;
  background: var(--paper-soft);
}

.section-intro h2 {
  font-size: 54px;
}

.section-intro .narrow {
  max-width: 1240px;
}

#signals-title {
  white-space: nowrap;
}

.section-intro p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  line-height: 1.3;
}

.intro-decor {
  position: absolute;
  bottom: -18px;
  width: 290px;
  opacity: .8;
  pointer-events: none;
}

.intro-decor-left {
  left: -50px;
}

.intro-decor-right {
  right: -50px;
  transform: scaleX(-1);
}

.symptoms {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  background: #8d8c84;
  isolation: isolate;
  touch-action: pan-y;
}

.symptoms-water-mask {
  display: none !important;
}

.symptoms-image,
.symptoms-water-canvas,
.symptoms-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.symptoms-image {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  transition: opacity .2s ease;
}

.symptoms-water-canvas {
  z-index: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.symptoms.water-ready .symptoms-water-canvas {
  opacity: 1;
}

.symptoms.water-ready .symptoms-image {
  opacity: 0;
}

.symptoms-shade {
  z-index: 1;
  background: linear-gradient(180deg, rgba(18, 28, 25, .08), rgba(18, 28, 25, .26));
  pointer-events: none;
}

.symptoms-signal-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.symptom-tags {
  position: absolute;
  z-index: 3;
  inset: 0;
}

.symptom-tags button {
  position: absolute;
  top: var(--y);
  left: var(--x);
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 22px;
  color: var(--white);
  background: transparent;
  font-size: 26px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
  transform: translate(-50%, -50%) translate(var(--float-x, 0), var(--float-y, 0)) scale(var(--tag-scale, 1));
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, transform .08s linear;
  white-space: nowrap;
  cursor: pointer;
  will-change: transform;
}

.symptom-tags button:hover,
.symptom-tags button.is-near {
  --tag-scale: 1.06;
  border-color: rgba(245, 224, 164, .95);
  background: rgba(34, 92, 69, .78);
  box-shadow: 0 7px 25px rgba(13, 40, 30, .34), 0 0 24px rgba(242, 219, 153, .3);
}

.symptom-tags button.is-calling {
  --tag-scale: 1.1;
  border-color: #f5d78c;
  background: rgba(33, 105, 77, .92);
  box-shadow: 0 0 0 7px rgba(240, 211, 133, .13), 0 0 34px rgba(246, 216, 137, .62), 0 10px 28px rgba(8, 40, 29, .38);
}

.symptom-tags button.is-selected {
  border-color: #f1d794;
  color: #183d30;
  background: #f4e3b5;
  text-shadow: none;
}

.symptoms-action {
  position: absolute;
  bottom: 34px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
}

.symptoms-action.is-inviting {
  animation: symptoms-invite 1.25s ease-out;
}

@keyframes symptoms-invite {
  0%, 100% {
    box-shadow: 0 8px 22px rgba(17, 54, 40, .22);
  }
  38% {
    box-shadow: 0 0 0 10px rgba(239, 211, 135, .16), 0 0 38px rgba(239, 211, 135, .46), 0 14px 30px rgba(17, 54, 40, .38);
  }
}

.health-section {
  padding: 42px 0;
  color: var(--white);
  background: var(--green);
}

.health-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 60px;
}

.health-copy h2 {
  max-width: 330px;
  font-size: 56px;
}

.health-copy p:last-child {
  max-width: 380px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .82);
}

.health-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper-soft);
}

.health-card img {
  width: 100%;
  height: auto;
}

.health-card-action { position: absolute; bottom: 5%; left: 7%; width: 86%; }

.health-card-mobile {
  display: none;
}

/* Home page: a signed-in user sees a live card with their own results instead of the example image. */
.health-card.is-personal > img,
.health-card.is-personal .health-card-mobile { display: none; }
.health-card.is-personal .health-card-action { position: static; width: auto; margin: 0 28px 28px; }
.health-personal { padding: 28px 28px 20px; color: var(--ink); text-align: left; }
.health-personal h3 { margin: 0 0 4px; color: var(--green); font-size: 28px; }
.health-personal-date { margin: 0; color: var(--muted); font-size: 14px; }
.health-live { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 28px; align-items: center; margin-top: 18px; }
.health-live:has(.health-live-bars[hidden]) { grid-template-columns: minmax(150px, 220px); justify-content: center; }
.health-live:has(.health-live-ring[hidden]):has(.health-live-bars[hidden]) { display: none; }
.health-live-ring svg { display: block; width: 100%; height: auto; }
.health-live-track { fill: none; stroke: rgb(49 90 76 / 14%); stroke-width: 9; }
.health-live-arc { fill: none; stroke: var(--green); stroke-width: 9; stroke-linecap: round; }
.health-live-percent { fill: var(--green-dark); font-family: var(--serif); font-size: 30px; text-anchor: middle; }
.health-live-caption { fill: var(--muted); font-size: 9px; text-anchor: middle; }
.health-live-bars { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.health-live-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 15px; }
.health-live-bars strong { font-weight: 600; }
.health-live-bar { grid-column: 1 / -1; width: 100%; height: 6px; }
.health-live-bar-track { fill: rgb(49 90 76 / 14%); }
.health-live-good { fill: var(--green); }
.health-live-attention { fill: #c29a45; }
.health-live-support { fill: #b7654f; }
.health-personal-note { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }



.photo-ribbon {
  display: grid;
  height: 250px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--green-deep);
}

.photo-ribbon figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.photo-ribbon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-ribbon figure:nth-child(1) img {
  object-position: 35% center;
}

.team-section {
  position: relative;
  overflow: hidden;
  padding: 64px 0 48px;
  background-color: var(--paper-soft);
  background-image: url("../images/background-cherry-blossom.png");
  background-position: center;
  background-size: cover;
}

.team-gallery {
  display: grid;
  max-width: 1240px;
  margin: 46px auto 30px;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.team-gallery figure {
  margin: 0;
}

.team-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  object-fit: cover;
}

.team-note {
  margin-bottom: 22px;
  font-weight: 500;
}

.practices-section,
.stories-section {
  padding: 44px 0 48px;
}

.practices-section {
  background: var(--paper-strong);
}

.stories-section {
  background: var(--paper-soft);
}

.stories-section > .container > h2 {
  font-size: 56px;
}

.stories-section .carousel-arrow {
  display: none;
}

.carousel-shell {
  position: relative;
  margin: 42px 0 30px;
}

.card-track {
  display: grid;
  overflow-x: auto;
  padding: 4px 2px 18px;
  gap: 22px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.card-track::-webkit-scrollbar {
  display: none;
}

.practice-track {
  grid-auto-columns: calc((100% - 44px) / 3.16);
  grid-auto-flow: column;
}

.practice-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  grid-template-rows: auto minmax(64px, auto);
  scroll-snap-align: start;
  text-align: center;
}

.practice-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
}

.practice-card > div {
  display: grid;
  align-items: center;
  padding: 8px;
}

.practice-card h3 {
  margin-bottom: 0;
  font-size: 28px;
  overflow-wrap: anywhere;
}

/* The whole practice card opens the practice on the philosophy page. */
.practice-card { position: relative; }
.practice-card h3 a { color: inherit; text-decoration: none; }
.practice-card h3 a::after { position: absolute; inset: 0; content: ""; }
.practice-card:has(a:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }

.carousel-arrow {
  position: absolute;
  top: 48%;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-arrow:hover {
  color: var(--white);
  background: var(--green);
}

.carousel-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.carousel-arrow:disabled:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
}

.carousel-prev {
  left: -22px;
}

.carousel-next {
  right: -22px;
}

.carousel-dots {
  display: flex;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.carousel-dots[hidden] {
  display: none;
}

.carousel-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #a9b7ae;
  cursor: pointer;
}

.carousel-dot.is-active {
  transform: scale(1.15);
  background: var(--green);
}

.stories-track {
  grid-auto-columns: calc((100% - 44px) / 3);
  grid-auto-flow: column;
}

.story-card {
  display: flex;
  min-height: 470px;
  flex-direction: column;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--paper);
  background-image: url("../images/background-cream-botanical.png");
  background-position: bottom right;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  scroll-snap-align: start;
  text-align: left;
}

.story-card-featured {
  color: var(--white);
  border-color: transparent;
  background-color: var(--green);
  background-image: url("../images/background-deep-green-botanical.png");
}

.story-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 20px;
}

.story-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
}

.story-heading h3 {
  margin: 0;
  color: var(--green);
  font-size: 30px;
}

.story-card-featured h3 {
  color: var(--white);
}

.quote {
  color: rgba(46, 101, 79, .28);
  font-family: var(--serif);
  font-size: 72px;
  line-height: .6;
}

.story-card-featured .quote {
  color: rgba(255, 255, 255, .22);
}

.story-card p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.48;
}

.story-card-featured p {
  color: rgba(255, 255, 255, .83);
}

.story-card a {
  display: grid;
  min-height: 62px;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  color: var(--green-dark);
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  font-size: 16px;
  font-weight: 700;
}

.story-card a > :nth-child(2) {
  text-align: center;
}

.story-card a > :last-child {
  font-size: 25px;
}

.story-card-featured a {
  color: var(--white);
}

.stories-button {
  min-height: 56px;
  padding-inline: 38px;
  font-size: 16px;
}

.contact-section {
  min-height: 570px;
  padding: 58px 0;
  background-color: #e9e4dc;
  background-image: linear-gradient(90deg, rgba(247, 243, 236, .06), rgba(247, 243, 236, .78) 64%, rgba(247, 243, 236, .96)), url("../images/background-ink-mountains.png");
  background-position: left center;
  background-size: cover;
}

.contact-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.1fr);
  gap: 60px;
}

.contact-copy {
  text-align: center;
  transform: translateY(-18px);
}

.contact-copy h2 {
  margin-bottom: 34px;
  font-size: 52px;
}

.contact-copy h2 span {
  display: block;
  text-wrap: balance;
}

.contact-copy p:last-child {
  max-width: 400px;
  margin: 0 auto;
  font-size: 20px;
  font-weight: 400;
}

.contact-form {
  min-height: 436px;
  padding: 46px 40px 38px;
  border: 1px solid rgba(25, 25, 21, .88);
  border-radius: 18px;
  background: rgba(252, 250, 246, .16);
}

.form-field {
  margin-bottom: 12px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  min-height: 55px;
  padding: 0 26px;
  border: 1px solid rgba(25, 25, 21, .9);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, .12);
  font-size: 16px;
}

.form-field input:focus {
  border-color: var(--green);
}

.form-field input::placeholder {
  color: #24241f;
  opacity: 1;
}

.form-field input[aria-invalid="true"] {
  border-color: #a8382e;
}

.field-error {
  display: block;
  min-height: 14px;
  padding: 2px 18px 0;
  color: #8d2d25;
  font-size: 12px;
}

.consent {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 9px 20px;
  cursor: pointer;
  font-size: 15px;
}

.consent input {
  position: relative;
  appearance: none;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid #a8c5bb;
  border-radius: 4px;
  background: #aecac0;
  cursor: pointer;
}

.consent input:checked::after {
  position: absolute;
  top: 4px;
  left: 9px;
  width: 7px;
  height: 14px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit {
  display: flex;
  width: min(334px, 100%);
  min-height: 55px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 500;
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.form-status:empty {
  display: none;
}

.contact-phone {
  margin: 15px 0 0;
  font-size: 17px;
  text-align: center;
}

.contact-phone a {
  font-weight: 500;
}

.site-footer {
  padding: 30px 0 16px;
  color: rgba(255, 255, 255, .9);
  background: var(--green);
}

.footer-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 1.4fr .72fr .8fr 1.25fr;
  gap: 52px;
}

.brand-light {
  color: var(--white);
}

.footer-brand .brand {
  min-height: 36px;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.footer-brand .brand-logo {
  width: 34px;
  height: 36px;
}

.footer-brand p {
  margin: 17px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 22px;
  font-size: 13px;
  text-transform: uppercase;
}

.footer-nav a {
  min-height: 24px;
  transition: opacity .2s ease;
}

.footer-nav a:hover {
  opacity: .68;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(6, 22px);
  gap: 12px 8px;
}

.social-links a,
.social-placeholder {
  display: grid;
  grid-column: span 2;
  justify-self: center;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
}

.social-links > :first-child { grid-column: 2 / span 2; }
.social-links > :nth-child(2) { grid-column: 4 / span 2; }

.social-links img {
  display: block;
  width: 32px;
  height: 32px;
}

.social-links a {
  transition: background-color .2s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 255, .12);
}

.footer-bottom {
  display: grid;
  margin-top: 26px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .48);
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  font-size: 11px;
}

.footer-bottom > :nth-child(2) {
  text-align: center;
}

.footer-bottom > :last-child {
  text-align: right;
}

.health-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 28px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper-soft);
}

.health-dialog::backdrop {
  background: rgba(15, 26, 22, .68);
}

.health-dialog img {
  width: 100%;
  margin: 12px 0 20px;
  border-radius: 6px;
}

.health-dialog p:not(.section-kicker) {
  color: var(--muted);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-head h2 {
  margin-bottom: 0;
  font-size: 38px;
}

.dialog-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper-strong);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 1050px) {
  :root {
    --header-height: 108px;
  }

  .header-inner {
    gap: 20px;
  }

  .brand {
    font-size: 13px;
  }

  .site-nav {
    gap: 18px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 92px;
  }

  .hero-lead {
    font-size: 20px;
  }

  .section-intro h2 {
    font-size: 42px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .contact-copy h2 {
    font-size: 36px;
  }

  .symptom-tags button {
    font-size: 17px;
  }

  .health-grid,
  .contact-grid {
    gap: 46px;
  }

  .practice-track {
    grid-auto-columns: calc((100% - 22px) / 2.25);
  }

  .stories-track {
    grid-auto-columns: calc((100% - 22px) / 2.15);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  h2 {
    font-size: 38px;
  }

  .stories-section > .container > h2 {
    font-size: 44px;
  }

  .menu-toggle {
    position: relative;
    z-index: 30;
    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);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 88px 28px 34px;
    gap: 8px;
    color: var(--ink);
    background: var(--paper-soft);
    font-family: var(--serif);
    font-size: 32px;
    transform: translateX(100%);
    transition: transform .25s ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    width: 100%;
    min-height: 52px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: min(760px, 90svh);
  }

  .hero {
    background-position: 66% center;
  }

  .hero-copy {
    width: 64%;
  }

  .hero h1 {
    font-size: 76px;
  }

  .section-intro h2 {
    font-size: 32px;
  }

  #signals-title {
    white-space: normal;
  }

  .symptoms {
    min-height: 560px;
  }

  .symptoms-image,
  .symptoms-water-canvas,
  .symptoms-shade {
    position: absolute;
    height: 100%;
  }

  .symptoms-image {
    object-position: 61% center;
  }

  .symptom-tags {
    position: absolute;
    z-index: 2;
    inset: 12px 14px 96px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: space-around;
    justify-items: center;
    gap: 10px 6px;
  }

  .symptom-tags button {
    position: static;
    min-height: 36px;
    padding: 7px 10px;
    max-width: 100%;
    border: 1px solid transparent;
    border-radius: 18px;
    font-size: 14px;
    transform: translate(var(--float-x, 0), var(--float-y, 0)) scale(var(--tag-scale, 1));
    white-space: normal;
  }

  .symptoms-action {
    position: absolute;
    width: calc(100% - 36px);
    bottom: 24px;
    margin: 0;
    transform: translateX(-50%);
  }

  .symptoms-action:hover {
    transform: translateX(-50%);
  }

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

  .contact-copy {
    transform: none;
  }

  .health-copy h2 {
    font-size: 44px;
  }

  .health-copy p:last-child {
    max-width: 600px;
  }

  .photo-ribbon {
    height: 150px;
  }

  .team-gallery {
    gap: 16px;
  }

  .practice-track,
  .stories-track {
    grid-auto-columns: 78%;
  }

  .carousel-prev {
    left: -10px;
  }

  .carousel-next {
    right: -10px;
  }

  .contact-grid {
    gap: 36px;
  }

  .contact-copy h2 {
    font-size: 44px;
  }

  .footer-grid {
    grid-template-columns: 1.25fr .75fr .85fr;
    gap: 40px;
  }

  .footer-social {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .container {
    width: calc(100% - 28px);
  }

  h2 {
    font-size: 34px;
  }

  .stories-section > .container > h2 {
    font-size: 36px;
  }

  .brand-name {
    font-size: 11px;
  }

  .hero,
  .hero-inner {
    min-height: min(640px, 90svh);
  }

  .hero {
    background-position: 70% center;
  }

  .hero-inner {
    align-items: flex-start;
    padding-top: 108px;
    padding-bottom: 38px;
  }

  .hero-copy {
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: 64px;
  }

  .hero-lead {
    max-width: 320px;
    margin-bottom: 26px;
    font-size: 16px;
    margin-inline: auto;
  }

  .button {
    min-height: 46px;
    padding: 10px 20px;
    font-size: 15px;
  }

  .hero-actions {
    width: min(100%, 290px);
    flex-direction: column;
    margin-inline: auto;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section-intro {
    padding: 48px 0;
  }

  .section-intro h2 {
    font-size: 30px;
  }

  .section-intro p br {
    display: none;
  }

  .intro-decor {
    width: 160px;
  }

  .symptoms-image,
  .symptoms-water-canvas,
  .symptoms-shade {
    height: 100%;
  }

  .symptoms {
    min-height: 500px;
  }

  .symptom-tags button {
    font-size: 15px;
    padding: 5px;
  }

  .symptoms-shade {
    background: linear-gradient(180deg, rgba(18, 28, 25, .24), rgba(18, 28, 25, .16));
  }

  .health-section,
  .team-section,
  .practices-section,
  .stories-section,
  .contact-section {
    padding: 64px 0;
  }

  .health-grid {
    gap: 34px;
    text-align: center;
  }

  .health-copy h2 {
    font-size: 38px;
    margin-inline: auto;
  }

  .health-copy h2 br:last-child {
    display: none;
  }

  .health-copy p:last-child {
    max-width: 300px;
    margin-inline: auto;
  }

  .health-card-action { position: static; width: calc(100% - 32px); margin: 0 16px 16px; }

  .health-card {
    width: min(240px, 100%);
    margin-inline: auto;
  }

  .health-card.is-personal { width: 100%; }
  .health-card.is-personal .health-card-action { margin: 0 16px 16px; }
  .health-personal { padding: 20px 16px 16px; }
  .health-live, .health-live:has(.health-live-bars[hidden]) { grid-template-columns: 1fr; gap: 18px; }
  .health-live-ring { width: min(190px, 70%); margin-inline: auto; }

  .health-card > img {
    display: none;
  }

  .health-card-mobile {
    display: block;
  }

  .health-mobile-circle,
  .health-mobile-indicators {
    background-image: url("../images/ui-health-score.png");
    background-repeat: no-repeat;
    background-size: 200% 100%;
  }

  .health-mobile-circle {
    height: 230px;
    background-position: left top;
  }

  .health-mobile-indicators {
    height: 270px;
    background-position: right top;
  }

  
  
  .photo-ribbon {
    height: 80px;
  }

  .team-gallery {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .section-lead {
    margin-bottom: 30px;
  }

  .section-lead br {
    display: none;
  }

  .practice-track,
  .stories-track {
    grid-auto-columns: 100%;
    gap: 14px;
  }

  .practice-card {
    grid-template-rows: auto minmax(54px, auto);
  }

  .practice-card h3 {
    font-size: 24px;
  }

  .carousel-arrow {
    top: auto;
    bottom: -4px;
    transform: none;
  }

  .carousel-prev {
    left: 0;
  }

  .carousel-next {
    right: 0;
  }

  .carousel-dots {
    min-height: 48px;
  }

  .story-card {
    min-height: 420px;
    padding: 24px;
  }

  .story-card p {
    font-size: 16px;
    line-height: 1.45;
  }

  .contact-section {
    background-position: 34% center;
  }

  .contact-copy h2 {
    margin-bottom: 24px;
    font-size: 29px;
  }

  .contact-form {
    min-height: 0;
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-bottom > :nth-child(2),
  .footer-bottom > :last-child {
    text-align: center;
  }

  .footer-bottom {
    text-align: center;
  }

  .health-dialog {
    padding: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Life pulse: one owner for the questionnaire axes and comparison diagram. */
.life-pulse { max-width: 720px; margin: 24px auto; }
.life-pulse svg { display: block; width: 100%; max-width: 480px; margin: auto; overflow: visible; }
.life-pulse-grid { fill: none; stroke: #b8b4a7; stroke-width: 0.6; }
.life-pulse-good { --pulse-color: #477c63; }
.life-pulse-attention { --pulse-color: #a77b1c; }
.life-pulse-support { --pulse-color: #b7654f; }
.life-pulse-sector { fill: var(--pulse-color); fill-opacity: 0.36; }
.life-pulse-current { fill: none; stroke: var(--green); stroke-width: 2; }
.life-pulse-previous { fill: none; stroke: #6c597b; stroke-width: 2; stroke-dasharray: 5 4; }
.life-pulse-center { fill: var(--paper); }
.life-pulse-label { fill: currentColor; font-size: 10px; text-anchor: middle; dominant-baseline: middle; }
.life-pulse-value { fill: var(--green); font-size: 21px; font-weight: 600; text-anchor: middle; }
.life-pulse-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 24px; padding-left: 20px; }
.life-pulse-values li::marker { color: var(--pulse-color); }
.life-pulse-note { font-size: 14px; line-height: 1.5; }
