/* The fixed contact plate is shared by the final dissolve and the inquiry section. */
#home{isolation:isolate}
#home .homeSequence{min-height:265svh}
#home .homeStage{background:transparent}
.homeContactBackdrop{
 position:fixed;z-index:-1;inset:0;pointer-events:none;
 background:#aa7a78 url("./contact-terracotta-pavilion.webp") center / cover no-repeat;
}
.homeContactBackdrop::after{
 content:"";position:absolute;inset:0;
 background:linear-gradient(0deg,#0b151de6,transparent 74%);
}
#home .homeStage .homeScene--storage .photo{
 background-color:#102535;background-size:cover;background-position:58% center;
 mask-image:none;transform:scale(1.025);
}
#home .homeStage .homeScene--storage::before{content:none}
.homeScene--storage :is(.homeDevice,.homeProduct,.homeProductStatus,.homeCaption){opacity:var(--storage-foreground,1)}
.homeDevice{position:absolute;z-index:1;bottom:16%;left:var(--device-x);width:var(--device-width);transform:translate(-50%,8.6%);pointer-events:none}
.homeDevice img{display:block;width:100%;height:auto;clip-path:var(--device-mask)}
.homeDevice::before{
 content:"";position:absolute;left:17%;right:13%;bottom:9%;height:4%;z-index:-1;
 background:#080e13b3;border-radius:50%;filter:blur(clamp(4px,.6vw,11px));
}
.homeDevice--balcony{--device-x:38%;--device-width:min(33vw,50svh);--device-mask:url(#balcony-device-mask)}
.homeDevice--stack{--device-x:64%;--device-width:min(32vw,58svh);--device-mask:url(#stack-device-mask)}
.homeScene--storage .homeProduct--balcony{--product-x:37%;--product-y:29%}
.homeScene--storage .homeProduct--stack{--product-x:80%;--product-y:20%}
.homeScene--storage .homeProductStatus--balcony{--product-x:38%}
.homeScene--storage .homeProductStatus--stack{--product-x:64%}
@media(max-width:780px){
 #home .homeSequence{min-height:232svh}
 .homeDevice--balcony{--device-x:30%;--device-width:47vw}
 .homeDevice--stack{--device-x:72%;--device-width:min(51vw,52svh)}
 .homeDevice{bottom:25%}
 .homeScene--storage .homeProduct--balcony{--product-x:29%;--product-y:max(125px,48%)}
 .homeScene--storage .homeProduct--stack{--product-x:73%;--product-y:max(125px,35%)}
 .homeScene--storage .homeProductStatus--balcony{--product-x:30%}
 .homeScene--storage .homeProductStatus--stack{--product-x:72%}
 .homeScene--storage .homeProductStatus--balcony,.homeScene--storage .homeProductStatus--stack{top:auto;bottom:20%}
 .homeScene--storage .homeCaption{position:static;width:100%;margin-bottom:3vh;padding:12px 15px 0}
}
@media(prefers-reduced-motion:reduce){
 #home .homeStage .homeScene--storage .photo{transform:none}
}
/* The landscape stays visible under the warmer contact lighting. */
.homeContactBackdrop::after {
 background:
  linear-gradient(180deg,#3d2633a6 0%,#643f4938 29%,transparent 61%,#7043524d 100%),
  linear-gradient(112deg,#8147544d 2%,transparent 45%,#a66b742b 100%);
}
#home .contactPage {
 margin-top:-100svh;
 background:transparent;
 align-items:end;
 justify-items:center;
 color:#422a2c;
}
#home .contactLayout {
 width:100%;
 grid-template-columns:minmax(0,540px) minmax(0,420px);
 grid-template-areas:"intro ." "form details";
 justify-content:space-between;
 align-items:end;
 row-gap:clamp(15px,3vh,28px);
 opacity:var(--contact-opacity,0);
}
.contactIntro {grid-area:intro;min-width:0}
.contactIntro h2 {
 margin:0 0 10px;
 color:#fff9f3;
 font-size:clamp(34px,4.5vw,68px);
 line-height:1.03;
 letter-spacing:-.04em;
 text-shadow:0 2px 16px #48292e90;
}
.contactIntro p {
 max-width:47ch;
 margin:0;
 font-size:clamp(15px,1.25vw,18px);
 line-height:1.55;
 color:#fff8f4;
 text-shadow:0 1px 12px #44252c;
}
#home .contactPage form {grid-area:form;align-self:start}
#home .contactInfo {grid-area:details;align-self:end}
#home .contactInfo dl {margin-top:0}
#home .contactInfo,
#home .contactPage form {
 background:#fff4edef;
 border-color:#fff8f2a3;
 color:#422a2c;
 box-shadow:0 12px 40px #57343822;
}
#home .contactInfo :is(dt,dd,a), #home .contactPage label {color:#422a2c}
#home .contactLinks a, #home .contactInfo dd a {border-color:#a97e75}
#home .contactPage :is(input,textarea,select) {
 background:#fffaf7;
 color:#422a2c;
 border:1px solid #bb958e;
 border-radius:6px;
 padding:10px;
}
#home .contactPage :is(input,textarea,select):focus-visible {
 outline:2px solid #8a4754;
 outline-offset:2px;
}
#home .contactPage button[type=submit],#home .contactPage form .cta {
 background:#773e4a;
 color:#fff;
 border-color:#773e4a;
}
#home .contactPage + .siteResources {
 background:#603b46;
 color:#fff5f0;
}
@media(max-width:780px) {
 #home .contactLayout {
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"intro" "form" "details";
  gap:16px;
  max-width:540px;
 }
 .contactIntro h2 {font-size:clamp(32px,9vw,47px)}
 #home .contactPage {padding-top:clamp(148px,23svh,225px)}
 .homeContactBackdrop {background-position:50% center}
}

@media(max-width:780px) {
 body:has(#home:not([hidden]) #contact[data-contact-visible]) > header {
  background:#432c38f5;
  box-shadow:0 2px 18px #38242a45;
 }
 #home .contactPage :is(a,button,input,textarea,select) {scroll-margin-block-start:118px}
}

#home .contactPage form {
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 column-gap:14px;
 background:linear-gradient(155deg,#633f44fa,#462e37fc);
 border:1px solid #f9dbbd82;
 border-radius:28px 8px 28px 8px;
 box-shadow:0 20px 45px #41242e49;
}
#home .contactPage form > :nth-child(n+3) {grid-column:1 / -1}
#home .contactPage form label {color:#fff6ed}
#home .contactPage form .cta {
 background:#ffdfbb;
 border-color:#ffdfbb;
 color:#4a2c34;
}
#home .contactPage form .cta:is(:hover,:focus-visible) {background:#fff0db}
#home .contactInfo {
 background:linear-gradient(155deg,#fffaf2,#f8e7db);
 border-color:#fff7ed;
 border-radius:8px 28px 8px 28px;
 box-shadow:0 20px 45px #41242e37;
}
#home .contactInfo h3 {
 margin:0 0 12px;
 font-size:clamp(21px,2vw,27px);
 line-height:1.2;
 color:#52353e;
}
#home .contactInfo dl {gap:0 12px}
#home .contactInfo :is(dt,dd) {
 padding-block:8px;
 border-top:1px solid #b88c852e;
}
#home .contactInfo dt {font-weight:650}
#home .contactLinks {align-items:center;gap:6px 8px}
#home .contactLinks > * {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-height:40px;
 padding:4px 9px;
 border:1px solid #9e716a65;
 border-radius:40px;
 text-decoration:none;
 font-size:13px;
}
#home .contactLinks a:is(:hover,:focus-visible) {
 background:#6c424b;
 color:#fff6ee;
}
#home .contactLinks .contactSocialPending {
 min-width:40px;
 color:#72575a;
}
.contactSocialPending svg {width:19px;height:19px;display:block}
@media(max-width:550px) {
 #home .contactPage form {grid-template-columns:minmax(0,1fr)}
}
