/* Page reveals and existing layout rules. Cross-page handover: page-handover.css and .js. */
:root { --pm-ease:cubic-bezier(.45,0,.55,1); --pm-out:240ms; --pm-in:500ms; --pm-soft:700ms; --pm-rise:4px; --pm-stagger:80ms; }
@keyframes pm-fade-out { to { opacity:0; } }
@keyframes pm-fade-in { from { opacity:0; } }
@keyframes pm-fade-up { from { opacity:0; transform:translate3d(0,var(--pm-rise),0); } }
@supports not (view-transition-name: pm) { main { animation:pm-fade-in var(--pm-in) var(--pm-ease) both; } } /* no rise (23 Oct 2026) */

html.pm-js [data-pm]:not([data-pm-in]) { opacity:0; }
html.pm-js [data-pm="text"]:not([data-pm-in]) { transform:translate3d(0,var(--pm-rise),0); }
html.pm-js [data-pm="text"] { transition:opacity var(--pm-in) var(--pm-ease) var(--pm-delay,0ms), transform var(--pm-in) var(--pm-ease) var(--pm-delay,0ms); }
html.pm-js [data-pm="media"] { transition:opacity var(--pm-soft) var(--pm-ease) var(--pm-delay,0ms); }

@media (prefers-reduced-motion:reduce) {
 @view-transition { navigation: none; }
 ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation:none !important; }
 main { animation:none !important; }
 html.pm-js [data-pm] { opacity:1 !important; transform:none !important; transition:none !important; }
}

/* Drop ins join the Reveal (Homes batch 2 item 10, QA 19 Oct 2026, hb2-3). The older drop ins (850 ms, 10 px, ease-sable) on the
   residence intro, the /homes/ intro and the prompt line now play on the Reveal timing: fade up 4 px over 500 ms on
   cubic-bezier(.45,0,.55,1), 80 ms apart, at most 4 steps. Same trigger as before (first paint for the residence intro, in view for
   the /homes/ intro and the prompt line). Reduced motion: at rest, as before. */
@media (prefers-reduced-motion:no-preference) {
 html .fbtn-prompt[data-reveal="in"],
 html .g01-detail .page-intro--residence > div > *,
 html .homes-page #page-intro[data-drop="in"] > div > * { animation-name:pm-fade-up; animation-duration:var(--pm-in); animation-timing-function:var(--pm-ease); animation-delay:0ms; animation-fill-mode:both; }
 html .g01-detail .page-intro--residence > div > :nth-child(2), html .homes-page #page-intro[data-drop="in"] > div > :nth-child(2) { animation-delay:var(--pm-stagger); }
 html .g01-detail .page-intro--residence > div > :nth-child(3), html .homes-page #page-intro[data-drop="in"] > div > :nth-child(3) { animation-delay:calc(2 * var(--pm-stagger)); }
 html .g01-detail .page-intro--residence > div > :nth-child(n+4), html .homes-page #page-intro[data-drop="in"] > div > :nth-child(n+4) { animation-delay:calc(3 * var(--pm-stagger)); }
}

/* Plate timing (Homes batch 2 item 17, Camille 8:05 am: 'speed up the easing motion on the floor plate pickers slightly. Keep the
   ease (no drawing), just make it feel a touch quicker so it reads unhurried but not sluggish'). One token for every floor plate
   picker, /homes/ and the residence Explore residences plates: 560 ms in, 400 ms out (was 700 and 500, 20% quicker), same curve
   cubic-bezier(.45,0,.55,1), same draw. The EXPLORE button inside a plate follows the same token so it stays in step. */
:root { --plate-in:560ms; --plate-out:400ms; }
html body.hs-trial #homes-overview { --hs-in:var(--plate-in); --hs-out:var(--plate-out); --fbtn-in:var(--plate-in); --fbtn-out:var(--plate-out); }

/* Item 20 (Camille 8:14 am): the layout width never changes when a scroll lock or a page swap hides the scrollbar. The gutter is
   always reserved, so the header, plates and text keep their x. Trial pages; sitewide this moves to structure.css on promotion. */
html { scrollbar-gutter:stable; }
/* Interiors batch 3 handoff (8:35 am), trial pages only. (a) The CLOSE word uses the component focus state only (eases to
   full and replays the word crossfade); the pages' own square focus outlines are switched off on it. (b) The site menu
   Close is the shared fbtn-x on its white variant; the menu's generic button type is not applied to it. */
html body .fbtn-x.fbtn-x:is(:focus,:focus-visible) { outline:none !important; box-shadow:none !important; }
.site-menu button.fbtn-x[data-menu-close] { padding:0; font:1000 10px/1 var(--sans,"DM Sable",Arial,sans-serif); letter-spacing:.14em; }
/* Button spacing rule (Camille 8:46 am, all pages): text to button row about 1.75x the old gap, buttons at least 48 px apart.
   Provisional trial tokens until the Interiors worker's exact DESIGN.md values land; one place to change them. */
:root { --text-to-buttons:56px; --button-gap:48px; } @media (max-width:720px) { :root { --text-to-buttons:40px; } } /* item 39 final (DESIGN.md 8:46 rule): mirrors structure.css */

/* Phone shows the end state (DESIGN.md 3.6: "Phone, reduced motion and no script show the end state"; Camille 22 Oct 2026:
   "verify PHONE DESIGN - so that it has its own functionality appropriately"). On phone nothing enters as it scrolls: the
   older page reveal ([data-pm]), the frame button prompt drop in and the residence intro drop are at rest. The Home hero
   lockup arrival is the brand moment and is not a scroll entrance, so it is unchanged. */
@media (max-width:720px) {
 html.pm-js [data-pm] { opacity:1 !important; transform:none !important; transition:none !important; }
 html .fbtn-prompt[data-reveal] { opacity:1 !important; animation:none !important; }
 html .g01-detail .page-intro--residence > div > *, html .homes-page #page-intro[data-drop="in"] > div > * { animation:none !important; opacity:1 !important; transform:none !important; }
}

/* Phone end state, continued: the older data-drop entrances (Homes and Design intros, the Place map head) are at rest too. */
@media (max-width:720px) {
 html .homes-page #page-intro[data-drop] > div > *,
 html .interiors-materials-page .page-intro[data-drop] > div > *,
 html .place-map[data-drop] :is(.place-map__head > *, .place-map__row, .place-map__frame, .place-map__strip) { opacity:1 !important; transform:none !important; animation:none !important; transition:none !important; }
}

