/* Ovita UI moments: animated product UI for the cards in the "What's inside" slider.
   Designed on a 600 x 503 stage and scaled to the card by js/ovita-moments.js.

   The look sits between two things: instrument-style content (dot-matrix values, the Ovita symbols,
   a time rail, segment readouts) and soft colour tiles (colour inside the tile as a slow glow,
   readable sentence-case labels, no outlines, pips, rules or scan lines).

   Container rules: 48px from the card edge, 12px between tiles, 20px padding inside a tile,
   26px corners. Labels top-left, values below them, nothing leaves its tile.
   The markup's resting state is the finished frame, so it reads with no script or reduced motion. */

@property --k { syntax: '<color>'; inherits: true; initial-value: #E8663C; }
@property --cx { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --cy { syntax: '<percentage>'; inherits: false; initial-value: 52%; }

.house-bathhouse { --g1: #F96035; --g2: #0A4658; --g3: #02070A; } .house-circuit { --g1: #E8A24A; --g2: #3A2410; --g3: #070503; }
.house-kitchen { --g1: #9BE06C; --g2: #123A1C; --g3: #030A05; } .house-clinic { --g1: #9ED9EC; --g2: #1D4257; --g3: #050D13; }

/* the card: dark at the top, the house colour as a horizon at the foot */
.card_services-marquee.ovita-ui-card { position: relative; overflow: hidden; padding: var(--spacing--space-md); isolation: isolate;
  background: radial-gradient(120% 30% at 50% 106%, var(--g1, #888) 0%, transparent 100%), radial-gradient(130% 62% at 40% 54%, var(--g2, #333) 0%, transparent 100%), var(--g3, #070707); }
.ovita-ui-card_text { position: relative; z-index: 3; max-width: none; }
.ovita-ui-card_bg { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover; z-index: 0; filter: blur(24px) brightness(.5) saturate(1.15); animation: ob-bg 16s ease-in-out infinite alternate; }
@keyframes ob-bg { from { transform: scale(1) translate3d(-2%, 1%, 0); } to { transform: scale(1.08) translate3d(2%, -1%, 0); } }
.ovita-ui-card.has-photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.12) 46%, rgba(0,0,0,.4) 100%); }

.om { position: absolute; left: 0; top: 0; width: 600px; height: 503px; transform-origin: 0 0; z-index: 1; pointer-events: none; color: #fff; font-family: var(--typography-font-body); font-size: 15px; line-height: 1.2; }
.om *, .om *::before, .om *::after { box-sizing: border-box; }
.om-scene { position: absolute; inset: 0; }

/* ---------- a tile and its gradient */
@keyframes ob-centre { from { --cx: 44%; --cy: 58%; } to { --cx: 57%; --cy: 46%; } }
.ob { position: absolute; border-radius: 26px; padding: 20px; overflow: hidden; background: var(--k); transition: --k .9s ease; animation: ob-centre 9s ease-in-out infinite alternate; box-shadow: 0 40px 50px -34px rgba(0,0,0,.9); }
.ob:nth-child(2) { animation-duration: 11s; animation-delay: -3s; } .ob:nth-child(3) { animation-duration: 8s; animation-delay: -5s; } .ob:nth-child(4) { animation-duration: 12s; animation-delay: -2s; } .ob:nth-child(5) { animation-duration: 10s; animation-delay: -6s; }
.ob.is-line { background: linear-gradient(180deg, color-mix(in srgb, var(--k) 46%, #3D3843) 0%, color-mix(in srgb, var(--k) 78%, #3D3843) 46%, var(--k) 100%); }
.ob.is-dark { background: radial-gradient(ellipse 70% 66% at var(--cx) var(--cy), #05050A 0%, #05050A 34%, color-mix(in srgb, var(--k) 40%, #05050A) 66%, color-mix(in srgb, var(--k) 86%, #05050A) 90%, var(--k) 100%); }
.ob.is-bloom { background: radial-gradient(ellipse 66% 50% at var(--cx) var(--cy), color-mix(in srgb, var(--k) 46%, #0A0612) 0%, color-mix(in srgb, var(--k) 70%, #0A0612) 36%, var(--k) 72%, color-mix(in srgb, var(--k) 72%, #fff) 100%); }
.ob.is-rim { background: radial-gradient(ellipse 74% 72% at var(--cx) var(--cy), #07070C 0%, #09090F 48%, color-mix(in srgb, var(--k) 46%, #09090F) 100%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 55%, transparent), inset 0 0 40px 2px color-mix(in srgb, var(--k) 55%, transparent), 0 40px 50px -34px rgba(0,0,0,.9); }

/* ---------- type */
.ob-l { font-size: 15px; line-height: 1.2; }
.ob-dim { opacity: .72; }
.ob-cap { font-size: 13px; line-height: 1.25; opacity: .78; }
.ob-u { font-size: 14px; opacity: .88; white-space: nowrap; }
.ob-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

/* dot-matrix numerals: the values */
.dm { display: inline-flex; align-items: flex-start; gap: calc(var(--d, 4px) * 1.5); }
.dm-c { display: grid; grid-template-columns: repeat(var(--cols, 5), var(--d, 4px)); gap: calc(var(--d, 4px) * .78); }
.dm-c i { width: var(--d, 4px); height: var(--d, 4px); border-radius: 50%; background: currentColor; opacity: 0; transition: opacity .16s linear; }
.dm-c i.on { opacity: 1; }
.ob-big { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: flex-end; gap: 10px; --d: 5.4px; }
.ob-big.is-wide { --d: 4.8px; }

/* ---------- hero: label, the big value, and a readout on the right */
.ob-now { position: absolute; right: 20px; bottom: 20px; display: flex; align-items: flex-end; gap: 10px; text-align: right; }
.ob-now img { width: 26px; height: 26px; display: block; margin-bottom: 1px; }
.ob-now_n { font-size: 17px; line-height: 1.1; }
.ob-note { position: absolute; right: 20px; bottom: 20px; max-width: 200px; text-align: right; font-size: 14px; line-height: 1.3; opacity: .92; }
.ob-plate { position: absolute; right: 20px; top: 20px; width: 100px; height: 100px; border-radius: 50%; overflow: hidden; }
.ob-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 52%; transform: scale(1.75); animation: ob-spin 70s linear infinite; }
@keyframes ob-spin { to { transform: scale(1.75) rotate(360deg); } }
.ob:has(.ob-plate) .ob-note { right: 136px; }

/* ---------- the steps: Ovita symbols on orbs that take the colour of their step */
.ob-orbs { position: relative; height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.ob-orbs::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 31px; height: 1px; background: rgba(255,255,255,.22); }
.ob-orbs > div { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.ob-orbs b { width: 50px; height: 50px; margin-bottom: 9px; border-radius: 50%; display: grid; place-items: center; background: #0B0B10; border: 1px solid rgba(255,255,255,.3); transition: background-color .5s, border-color .5s, box-shadow .5s; }
.ob-orbs img { width: 24px; height: 24px; opacity: .55; transition: opacity .4s; }
.ob-orbs span { font-size: 15px; opacity: .6; transition: opacity .4s; }
.ob-orbs em { font-style: normal; font-size: 13px; opacity: .6; }
.ob-orbs > .on b { background: color-mix(in srgb, var(--c) 30%, #0B0B10); border-color: var(--c); }
.ob-orbs > .on img, .ob-orbs > .on span { opacity: 1; }
.ob-orbs > .is-active b { background: var(--c); border-color: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 30%, transparent); }

/* ---------- readout tiles: label, a dot-matrix value, segments, a caption */
.ob-mid { display: flex; align-items: flex-end; gap: 7px; margin-top: 16px; height: 26px; --d: 2.9px; }
.ob-mid.is-text { font-size: 22px; font-weight: 300; line-height: 1; letter-spacing: -.3px; }
.ob-segs { display: flex; gap: 3px; margin-top: 14px; }
.ob-segs i { flex: 1; height: 9px; border-radius: 2px; background: rgba(255,255,255,.2); transition: background-color .25s; }
.ob-segs i.on { background: #fff; }
.ob-bar { position: relative; height: 3px; margin-top: 20px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,.2), rgba(255,255,255,.85)); }
.ob-bar i { position: absolute; top: -10px; margin-left: -5px; width: 0; height: 0; border: 5px solid transparent; border-top: 8px solid #fff; }
.ob-tile .ob-cap { position: absolute; left: 20px; right: 20px; bottom: 18px; white-space: nowrap; }
.ob-tile.is-n4 { padding: 16px; } .ob-tile.is-n4 .ob-cap { left: 16px; right: 16px; bottom: 14px; font-size: 12px; }
.ob-tile.is-n4 .ob-mid { --d: 2.5px; }

/* ---------- booking: time, a ruled rail of the evening, slide to book */
.ob--solo { padding: 22px; }
.ob--solo .ob-big { position: relative; left: auto; bottom: auto; margin-top: 22px; --d: 6px; }
.ob-rail { position: relative; height: 48px; margin-top: 22px; }
.ob-rail_t { position: absolute; left: 0; right: 0; top: 10px; height: 10px; border-bottom: 1px solid rgba(255,255,255,.4); background: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 1px, transparent 1px 8px); background-size: auto 6px; background-repeat: repeat-x; background-position: 0 100%; }
.ob-rail span { position: absolute; top: 30px; transform: translateX(-50%); font-size: 13px; opacity: .6; white-space: nowrap; }
.ob-rail span.is-sel { opacity: 1; }
.ob-rail_m { position: absolute; top: 0; width: 0; height: 26px; }
.ob-rail_m::before { content: ""; position: absolute; left: -.5px; top: 0; width: 1px; height: 20px; background: #fff; }
.ob-rail_m::after { content: ""; position: absolute; left: -6px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.22); }
.ob-slide { position: absolute; left: 22px; right: 22px; bottom: 22px; height: 46px; border-radius: 23px; background: rgba(255,255,255,.12); overflow: hidden; }
.ob-slide::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(46px + (100% - 46px) * var(--p, 0)); border-radius: 23px; background: rgba(255,255,255,.2); }
.ob-slide_l { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; }
.ob-slide_k { position: absolute; top: 5px; left: calc(5px + (100% - 46px) * var(--p, 0)); width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.ob-slide_k svg { width: 15px; height: 15px; display: block; }
.ob-slide .tick { display: none; } .ob-slide.is-done .arrow { display: none; } .ob-slide.is-done .tick { display: block; }

/* ---------- the Circuit: stats on the left, the ring on the right */
.ob--big { padding: 22px; }
.ob-stat { margin-top: 22px; width: 190px; }
.ob-statv { display: flex; align-items: flex-end; gap: 7px; margin-top: 8px; --d: 2.9px; }
.ob-stat .ob-segs, .ob-stat .ob-bar { margin-top: 12px; }
.ob-say { position: absolute; left: 22px; bottom: 22px; font-size: 22px; font-weight: 300; }
.ob-say em { font-family: var(--typography-font-accent, Georgia, serif); font-style: italic; }
.ob-ring { position: absolute; right: 30px; top: 31px; width: 240px; height: 240px; }
.ob-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ob-ring .ticks { transform-origin: 120px 120px; animation: ob-turn 90s linear infinite; }
.ob-ring .ticks line { stroke: rgba(255,255,255,.4); stroke-width: 1; }
.ob-ring .rt { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1; }
.ob-ring .ra { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.ob-ring_c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; --d: 7px; }
@keyframes ob-turn { to { transform: rotate(360deg); } }

/* ---------- the week: counts on the left, the dial on the right */
.ob-leg { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; width: 190px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.16); }
.ob-leg:last-of-type { border-bottom: 0; }
.ob-leg i { width: 8px; height: 8px; border-radius: 50%; flex: none; align-self: center; }
.ob-leg b { font-weight: 300; font-size: 26px; line-height: 1; width: 18px; font-variant-numeric: tabular-nums; }
.ob-legs { margin-top: 12px; }
.ob-dial { position: absolute; right: 30px; top: 27px; width: 250px; height: 250px; }
.ob-dial svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ob-dial .ring { fill: none; stroke: rgba(255,255,255,.34); }
.ob-dial .ring2 { fill: none; stroke: rgba(255,255,255,.3); stroke-dasharray: 1.5 9; stroke-linecap: round; transform-origin: 125px 125px; animation: ob-turn 80s linear infinite; }
.ob-dial text { fill: #fff; opacity: .78; font-size: 12px; text-anchor: middle; dominant-baseline: central; }
.ob-dial .hand { stroke: rgba(255,255,255,.7); stroke-width: 1; }
.ob-dial .dot { fill: currentColor; transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0; transition: transform .5s cubic-bezier(.2,1.6,.4,1), opacity .3s; }
.ob-dial .dot.on { transform: scale(1); opacity: 1; }

@media (prefers-reduced-motion: reduce) { .ob, .ovita-ui-card_bg, .ob-plate img, .ob-ring .ticks, .ob-dial .ring2 { animation: none; } .ob { transition: none; } }

/* ---------- the week, rebuilt: four tiles on the left, the dial in its own tile on the right */
.ob-weekwrap { position: static; }
.ob-wrow { padding: 12px 16px; border-radius: 20px; }
.ob-wrow_t { display: flex; justify-content: space-between; align-items: center; --d: 3px; }
.ob-wstrip { display: flex; gap: 4px; margin-top: 12px; }
.ob-wstrip i { flex: 1; height: 6px; border-radius: 2px; background: rgba(255,255,255,.2); transition: background-color .3s; }
.ob-wstrip i.on { background: #fff; }
.ob-dialtile { padding: 20px; }
.ob-dialtile .ob-dial { right: auto; left: 26.5px; top: 33px; }
.ob-dialcap { position: absolute; left: 20px; bottom: 18px; }
.ob-wrow { padding: 10px 16px 12px; }
.ob-wrow_t { --d: 2.3px; height: 27px; }
.ob-wstrip { margin-top: 8px; }
/* with the plate on the right, the note keeps clear of the figure */
.ob:has(.ob-plate) .ob-note { max-width: 132px; }

/* monochrome: the Bathhouse card ground stays in its own orange family too (no teal behind the tiles) */
.house-bathhouse { --g1b: #6AB9CE; --g2: #0A3140; --g3: #03090D; }

/* ---------- a trend line in the hero: it draws left to right, then the end point pulses */
.ob-chart { position: absolute; right: 20px; top: 20px; width: 250px; height: 72px; }
.ob-chart_w { height: 100%; overflow: hidden; }
.ob-chart svg { display: block; overflow: visible; }
.ob-chart .base { stroke: rgba(255,255,255,.5); stroke-width: 1; stroke-dasharray: 2 5; }
.ob-chart .line { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.ob-chart .dot { fill: #fff; opacity: 0; transition: opacity .3s; }
.ob-chart .pulse { fill: none; stroke: #fff; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ob-chart_w.is-done { overflow: visible; }
.ob-chart_w.is-done .dot { opacity: 1; }
.ob-chart_w.is-done .pulse { animation: ob-ping 1.8s ease-out infinite; }
@keyframes ob-ping { from { transform: scale(1); opacity: .8; } to { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ob-chart_w.is-done .pulse { animation: none; } }

/* ---------- the Clinic's age tile: the chart is the subject */
.ob--age { padding: 22px; }
.ob-age { position: absolute; left: 22px; top: 22px; width: 170px; }
.ob-age_n { display: flex; align-items: flex-end; gap: 10px; margin-top: 20px; --d: 7px; }
.ob-delta { margin-top: 16px; font-size: 14px; line-height: 1.3; opacity: .92; }
.ob-delta b { font-weight: 300; font-size: 26px; line-height: 1; letter-spacing: -.4px; margin-right: 2px; font-variant-numeric: tabular-nums; }
.ob-agechart { position: absolute; right: 16px; top: 20px; width: 282px; height: 140px; }
.ob-agechart .ob-chart_w { height: 100%; overflow: hidden; }
.ob-agechart .ob-chart_w.is-done { overflow: visible; }
.ob-agechart svg { display: block; overflow: visible; }
.ob-agechart .grid { stroke: rgba(255,255,255,.12); stroke-width: 1; }
.ob-agechart .cal { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 1.2; stroke-dasharray: 3 5; stroke-linecap: round; }
.ob-agechart .line { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.ob-agechart .end { fill: none; stroke: rgba(255,255,255,.8); stroke-width: 1.2; }
.ob-agechart .dot { fill: #fff; opacity: 0; transition: opacity .3s; }
.ob-agechart .pulse { fill: none; stroke: #fff; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ob-agechart .is-done .dot { opacity: 1; }
.ob-agechart .is-done .pulse { animation: ob-ping 1.8s ease-out infinite; }
.ob-agechart text { fill: #fff; font-size: 15px; font-weight: 300; dominant-baseline: central; }
.ob-agechart text.cap { font-size: 11px; opacity: .7; }
.ob-mks { position: absolute; left: 22px; right: 22px; bottom: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.ob-mk_v { font-size: 20px; font-weight: 300; line-height: 1.1; letter-spacing: -.3px; margin-top: 4px; }
.ob-mk .ob-bar { margin-top: 18px; }
.ob-age_n { margin-top: 16px; --d: 6.4px; }
.ob-delta { margin-top: 14px; white-space: nowrap; }

/* the age tile's left column: label, the figure, one line beneath. Kept clear of the chart and the divider. */
.ob-age { width: 176px; }
.ob-age_n { margin-top: 18px; --d: 6.4px; }
.ob-delta { margin-top: 16px; white-space: nowrap; display: flex; align-items: baseline; gap: 7px; }
.ob-delta b { margin-right: 0; }
.ob-agechart { right: 18px; width: 268px; }
.ob-agechart svg { width: 268px; height: 133px; }
.ob-agechart { height: 133px; top: 24px; }

/* ================= booking, recomposed =================
   The photograph fills the card and is recognisable, taking the house's own colour so it stays in
   the family. The booking panel sits across the foot on the same grid as every other card. */
.ovita-ui-card_bg { left: -4%; top: -4%; width: 108%; height: 108%; filter: grayscale(1) contrast(1.15) brightness(1.05) blur(2px); mix-blend-mode: luminosity; opacity: .78; }
.ovita-ui-card.has-photo::after { background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 40%, rgba(0,0,0,.5) 100%); }
.ob--book { padding: 20px; }
.ob-book_top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ob--book .ob-big { position: relative; left: auto; bottom: auto; margin-top: 12px; --d: 5.2px; }
.ob-book_r { text-align: right; display: flex; flex-direction: column; gap: 5px; max-width: 230px; }
.ob--book .ob-rail { margin-top: 16px; height: 46px; }
.ob--book .ob-slide { position: relative; left: auto; right: auto; bottom: auto; margin-top: 10px; height: 42px; border-radius: 21px; }
.ob--book .ob-slide::before { width: calc(42px + (100% - 42px) * var(--p, 0)); border-radius: 21px; }
.ob--book .ob-slide_k { top: 4px; left: calc(4px + (100% - 42px) * var(--p, 0)); width: 34px; height: 34px; }
