/* Homes: the blue-hour look. Loaded after style.css and motion.css on sites/homes only.
   Syne headings (wide, geometric, unmistakable), DM Sans text, dusk blue and
   window-light amber, a thin architectural frame around
   the film, and the text in one column on the right so the house stays in
   view. Motion: text comes on like the lights in a house at dusk, packages
   wipe in like a sliding door, lines draw like a floor plan. */
body.homes{
  --display:"Syne","DM Sans",system-ui,sans-serif;
  --sans:"DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --serif:var(--display);
  --dusk:#14213a; --glow:#f2c38b; --glow-lt:#f8dcb6;
  --gold:var(--glow); --gold-deep:var(--glow);
}
body.cine.homes{background:#0b1322;--brand:var(--glow);--on-brand:var(--dusk)}
body.homes h1,body.homes h2,body.homes h3{font-family:var(--display);font-weight:700;font-stretch:100%;letter-spacing:-.03em}
body.homes .film h1{font-family:var(--sans);font-stretch:100%;letter-spacing:0}
body.homes h2{font-size:clamp(40px,4.8vw,68px);line-height:.98;max-width:14ch;margin-bottom:16px}
body.homes h3{font-size:24px;letter-spacing:-.015em}
body.homes .brand{font-family:var(--display);font-weight:700;letter-spacing:-.02em;font-size:21px}

/* The film: a dusk sky until the footage plays, a blue tint over it after */
body.homes .backdrop{background:#0b1424;background-image:
  radial-gradient(70% 45% at 28% 100%,rgba(242,195,139,.34),rgba(242,195,139,0) 70%),
  linear-gradient(to bottom,#0a1222 0%,#18284a 55%,#33456a 100%)}
.has-film body.homes .backdrop .shade{background:
  linear-gradient(to top,rgba(8,14,28,.62) 0%,rgba(8,14,28,.1) 42%,rgba(8,14,28,0) 60%),
  linear-gradient(to bottom,rgba(8,14,28,.5) 0%,rgba(8,14,28,0) 16%),
  rgba(10,18,36,.3)}

/* The frame: a hairline inset around the whole screen, like a window */
body.cine.homes::after{content:"";position:fixed;inset:14px;border:1px solid rgba(255,255,255,.34);pointer-events:none;z-index:11}
.mo body.cine.homes::after{animation:frame-in 1.6s cubic-bezier(.7,0,.2,1) both}
@keyframes frame-in{from{inset:50%;opacity:0}}
body.cine.homes header.top{top:14px;left:14px;right:14px}
body.cine.homes header.top.scrolled{background:rgba(12,20,38,.42)}
body.cine.homes .film .over{padding-bottom:clamp(40px,7vh,72px)}
body.cine.homes .film .over .wrap{padding-left:max(44px,env(safe-area-inset-left,0px));padding-right:max(44px,env(safe-area-inset-right,0px))}

/* The wordmark: Syne at its widest, opening out as you scroll */
body.homes .wordmark{font-family:var(--display);font-weight:800;font-stretch:100%;letter-spacing:-.02em;line-height:.9}
body.homes .facts div{position:relative;padding-left:14px}
body.homes .facts div::before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background:rgba(255,255,255,.4);transform-origin:top}
.rv body.homes .facts div::before{transform:scaleY(0);transition:transform 1.2s cubic-bezier(.7,0,.2,1) calc(var(--d,0s) + .3s)}
.rv body.homes .facts div.in::before{transform:none}
body.homes .facts strong{font:700 clamp(26px,2.4vw,36px)/1 var(--display);letter-spacing:-.02em;color:var(--glow-lt)}

/* Panels before the footage exists: dusk glass, not linen */
body.cine.homes section.block>.wrap,body.cine.homes .intro>.wrap{background:rgba(16,26,48,.55);border-color:rgba(255,255,255,.14);color:#fff;
  --fg:#fff;--soft:rgba(255,255,255,.78);--line:rgba(255,255,255,.22);--brand:var(--glow);--on-brand:var(--dusk);--panel:rgba(255,255,255,.05);border-radius:0}
.has-film body.cine.homes section.block>.wrap,.has-film body.cine.homes .intro>.wrap{--brand:var(--glow);--on-brand:var(--dusk);background:transparent}

/* One column on the right half, so the house shows on the left */
@media (min-width:1000px){
  body.cine.homes section.block>.wrap,body.cine.homes .intro>.wrap{max-width:680px;margin-left:auto;margin-right:max(56px,7vw)}
}
body.cine.homes .intro .lead{font-size:clamp(21px,1.9vw,26px);line-height:1.45;letter-spacing:-.01em}
body.homes main h2::after{width:100%;max-width:520px;height:1px;background:linear-gradient(90deg,var(--glow),rgba(242,195,139,0))}

/* Buttons: rounded like a light switch plate; amber glows */
body.homes .btn{border-radius:999px;font:500 16px/1 var(--sans);padding:0 26px}
body.homes .btn:hover{background:var(--glow-lt);color:var(--dusk);box-shadow:0 0 0 6px rgba(242,195,139,.16),0 0 44px rgba(242,195,139,.5)}
body.homes .btn.ghost{color:#fff;border-color:rgba(255,255,255,.5)}
body.homes .btn.ghost:hover{background:transparent;border-color:var(--glow);color:var(--glow-lt)}
.mo body.homes .ctas .btn:not(.ghost){animation:glow 3.2s ease-in-out 1.5s infinite}
@keyframes glow{50%{box-shadow:0 0 0 7px rgba(242,195,139,.12),0 0 40px rgba(242,195,139,.38)}}

/* How it works: one column, a floor-plan key; the lines draw themselves */
body.homes .steps{grid-template-columns:1fr;gap:0}
body.homes .steps li{display:grid;grid-template-columns:64px minmax(0,1fr);column-gap:8px;border-top:0;padding:24px 0;
  background:linear-gradient(var(--line),var(--line)) left top/100% 1px no-repeat}
body.homes .steps li:last-child{border-bottom:1px solid var(--line)}
body.homes .steps li::before{grid-row:1/3;margin:0;font:500 34px/1 var(--display);font-stretch:85%;color:var(--glow)}
body.homes .steps li>*{grid-column:2}
body.homes .steps p{margin:0}
.rv body.homes .steps li[data-r]{background-size:0% 1px;
  transition:opacity .9s ease var(--d,0s),filter .9s ease var(--d,0s),background-size 1.4s cubic-bezier(.7,0,.2,1) var(--d,0s)}
.rv body.homes .steps li[data-r].in{background-size:100% 1px}

/* Packages: stacked; each one wipes in like a sliding door; a light bar on hover */
body.homes .menu{border-top:1px solid var(--line)}
body.homes .item{position:relative;grid-template-columns:minmax(0,1fr) auto;gap:10px 24px;padding:26px 0;align-items:baseline}
body.homes .item::before{content:"";position:absolute;left:-22px;top:22px;bottom:22px;width:2px;background:var(--glow);
  box-shadow:0 0 14px var(--glow);transform:scaleY(0);transform-origin:top;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
body.homes .item:hover::before{transform:none}
body.homes .item h3{font-size:26px}
body.homes .item ul{grid-column:1/-1;grid-row:2}
body.homes .item .btn{grid-column:1/-1;width:auto;justify-self:start;margin-top:8px}
body.homes .price{font:700 36px/1 var(--display);letter-spacing:-.02em;color:var(--glow-lt)}
.rv body.homes .item[data-r]{opacity:1;filter:none}
.rv body.homes .item[data-r]>*{clip-path:inset(-20px 100% -20px -20px);transition:clip-path 1.3s cubic-bezier(.7,0,.2,1) var(--d,0s)}
.rv body.homes .item[data-r].in>*{clip-path:inset(-20px -40px -20px -20px)}
body.homes .honest,body.cine.homes .honest{grid-template-columns:1fr;gap:12px}
body.homes summary{font:600 21px/1.3 var(--display);letter-spacing:-.01em}
body.homes summary::after{font-weight:300;color:var(--glow);transition:transform .35s cubic-bezier(.2,.7,.2,1)}

/* The package names drift past, heavy and condensed, the outline line the other way */
body.homes .drift-line{font-weight:800;letter-spacing:-.04em}
body.homes .drift-line span::after{border-radius:0;background:var(--glow);box-shadow:0 0 18px var(--glow)}

/* Stills: a white window frame around each */
body.homes .still{outline:1px solid rgba(255,255,255,.5);outline-offset:8px}
body.homes .trail img{outline:1px solid rgba(255,255,255,.6);outline-offset:6px}

/* Scroll progress: a light filling the right edge of the frame */
body.homes .progress{top:14px;bottom:14px;right:14px;width:1px}
body.homes .progress span{position:absolute;inset:0;background:var(--glow);transform-origin:top;transform:scaleY(var(--p,0));box-shadow:0 0 12px var(--glow)}
body.homes .progress i{position:absolute;left:-3px;top:calc(var(--p,0) * 100%);margin-top:-3px;width:7px;height:7px;background:var(--glow-lt);box-shadow:0 0 14px var(--glow)}

/* Reveals: lights coming on, not rising. Words and letters warm up from dim. */
.rv body.homes [data-r]{transform:none;filter:blur(4px);opacity:0}
.rv body.homes [data-r].in{filter:none;opacity:1}
.rv body.homes [data-split] .w>span{transform:none;opacity:.08;filter:blur(6px);color:var(--glow-lt);
  transition:opacity .6s ease,filter .6s ease,color .8s ease;
  transition-delay:min(calc(var(--i,0) * .04s),.4s) !important}
.rv body.homes [data-split].in .w>span{opacity:1;filter:none;color:inherit}
/* Syne is much wider than the base wordmark font: keep it smaller on desktop so it
   never runs over the three facts, and stack the facts under it on mid-size screens */
@media (min-width:821px){
  body.homes .wordmark{font-size:clamp(34px,5.2vw,120px)}
}
@media (min-width:821px) and (max-width:1199px){
  body.cine.homes .film .over .wrap{flex-wrap:wrap}
  body.cine.homes .film .side{align-items:flex-start;width:100%}
}
/* Laptop widths: tighter facts so the row stays inside the frame */
@media (min-width:1200px) and (max-width:1599px){
  body.homes .facts{gap:20px}
  body.homes .facts div{padding-left:10px}
  body.homes .facts span{max-width:11ch;font-size:13px}
  body.homes .wordmark{font-size:clamp(34px,4.6vw,120px)}
}
@media (max-width:820px){
  body.cine.homes::after{inset:8px}
  body.cine.homes header.top{top:8px;left:8px;right:8px}
  body.homes .progress{top:8px;bottom:8px;right:8px}
  body.cine.homes .film .over .wrap{padding-left:28px;padding-right:28px}
  body.homes .item{grid-template-columns:1fr auto}
  body.homes .item::before{left:-12px}
  body.homes .wordmark{font-size:clamp(26px,7.2vw,80px)}
  body.homes{overflow-x:clip}
  body.homes .drift{max-width:100vw}
  body.homes .steps li{grid-template-columns:44px minmax(0,1fr)}
}
