/* Hainy Hydrant · Website 3.1 · property scene ("This is your home")
   Pairs with /assets/js/property-scene.js. Uses site.css tokens when present. */

.ps { --ps-ink: var(--ink, #141E38); --ps-navy: var(--navy, #1E2B4D); --ps-bone: var(--bone, #F6F4EF); --ps-muted: var(--muted, #5E6472);
  --ps-ember: #E8742A; --ps-water: #2F7FC1; --ps-red: var(--red, #AF1B1A); --ps-ground: #ECE9E1;
  position: relative; color: var(--ps-ink); }
.ps-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; }

/* ── Stage ── */
.ps-stage { position: relative; display: flex; flex-direction: column; background: var(--ps-ground); border-radius: var(--r, 18px); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(20,30,56,.06); }
.ps-svg { display: block; width: 100%; flex: 1 1 0; min-height: 0; max-width: none; }
/* example chip: one line, pinned bottom-left over the street band */
.ps-example { position: absolute; z-index: 2; left: 8px; bottom: 8px; max-width: calc(100% - 16px); margin: 0;
  padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(20,30,56,.12);
  font-size: 12px; line-height: 1.35; font-weight: 600; color: var(--ps-ink); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-stage:focus-visible { outline: 3px solid var(--ps-navy); outline-offset: 3px; }

/* ── Layers: hidden until their step ── */
.ps [data-from] { opacity: 0; }
.ps [data-from].is-on { opacity: 1; }
.ps.pkg-starter .ps-hero, .ps.pkg-hero .ps-starter { display: none; }
.ps-brush { opacity: .78; }
.ps.s-ge-5 .ps-brush { opacity: 1; }
.ps.s-ge-5 .ps-neighbor { opacity: .9; }

/* pins: amber rings, blue checks once covered (step 7) */
.ps-pin { opacity: 0; }
.ps.s-ge-4 .ps-pin { opacity: 1; }
.ps-pin-a, .ps-pin-ok { transform: scale(min(var(--u, 1), 1.5)); }
.ps-pin-ok { opacity: 0; }
.ps.s-ge-7 .ps-cov-back .ps-pin-ok, .ps.s-ge-7.pkg-hero .ps-cov-front .ps-pin-ok { opacity: 1; }
.ps.s-ge-7 .ps-cov-back .ps-pin-a, .ps.s-ge-7.pkg-hero .ps-cov-front .ps-pin-a { opacity: 0; }

/* embers settle on the pins; covered ones go out at step 7 */
.ps-ember { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(min(var(--u, 1), 1.7)); }
.ps.s-ge-5 .ps-ember { opacity: .95; transform: scale(min(var(--u, 1), 1.7)); }
.ps.s-ge-7 .ps-ember.ps-cov-back, .ps.s-ge-7.pkg-hero .ps-ember.ps-cov-front { opacity: 0; }

/* hydrant drops in */
.ps-hyd-body { transform-origin: 150px 670px; transform: scale(0); }
.ps.s-ge-6 .ps-hyd-body { transform: none; }

/* spotlight ring for the current step */
.ps-spot { opacity: 0; stroke-width: calc(var(--u, 1) * 2px); }
.ps-spot.is-on { opacity: 1; }

/* ── Labels ── */
.ps-lab, .ps-tiny { font-family: var(--font, "Inter", system-ui, sans-serif); }
.ps-lab { opacity: 0; font-size: calc(var(--u, 1) * 15px); font-weight: 650; letter-spacing: -.005em; fill: var(--ps-ink);
  paint-order: stroke; stroke: var(--ps-bone); stroke-width: calc(var(--u, 1) * 5px); stroke-linejoin: round; pointer-events: none; }
.ps-lab.is-on { opacity: 1; }
.ps-lab-big { font-size: calc(var(--u, 1) * 18px); font-weight: 750; }
.ps-lab-dark { fill: #fff; stroke: var(--ps-navy); }
.ps-lab-muted { fill: var(--ps-muted); font-weight: 600; font-size: calc(var(--u, 1) * 13px); }
.ps-lab-ember { fill: #A84A12; }
.ps-lab-blue { fill: #1D5E96; }
.ps-lab-red { fill: var(--ps-red); font-weight: 750; }
.ps-lab-bg { opacity: 0; fill: var(--ps-bone); pointer-events: none; }
.ps-lab-bg.is-on { opacity: 1; }
.ps-reg-lead { opacity: 0; stroke-width: calc(var(--u, 1) * 1.5px); }
.ps-reg-lead.is-on { opacity: 1; }
.ps-tiny { font-size: calc(var(--u, 1) * 11px); font-weight: 600; fill: var(--ps-muted); }
.ps-scale, .ps-north { opacity: .9; }
/* no "Example" wind label in this frame: no wind arrow either */
.ps.ps-nowind .ps-wind { display: none; }
/* tap: the long wind label sits where the scale bar is, so the scale bar steps aside from step 5 on */
.ps--tap.s-ge-5 .ps-scale { display: none; }
/* any mode: no scale bar while the long wind label shows; tap final frame: no north arrow (clipped at the top) */
.ps.ps-windlong .ps-scale, .ps--tap[data-step="7"] .ps-north { display: none; }
/* tee-only frames (how-it-works): meter, tee, hydrant and the line on to the house */
.ps--tee .ps-hose, .ps--tee .ps-cone, .ps--tee .ps-pins, .ps--tee .ps-zone, .ps--tee .ps-check, .ps--tee .ps-check-lead, .ps--tee .ps-embers, .ps--tee .ps-wind { display: none; }

/* ── Motion (only when animating; fixed mode and reduced motion are instant) ── */
.ps-anim [data-from], .ps-anim .ps-lab, .ps-anim .ps-spot { transition: opacity .45s ease; }
.ps-anim .ps-brush, .ps-anim .ps-neighbor { transition: opacity .8s ease; }
.ps-anim .ps-pin { transition: opacity .35s ease calc(var(--i) * 140ms); }
.ps-anim .ps-pin-a, .ps-anim .ps-pin-ok { transition: opacity .4s ease calc(var(--i) * 90ms + 200ms), transform .2s; }
.ps-anim .ps-ember { transition: transform 1.9s cubic-bezier(.25,.6,.3,1) var(--d), opacity .6s ease var(--d); }
.ps-anim.s-ge-7 .ps-ember { transition: opacity .8s ease .9s; }
.ps-anim .ps-hyd-body { transition: transform .5s cubic-bezier(.3,1.5,.5,1) .1s; }
.ps-anim .ps-cone { transition: opacity .5s ease 1.1s; }
.ps-anim .ps-lab[data-k="fstream"], .ps-anim .ps-lab[data-k="bstream"] { transition: opacity .5s ease 1.1s; }
.ps-anim.ps-going-back .ps-cone, .ps-anim.ps-going-back .ps-lab { transition-delay: 0s; }
.ps-anim .ps-flow { animation: ps-flow 2.4s linear infinite; }
.ps-anim .ps-spot.is-on { animation: ps-pulse 1.6s ease-in-out infinite; }
.ps-anim .ps-ember { animation: ps-flicker 1.4s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes ps-flow { to { stroke-dashoffset: -80; } }
@keyframes ps-pulse { 50% { stroke-opacity: .25; } }
@keyframes ps-flicker { to { filter: brightness(1.35); } }
.ps.ps-qa *, .ps.ps-qa { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .ps *, .ps *::before { transition: none !important; animation: none !important; }
}

/* ── Tap mode (phones, QR page) ── */
.ps--tap .ps-stage { height: min(48svh, 410px); touch-action: pan-y; cursor: pointer; user-select: none; -webkit-user-select: none; }
.ps--tap.ps--compact .ps-stage { height: min(52svh, 360px); }
@media (max-height: 700px) { .ps--tap .ps-stage { height: 44svh; } }
@media (max-width: 430px) { .ps--tap .ps-stage, .ps--tap.ps--compact .ps-stage { height: min(38svh, 300px); } }
@media (min-width: 700px) and (max-width: 899px) { .ps--tap .ps-stage { height: min(60svh, 560px); } }
/* step 6 photo sits in the caption row, so it never covers the drawing */
.ps-cap .ps-inset { float: right; width: 104px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 2px 0 6px 12px;
  border-radius: 10px; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(20,30,56,.18); }
.ps-caps { display: grid; margin-top: 14px; }
/* tap: only the current caption takes space (min-height = a short 2 to 3 line caption), so short steps don't leave a gap */
.ps--tap .ps-caps { display: block; min-height: 132px; }
.ps--tap .ps-cap { display: none; }
.ps--tap .ps-cap.is-on { display: block; animation: ps-capin .3s ease; }
@keyframes ps-capin { from { opacity: 0; } }
.ps-cap { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .3s ease; min-width: 0; }
.ps-cap .ps-toggle { margin-top: 12px; }
.ps-cap .ps-pkg-line { margin: 8px 0 0; font-size: .92rem; }
.ps-cap.is-on { visibility: visible; opacity: 1; }
.ps-cap .ps-h, .ps-step .ps-h { font-family: var(--display, inherit); font-size: 1.2rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 6px; }
.ps-cap .ps-b { font-size: .94rem; line-height: 1.45; color: var(--ps-muted); margin: 0; }
.ps-c { display: inline-block; margin: 10px 0 0; padding: 6px 12px; border-radius: 10px; background: var(--ps-bone); font-size: .85rem; line-height: 1.4; font-weight: 600; color: var(--ps-ink); }
@media (max-height: 700px) { .ps--tap .ps-cap .ps-c { display: none; } }
.ps-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; min-height: 48px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--ps-bone); color: var(--ps-ink); font-weight: 700; font-size: .98rem; }
.ps-btn svg { width: 20px; height: 20px; }
.ps-next { background: var(--ps-navy); color: #fff; padding: 0 16px 0 20px; }
.ps-btn:disabled { opacity: .35; cursor: default; }
.ps-btn:focus-visible, .ps-dot:focus-visible, .ps-tg:focus-visible { outline: 3px solid var(--ps-navy); outline-offset: 2px; }
.ps-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.ps-count { font-size: .8rem; font-weight: 700; color: var(--ps-muted); letter-spacing: .02em; }
.ps-dots { display: flex; justify-content: center; }
.ps-dot { position: relative; display: block; width: 24px; height: 44px; padding: 0; border: 0; background: none; }
/* tap: dots are progress marks only (Back / Next step), so they can sit closer */
.ps--tap .ps-dot { width: 16px; height: 16px; }
.ps-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #C9CCD3; transition: background .2s, transform .2s; }
.ps-dot.is-on::after { background: var(--ps-navy); transform: scale(1.35); }
@media (max-width: 380px) { .ps--tap .ps-dot { width: 14px; } .ps-btn { padding: 0 12px; } }
/* last step: the red "Book" button replaces Next; "Start over" becomes a small text link */
.ps-restart, .ps-book { display: none; }
.ps-controls.is-last { flex-wrap: wrap; }
.ps-controls.is-last .ps-next { display: none; }
.ps-controls.is-last .ps-restart { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; padding: 0 6px; border: 0; background: none; color: inherit; font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ps-controls.is-last .ps-mid { margin-left: auto; }
.ps-controls.is-last .ps-book { display: inline-flex; order: 5; flex: 1 1 100%; min-height: 52px; }
.ps--tap .ps-extras .ps-cta .btn { display: none; }
/* tap: the Ultra 360 line would sit under the sticky Call / Book bar; the package cards below carry Ultra 360 */
.ps--tap .ps-ultra { display: none; }
.ps--tap .ps-example { bottom: 4px; }
.ps--tap .ps-extras .ps-cta { margin-top: 0; }

/* ── Step 7 extras: package toggle + CTA ── */
.ps--tap .ps-extras { display: none; margin-top: 16px; }
.ps--tap .ps-extras.is-on { display: block; }
.ps-extras { margin-top: 18px; }
.ps-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--ps-bone); box-shadow: inset 0 0 0 1px rgba(20,30,56,.08); }
.ps-tg { min-height: 44px; min-width: 104px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ps-ink); font-weight: 700; font-size: .95rem; }
.ps-tg[aria-pressed="true"] { background: var(--ps-navy); color: #fff; box-shadow: 0 2px 8px rgba(20,30,56,.2); }
.ps-pkg-line { margin: 10px 0 4px; font-weight: 600; font-size: .98rem; }
.ps-ultra { margin: 0 0 4px; font-size: .9rem; }
.ps-ultra a { color: var(--ps-navy); }
.ps-cta { margin-top: 14px; }
.ps-cta .btn { width: 100%; max-width: 380px; }
.ps-cta-sub { margin: 8px 0 0; font-size: .9rem; color: var(--ps-muted); }
.ps-proof { margin: 4px 0 0; font-size: .85rem; color: var(--ps-muted); }
.ps-selfcheck { margin: 14px 0 0; font-size: .85rem; line-height: 1.5; color: var(--ps-muted); max-width: 34em; }

/* ── Scroll mode (desktop story) ── */
.ps--scroll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ps-steps { list-style: none; margin: 0; padding: 0; }
.ps-step { position: relative; min-height: 50vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0 24px 56px; opacity: .35; transition: opacity .35s ease; cursor: pointer; }
.ps-step.is-on { opacity: 1; cursor: default; }
.ps-step:first-child { min-height: 50vh; }
.ps-step:last-child { min-height: 92vh; }
.ps-step-in { position: relative; }
.ps-num { position: absolute; left: -56px; top: 2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ps-bone); color: var(--ps-ink); font-weight: 750; font-size: .95rem; }
.ps-step.is-on .ps-num { background: var(--ps-navy); color: #fff; }
.ps-step .ps-h { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 10px; }
.ps-step .ps-b { font-size: 1.08rem; line-height: 1.55; color: var(--ps-muted); margin: 0; max-width: 30em; }
.ps-inset-d { width: 160px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; margin-top: 16px; box-shadow: var(--shadow, 0 8px 24px rgba(20,30,56,.12)); }
.ps-figure { position: sticky; top: calc(var(--nav-h, 68px) + 24px); height: calc(100svh - var(--nav-h, 68px) - 48px); display: flex; flex-direction: column; }
.ps--scroll .ps-stage { flex: 1; min-height: 0; }
.ps--scroll .ps-dots { margin-top: 8px; }
.ps--scroll.s-ge-7 .ps-fig-cta { visibility: hidden; }
.ps-fig-cta { align-self: center; display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-weight: 700; font-size: .95rem; color: var(--red, #AF1B1A); text-decoration: underline; text-underline-offset: 3px; }

/* ── Fixed mode (thumbnails, package pages) ── */
.ps--fixed .ps-svg { flex: none; aspect-ratio: var(--ps-ar, 650 / 860); height: auto; }
.ps--fixed .ps-example { font-size: 11px; padding: 4px 9px; }
