/* Promoted from homes-select.trial.css, Camille 6:19 am approval. */
/* Item 45 trial (Camille, 19 Oct 2026, 5:28 am): framed passage for selecting a home on the floor plates.
   Trial page only (/homes/index.trial.html); the live /homes/ page and the shared study files are unchanged.
   Same gesture as the approved button: one curve cubic-bezier(.45,0,.55,1), 700 ms in, 500 ms out, transitions only so
   leaving part way reverses from where it is. The plates are not moved or resized.
   Camille 5:41 am: 'the issues is that it introduces another line? what about existing lines?' Default now traces the
   home's own wall: a duplicate of the exact perimeter path, same 1.15 unit width (the plan's perimeter stroke), stacked
   on the wall and revealed clockwise from the top left in a deeper bark, so the existing line itself deepens.
   ?seq=inset keeps the earlier separate 1 px line 5 px (phone 4 px) inside the outline for comparison. */
body.hs-trial #homes-overview { --hs-pale:#E9E1C5; --hs-ease:cubic-bezier(.45,0,.55,1); --hs-in:700ms; --hs-out:500ms; --hs-trace:#2b2820; }

/* The drawn line replaces the live gold fill and instant outline as the one response. */
body.hs-trial #homes-overview .floorplate__fill.is-active { fill:var(--fill); opacity:.24; }
body.hs-trial #homes-overview .floorplate__outline,
body.hs-trial #homes-overview .floorplate__outline.is-active { stroke-opacity:0; transition:none; }
body.hs-trial #homes-overview .floorplate__fill { transition:fill var(--hs-out) var(--hs-ease), opacity var(--hs-out) var(--hs-ease); }
body.hs-trial #homes-overview .floorplate__fill.hs-on { fill:var(--hs-pale); opacity:1; transition-duration:var(--hs-in); }

/* Default (Camille 6:00 am): the whole home, balcony and courtyard included, fills as one shape in the one gold #E8D48A,
   solid, fading in with the trace. The under plan pale warm is not used in this mode. */
body.hs-trial.hs-seq-trace #homes-overview .floorplate__fill.hs-on { fill:var(--fill); opacity:.24; }
/* Camille 7:03 am: fill-opacity, not opacity. An opacity fade in the plan's SVG makes Chrome composite and resample it
   for the length of the draw, which softened every wall by half a pixel while the trace ran. */
body.hs-trial #homes-overview .hs-gold { fill:var(--hs-gold,#E8D48A); stroke:none; fill-opacity:0; pointer-events:none; transition:fill-opacity var(--hs-out) var(--hs-ease); }
body.hs-trial #homes-overview .hs-gold.hs-on { fill-opacity:var(--hs-gold-a,1); transition-duration:var(--hs-in); }

/* The line: one continuous stroke, normalised so it travels at an even speed round corners and arcs. */
body.hs-trial #homes-overview .hs-draw { fill:none; stroke:var(--bark,#332F24); stroke-linecap:butt; stroke-linejoin:miter; stroke-dasharray:1 1.01; stroke-dashoffset:1.005; transition:stroke-dashoffset var(--hs-out) var(--hs-ease); pointer-events:none; }
body.hs-trial #homes-overview .hs-draw.hs-on { stroke-dashoffset:0; transition-duration:var(--hs-in); }
/* Default: the wall itself. Same geometry and width as the drawn perimeter, so only its tone changes as the trace passes. */
/* Camille 6:46 am: the trace starts and closes on a wall corner (the path runs on 0.05 units past the start so the close
   is a mitre, not two caps); the rest offset sits just past the start so no zero length dash shows at rest. */
body.hs-trial #homes-overview .hs-draw.hs-wall { stroke:var(--hs-trace); stroke-width:1.15; stroke-linecap:butt; stroke-linejoin:miter; stroke-miterlimit:4; }
/* Camille 7:03 am: one geometry for wall, gold and trace. The home walls are drawn here (2 px, set in user units by the
   script) from the same snapped vertices as the trace, mitred the same way, so the moving head never shows a second edge. */
body.hs-trial #homes-overview .hs-rest { fill:none; stroke:#3d3a28; stroke-width:.8; stroke-linecap:butt; stroke-linejoin:miter; stroke-miterlimit:4; pointer-events:none; }

/* The number rises in step (4 px). */
body.hs-trial #homes-overview .hs-label { transform:translate(0,0); transition:transform var(--hs-out) var(--hs-ease); }
body.hs-trial #homes-overview .hs-label.hs-on { transform:translate(0, calc(var(--hs-u,1) * -4px)); transition-duration:var(--hs-in); }

/* The arrow passes in along its own diagonal through a 12 px window, as on the button. */
body.hs-trial #homes-overview .hs-cue { pointer-events:none; }
body.hs-trial #homes-overview .hs-arrow path { fill:none; stroke:var(--bark,#332F24); stroke-width:1.25; stroke-linecap:square; }
body.hs-trial #homes-overview .hs-arrow { opacity:0; transform:translate(-12px,12px); transition:transform var(--hs-out) var(--hs-ease), opacity var(--hs-out) var(--hs-ease); }
body.hs-trial #homes-overview .hs-cue.hs-on .hs-arrow { opacity:1; transform:translate(0,0); transition-duration:var(--hs-in); }
/* Default cue (Camille 5:56 am): the number crossfades out to one compact bark frame button centred in the home.
   Number out first, button 80 ms behind; on leave the button goes first and the number returns 80 ms behind. */
body.hs-trial.hs-cue-button #homes-overview .hs-label { fill-opacity:1; transition:transform var(--hs-out) var(--hs-ease) 80ms, fill-opacity var(--hs-out) var(--hs-ease) 80ms; }
body.hs-trial.hs-cue-button #homes-overview .hs-label.hs-on { fill-opacity:0; transition-duration:var(--hs-in); transition-delay:0ms; }
body.hs-trial #homes-overview .hs-btns { position:absolute; inset:0; z-index:4; pointer-events:none; }
body.hs-trial #homes-overview .hs-btn { position:absolute; margin:0; padding:0; min-height:0; gap:var(--fbtn-gap,18px); opacity:0; transform:translate(-50%,calc(-50% + 4px)); transition:transform var(--hs-out) var(--hs-ease), opacity var(--hs-out) var(--hs-ease); pointer-events:none; }
body.hs-trial #homes-overview .hs-btn.hs-on { opacity:1; transform:translate(-50%,-50%); transition-duration:var(--hs-in); transition-delay:80ms; }
body.hs-trial #homes-overview .hs-btn :is(.fbtn__label,.fbtn__icon) { transform:none; transition:none; }
/* Arrow by convention (Camille 6:00 am): the frame button's own diagonal passage and crossfade, exactly its hover values from
   frame-button.css (a1 leaves up right, a2 arrives from bottom left, --fbtn-in / --fbtn-out on --fbtn-ease). The home, not
   the button, is hovered, so the same declarations are keyed to the home's state; 80 ms behind, with the button. */
body.hs-trial #homes-overview .hs-btn.hs-on .fbtn__a1 { opacity:0; transform:translate3d(100%,-100%,0); transition-duration:var(--fbtn-in); transition-delay:80ms; }
body.hs-trial #homes-overview .hs-btn.hs-on .fbtn__a2 { opacity:1; transform:translate3d(0,0,0); transition-duration:var(--fbtn-in); transition-delay:80ms; }

/* ?cue=stack (Camille 5:47 am): EXPLORE under the number, arrow on the same line at 18 px; both fade up 4 px together
   and the arrow grows 1.2x in sync, as the button icon rule. */
body.hs-trial #homes-overview .hs-explore { fill:var(--bark,#332F24); }
body.hs-trial #homes-overview .hs-grow path { fill:none; stroke:var(--bark,#332F24); stroke-width:1.25; stroke-linecap:square; }
body.hs-trial #homes-overview .hs-lift { opacity:0; transform:translate(0,4px); transition:transform var(--hs-out) var(--hs-ease), opacity var(--hs-out) var(--hs-ease); }
body.hs-trial #homes-overview .hs-cue.hs-on .hs-lift { opacity:1; transform:translate(0,0); transition-duration:var(--hs-in); }
body.hs-trial #homes-overview .hs-grow { transform-box:fill-box; transform-origin:50% 50%; transform:scale(1); transition:transform var(--hs-out) var(--hs-ease); }
body.hs-trial #homes-overview .hs-cue.hs-on .hs-grow { transform:scale(1.2); transition-duration:var(--hs-in); }

/* The hint steps back once a home is chosen. */
body.hs-trial #homes-overview .floorplate__help { transition:opacity var(--hs-out) var(--hs-ease); }
body.hs-trial #homes-overview .floorplate.hs-has .floorplate__help { opacity:0; transition-duration:var(--hs-in); }

/* Reduced motion: the selected state appears at once, fully drawn, with no travel. */
@media (prefers-reduced-motion:reduce) {
 body.hs-trial #homes-overview :is(.floorplate__fill,.hs-gold,.hs-draw,.hs-label,.hs-arrow,.hs-lift,.hs-grow,.hs-btn,.floorplate__help) { transition:none !important; }
 body.hs-trial #homes-overview :is(.hs-arrow,.hs-lift) { transform:none !important; }
 body.hs-trial #homes-overview .hs-btn { transform:translate(-50%,-50%) !important; }
}

/* Phone (Camille 22 Oct 2026, floorplate picker "not working for phone"; DESIGN.md 3.7): one tap opens the home, so there is
   no preview to read. The tapped home fills and draws its walls with its number still on it, then the page dissolves to it.
   The Explore button (its frame sat off its words on phone) is not shown on phone. */
@media (max-width:720px) {
 body.hs-trial #homes-overview .hs-btn { display:none; }
 body.hs-trial.hs-cue-button #homes-overview .hs-label.hs-on { fill-opacity:1 !important; }
}
