/* Four Wellness hub: Quarters. */
:root {
  --sc-canvas: #f3f0e7;
  --sc-surface: #e8e4d6;
  --sc-ink: #1c1d19;
  --sc-ink-soft: #57543f;
  --sc-accent: #3d3820;
  --sc-accent-ink: #f3f0e7;
  --sc-font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sc-font-text: "Manrope", system-ui, sans-serif;
  --gut: clamp(20px, 4vw, 56px);
  --night: #1d1c14;
}
html { background: var(--sc-canvas); }
body { margin: 0; background: var(--sc-canvas); color: var(--sc-ink); font: 400 17px/1.65 var(--sc-font-text); -webkit-font-smoothing: antialiased; }
::selection { background: #3d3820; color: #f3f0e7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid #3d3820; outline-offset: 3px; }

.q-h1, .q-h2 { font-family: var(--sc-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
.q-h1 { font-size: clamp(54px, 7vw, 116px); line-height: .9; }
.q-h2 { font-size: clamp(44px, 5.2vw, 86px); line-height: .92; }
.q-lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--sc-ink-soft); max-width: 34ch; margin: 22px 0 30px; text-wrap: pretty; }
.q-el { margin: 0 0 14px; font: 600 12px/1 var(--sc-font-text); letter-spacing: .2em; text-transform: uppercase; }

.q-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px; background: #3d3820; color: #f3f0e7; border-radius: 2px; font: 600 15px/1 var(--sc-font-text); text-decoration: none; transition: transform .14s var(--fw-ease), background-color .16s var(--fw-ease); white-space: nowrap; }
.q-btn::after { content: ""; width: 14px; height: 10px; background: currentColor; clip-path: polygon(0 42%, 70% 42%, 70% 0, 100% 50%, 70% 100%, 70% 58%, 0 58%); }
.q-btn:active { transform: translateY(1px) scale(.98); }
@media (hover: hover) and (pointer: fine) { .q-btn:hover { background: #2a2615; } }
.q-btn--dark { background: var(--night); }
.q-link { display: inline-block; margin-top: 18px; font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

/* ================= QUARTERS: static by default (no JS, reduced motion) ================= */
.q-tour { position: relative; }
.q-stage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 56px var(--gut) 24px; }
.q-glow, .q-scrim, .q-peak, .q-cue { display: none; }
.q-copy--hero { grid-column: 1 / -1; padding-bottom: 28px; }
.q-faces { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-face { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; }
.q-face img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.q-face[data-face="earth"] { order: 1; } .q-face[data-face="fire"] { order: 2; } .q-face[data-face="water"] { order: 3; } .q-face[data-face="air"] { order: 4; }
.q-panel { padding: 20px 0 28px; border-top: 1px solid #1c1d1922; }
.q-panel .q-h2 { font-size: clamp(36px, 4vw, 56px); margin-bottom: 10px; }
.q-panel p:not(.q-el) { margin: 0; max-width: 40ch; color: var(--sc-ink-soft); }
.q-panel[data-face="earth"] .q-el { color: var(--fw-earth); } .q-panel[data-face="fire"] .q-el { color: var(--fw-fire); }
.q-panel[data-face="water"] .q-el { color: var(--fw-water); } .q-panel[data-face="air"] .q-el { color: var(--fw-air); }
.q-panel[data-face="earth"] { order: 5; } .q-panel[data-face="fire"] { order: 6; } .q-panel[data-face="water"] { order: 7; } .q-panel[data-face="air"] { order: 8; }
.q-map { display: none; }
@media (max-width: 640px) { .q-stage, .q-faces { grid-template-columns: 1fr; } }

/* ================= QUARTERS: live ================= */
.q-tour.is-live .q-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: block; padding: 0; contain: layout paint; }
.q-tour.is-live .q-glow { display: block; position: absolute; inset: -10%; background: radial-gradient(60% 55% at var(--gx, 66%) 52%, #fffdf6 0%, #f3f0e7 45%, #e6e1d1 100%); }
.q-tour.is-live .q-faces { position: absolute; inset: 0; display: block; }
.q-tour.is-live .q-face { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; will-change: clip-path; clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); }
.q-tour.is-live .q-face img { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.q-tour.is-live .q-copy--hero { position: absolute; z-index: 6; left: var(--gut); top: 50%; transform: translateY(-50%); width: min(34vw, 520px); padding: 0; }
.q-tour.is-live .q-scrim { display: block; position: absolute; z-index: 7; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(90deg, #0e0d09d9 0%, #0e0d09a6 32%, #0e0d0900 62%); }
.q-tour.is-live .q-panel { position: absolute; z-index: 8; left: var(--gut); bottom: clamp(56px, 12vh, 120px); width: min(40vw, 500px); padding: 0; border: 0; color: #f3f0e7; opacity: 0; visibility: hidden; }
.q-tour.is-live .q-panel .q-h2 { font-size: clamp(52px, 6vw, 96px); margin-bottom: 14px; }
.q-tour.is-live .q-panel p:not(.q-el) { color: #e9e4d4; font-size: 18px; }
.q-tour.is-live .q-panel .q-el { color: var(--c); }
.q-tour.is-live .q-panel[data-face="earth"] { --c: var(--fw-earth-light); } .q-tour.is-live .q-panel[data-face="fire"] { --c: var(--fw-fire-light); }
.q-tour.is-live .q-panel[data-face="water"] { --c: var(--fw-water-light); } .q-tour.is-live .q-panel[data-face="air"] { --c: var(--fw-air-light); }
.q-tour.is-live .q-panel .q-link { color: #f3f0e7; }
.q-tour.is-live .q-peak { display: block; position: absolute; z-index: 6; left: 0; right: 0; text-align: center; opacity: 0; pointer-events: none; }
.q-peak__line { font-size: clamp(48px, 6vw, 96px); }
.q-peak__word { width: clamp(150px, 15vw, 220px); height: auto; margin: 14px auto 0; }
.q-tour.is-live .q-cue { display: inline-flex; position: absolute; z-index: 9; left: 50%; bottom: 28px; transform: translateX(-50%); align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 40px; background: #1d1c14e0; color: #f3f0e7; font: 600 11px/1 var(--sc-font-text); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; animation: q-cue-in .8s var(--fw-ease) 1s both; }
.q-cue__dot { width: 18px; height: 28px; border: 1.5px solid #f3f0e7aa; border-radius: 10px; position: relative; }
.q-cue__dot::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: #f6a26b; animation: q-wheel 1.8s var(--fw-ease) infinite; }
.q-cue__touch { display: none; }
@media (pointer: coarse) { .q-cue__fine { display: none; } .q-cue__touch { display: inline; } .q-cue__dot::after { top: 16px; animation-name: q-swipe; } }
@keyframes q-cue-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes q-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }
@keyframes q-swipe { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(-10px); opacity: 0; } 100% { opacity: 0; } }

/* the map */
.js .q-map.is-live { display: block; position: fixed; z-index: 40; left: 20px; bottom: 20px; padding: 8px; background: #f3f0e7f0; border-radius: 2px; box-shadow: 0 6px 20px -8px #1d1c1466, inset 0 1px 0 #fff; transition: opacity .2s var(--fw-ease), transform .2s var(--fw-ease); }
.q-map.is-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
.q-map svg { display: block; overflow: visible; }
.q-map path { fill: transparent; stroke: #1c1d19; stroke-width: 2.2; stroke-linejoin: round; transition: fill .2s var(--fw-ease); }
.q-map a { cursor: pointer; }
.q-map a:focus-visible { outline: none; }
.q-map a:focus-visible path { stroke-width: 4; }
.q-map [data-face].is-on { stroke: none; }
.q-map [data-face="earth"].is-on { fill: var(--fw-earth); } .q-map [data-face="fire"].is-on { fill: var(--fw-fire); }
.q-map [data-face="water"].is-on { fill: var(--fw-water); } .q-map [data-face="air"].is-on { fill: var(--fw-air); }
@media (hover: hover) and (pointer: fine) { .q-map a:hover path { fill: #1c1d1926; } }

@media (max-width: 900px) {
  .q-tour.is-live .q-copy--hero { top: 32px; transform: none; left: var(--gut); right: var(--gut); width: auto; }
  .q-tour.is-live .q-h1 { font-size: clamp(44px, 12vw, 72px); }
  .q-tour.is-live .q-lede { margin: 12px 0 18px; font-size: 16px; }
  .q-tour.is-live .q-scrim { background: linear-gradient(0deg, #0e0d09e6 0%, #0e0d09b3 38%, #0e0d0900 70%); }
  .q-tour.is-live .q-panel { left: var(--gut); right: var(--gut); width: auto; bottom: 88px; }
  .q-tour.is-live .q-panel .q-h2 { font-size: clamp(44px, 12vw, 64px); }
  .q-tour.is-live .q-panel p:not(.q-el) { font-size: 16px; }
  .js .q-map.is-live { left: auto; right: 12px; bottom: 12px; padding: 6px; }
  .q-map svg { width: 48px; height: 48px; }
  .q-tour.is-live .q-cue { bottom: 18px; }
}
@media (max-height: 560px) and (max-width: 900px) { .q-tour.is-live .q-lede { display: none; } }

/* ================= why ================= */
.q-why { padding: clamp(96px, 13vw, 180px) var(--gut) clamp(64px, 8vw, 120px); }
.q-why__in { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.q-why__body p { margin: 0 0 24px; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.6; max-width: 46ch; text-wrap: pretty; }
.q-why__list { display: flex; flex-wrap: wrap; gap: 10px 28px; font: 700 clamp(22px, 2vw, 28px)/1 var(--sc-font-display); text-transform: uppercase; letter-spacing: .04em; }
.q-why__list span { display: inline-flex; align-items: center; gap: 10px; }
.q-why__list i { width: 11px; height: 11px; transform: rotate(45deg); background: var(--c); }
.q-why__list i[data-el="earth"] { --c: var(--fw-earth); } .q-why__list i[data-el="fire"] { --c: var(--fw-fire); }
.q-why__list i[data-el="water"] { --c: var(--fw-water); } .q-why__list i[data-el="air"] { --c: var(--fw-air); }
@media (max-width: 860px) { .q-why__in { grid-template-columns: 1fr; } }

/* ================= doors ================= */
.q-doors { padding: 0 var(--gut) clamp(80px, 10vw, 140px); max-width: 1600px; margin: 0 auto; }
.q-doors__h { margin: 0 0 32px; }
.q-doors__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.q-door { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: clamp(420px, 62vh, 640px); padding: 24px; overflow: hidden; border-radius: 2px; color: #f3f0e7; text-decoration: none; isolation: isolate; }
.q-door img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) 50%; transition: transform .6s var(--fw-ease); }
.q-door__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #0e0d09f0 0%, #0e0d09b8 34%, #0e0d0900 64%); }
.q-door__mark { position: absolute; top: 22px; left: 24px; font-size: 34px; color: #f3f0e7; }
.q-door__el { font: 600 11px/1 var(--sc-font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--c); }
.q-door[data-el="earth"] { --c: var(--fw-earth-light); } .q-door[data-el="fire"] { --c: var(--fw-fire-light); }
.q-door[data-el="water"] { --c: var(--fw-water-light); } .q-door[data-el="air"] { --c: var(--fw-air-light); }
.q-door__name { font: 700 clamp(30px, 2.6vw, 40px)/.95 var(--sc-font-display); text-transform: uppercase; }
.q-door__line { font-size: 15px; line-height: 1.5; color: #e2ddcb; max-width: 28ch; }
.q-door__go { margin-top: 10px; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.q-door:focus-visible { outline: 3px solid #3d3820; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .q-door:hover img { transform: scale(1.04); } }
@media (max-width: 1100px) { .q-doors__row { grid-template-columns: 1fr 1fr; } .q-door { min-height: 420px; } }
@media (max-width: 560px) { .q-doors__row { grid-template-columns: 1fr; } .q-door { min-height: 340px; } }

/* ================= plan (close) ================= */
.q-plan { background: #e8e4d6; padding: clamp(80px, 10vw, 140px) var(--gut); }
.q-plan__in { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.q-plan__lead > p { font-size: 18px; color: var(--sc-ink-soft); max-width: 40ch; margin: 20px 0 28px; }
.q-need { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.q-need legend { padding: 0; margin-bottom: 12px; font: 600 12px/1 var(--sc-font-text); letter-spacing: .18em; text-transform: uppercase; color: var(--sc-ink-soft); }
.q-need label { position: relative; }
.q-need input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.q-need span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #1c1d1940; border-radius: 2px; font-weight: 600; font-size: 15px; transition: background-color .16s var(--fw-ease), color .16s var(--fw-ease), border-color .16s var(--fw-ease); }
.q-need input:checked + span { background: var(--night); border-color: var(--night); color: #f3f0e7; }
.q-need input:focus-visible + span { outline: 2px solid #3d3820; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .q-need input:not(:checked):hover + span { border-color: #1c1d19; } }
.q-plan__mark { width: min(280px, 60%); margin-top: 48px; }
.q-plan__mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.q-plan__mark path { fill: transparent; stroke: #1c1d1955; stroke-width: 1.2; stroke-linejoin: round; transition: fill .35s var(--fw-ease), stroke .35s var(--fw-ease); }
.q-plan__mark path.is-on { stroke: transparent; }
.q-plan__mark path[data-face="earth"].is-on { fill: var(--fw-earth); } .q-plan__mark path[data-face="fire"].is-on { fill: var(--fw-fire); }
.q-plan__mark path[data-face="water"].is-on { fill: var(--fw-water); } .q-plan__mark path[data-face="air"].is-on { fill: var(--fw-air); }
.q-plan__mark text { font: 700 5.2px/1 var(--sc-font-display); fill: #f3f0e7; text-anchor: middle; opacity: 0; transition: opacity .25s var(--fw-ease); }
.q-plan__mark text.is-on { opacity: 1; }
.q-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.q-step { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 22px 0; border-top: 1px solid #1c1d1926; opacity: 0; transform: translateY(10px); animation: q-step .5s var(--fw-ease) forwards; animation-delay: calc(var(--i) * 90ms); }
.q-step:last-child { border-bottom: 1px solid #1c1d1926; }
@keyframes q-step { to { opacity: 1; transform: none; } }
.q-step__n { grid-row: 1 / span 3; width: 36px; height: 36px; display: grid; place-items: center; background: var(--c); color: #f3f0e7; font: 700 18px/1 var(--sc-font-display); border-radius: 2px; }
.q-step[data-el="earth"] { --c: var(--fw-earth); } .q-step[data-el="fire"] { --c: var(--fw-fire); }
.q-step[data-el="water"] { --c: var(--fw-water); } .q-step[data-el="air"] { --c: var(--fw-air); }
.q-step__house { font: 600 12px/1.2 var(--sc-font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.q-step__what { font: 700 26px/1.05 var(--sc-font-display); text-transform: uppercase; }
.q-step__when { font-size: 15px; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.q-step__when a { font-weight: 600; color: var(--sc-ink); text-underline-offset: 3px; margin-left: 4px; }
.q-plan__send { margin-top: 32px; }
.q-fine { font-size: 14px; color: var(--sc-ink-soft); max-width: 46ch; margin: 14px 0 0; }
@media (max-width: 900px) { .q-plan__in { grid-template-columns: 1fr; } .q-plan__mark { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .q-step { animation: none; opacity: 1; transform: none; }
  .q-door img, .q-btn { transition: none; }
}
