/* Q-ONE Homepage Experience — editorial pacing, abstract atmosphere and native carousels. */
:root {
  --qone-home-gold: #d2b17a;
  --qone-home-line: rgba(220, 193, 145, .17);
  --qone-home-muted: #aaa49a;
  --qone-home-ease: cubic-bezier(.22, .72, .2, 1);
}

/* The hero is allowed to breathe; motion happens on the picture wrapper so the
   existing image-parallax transform remains independent. */
.hero-home > .hero-picture {
  position: absolute;
  inset: -2.2%;
  overflow: hidden;
  transform-origin: center;
}
.hero-home .hero-image--picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-home > .hero-picture { animation: qone-home-hero-drift 28s ease-in-out infinite alternate; }
}
@keyframes qone-home-hero-drift {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

/* 01 — Quiet Contours: full-bleed atmosphere with a centered editorial quote. */
.home-quiet-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(151, 111, 59, .16), transparent 34%),
    radial-gradient(ellipse at 8% 12%, rgba(151, 111, 59, .09), transparent 32%),
    linear-gradient(125deg, #11110f 0%, #191711 50%, #10100e 100%);
}
.home-quiet-section::before,
.home-quiet-section::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(208, 174, 119, .10);
  border-radius: 50%;
}
.home-quiet-section::before {
  width: min(76vw, 1040px);
  aspect-ratio: 1;
  top: -55%;
  left: -28%;
}
.home-quiet-section::after {
  width: min(88vw, 1200px);
  aspect-ratio: 1;
  right: -34%;
  bottom: -68%;
}
.quiet-contours-stage {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(110px, 14vh, 160px) clamp(24px, 6vw, 100px) clamp(76px, 10vh, 112px);
  border: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(185, 143, 81, .095), transparent 38%),
    linear-gradient(180deg, rgba(14, 14, 12, .10), rgba(14, 14, 12, .38));
  box-shadow: none;
}
.quiet-contours-stage::before,
.quiet-contours-stage::after {
  position: absolute;
  z-index: 0;
  content: "";
  width: min(66vw, 900px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(220, 190, 138, .14);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.quiet-contours-stage::after {
  width: min(83vw, 1140px);
  border-color: rgba(220, 190, 138, .085);
}
.quiet-contours-art {
  position: absolute;
  z-index: 0;
  inset: -5% -3%;
  width: 106%;
  height: 110%;
  color: rgba(218, 187, 133, .44);
  opacity: .88;
  pointer-events: none;
}
.quiet-contours-lines { opacity: .78; }
.quiet-contours-orbits { stroke-width: 1.0; opacity: .32; }
.quiet-contours-vignette {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(16, 15, 12, .18) 0%, rgba(16, 15, 12, .30) 42%, rgba(14, 14, 12, .72) 100%),
    linear-gradient(90deg, rgba(14,14,12,.18), transparent 24%, transparent 76%, rgba(14,14,12,.18));
  pointer-events: none;
}
.quiet-contours-emblem {
  position: absolute;
  z-index: 1;
  top: 48%;
  left: 50%;
  color: rgba(218, 186, 129, .105);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28rem, 60vw, 62rem);
  line-height: .68;
  transform: translate(-50%, -50%);
  user-select: none;
  pointer-events: none;
  text-shadow: 0 0 100px rgba(208, 174, 119, .06);
}
.quiet-contours-content {
  position: relative;
  z-index: 3;
  width: min(100%, 1060px);
  margin: auto;
  text-align: center;
}
.quiet-contours-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 clamp(20px, 2.5vw, 32px);
  color: var(--qone-home-gold);
  font-size: .64rem;
  letter-spacing: .28em;
}
.quiet-contours-eyebrow::before,
.quiet-contours-eyebrow::after {
  display: block;
  width: clamp(22px, 3vw, 42px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210,177,122,.72));
  content: "";
}
.quiet-contours-eyebrow::after { transform: rotate(180deg); }
.quiet-contours-title {
  max-width: 950px;
  margin: 0 auto;
  color: #f1ede5;
  font-size: clamp(2.8rem, 6.1vw, 5.6rem);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.052em;
  text-wrap: balance;
  text-shadow: 0 5px 40px rgba(0,0,0,.26);
}
.quiet-contours-quote {
  position: relative;
  max-width: 900px;
  margin: clamp(32px, 4.2vw, 58px) auto 0;
  padding: 0 20px;
}
.quiet-contours-quote-label {
  display: block;
  margin-bottom: 17px;
  color: rgba(222, 193, 147, .68);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .24em;
}
.quiet-contours-quote p {
  margin: 0;
  color: #dfc18e;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.25rem, 4.75vw, 4.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 8px 46px rgba(0,0,0,.34);
}
.quiet-contours-description {
  max-width: 650px;
  margin: clamp(24px, 3vw, 38px) auto 0;
  color: rgba(224, 218, 207, .78);
  font-size: clamp(.9rem, 1.12vw, 1.03rem);
  font-weight: 400;
  line-height: 1.9;
  text-wrap: pretty;
}
.quiet-contours-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  padding: 0 0 7px;
  color: var(--qone-home-gold);
  font-size: .72rem;
  letter-spacing: .08em;
  border-bottom: 1px solid rgba(210, 177, 122, .48);
  transition: color .25s ease, gap .3s var(--qone-home-ease), border-color .25s ease;
}
.quiet-contours-link:hover { color: #fff; gap: 18px; border-color: rgba(255,255,255,.65); }
.quiet-contours-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: clamp(38px, 5vw, 64px);
  color: rgba(238, 229, 213, .54);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .2em;
}
.quiet-contours-signature i {
  display: block;
  width: 54px;
  height: 1px;
  background: rgba(210,177,122,.52);
}
.quiet-contours-signature b { padding-inline: 3px; color: var(--qone-home-gold); font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .quiet-contours-lines { transform-origin: center; animation: qone-contours-drift 44s ease-in-out infinite alternate; }
  .quiet-contours-orbits { transform-origin: 800px 450px; animation: qone-orbit-breathe 32s ease-in-out infinite alternate; }
}
@keyframes qone-contours-drift { from { transform: translate3d(-.6%, -.3%, 0) scale(1); } to { transform: translate3d(.6%, .4%, 0) scale(1.025); } }
@keyframes qone-orbit-breathe { from { opacity: .2; transform: scale(.985); } to { opacity: .42; transform: scale(1.015); } }

/* 02 — Treatments: card content has a quieter reveal on hover/focus. */
.home-treatment-grid .treatment-card { position: relative; overflow: hidden; border-color: rgba(224, 196, 151, .13); transition: transform .55s var(--qone-home-ease), border-color .4s ease, box-shadow .4s ease; }
.home-treatment-grid .treatment-card:hover,
.home-treatment-grid .treatment-card:focus-visible { transform: translateY(-6px); border-color: rgba(220, 184, 121, .48); box-shadow: 0 22px 54px rgba(0,0,0,.24); }
.home-treatment-grid .treatment-image { height: clamp(230px, 22vw, 300px); }
.home-treatment-grid .treatment-image img { transition: transform .85s var(--qone-home-ease), filter .65s ease; }
.home-treatment-grid .treatment-card:hover .treatment-image img,
.home-treatment-grid .treatment-card:focus-visible .treatment-image img { transform: scale(1.065); filter: brightness(.88) saturate(.82); }
.treatment-image-action {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(15,15,13,.2);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .35s ease, transform .45s var(--qone-home-ease);
}
.home-treatment-grid .treatment-card:hover .treatment-image-action,
.home-treatment-grid .treatment-card:focus-visible .treatment-image-action { opacity: 1; transform: none; }

/* 03 — Facilities: a lead composition plus two quieter supporting frames. */
.home-facilities-section { overflow: hidden; }
.home-facilities-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, .82fr);
  grid-template-rows: repeat(2, minmax(210px, 1fr));
  gap: 18px;
}
.home-facilities-grid .facility-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--qone-home-line);
  background: #151511;
  transition: transform .5s var(--qone-home-ease), border-color .35s ease, box-shadow .35s ease;
}
.home-facilities-grid .facility-card:hover { transform: translateY(-4px); border-color: rgba(210,177,122,.42); box-shadow: 0 20px 48px rgba(0,0,0,.18); }
.home-facilities-grid .facility-card--featured { grid-row: 1 / span 2; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(300px, 1fr) auto; }
.home-facilities-grid .facility-card--featured .facility-card-image { min-height: 370px; }
.home-facilities-grid .facility-card--secondary { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(150px, .92fr); min-height: 210px; }
.home-facilities-grid .facility-card-image { position: relative; min-width: 0; overflow: hidden; background: #25221b; }
.home-facilities-grid .facility-card-image img { display: block; width: 100%; height: 100%; min-height: 100%; object-fit: cover; filter: brightness(.76) saturate(.72); transition: transform .9s var(--qone-home-ease), filter .6s ease; }
.home-facilities-grid .facility-card:hover .facility-card-image img { transform: scale(1.045); filter: brightness(.88) saturate(.84); }
.home-facilities-grid .facility-card-index { position: absolute; top: 17px; left: 18px; color: rgba(255,255,255,.88); font-size: .64rem; letter-spacing: .18em; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.home-facilities-grid .facility-card-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(22px, 3vw, 38px); }
.home-facilities-grid .facility-card-copy h3 { font-size: clamp(1.75rem, 3vw, 2.8rem); line-height: 1.08; }
.home-facilities-grid .facility-card-copy p { margin: 11px 0 17px; color: var(--qone-home-muted); font-size: .78rem; line-height: 1.75; }
.home-facilities-grid .facility-card-copy>span { color: var(--qone-home-gold); font-size: .7rem; letter-spacing: .05em; }
.home-facilities-grid .facility-card-copy>span i { margin-left: 8px; font-style: normal; }
.home-facilities-grid .facility-card--featured .facility-card-copy { min-height: 170px; }
.home-facilities-grid .facility-card--featured .facility-card-copy h3 { font-size: clamp(2rem, 3.4vw, 3.1rem); }

/* 04 — Private Spaces: landscape image stage + content beneath, not split photo strips. */
.home-rooms-section { overflow: hidden; }
.room-gallery { position: relative; }
.room-gallery-viewport,
.home-review-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
  touch-action: pan-x pan-y;
}
.room-gallery-viewport::-webkit-scrollbar,
.home-review-viewport::-webkit-scrollbar { display: none; }
.room-gallery-viewport:focus-visible,
.home-review-viewport:focus-visible { outline: 1px solid rgba(210,177,122,.72); outline-offset: 5px; }
.room-gallery-track {
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 26px);
  width: max-content;
  min-width: 100%;
  padding-right: clamp(56px, 11vw, 150px);
}
.room-gallery-slide {
  flex: 0 0 min(84vw, 1030px);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.room-gallery-image {
  position: relative;
  height: clamp(300px, 49vw, 590px);
  max-height: 64vh;
  min-height: 280px;
  overflow: hidden;
  background: #24211b;
}
.room-gallery-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(7,7,6,.12), transparent 28%, transparent 62%, rgba(7,7,6,.28));
  pointer-events: none;
}
.room-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.86) saturate(.78);
  transition: transform 1.1s var(--qone-home-ease), filter .7s ease;
}
html.qone-home-motion-ready .room-gallery-slide .room-gallery-image img { transform: scale(1.055); }
html.qone-home-motion-ready .room-gallery-slide.is-visible .room-gallery-image img { transform: scale(1); }
.room-gallery-slide:hover .room-gallery-image img { transform: scale(1.025); filter: brightness(.94) saturate(.88); }
.room-gallery-image-index {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 24px;
  color: rgba(255,255,255,.9);
  font-size: .68rem;
  letter-spacing: .2em;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.room-gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 166px;
  padding: 28px clamp(20px, 3vw, 38px) 30px;
  border: 1px solid var(--qone-home-line);
  border-top: 0;
  background: linear-gradient(110deg, rgba(29,28,24,.98), rgba(20,20,17,.98));
}
.room-gallery-copy { max-width: 620px; }
.room-gallery-copy .eyebrow { margin-bottom: 12px; font-size: .59rem; }
.room-gallery-copy h3 { font-size: clamp(2rem, 4vw, 3.45rem); }
.room-gallery-copy>p:last-child { max-width: 550px; margin-top: 9px; color: var(--qone-home-muted); font-size: .82rem; line-height: 1.75; }
.room-gallery-wordmark {
  flex: 0 0 auto;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(210,177,122,.42);
  border-radius: 50%;
  color: rgba(226,196,144,.86);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.15rem;
}
.room-gallery-controls,
.home-review-controls {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  margin-top: 28px;
}
.room-gallery-pagination,
.home-review-pagination {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(231,222,205,.55);
  font-size: .67rem;
  letter-spacing: .15em;
  white-space: nowrap;
}
.room-gallery-pagination [data-qone-slider-current],
.home-review-pagination [data-qone-slider-current] { color: var(--qone-home-gold); font-size: .83rem; }
.room-gallery-pagination-divider { color: rgba(210,177,122,.5); }
.room-gallery-progress,
.home-review-progress { position: relative; height: 1px; overflow: hidden; background: rgba(225,203,166,.16); }
.room-gallery-progress span,
.home-review-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--qone-home-gold), #f0d9ae); transition: width .4s var(--qone-home-ease); }
.room-gallery-actions,
.home-review-actions { display: flex; gap: 9px; }
.gallery-arrow {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(216,187,138,.32);
  border-radius: 50%;
  color: #e8dcc7;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .3s var(--qone-home-ease);
}
.gallery-arrow:hover:not(:disabled) { color: #17130d; background: var(--qone-home-gold); border-color: var(--qone-home-gold); transform: translateY(-2px); }
.gallery-arrow:focus-visible { outline: 2px solid var(--qone-home-gold); outline-offset: 3px; }
.gallery-arrow:disabled { opacity: .28; cursor: not-allowed; }
.room-gallery-viewport.is-dragging,
.home-review-viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.room-gallery-viewport:not(.is-dragging),
.home-review-viewport:not(.is-dragging) { cursor: grab; }

/* 05 — Guest experiences: exactly three compact cards in one desktop row. */
.home-reviews-section { overflow: hidden; }
.home-review-gallery { width: 100%; min-width: 0; }
.home-review-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 100%;
  padding: 0;
}
.home-review-page {
  box-sizing: border-box;
  display: grid !important;
  flex: 0 0 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(0, 1fr) !important;
  align-items: stretch;
  gap: clamp(10px, 1.05vw, 16px);
  width: 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.home-review-page > .home-review-card {
  box-sizing: border-box;
  display: flex;
  flex: initial !important;
  flex-direction: column;
  grid-column: auto !important;
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
  height: 258px;
  min-height: 258px;
  max-height: 258px;
  padding: clamp(15px, 1.25vw, 20px);
  overflow: hidden;
  background: linear-gradient(145deg, #1a1915, #141411 76%);
  border: 1px solid rgba(221,194,151,.18);
}
.home-review-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 15px;
}
.home-review-topline .eyebrow { font-size: .47rem; letter-spacing: .14em; }
.home-review-stars {
  color: var(--qone-home-gold);
  font-size: .62rem;
  letter-spacing: .045em;
  white-space: nowrap;
}
.home-review-card blockquote {
  display: -webkit-box;
  flex: 1;
  max-width: none;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  font-size: clamp(.88rem, .98vw, 1.04rem);
  line-height: 1.48;
  overflow-wrap: anywhere;
}
.home-review-card .review-attribution {
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 12px;
  gap: 9px;
}
.home-review-card .review-avatar,
.home-review-card .review-avatar-img { width: 29px; height: 29px; flex: 0 0 29px; }
.home-review-card .review-attribution strong { font-size: .66rem; }
.home-review-card .review-attribution small { font-size: .57rem; }
.home-review-controls {
  width: 100%;
  max-width: none;
  margin-top: 19px;
}

/* 06 — Journal: an editorial lead story with two quieter supporting stories. */
.home-journal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(260px, .76fr);
  gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 42px);
}
.home-journal-grid .journal-card { min-width: 0; }
.home-journal-grid .journal-card:first-child { grid-row: 1 / span 2; }
.home-journal-grid .journal-image {
  position: relative;
  display: block;
  height: clamp(280px, 34vw, 460px);
  margin-bottom: 23px;
  overflow: hidden;
  border: 1px solid var(--qone-home-line);
  background: #24211b;
}
.home-journal-grid .journal-card:not(:first-child) .journal-image { height: clamp(150px, 16vw, 205px); margin-bottom: 15px; }
.home-journal-grid .journal-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--qone-home-ease), filter .5s ease; }
.home-journal-grid .journal-card:hover .journal-image img { transform: scale(1.04); filter: brightness(.92) saturate(.82); }
.journal-image-arrow { position: absolute; right: 15px; bottom: 15px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; color: white; background: rgba(12,12,10,.25); opacity: 0; transform: translateY(5px); transition: opacity .3s ease, transform .35s var(--qone-home-ease); }
.home-journal-grid .journal-card:hover .journal-image-arrow,
.home-journal-grid .journal-image:focus-visible .journal-image-arrow { opacity: 1; transform: none; }
.home-journal-grid .journal-card:first-child h3 { max-width: 620px; font-size: clamp(1.8rem, 3.3vw, 2.65rem); }
.home-journal-grid .journal-card:not(:first-child) h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.home-journal-grid .journal-card p { max-width: 640px; }

/* 07 — Therapist portraits: staggered framing rather than an even catalogue grid. */
.home-therapists-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2.5vw, 32px);
}
.home-therapists-grid .therapist-home-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #24211b;
  border: 1px solid var(--qone-home-line);
}
.home-therapists-grid .therapist-home-card:nth-child(2) { margin-top: 42px; }
.home-therapists-grid .therapist-home-card img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(.75); transition: transform .9s var(--qone-home-ease), filter .55s ease; }
.home-therapists-grid .therapist-home-card:hover img { transform: scale(1.045); filter: brightness(.96) saturate(.9); }
.therapist-home-index { position: absolute; z-index: 2; top: 17px; left: 18px; color: rgba(255,255,255,.9); font-size: .65rem; letter-spacing: .17em; }
.therapist-home-name {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 42px 20px 18px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  background: linear-gradient(0deg, rgba(8,8,7,.88), transparent);
}
.therapist-home-name i { color: var(--qone-home-gold); font: normal .95rem "DM Sans", sans-serif; }

/* 08 — Closing chapter: bronze light stays ambient, never a bright callout. */
.home-closing-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 2%, rgba(205,164,101,.16), transparent 44%),
    radial-gradient(ellipse at 50% 100%, rgba(148,105,57,.07), transparent 46%),
    #11110f;
}
.home-closing-cta::before,
.home-closing-cta::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(74vw, 900px);
  aspect-ratio: 1;
  border: 1px solid rgba(210,177,122,.08);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.home-closing-cta::after { width: min(58vw, 700px); border-color: rgba(210,177,122,.06); }
.home-closing-cta .container-qone { position: relative; }
.home-closing-cta h2 { max-width: 900px; margin-inline: auto; }
.home-closing-cta .btn { box-shadow: 0 10px 34px rgba(184,139,75,.12); }

/* Progressive reveal: the page stays readable if JS or IntersectionObserver is absent. */
html.qone-home-motion-ready [data-home-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .85s var(--qone-home-ease), transform .95s var(--qone-home-ease);
}
html.qone-home-motion-ready [data-home-reveal].is-visible { opacity: 1; transform: translate3d(0,0,0); }
html.qone-home-motion-ready .quiet-contours-content { transition-delay: 100ms; }

@media (max-width: 900px) {
  .home-facilities-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .home-facilities-grid .facility-card--featured { grid-row: auto; }
  .home-facilities-grid .facility-card--featured .facility-card-image { min-height: 350px; height: 42vw; }
  .home-facilities-grid .facility-card--secondary { min-height: 220px; }
  .home-journal-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); }
  .room-gallery-slide { flex-basis: min(88vw, 900px); }
}
@media (max-width: 640px) {
  .hero-home > .hero-picture { inset: -1.2%; }
  .home-quiet-section { min-height: 100svh; }
  .quiet-contours-stage { min-height: 100svh; padding: 112px 22px 68px; }
  .quiet-contours-art { inset: -2% -34%; width: 168%; height: 106%; opacity: .82; }
  .quiet-contours-stage::before { width: 88vw; }
  .quiet-contours-stage::after { width: 112vw; }
  .quiet-contours-emblem { top: 47%; font-size: clamp(25rem, 100vw, 34rem); }
  .quiet-contours-content { width: 100%; max-width: 620px; }
  .quiet-contours-eyebrow { margin-bottom: 22px; font-size: .54rem; letter-spacing: .19em; gap: 9px; }
  .quiet-contours-eyebrow::before,
  .quiet-contours-eyebrow::after { width: 19px; }
  .quiet-contours-title { font-size: clamp(2.55rem, 11vw, 4rem); line-height: 1.02; }
  .quiet-contours-quote { margin-top: 34px; padding-inline: 4px; }
  .quiet-contours-quote-label { margin-bottom: 14px; font-size: .48rem; letter-spacing: .16em; }
  .quiet-contours-quote p { font-size: clamp(2.05rem, 9vw, 3.15rem); line-height: 1.08; }
  .quiet-contours-description { max-width: 470px; margin-top: 24px; font-size: .86rem; line-height: 1.8; }
  .quiet-contours-link { gap: 9px; font-size: .66rem; }
  .quiet-contours-signature { flex-wrap: wrap; gap: 12px; margin-top: 37px; font-size: .46rem; letter-spacing: .14em; }
  .quiet-contours-signature i { width: 30px; }
  .home-facilities-grid { gap: 13px; }
  .home-facilities-grid .facility-card--featured .facility-card-image { min-height: 280px; height: 74vw; }
  .home-facilities-grid .facility-card--featured .facility-card-copy { min-height: 145px; }
  .home-facilities-grid .facility-card--secondary { grid-template-columns: 1fr; }
  .home-facilities-grid .facility-card--secondary .facility-card-image { height: 220px; min-height: 220px; }
  .home-facilities-grid .facility-card-copy { padding: 22px; }
  .room-gallery-track { gap: 12px; padding-right: 30px; }
  .room-gallery-slide { flex-basis: 91vw; }
  .room-gallery-image { height: 61vw; min-height: 230px; max-height: 390px; }
  .room-gallery-image img { object-position: center; }
  .room-gallery-caption { min-height: 142px; padding: 22px 18px; gap: 14px; }
  .room-gallery-copy h3 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .room-gallery-copy .eyebrow { font-size: .52rem; }
  .room-gallery-copy>p:last-child { font-size: .72rem; }
  .room-gallery-wordmark { width: 45px; height: 45px; font-size: 1.55rem; }
  .room-gallery-controls,
  .home-review-controls { gap: 14px; margin-top: 20px; }
  .gallery-arrow { width: 39px; height: 39px; }
  .home-review-page { grid-template-columns: 1fr !important; grid-template-rows: auto; grid-auto-flow: row !important; gap: 12px; }
  .home-review-page > .home-review-card { height: auto; min-height: 215px; max-height: none; padding: 20px; }
  .home-review-topline { margin-bottom: 18px; }
  .home-review-card blockquote { font-size: 1.08rem; line-height: 1.5; }
  .home-journal-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
  .home-journal-grid .journal-card:first-child { grid-row: auto; }
  .home-journal-grid .journal-image,
  .home-journal-grid .journal-card:not(:first-child) .journal-image { height: 62vw; max-height: 330px; }
  .home-journal-grid .journal-card:first-child h3 { font-size: 1.85rem; }
  .home-therapists-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .home-therapists-grid .therapist-home-card:nth-child(2) { margin-top: 24px; }
  .home-therapists-grid .therapist-home-card:nth-child(3) { margin-top: -18px; }
  .therapist-home-name { padding: 38px 13px 14px; font-size: 1.15rem; }
  .therapist-home-index { top: 12px; left: 13px; }
}
/* 04b — Private Spaces: show exactly one complete room at a time. */
.room-gallery--single {
  width: 100%;
  max-width: 100%;
}
.room-gallery--single .room-gallery-viewport {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.room-gallery--single .room-gallery-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 100%;
  padding: 0;
}
.room-gallery--single .room-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@media (prefers-reduced-motion: reduce) {
  .hero-home > .hero-picture,
  .quiet-contours-lines,
  .quiet-contours-orbits { animation: none !important; }
  html.qone-home-motion-ready [data-home-reveal] { opacity: 1; transform: none; transition: none; }
  .room-gallery-viewport,
  .home-review-viewport { scroll-behavior: auto; }
}
