/* Float Therapy v3: "The Experiment". Water house of Four Wellness.
   The page opens as a working tank. Every moving thing moves by transform or opacity: depth is a crossfade
   between a sharp and a pre-blurred floater, grains and rings are compositor animations, nothing is pinned. */
:root {
  --ink: #0b2a30; --ink-soft: #3a5b60; --paper: #eaf3f1; --paper-2: #f5faf9; --foam: #f7fbfb;
  --water: #14666f; --water-l: #8bd3db; --deep: #0c3e45; --night: #061d21; --rule: #c9dcd9;
  --disp: "Urbanist", system-ui, sans-serif; --text: "Manrope", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px); --ease: cubic-bezier(.22, .8, .24, 1);
}
.fx [hidden] { display: none !important; }
body.fx { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
.fx img { display: block; max-width: 100%; height: auto; }
.fx a { color: inherit; }
.fx :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1200px, 100% - 2 * var(--pad)); margin-inline: auto; }
.disp { font-family: var(--disp); font-weight: 300; letter-spacing: -.025em; line-height: 1.02; margin: 0; text-wrap: balance; }
.body { margin: 0; max-width: 36em; color: var(--ink-soft); text-wrap: pretty; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 600 15px/1 var(--text); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.btn--ink { background: var(--ink); color: var(--foam) !important; }
.btn--line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn--ink:hover { background: var(--water); } .btn--line:hover { background: var(--ink); color: var(--foam); } }
.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: 600 15px/1.4 var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; cursor: pointer; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--water); box-shadow: 0 0 0 4px #14666f22; flex: none; }

/* ---------- the experiment ---------- */
.xp { position: relative; padding: 0 var(--pad) clamp(40px, 7vh, 80px);
  background-color: var(--paper);
  background-image: linear-gradient(#0b2a300a 1px, transparent 1px), linear-gradient(90deg, #0b2a300a 1px, transparent 1px);
  background-size: 28px 28px; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; max-width: 1200px; margin: 0 auto; }
.mast__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15px/1.1 var(--text); }
.mast__brand img { width: 34px; height: 34px; }
.mast__brand small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.mast__nav { display: flex; gap: 4px; }
.mast__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font: 600 14px/1 var(--text); text-decoration: none; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) { .mast__nav a:hover { background: #0b2a300f; } }

.xp__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); grid-template-areas: "head tank" "read tank"; column-gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(8px, 3vh, 40px); }
.rig { display: contents; }
.xp__head { grid-area: head; padding-top: clamp(16px, 6vh, 72px); }
.xp__head h1 { font-size: clamp(42px, 6.2vw, 92px); }
.xp__head h1 span { color: var(--water); }
.xp__lede { margin: 22px 0 0; max-width: 30em; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-soft); }

/* the tank: a float pod seen from above. Static rim and water; only its contents move. */
.plate { grid-area: tank; position: relative; padding: 0 0 34px 34px; }
.tank { position: relative; width: 100%; aspect-ratio: 0.66; max-height: calc(100svh - 150px); margin-inline: auto; border-radius: 50% / 38%; overflow: hidden; isolation: isolate;
  border: clamp(9px, 1.4vw, 14px) solid var(--foam); background: var(--deep);
  box-shadow: 0 2px 0 1px #c3d9d6, 0 40px 70px -36px #061d2199; touch-action: pan-y; cursor: crosshair; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.tank__water { position: absolute; inset: 0; background: url(/float/assets/water.webp) center / cover; }
.tank__water::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 46%, #2b8d96 0%, #156571cc 48%, #0a3439 100%); }
.tank__caustics { position: absolute; inset: 0; opacity: .22; overflow: hidden; transition: opacity 1.4s var(--ease); }
.tank__caustics i { position: absolute; left: 0; top: 0; right: -300px; bottom: -300px; background: url(/float/assets/caustics.webp) 0 0 / 300px 300px repeat; will-change: transform; animation: drift 26s linear infinite; }
.is-idle .tank__caustics i { animation-play-state: paused; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-300px, -300px, 0); } }
.tank__shadow { position: absolute; left: 50%; top: 47%; width: 56%; height: 74%; margin: -37% 0 0 -28%; border-radius: 50%; background: radial-gradient(closest-side, #031417aa, #03141700); will-change: transform, opacity; }
.tank__body { position: absolute; left: 50%; top: 45%; width: 50%; margin-left: -25%; transform: translate3d(0, -50%, 0); will-change: transform; }
.tank__body img { width: 100%; height: auto; }
.tank__surface { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.tank__deep { will-change: opacity; }
.tank__depth { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 45%, #0f4d55 0%, #0b3b42 70%, #072a2f 100%); opacity: .62; will-change: opacity; pointer-events: none; }
.tank__rings { position: absolute; left: 50%; top: 42%; width: 0; height: 0; pointer-events: none; }
.tank__rings i { position: absolute; left: -130px; top: -130px; width: 260px; height: 260px; border-radius: 50%; border: 1.5px solid #ffffffb0; opacity: 0; transform: scale(.2); }
.is-afloat .tank__rings i { animation: ring 3.2s var(--ease) 2 both; }
.is-afloat .tank__rings i:nth-child(2) { animation-delay: .5s; }
.is-afloat .tank__rings i:nth-child(3) { animation-delay: 1s; }
@keyframes ring { 0% { opacity: .85; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.5); } }
.is-afloat .tank__caustics { opacity: .42; }
.tank__grains { position: absolute; inset: 0; pointer-events: none; }
.grain { position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: radial-gradient(circle, #ffffff 0 45%, #ffffff00 70%); opacity: 0; }
.puff { position: absolute; left: 0; top: 0; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; background: radial-gradient(closest-side, #ffffff66, #ffffff00); opacity: 0; }
.tank__lines { position: absolute; left: 0; right: 0; bottom: 9%; margin: 0; display: grid; justify-items: center; gap: 2px; font: 300 clamp(19px, 2vw, 26px)/1.15 var(--disp); letter-spacing: -.01em; color: var(--foam); text-align: center; pointer-events: none; }
.tank__lines span { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.is-afloat .tank__lines span { opacity: 1; transform: none; }
.is-afloat .tank__lines span:nth-child(2) { transition-delay: .5s; }
.is-afloat .tank__lines span:nth-child(3) { transition-delay: 1s; color: var(--water-l); }

/* the drawing: the tank's real dimensions, like a plate in a lab book */
.dim { position: absolute; color: var(--ink-soft); font: 600 10.5px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.dim--v { left: 0; top: 0; bottom: 34px; width: 20px; border-right: 1px solid #0b2a3055; }
.dim--h { left: 34px; right: 0; bottom: 0; height: 20px; border-top: 1px solid #0b2a3055; }
.dim::before, .dim::after { content: ""; position: absolute; background: #0b2a3055; }
.dim--v::before, .dim--v::after { right: -5px; width: 9px; height: 1px; } .dim--v::before { top: 0; } .dim--v::after { bottom: 0; }
.dim--h::before, .dim--h::after { top: -5px; width: 1px; height: 9px; } .dim--h::before { left: 0; } .dim--h::after { right: 0; }
.dim i { position: absolute; font-style: normal; white-space: nowrap; background: var(--paper); padding: 2px 6px; }
.dim--v i { left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.dim--h i { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tank__kg { display: none; }

/* the readout: salt, a cross-section of where you sit in the water, the state, the controls */
.read { grid-area: read; margin-top: clamp(24px, 4vh, 44px); max-width: 30em; }
.read__kg { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.read__n { font: 200 clamp(56px, 6vw, 84px)/.9 var(--disp); letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.read__u { font: 600 13px/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.read__of { color: #6f8d91; }
.sec { position: relative; height: 58px; margin: 18px 0 16px; border-radius: 12px; overflow: hidden; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }
.sec__water { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: #14666f8c; border-top: 1.5px solid var(--water); }
.sec__body { position: absolute; left: 16%; top: 50%; width: 64%; height: 13px; margin-top: -6.5px; border-radius: 8px; background: var(--ink); transform: translate3d(0, 13px, 0); will-change: transform; }
.sec__body::before { content: ""; position: absolute; left: -15px; top: -2px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); }
.sec__label { position: absolute; right: 10px; top: 4px; font: 600 10px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.read__state { margin: 0; min-height: 4.8em; color: var(--ink); text-wrap: pretty; }
.ctrl, .done__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; }
.ctrl__q { font-weight: 500; opacity: .7; }
.done__next { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-weight: 600; }

/* ---------- the room ---------- */
.room { background: var(--paper-2); padding: clamp(64px, 10vw, 128px) 0; border-top: 1px solid var(--rule); }
.room__head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.room__head h2 { font-size: clamp(34px, 4.4vw, 60px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.step img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.step h3 { margin: 16px 0 4px; font: 400 24px/1.1 var(--disp); }
.step p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(16px, 2.5vw, 32px); margin: clamp(40px, 6vw, 72px) 0 0; }
.spec div { padding-top: 14px; border-top: 1.5px solid var(--ink); }
.spec dt { font: 700 11px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--water); }
.spec dd { margin: 10px 0 0; font-size: 15px; color: var(--ink); }

/* ---------- questions ---------- */
.faq { padding: clamp(64px, 9vw, 120px) 0; }
.faq__in { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__qs h2 { font-size: clamp(32px, 4vw, 54px); margin-bottom: 22px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translate(-2px, -2px); flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); max-width: 40em; }
.regular { margin: 0; }
.regular img { border-radius: 14px; }
.regular figcaption { margin-top: 12px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- book ---------- */
.book { background: var(--deep); color: var(--foam); padding: clamp(64px, 9vw, 120px) 0; }
.book__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.book h2 { font-size: clamp(36px, 4.6vw, 64px); }
.book .body { color: #bcd8d9; margin-top: 12px; }
.book__slots { margin-top: 28px; --s-soft: #a9cdd0; --s-line: #ffffff22; --s-accent: var(--water-l); }
.book__slots a { color: var(--water-l); }
.price { margin: 0; }
.price__row { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 18px 0; border-top: 1px solid #ffffff26; }
.price__row:last-child { border-bottom: 1px solid #ffffff26; }
.price dt { font-weight: 600; }
.price dd { display: contents; }
.price strong { grid-column: 2; grid-row: 1 / span 2; font: 300 34px/1 var(--disp); align-self: center; }
.price strong small { font: 500 13px var(--text); }
.price dd span { grid-column: 1; font-size: 14px; color: #a9cdd0; }
.book__note { margin: 16px 0 0; font-size: 13.5px; color: #a9cdd0; }
.book__note a, .book__contact a { color: var(--foam); }
.book__contact { margin-top: 20px; font-style: normal; font-size: 14px; color: #cfe3e3; line-height: 1.7; }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .xp__grid { grid-template-columns: 1fr; grid-template-areas: "head" "tank" "read"; padding-top: 0; }
  .xp__head { padding-top: 4px; }
  .xp__head h1 { font-size: clamp(30px, 8.6vw, 46px); }
  .xp__lede { margin-top: 12px; font-size: 15.5px; }
  .plate { padding: 0; margin-top: 16px; }
  .dim { display: none; }
  .tank { width: min(100%, 360px); max-height: none; }
  .tank__kg { display: block; position: absolute; left: 50%; top: 7%; margin: 0; padding: 6px 12px; border-radius: 999px; transform: translateX(-50%); background: #061d21b3; color: var(--foam); font: 600 12px/1 var(--text); letter-spacing: .06em; white-space: nowrap; pointer-events: none; }
  .tank__kg b { font: 500 15px/1 var(--disp); font-variant-numeric: tabular-nums; }
  .read { margin-top: 18px; max-width: none; }
  .read__n { font-size: 54px; }
  .read__state { min-height: 0; font-size: 15.5px; }
  .mast__nav a { padding: 0 9px; font-size: 13px; }
  .room__head, .faq__in, .book__in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step { display: grid; grid-template-columns: 38% 1fr; gap: 0 14px; align-items: start; }
  .step img { grid-row: span 2; aspect-ratio: 1 / 1; border-radius: 10px; }
  .step h3 { margin-top: 0; font-size: 21px; }
  .step p { font-size: 14.5px; }
  .spec { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
}
@media (max-width: 860px) and (max-height: 700px) { .tank { width: min(100%, 290px); } }
@media (max-width: 420px) { .mast__brand span { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .tank__caustics i, .is-afloat .tank__rings i { animation: none; }
  .tank__lines span, .tank__caustics { transition: none; }
}
html:not(.js) .ctrl, html:not(.js) .xp__how { display: none; }
