/* Four Wellness v5 hub: "Through the knot". The photo knot is alive, scrolling pushes through its centre
   into the building, then you turn it to choose a house, and the page closes on the knot whole again. */
: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); --top: 116px; }
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 18px; } .h-head__brand .fw-knot { font-size: 38px; } }

/* ---- the photo knot: four leaf windows, an upright photo rotor in each, the weave on top ---- */
.k { position: relative; width: 100%; aspect-ratio: 1; }
.k-p { position: absolute; }
.k-r { position: absolute; }
.k-r img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-b { opacity: 0; transition: opacity 1.2s var(--fw-ease); }
.k-b.is-in { opacity: 1; }
.k-w { position: absolute; inset: 0; pointer-events: none; }
.k-w .fw-knot { display: block; width: 100%; height: 100%; }
.k-w .fw-knot path { stroke-width: 4.6; }
/* per-photo framing inside the upright rotor */
.k-p[data-el="air"] .k-a { object-position: 50% 60%; }

/* ---- 1. hero and the push through the knot (the peak) ---- */
.v-hero { position: relative; height: 290vh; height: 290lvh; }
.v-hero__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.v-hero__scene { position: relative; height: calc(100svh - var(--top)); min-height: 560px; --K: min(calc(100svh - var(--top) - 72px), 46vw, 660px); }
.v-hero__knot { position: absolute; left: calc(50% - var(--K) / 2); top: calc(50% - var(--K) / 2); width: var(--K); transform-origin: 50% 50%; }
.v-hero__copy { position: absolute; inset: 0; pointer-events: none; }
.v-hero__copy a { pointer-events: auto; }
.v-hero__h { position: absolute; inset: 0; margin: 0; font: 700 clamp(60px, 6.8vw, 116px)/.86 var(--fw-display); letter-spacing: -.01em; text-transform: uppercase; }
.v-hero__h span { position: absolute; display: block; }
.v-hero__h span:first-child { right: calc(50% + var(--K) * .36); top: calc(50% - var(--K) / 2 - .06em); text-align: right; width: 5.2ch; }
.v-hero__h span:last-child { left: calc(50% + var(--K) * .36); bottom: calc(50% - var(--K) / 2 - .08em); width: 4ch; }
.v-hero__foot { position: absolute; left: var(--fw-gutter); bottom: calc(50% - var(--K) / 2); width: min(36ch, calc(50% - var(--K) / 2 - var(--fw-gutter) - 8px)); }
.v-hero__foot .fw-lede { font-size: clamp(16px, 1.25vw, 19px); color: #3b3a33; margin-bottom: 22px; }
.v-hero__foot .fw-actions { flex-direction: column; align-items: flex-start; }
.v-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; }
.v-tag[data-el="air"] { left: 57%; top: 1%; }
.v-tag[data-el="water"] { left: calc(100% + 6px); top: 49%; }
.v-tag[data-el="earth"] { right: 54%; top: 97%; }
.v-tag[data-el="fire"] { right: calc(100% + 6px); top: 45.5%; }
.v-tag[data-el="air"] .fw-dot { --c: var(--fw-air-knot); }
.v-tag[data-el="water"] .fw-dot { --c: var(--fw-water); }
.v-tag[data-el="earth"] .fw-dot { --c: var(--fw-earth); }
.v-tag[data-el="fire"] .fw-dot { --c: var(--fw-fire-knot); }

/* the building you land in */
.v-arrive { position: absolute; inset: 0; opacity: .002; background: var(--fw-night); }
.v-arrive img { width: 100%; height: 100%; object-fit: cover; }
.v-arrive::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,19,13,.88) 0%, rgba(20,19,13,.66) 34%, rgba(20,19,13,0) 64%); }
.v-arrive__copy { position: absolute; left: max(var(--fw-gutter), calc(50% - var(--fw-max) / 2 + var(--fw-gutter))); bottom: calc(var(--sb) + 9svh); width: min(500px, calc(100% - 2 * var(--fw-gutter))); color: var(--fw-bone); opacity: 0; }
.v-arrive__copy .fw-kicker { color: var(--fw-mist); }
.v-arrive__copy .fw-h2 { font-size: clamp(48px, 5.6vw, 88px); }
.v-arrive__copy .fw-body { color: #e6e1d3; margin: 0 0 12px; }
.v-arrive__addr { margin: 0 0 22px; font-size: 14px; color: var(--fw-mist); }
.v-arrive__copy .fw-btn { color: var(--fw-bone); }
.v-arrive__copy .fw-btn:focus-visible { outline-color: var(--fw-bone); }
.v-hero.is-live .v-hero__knot, .v-hero.is-live .v-arrive, .v-hero.is-live .v-hero__h, .v-hero.is-live .v-hero__foot, .v-hero.is-live .v-arrive__copy { will-change: transform, opacity; }
.v-hero.is-past .v-arrive__copy { pointer-events: auto; }

@media (max-width: 860px) {
  :root { --top: 120px; }
  .v-hero { height: 250lvh; }
  .v-hero__scene { --K: min(90vw, calc(100svh - var(--top) - 300px)); min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--fw-gutter); box-sizing: border-box; }
  .v-hero__knot { position: relative; left: auto; top: auto; margin: 0 auto; order: 2; }
  .v-hero__copy { position: static; display: contents; }
  .v-hero__h { order: 1; position: relative; inset: auto; z-index: 1; margin-bottom: calc(var(--K) * -.1); font-size: clamp(40px, 11.8vw, 60px); line-height: .88; }
  .v-hero__h span, .v-hero__h span:first-child, .v-hero__h span:last-child { position: static; width: auto; display: block; text-align: left; }
  .v-hero__foot { order: 4; position: static; width: auto; margin-top: 14px; }
  .v-hero__foot .fw-lede { font-size: 15.5px; line-height: 1.5; margin-bottom: 14px; }
  .v-hero__foot .fw-actions { flex-direction: row; gap: 10px; }
  .v-hero__foot .fw-btn { padding: 0 14px; font-size: 12.5px; letter-spacing: .04em; }
  .v-tag { font-size: 10px; letter-spacing: .14em; }
  .v-tag__house { display: none; }
  .v-tag[data-el="water"] { left: auto; right: 0; top: 60%; }
  .v-tag[data-el="fire"] { right: auto; left: 0; top: auto; bottom: 60%; }
  .v-tag[data-el="earth"] { top: auto; bottom: 1%; }
  .v-arrive::after { background: linear-gradient(0deg, rgba(20,19,13,.92) 0%, rgba(20,19,13,.7) 46%, rgba(20,19,13,0) 78%); }
  .v-arrive__copy .fw-h2 { font-size: 46px; }
  .v-arrive__copy .fw-body { font-size: 15px; line-height: 1.55; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .v-hero__scene { --K: min(80vw, calc(100svh - var(--top) - 250px)); }
  .v-hero__foot .fw-lede { display: none; }
  .v-arrive__copy .fw-body { display: none; }
}

/* ---- 2. turn the knot (the signature) ---- */
.v-turn { padding: var(--pad) 0; background: var(--fw-paper); border-top: 1px solid var(--fw-rule); }
.v-turn__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.v-turn__head .fw-h2 { margin: 0; }
.v-turn__head .fw-body { color: #3b3a33; margin: 0; }
.v-turn__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.v-dial { position: sticky; top: 24px; }
.v-dial__knot { position: relative; width: min(100%, 560px); margin: 0 auto; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; --a: -180deg; }
.v-dial__knot.is-drag { cursor: grabbing; }
.v-dial__knot .k { transform: rotate(var(--a)); transition: transform 1s var(--fw-ease); }
.v-dial__knot .k-r { transform: rotate(calc(var(--a) * -1)); transition: transform 1s var(--fw-ease); }
.v-dial__knot.is-drag .k, .v-dial__knot.is-drag .k-r { transition: none; }
.v-dial__knot .k-p { transition: opacity .6s var(--fw-ease); }
.v-dial__knot .k-p:not(.is-on) { opacity: .42; }
.v-dial__knot .k-p { cursor: pointer; }
.v-dial__pin { position: absolute; left: 50%; top: 2%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50% 0; transform: rotate(45deg); background: var(--fw-ink); }
.v-dial__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--fw-rule); }
.v-dial__tabs button { display: flex; align-items: flex-start; gap: 8px; min-height: 64px; padding: 14px 8px 12px 0; border: 0; border-top: 2px solid transparent; margin-top: -1px; background: none; color: var(--fw-stone); font: 700 20px/1 var(--fw-display); text-transform: uppercase; letter-spacing: .02em; text-align: left; cursor: pointer; }
.v-dial__tabs button .fw-dot { margin-top: 3px; }
.v-dial__tabs small { display: block; margin-bottom: 5px; font: 700 10px/1 var(--fw-text); letter-spacing: .18em; color: var(--fw-stone); }
.v-dial__tabs button[aria-selected="true"] { color: var(--fw-ink); border-top-color: var(--fw-ink); }
@media (hover: hover) and (pointer: fine) { .v-dial__tabs button:hover { color: var(--fw-ink); } }
.v-panel { --h-accent: var(--fw-ink); }
.v-panel[data-el="earth"] { --h-accent: var(--fw-earth); }
.v-panel[data-el="fire"] { --h-accent: var(--fw-fire); }
.v-panel[data-el="water"] { --h-accent: var(--fw-water); }
.v-panel[data-el="air"] { --h-accent: var(--fw-air); }
.v-panel + .v-panel { margin-top: 72px; }
.v-panel[hidden] { display: none; }
.v-panel.is-enter { animation: v-in .7s var(--fw-ease) both; }
@keyframes v-in { from { opacity: 0; transform: translateY(14px); } }
.v-panel__ph { margin: 0 0 28px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--fw-radius); background: #dcd7c8; }
.v-panel__ph img { width: 100%; height: 100%; object-fit: cover; }
.v-panel .fw-kicker .fw-knot { font-size: 22px; }
.v-panel__h { margin: 0 0 16px; font: 700 clamp(44px, 5vw, 76px)/.9 var(--fw-display); text-transform: uppercase; }
.v-panel .fw-body { color: #3b3a33; margin: 0 0 18px; }
.v-panel__note { margin: 0 0 22px; font-size: 15px; color: var(--fw-stone); max-width: 56ch; }
.v-panel__slots { margin: 6px 0 26px; --s-accent: var(--fw-ink); }
.v-panel__slots .fw-slot { grid-template-columns: 4.2em 1fr auto; }
.v-panel__slots .fw-slots__day, .v-panel__slots .fw-slot__meta { color: var(--fw-stone); }
.v-panel__slots[aria-busy="true"] { min-height: 160px; }

@media (max-width: 860px) {
  .v-turn__head, .v-turn__grid { grid-template-columns: 1fr; }
  .v-dial { position: relative; top: auto; }
  .v-dial__knot { width: min(76vw, 360px); }
  .v-dial__tabs { margin-top: 22px; }
  .v-dial__tabs button { font-size: 17px; padding-right: 4px; gap: 6px; }
  .v-dial__tabs small { font-size: 9.5px; letter-spacing: .12em; }
  .v-panel__ph { aspect-ratio: 4 / 3; margin-bottom: 22px; }
  .v-panel__h { font-size: 44px; }
}
@media (max-width: 380px) { .v-dial__tabs button .fw-dot { display: none; } }

/* ---- 3. next up ---- */
.v-next { padding: var(--pad) 0; border-top: 1px solid var(--fw-rule); }
.v-next__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.v-next__head { position: sticky; top: 32px; }
.v-next__head .fw-body { color: #3b3a33; margin: 0 0 28px; }
.v-next__also { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fw-rule); }
.v-next__also li { display: flex; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--fw-rule); font-size: 15px; color: #3b3a33; }
.v-next__also b { color: var(--fw-ink); }
.v-next__also a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--fw-ink); text-underline-offset: 4px; }
.v-next__list { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.v-next__list[aria-busy="true"] { min-height: 420px; }
.v-next__day { padding: 30px 0 10px; font: 700 11px/1 var(--fw-text); letter-spacing: .2em; text-transform: uppercase; color: var(--fw-stone); }
.v-next__day:first-child { padding-top: 0; }
.v-next__row { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; gap: 4px 18px; align-items: center; padding: 16px 0 16px 16px; border-top: 1px solid var(--fw-rule); position: relative; }
.v-next__row::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; background: var(--c); }
.v-next__row[data-el="fire"] { --c: var(--fw-fire-knot); }
.v-next__row[data-el="water"] { --c: var(--fw-water); }
.v-next__t { font: 700 26px/1 var(--fw-display); }
.v-next__name { font-weight: 700; }
.v-next__meta { grid-column: 2; font-size: 14px; color: var(--fw-stone); }
.v-next__go { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid currentColor; border-radius: var(--fw-radius); font: 700 12px/1 var(--fw-text); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.v-next__row.is-full .v-next__go { color: var(--fw-stone); }
.v-next__note { font-size: 15px; color: var(--fw-stone); }
.v-next__note a { font-weight: 700; color: var(--fw-ink); }
@media (max-width: 860px) {
  .v-next__in { grid-template-columns: 1fr; }
  .v-next__head { position: static; }
  .v-next__row { grid-template-columns: 3.6em minmax(0, 1fr); padding-left: 14px; }
  .v-next__t { font-size: 22px; }
  .v-next__go { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 8px; }
}

/* ---- 4. one roof ---- */
.v-roof { background: var(--fw-night); color: var(--fw-bone); padding: var(--pad) 0 clamp(56px, 7vw, 96px); }
.v-roof__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-bottom: clamp(64px, 8vw, 112px); }
.v-roof__knot { width: min(100%, 520px); }
.v-roof .fw-knot { --k-air: var(--fw-air-light); --k-water: var(--fw-water-light); --k-earth: var(--fw-earth-light); --k-fire: var(--fw-fire-light); }
.v-roof__h { margin: 0 0 22px; font: 700 clamp(72px, 10vw, 168px)/.84 var(--fw-display); text-transform: uppercase; letter-spacing: -.01em; }
.v-roof .fw-lede { color: var(--fw-mist); }
.v-roof__book { --h-accent: var(--fw-bone); --h-accent-ink: var(--fw-night); }
.v-roof .fw-btn--line { color: var(--fw-bone); }
.v-roof .fw-btn:focus-visible { outline-color: var(--fw-bone); }
.v-dir { border-top: 1px solid var(--fw-rule-dark); }
.v-dir__row { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 8px 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--fw-rule-dark); }
.v-dir__row--head { font: 700 11px/1 var(--fw-text); letter-spacing: .2em; text-transform: uppercase; color: var(--fw-mist); }
.v-dir__house { display: flex; align-items: center; gap: 14px; }
.v-dir__house b { font: 700 24px/1 var(--fw-display); text-transform: uppercase; letter-spacing: .02em; }
.v-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) { .v-dir__row a:hover { text-decoration-color: currentColor; } }
.v-dir a:focus-visible { outline-color: var(--fw-bone); }
@media (max-width: 860px) {
  .v-roof__top { grid-template-columns: 1fr; }
  .v-roof__knot { width: min(72vw, 340px); margin: 0 auto; }
  .v-roof__h { font-size: clamp(64px, 20vw, 96px); }
  .v-dir__row--head { display: none; }
  .v-dir__row { grid-template-columns: 1fr 1fr 1fr; padding: 18px 0 10px; }
  .v-dir__house { grid-column: 1 / -1; }
  .v-dir__row a { font-size: 14px; }
  .v-dir__row [role="cell"]:nth-child(4) a { font-size: 13px; }
}
@media (max-width: 480px) {
  .v-dir__row { grid-template-columns: 1fr 1fr; }
  .v-dir__row [role="cell"]:nth-child(4) { grid-column: 1 / -1; }
}

/* ---- reduced motion: the composed hero, then the front door as its own block ---- */
@media (prefers-reduced-motion: reduce) {
  .v-hero { height: auto; }
  .v-hero__stage { position: relative; height: auto; overflow: visible; display: grid; }
  .v-arrive { position: relative; grid-row: 2; grid-column: 1; height: 86svh; opacity: 1; }
  .v-arrive__copy { position: relative; grid-row: 2; grid-column: 1; align-self: end; left: auto; bottom: auto; margin: 0 0 8svh max(var(--fw-gutter), calc(50% - var(--fw-max) / 2 + var(--fw-gutter))); opacity: 1; pointer-events: auto; }
  .v-hero__scene { grid-row: 1; grid-column: 1; }
  .k-b { transition: none; }
  .v-dial__knot .k, .v-dial__knot .k-r, .v-dial__knot .k-p { transition: none; }
  .v-panel.is-enter { animation: none; }
}
