/* Four Wellness v4 hub: "The Building". Four rooms weave into one knot, then a walk through the building, then the directory. */
:root { --h-soft: var(--fw-stone); --h-accent: var(--fw-night); --h-accent-ink: var(--fw-bone); --sb: calc(100lvh - 100svh); --pad: clamp(80px, 11vw, 160px); }
html { background: var(--fw-bone); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fw-bone); color: var(--fw-ink); font: 400 16px/1.6 var(--fw-text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fw-ink); outline-offset: 3px; }

/* ---- house header (same pattern as every house) ---- */
.h-head { background: var(--fw-bone); border-bottom: 1px solid var(--fw-rule); }
.h-head__in { max-width: var(--fw-max); margin: 0 auto; padding: 14px var(--fw-gutter); display: flex; align-items: center; gap: 32px; }
.h-head__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fw-ink); }
.h-head__brand .fw-knot { font-size: 44px; }
.h-head__word { font: 700 21px/.92 var(--fw-display); letter-spacing: .06em; text-transform: uppercase; }
.h-head__nav { display: flex; gap: 4px; margin-left: auto; }
.h-head__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font: 600 14px/1 var(--fw-text); text-decoration: none; color: var(--fw-stone); }
@media (hover: hover) and (pointer: fine) { .h-head__nav a:hover { color: var(--fw-ink); } }
.h-head__cta { min-height: 44px; }
@media (max-width: 760px) { .h-head__nav { display: none; } .h-head__cta { margin-left: auto; padding: 0 16px; } .h-head__brand .fw-knot { font-size: 38px; } }

/* ---- 1. hero: the weave ---- */
.h-hero { position: relative; height: 240vh; height: 240lvh; }
.h-hero__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4vw, 64px); max-width: var(--fw-max); margin: 0 auto; padding: 0 var(--fw-gutter) var(--sb); box-sizing: border-box; }
.h-hero__h { font-size: clamp(56px, 7.4vw, 120px); margin-bottom: 26px; }
.h-hero__copy .fw-lede { color: #3b3a33; }
.h-knot { display: grid; place-items: center; }
.h-knot__box { position: relative; width: min(46vw, 74svh, 640px); aspect-ratio: 1; }
.h-petal { position: absolute; inset: 0; pointer-events: none; }
.h-petal img { position: absolute; object-fit: cover; }
.h-petal[data-el="air"] img   { object-position: 50% 60%; }
.h-petal[data-el="earth"] img { object-position: 40% 40%; }
.h-knot__weave { position: absolute; inset: 0; opacity: 0; }
.h-knot__weave .fw-knot { width: 100%; height: 100%; vertical-align: top; }
.h-knot__weave .fw-knot path { stroke-width: 4.6; }
.h-tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1.2 var(--fw-text); letter-spacing: .16em; text-transform: uppercase; color: var(--fw-stone); white-space: nowrap; }
.h-tag .fw-dot { --c: currentColor; }
.h-tag[data-el="air"] { left: 0; top: 2%; }
.h-tag[data-el="water"] { right: 0; top: 2%; }
.h-tag[data-el="earth"] { right: 0; bottom: 2%; }
.h-tag[data-el="fire"] { left: 0; bottom: 2%; }
.h-tag[data-el="air"] .fw-dot { --c: var(--fw-air-knot); }
.h-tag[data-el="water"] .fw-dot { --c: var(--fw-water); }
.h-tag[data-el="earth"] .fw-dot { --c: var(--fw-earth); }
.h-tag[data-el="fire"] .fw-dot { --c: var(--fw-fire-knot); }
.is-live .h-petal, .is-live .h-knot__weave { will-change: transform, opacity; }

@media (max-width: 860px) {
  .h-hero { height: 200lvh; }
  .h-hero__stage { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 4svh; padding-top: 2svh; }
  .h-knot { order: -1; }
  .h-knot__box { width: min(82vw, 42svh); }
  .h-hero__h { font-size: clamp(44px, 13vw, 64px); margin-bottom: 14px; }
  .h-hero__copy .fw-lede { font-size: 16px; margin-bottom: 20px; }
  .h-tag { font-size: 10.5px; letter-spacing: .14em; }
  .h-tag__house { display: none; }
  .h-tag[data-el="air"], .h-tag[data-el="water"] { top: -2%; }
  .h-tag[data-el="earth"], .h-tag[data-el="fire"] { bottom: -2%; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .h-knot__box { width: min(70vw, 36svh); }
  .h-hero__copy .fw-lede { display: none; }
}

/* ---- 2. statement ---- */
.h-intro { padding: var(--pad) 0; border-top: 1px solid var(--fw-rule); }
.h-intro__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.h-intro .fw-body { color: #3b3a33; margin: 0 0 16px; }
.h-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--fw-rule); }
.h-facts li { display: grid; gap: 4px; padding: 24px 24px 0 0; }
.h-facts li + li { padding-left: 24px; border-left: 1px solid var(--fw-rule); }
.h-facts b { font: 700 clamp(44px, 5vw, 72px)/.9 var(--fw-display); }
.h-facts span { font: 600 13px/1.3 var(--fw-text); letter-spacing: .12em; text-transform: uppercase; color: var(--fw-stone); }
@media (max-width: 760px) { .h-intro__in { grid-template-columns: 1fr; } .h-facts li + li { padding-left: 14px; } .h-facts li { padding-right: 10px; } }

/* ---- 3. the building: pinned horizontal corridor ---- */
.h-tour { position: relative; background: var(--fw-paper); border-top: 1px solid var(--fw-rule); }
.h-tour__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; display: flex; flex-direction: column; box-sizing: border-box; padding-bottom: var(--sb); }
.h-tour__top { max-width: var(--fw-max); width: 100%; margin: 0 auto; padding: clamp(20px, 4svh, 40px) var(--fw-gutter) 0; box-sizing: border-box; display: flex; align-items: center; gap: 24px; }
.h-tour__h { margin: 0; font: 700 clamp(24px, 2.4vw, 34px)/1 var(--fw-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.h-rail { display: flex; margin: 0 0 0 auto; padding: 0; list-style: none; gap: 2px; }
.h-rail a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 12px; font: 600 13px/1 var(--fw-text); color: var(--fw-stone); text-decoration: none; border-bottom: 2px solid transparent; }
.h-rail a.is-on { color: var(--fw-ink); border-bottom-color: var(--fw-ink); }
.h-rail .fw-dot[data-el="all"] { --c: var(--fw-ink); border-radius: 50%; }
.h-rail .fw-dot[data-el="earth"] { --c: var(--fw-earth); }
.h-rail .fw-dot[data-el="fire"] { --c: var(--fw-fire-knot); }
.h-rail .fw-dot[data-el="water"] { --c: var(--fw-water); }
.h-rail .fw-dot[data-el="air"] { --c: var(--fw-air-knot); }
.h-track { flex: 1; display: flex; align-items: center; gap: 4vw; padding: 0 var(--fw-gutter); width: max-content; }
.is-live .h-track { will-change: transform; }
.h-room { width: min(84vw, 1240px); flex: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.h-room__ph { margin: 0; height: min(64svh, 640px); overflow: hidden; border-radius: var(--fw-radius); background: #dcd7c8; }
.h-room__ph img { width: 100%; height: 100%; object-fit: cover; }
.h-room .fw-kicker .fw-knot { font-size: 22px; }
.h-room .fw-h3 { font-size: clamp(36px, 4vw, 64px); line-height: .92; margin-bottom: 18px; }
.h-room .fw-body { color: #3b3a33; margin: 0 0 18px; }
.h-room__meta { font-size: 14px; color: var(--fw-stone); margin: 0 0 22px; }
.h-room[data-el="earth"] { --h-accent: var(--fw-earth); }
.h-room[data-el="fire"]  { --h-accent: var(--fw-fire); }
.h-room[data-el="water"] { --h-accent: var(--fw-water); }
.h-room[data-el="air"]   { --h-accent: var(--fw-air); }

@media (max-width: 860px) {
  .h-tour__top { padding-top: 14px; flex-wrap: wrap; gap: 6px 12px; }
  .h-tour__h { font-size: 22px; }
  .h-rail { margin: 0; width: 100%; justify-content: space-between; }
  .h-rail a { padding: 0 6px; gap: 6px; font-size: 11.5px; }
  .h-rail a span { display: none; }
  .h-rail a.is-on span { display: inline; }
  .h-track { gap: 0; padding: 0; align-items: stretch; }
  .h-room { width: 100vw; grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 18px; padding: 10px var(--fw-gutter) 0; box-sizing: border-box; align-content: start; }
  .h-room__ph { height: 36svh; }
  .h-room .fw-h3 { font-size: 40px; margin-bottom: 10px; }
  .h-room .fw-kicker { margin-bottom: 10px; }
  .h-room .fw-body { font-size: 15px; line-height: 1.55; margin-bottom: 14px; }
  .h-room__meta { display: none; }
  .h-room .fw-btn { min-height: 46px; padding: 0 16px; font-size: 13px; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .h-room__ph { height: 28svh; }
  .h-room .fw-h3 { font-size: 32px; }
  .h-room .fw-body { font-size: 14px; }
}

/* ---- 4. on this week ---- */
.h-live { padding: var(--pad) 0; border-top: 1px solid var(--fw-rule); }
.h-live__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: 48px; }
.h-live__head .fw-body { color: #3b3a33; margin: 0 0 20px; }
.h-live__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); }
.h-live__name { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 2px solid var(--c); font: 700 24px/1 var(--fw-display); text-transform: uppercase; letter-spacing: .02em; }
.h-live__name .fw-dot { --c: inherit; }
[data-el="fire"] > .h-live__name { --c: var(--fw-fire-knot); }
[data-el="water"] > .h-live__name { --c: var(--fw-water); }
[data-el="earth"] > .h-live__name { --c: var(--fw-earth); }
[data-el="air"] > .h-live__name { --c: var(--fw-air-knot); }
.h-live__name .fw-dot { background: var(--c); }
.h-live__col .fw-slots { --s-accent: var(--fw-ink); }
.h-live__col .fw-slot { grid-template-columns: 4.2em 1fr auto; }
.h-live__col .fw-slots__day { color: var(--fw-stone); }
.h-live__col .fw-slot__meta { color: var(--fw-stone); }
.h-live__col--side { display: grid; gap: 40px; align-content: start; }
.h-live__col--side .fw-body { color: #3b3a33; margin: 0 0 8px; font-size: 15px; }
.h-live__go { display: inline-flex; align-items: center; min-height: 44px; font: 700 14px/1 var(--fw-text); text-underline-offset: 4px; }
@media (max-width: 980px) { .h-live__grid { grid-template-columns: 1fr 1fr; } .h-live__col--side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .h-live__head { grid-template-columns: 1fr; } .h-live__grid, .h-live__col--side { grid-template-columns: 1fr; } }

/* ---- 5. the directory ---- */
.h-dir { background: var(--fw-night); color: var(--fw-bone); padding: var(--pad) 0; }
.h-dir__head { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); margin-bottom: 48px; }
.h-dir__knot .fw-knot { font-size: clamp(72px, 9vw, 120px); }
.h-dir .fw-body { color: var(--fw-mist); margin: 0; }
.h-dir .fw-h2 { margin-bottom: 10px; }
.h-dir__table { border-top: 1px solid var(--fw-rule-dark); }
.h-dir__row { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 8px 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--fw-rule-dark); }
.h-dir__row--head { padding: 14px 0; font: 700 11px/1 var(--fw-text); letter-spacing: .2em; text-transform: uppercase; color: var(--fw-mist); }
.h-dir__house { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 14px; }
.h-dir__house b { font: 700 26px/1 var(--fw-display); text-transform: uppercase; letter-spacing: .02em; }
.h-dir__house small { grid-column: 2; font-size: 13px; color: var(--fw-mist); }
.h-dir__house .fw-dot, .h-dir__house .fw-knot { grid-row: 1 / span 2; }
.h-dir__house .fw-knot { font-size: 26px; }
.h-dir__row a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fw-bone); font-weight: 600; text-decoration: underline; text-decoration-color: #ffffff40; text-underline-offset: 5px; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .h-dir__row a:hover { text-decoration-color: currentColor; } }
.h-dir a:focus-visible { outline-color: var(--fw-bone); }
.h-dir__row--fw { border-bottom: 0; }
@media (max-width: 860px) {
  .h-dir__row--head { display: none; }
  .h-dir__row { grid-template-columns: 1fr 1fr 1fr; padding: 20px 0 12px; }
  .h-dir__house { grid-column: 1 / -1; margin-bottom: 4px; }
  .h-dir__row a { font-size: 14px; }
  .h-dir__row [role="cell"]:nth-child(4) a { font-size: 13px; }
}
@media (max-width: 480px) {
  .h-dir__row { grid-template-columns: 1fr 1fr; }
  .h-dir__row [role="cell"]:nth-child(4) { grid-column: 1 / -1; }
}

/* ---- reduced motion: the composed, final state ---- */
@media (prefers-reduced-motion: reduce) {
  .h-hero { height: auto; }
  .h-hero__stage { position: relative; height: auto; min-height: 92svh; padding-top: 48px; padding-bottom: 64px; }
  .h-knot__weave { opacity: 1; }
  .h-tour { height: auto !important; }
  .h-tour__stage { position: relative; height: auto; padding-bottom: var(--pad); }
  .h-track { width: auto; flex-direction: column; gap: 72px; padding-top: 32px; }
  .h-room { width: auto; max-width: var(--fw-max); margin: 0 auto; padding: 0 var(--fw-gutter); box-sizing: border-box; }
  .h-room__ph { height: auto; aspect-ratio: 3 / 2; }
  .h-rail a span { display: inline; }
}
