/* The Homes page layer (Camille, 18 Oct 2026). Scoped to this page; loaded by homes/index.html (and the reference copy
   homes/index.trial.html). Shared files (structure.css, homes-floorplates.css, residence-family.css) are untouched.
   Full page pass approved by Camille 18 Oct 3:34 pm, preview only, not published. Rules: DESIGN.md "Living style rules". */

/* ---- 1. Residence list: promoted from the 1:23 pm trial (homes.trial.css), approved by Camille 3:34 pm, narrower rows accepted. */
#homes-overview {
  --sweep-fill:#E9E1C5; --bark:#332F24; --ease-sable:var(--m-curve,cubic-bezier(.45,0,.55,1));
  --dur-quick:400ms; --dur-base:600ms;
  --sweep-dur-in:var(--dur-base); --sweep-dur-out:var(--dur-quick); --sweep-ease:var(--m-curve,cubic-bezier(.45,0,.55,1));
  --sweep-bleed:20px; --icon-expand:1.2;
  --active:#E8D48A; /* one gold: the plate locator, replacing #d8c17a */
}
@media(max-width:720px) { #homes-overview { --sweep-bleed:16px; } }

/* Rows hug their content so the sweep bleeds evenly past the number, facts and arrow (text position unchanged). */
#homes-overview .residences { justify-items:start; }
#homes-overview .residence {
  position:relative; isolation:isolate; color:var(--bark);
  transition:color var(--sweep-dur-out) var(--sweep-ease);
}
#homes-overview .residence::before {
  content:''; position:absolute; inset:0 calc(-1 * var(--sweep-bleed)); z-index:-1; pointer-events:none;
  background:var(--sweep-fill); transform:scaleX(0); transform-origin:left;
  transition:transform var(--sweep-dur-out) var(--sweep-ease);
}
#homes-overview .residence-name { color:var(--bark); }
#homes-overview .residence-beds { transition:color var(--sweep-dur-out) var(--sweep-ease); }

/* Sweep shows on hover, keyboard focus, press and when the row's plate unit is hovered (.is-active). Press keeps the same
   geometry and keeps easing in: no snap, no size jump. */
#homes-overview .residence:is(:hover,:focus-visible,:active,.is-active)::before { transform:scaleX(1); transition-duration:var(--sweep-dur-in); }
#homes-overview .residence:is(:hover,:focus-visible,:active,.is-active),
#homes-overview .residence:is(:hover,:focus-visible,:active,.is-active) .residence-beds { color:var(--bark); transition-duration:var(--sweep-dur-in); }
#homes-overview .residence:focus-visible { outline:1px solid var(--bark); outline-offset:4px; background:transparent; box-shadow:none; }

/* Trailing arrow: visible at rest like the residence pages' arrows (no fade), grows 1.2x from its own centre with the sweep.
   Cancels the site-wide 4 px diagonal nudge on this list. */
#homes-overview .residence-detail svg { opacity:1; overflow:visible; color:var(--bark); transition:none; }
#homes-overview .residence-detail svg path {
  transform:none; transform-box:view-box; transform-origin:50% 50%;
  transition:transform var(--sweep-dur-out) var(--sweep-ease);
}
#homes-overview .residence:is(:hover,:focus-visible,:active,.is-active) .residence-detail svg path {
  transform:scale(var(--icon-expand)); transition-duration:var(--sweep-dur-in);
}

/* Plate locator: one gold, flat and solid, on the shared timing. Outline geometry unchanged. */
#homes-overview .floorplate__fill { transition:opacity var(--sweep-dur-out) var(--sweep-ease), fill var(--sweep-dur-out) var(--sweep-ease); }
#homes-overview .floorplate__fill.is-active { fill:var(--active); opacity:1; transition-duration:var(--sweep-dur-in); }
#homes-overview .floorplate__outline { stroke:var(--bark); transition:stroke-opacity var(--sweep-dur-out) var(--sweep-ease); }
#homes-overview .floorplate__outline.is-active { transition-duration:var(--sweep-dur-in); }

@media(prefers-reduced-motion:reduce) {
  #homes-overview .residence, #homes-overview .residence::before, #homes-overview .residence-beds,
  #homes-overview .residence-detail svg path, #homes-overview .floorplate__fill, #homes-overview .floorplate__outline { transition:none !important; }
  #homes-overview .residence:is(:hover,:focus-visible,:active,.is-active) .residence-detail svg path { transform:none; }
}

/* ---- 2. Even page indents beside the floor plates (Camille, 3:30 pm: keep the plates where they are; move only the left
   indent so it matches the right one). The plates keep their exact x and 460 px width: the floor grid gets an equal
   inline inset P = (column width) - 380 - gap - 460, the plate column is pinned at 460 px and the list column takes the
   rest, so the floor titles and lists start P further in and the left indent equals the indent right of the plate.
   Phone already reads 20 px | 20 px and is unchanged. */
@media (min-width:961px) {
  #homes-overview .floor {
    --homes-plate-gap:clamp(40px,calc(100vw - 980px),140px); /* the existing list to plate gap that sets the plate position */
    padding-inline:max(0px, calc(100% - 840px - var(--homes-plate-gap)));
    grid-template-columns:minmax(0,1fr) 460px;
    column-gap:40px;
  }
}
/* Tablet (681 to 900 px): the plate sits at 300 + 24 px and reaches its 460 px cap from about 855 px; above that the same
   equal inset applies. Below 855 px the indents already match. */
@media (min-width:855px) and (max-width:900px) {
  #homes-overview .floor {
    padding-inline:max(0px, calc(100% - 784px));
    grid-template-columns:minmax(0,1fr) 460px;
    column-gap:16px; /* was 24 px; keeps the list column wide enough for one line facts */
  }
}

/* ---- 3. Find your home at Sable: Register your interest follows the sweep button rules (Camille, 3:31 pm). DM Sable 1000,
   9 px, .14em capitals; 18 px label to arrow gap; 44 px target; pale #E9E1C5 sweep with bark text, 600 ms in, 400 ms out
   on --ease-sable, 20 px desktop / 16 px phone bleed (52 px high); arrow 12 px growing 1.2x in place, no nudge; 1 px bark
   focus; same fill on press with no size jump; no sticky sweep after a tap; reduced motion still. */
#homes-enquiry { --sweep-fill:#E9E1C5; --bark:#332F24; --ease-sable:var(--m-curve,cubic-bezier(.45,0,.55,1)); --sweep-dur-in:600ms; --sweep-dur-out:400ms; --sweep-ease:var(--m-curve,cubic-bezier(.45,0,.55,1)); --sweep-bleed:20px; --icon-expand:1.2; }
@media (max-width:720px) { #homes-enquiry { --sweep-bleed:16px; } }
#homes-enquiry .homes-enquiry__action {
  position:relative; isolation:isolate; display:inline-flex; align-items:center; justify-content:flex-start; gap:18px;
  min-height:44px; padding:0; color:var(--bark); opacity:1; text-decoration:none;
  font:1000 9px/1.4 var(--sans); letter-spacing:.14em; text-transform:uppercase;
  transition:color var(--sweep-dur-out) var(--sweep-ease);
}
#homes-enquiry .homes-enquiry__action:hover { opacity:1; }
#homes-enquiry .homes-enquiry__action::after { content:none; display:none; }
#homes-enquiry .homes-enquiry__action::before {
  content:""; position:absolute; z-index:-1; pointer-events:none; inset:-4px calc(-1 * var(--sweep-bleed));
  background:var(--sweep-fill); transform:scaleX(0); transform-origin:left;
  transition:transform var(--sweep-dur-out) var(--sweep-ease);
}
#homes-enquiry .homes-enquiry__action > svg { width:12px; height:12px; flex:none; overflow:visible; }
#homes-enquiry .homes-enquiry__action > svg path { transform:none; transform-box:view-box; transform-origin:50% 50%; transition:transform var(--sweep-dur-out) var(--sweep-ease); }
#homes-enquiry .homes-enquiry__action:is(:focus-visible,:active)::before { transform:scaleX(1); transition-duration:var(--sweep-dur-in); }
#homes-enquiry .homes-enquiry__action:is(:focus-visible,:active) > svg path { transform:scale(var(--icon-expand)); transition-duration:var(--sweep-dur-in); }
#homes-enquiry .homes-enquiry__action:is(:focus-visible,:active) { color:var(--bark); }
@media (hover:hover) and (pointer:fine) {
  #homes-enquiry .homes-enquiry__action:hover::before { transform:scaleX(1); transition-duration:var(--sweep-dur-in); }
  #homes-enquiry .homes-enquiry__action:hover > svg path { transform:scale(var(--icon-expand)); transition-duration:var(--sweep-dur-in); }
}
#homes-enquiry .homes-enquiry__action:focus-visible { outline:1px solid var(--bark); outline-offset:4px; background:transparent; box-shadow:none; }
@media (prefers-reduced-motion:reduce) {
  #homes-enquiry .homes-enquiry__action, #homes-enquiry .homes-enquiry__action::before, #homes-enquiry .homes-enquiry__action > svg path { transition:none; }
  #homes-enquiry .homes-enquiry__action > svg path { transform:none !important; }
}

/* ---- 4. Focus: 1 px bark everywhere on the page; the gold underlay and 6 px gold ring (homes-floorplates.css) are removed.
   Header and menu links keep their shared focus (sweep plus 1 px bark ring on the sweep). */
body.homes-page :is(main,.site-footer) :is(a,button):focus-visible:not(.overview-card) { background-color:transparent; box-shadow:none; outline:1px solid var(--bark,#332F24); outline-offset:4px; }
body.homes-page :is(.structure-header,.site-menu) :is(a,button):focus-visible { background-color:transparent; box-shadow:none; }
body.homes-page #homes-overview .floorplate__unit:focus-visible { outline:0; }

/* Header navigation is owned by structure.css. */

/* ---- 6. Footer links: pale sweep with bark text instead of the 75% dim (as approved on Interiors, 3:17 pm). */
.homes-page .site-footer { --footer-bleed:min(20px, calc(clamp(38px,4.2vw,74px) / 2)); }
@media (max-width:720px) { .homes-page .site-footer { --footer-bleed:16px; } }
/* Draw audit fix 3 (Camille 5:20 pm): footer sweep and colour on cubic-bezier(.45,0,.55,1), 700 ms in, 500 ms out. */
.homes-page .site-footer a { position:relative; isolation:isolate; opacity:1; transition:color 500ms cubic-bezier(.45,0,.55,1); }
.homes-page .site-footer a:hover { opacity:1; }
.homes-page .site-footer a::before { content:""; position:absolute; z-index:-1; pointer-events:none; inset:-4px calc(-1 * var(--footer-bleed)); background:#E9E1C5; transform:scaleX(0); transform-origin:left; transition:transform 500ms cubic-bezier(.45,0,.55,1); }
.homes-page .site-footer a:is(:focus-visible,:active)::before { transform:scaleX(1); transition-duration:700ms; }
.homes-page .site-footer a:is(:focus-visible,:active) { color:#332F24; transition-duration:700ms; }
@media (hover:hover) and (pointer:fine) {
  .homes-page .site-footer a:hover::before { transform:scaleX(1); transition-duration:700ms; }
  .homes-page .site-footer a:hover { color:#332F24; transition-duration:700ms; }
}

/* ---- 7. Opening text drop in: The Homes and the introduction ease in as one piece, opacity from 0 with a 10 px rise,
   850 ms on --ease-sable, 100 ms apart, as on the residences. The intro sits below the opening photo (about 1218 px down at
   1440), so homes-page.js plays it once when it first scrolls into view, as on Interiors. Without the script the text simply
   shows; reduced motion: no animation; no blur. */
@keyframes homes-drop-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:no-preference) {
  .homes-page #page-intro[data-drop="ready"] > div > * { opacity:0; }
  .homes-page #page-intro[data-drop="in"] > div > * { animation:homes-drop-in 850ms var(--m-curve,cubic-bezier(.45,0,.55,1)) both; }
  .homes-page #page-intro[data-drop="in"] > div > :nth-child(2) { animation-delay:100ms; }
}
.homes-page main { --motion-out:var(--m-curve,cubic-bezier(.45,0,.55,1)); --motion-calm:var(--m-curve,cubic-bezier(.45,0,.55,1)); }

/* ---- 8. Floor titles: residence section heading values, bark at 38 px / 1.05 (31 px on phone via the shared token). */
#homes-overview .floor-title { color:#332F24; }
@media (min-width:681px) { #homes-overview .floor-title { line-height:1.05; } } /* phone keeps .95 so the stacked plates do not move */

/* ---- 9. Closing rhythm: 104 px into Find your home at Sable on desktop, 72 px on phone, as on the residences. */
.homes-page .homes-contact--collage { padding-top:104px; }
@media (max-width:720px) { .homes-page .homes-contact--collage { padding-top:72px; } }

/* ---- 10. Page-wide image disclaimer in the closing illustration, word for word and styled as on the residence pages:
   9 px / 1.55 bark, 200 px wide, 52 px above the illustration's lower edge in its right paper margin; phone 20 px up. */
.homes-page .homes-closing-illustration { position:relative; margin:0; }
.homes-page .homes-closing-illustration .homes-illustration-note {
  position:absolute; inset:auto clamp(24px,4vw,64px) 52px auto; width:200px; margin:0; padding:0;
  color:#332F24; font:400 9px/1.55 var(--sans); letter-spacing:0; text-align:left;
}
@media (max-width:720px) {
  .homes-page .homes-closing-illustration { padding-bottom:32px; }
  .homes-page .homes-closing-illustration .homes-illustration-note { right:24px; bottom:20px; width:min(200px,calc(100% - 48px)); }
}

/* Leave a full header plus breathing room before the floor-plan sequence. */
.homes-page #homes-overview { --header-content-gap:64px; padding-top:calc(var(--header-h) + var(--header-content-gap)); scroll-margin-top:0; }
.homes-page #homes-overview .floor { scroll-margin-top:calc(var(--header-h) + var(--header-content-gap)); }
@media(max-width:720px) { .homes-page #homes-overview { --header-content-gap:32px; } }
/* Camille's supplied Homes introduction, 18 October 2026. Scoped copy hierarchy. */
.homes-page .page-intro .homes-intro-headline {
  max-width:760px; margin:52px 0 0; color:var(--white);
  font:350 clamp(32px,3.35vw,50px)/1.02 var(--serif);
  letter-spacing:-.035em; text-wrap:balance;
}
.homes-page .page-intro .homes-intro-support {
  max-width:640px; margin:28px 0 0;
  font:300 18px/1.6 var(--sans); letter-spacing:normal; text-wrap:pretty;
}
@media(max-width:720px) {
  .homes-page .page-intro .homes-intro-headline { max-width:330px; margin-top:40px; font-size:30px; }
  .homes-page .page-intro .homes-intro-support { max-width:330px; margin-top:24px; font-size:16px; }
}

/* Artist's impression on the opening picture, as the Home hero (Camille 24 Oct 2026: "need to add the same artist impression note
   as per home hero here as well"): the approved small, light vertical credit at the frame edge (home.css .home-hero-credit). */
.homes-page .media-plate--homes .homes-hero-credit {
 position:absolute; z-index:2; left:auto; right:12px; bottom:104px;
 margin:0; writing-mode:vertical-rl; text-orientation:sideways; -webkit-text-orientation:sideways; transform:rotate(180deg); /* every glyph turns with the line, so the apostrophe in Artist's never stands upright as a dash (24 Oct 2026) */
 color:rgba(255,253,248,.7); font:300 9px/1.2 var(--sans);
 letter-spacing:.025em; pointer-events:none;
}
@media(max-width:720px) {
 .homes-page .media-plate--homes .homes-hero-credit { right:8px; bottom:28px; font-size:8px; }
}
