/* Local copy: navy from Luciano's suit, ivory from his shirt and warm house light. */
:root{--ink:#20364f;--green:#314f72;--paper:#f7f5f0;--muted:#5c6877;--line:#d8dce0;--surface:#fffdfa}
html{scrollbar-color:#8794a4 var(--paper)}
::selection{background:#d7e1ed;color:var(--ink)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline-color:#816139}
.button:hover{background:#233e5e}
.home .monogram span,.hero-message h1 span{color:#d7e3f2}
.hero-reference{background:#20364f}
.hero-reference:before{background:linear-gradient(90deg,rgba(17,32,51,.06) 15%,rgba(17,32,51,.28) 45%,rgba(17,32,51,.85) 100%)}
.hero-message .button{background:var(--green)}
.hero-message .button:hover{background:#233e5e}
.hero-locations{color:#d7dfe9}
.about em{color:#d4dfed}
.about p,.video-cover span{color:#d7dfe9}
.light{background:#e2e8ef;color:var(--ink)}
.filter-panel{border-block:1px solid var(--line)}
.filter-panel>summary{list-style:none;display:flex;align-items:center;gap:16px;min-height:64px;padding:12px 2px;cursor:pointer;font-size:14px;font-weight:600}
.filter-panel>summary::-webkit-details-marker{display:none}
.filter-panel>summary svg{margin-left:auto;transition:transform 160ms ease}
.filter-panel[open]>summary svg{transform:rotate(180deg)}
.filter-hint{font-size:12px;font-weight:400;color:var(--muted)}
.filters{background:transparent;border-radius:0;padding:4px 0 24px;gap:16px}
.filters label{font-size:12px;color:var(--muted);margin-bottom:7px}
.filters input,.filters select{background:var(--surface);border-color:#bac3cd;min-height:48px;height:48px;border-radius:6px}
.filters input::placeholder{color:#647080}
.filters .button{min-height:48px;padding-block:12px}
.results-line{margin:8px 0 22px}
.property h3{letter-spacing:-.02em}
@media(max-width:680px){
 .hero-house,.hero-reference:before{height:444px}
 .hero-reference:before{background:linear-gradient(180deg,rgba(17,32,51,.65),rgba(17,32,51,.03) 45%,rgba(17,32,51,.18))}
 .hero-person{height:364px;min-height:364px;margin-top:90px;margin-bottom:-23px}
 .hero-person img{max-width:88%}
 .hero-message h1 span{color:var(--green)}
 .hero-message{padding-top:43px}
 .hero-locations{color:var(--muted)}
 .filter-panel>summary{min-height:60px;gap:12px}
 .filter-hint{font-size:11px}
 .filters{grid-template-columns:1fr 1fr;padding:4px 0 20px;gap:14px 12px}
 .filters input,.filters select{font-size:16px}
 .filters>div:first-child,.filters>.button{grid-column:1/-1}
 .catalog .section-heading{margin-bottom:22px}
}
@media(max-width:359px){
 .hero-house,.hero-reference:before{height:410px}
 .hero-person{height:332px;min-height:332px;margin-top:88px}
 .filter-hint{display:none}
 .filters{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.filter-panel>summary svg{transition:none}}

/* All headlines use the same family as the hero headline. */
:root{--font-headline:system-ui,-apple-system,"Segoe UI",sans-serif}
h1,h2,h3,h4,h5,h6,.hero-message h1,.property h3,.video-cover strong{
 font-family:var(--font-headline);
 font-weight:650;
}
h1 em,h2 em,h3 em,h4 em,h5 em,h6 em{font-weight:inherit}

/* Scroll depth: the house and adviser move independently inside their frames. */
.hero-house img{transform:translate3d(0,var(--house-offset,0px),0) scale(1.4);transform-origin:center center}
.hero-person{overflow:hidden}
.hero-person img{height:106%;max-width:100%;translate:0 var(--adviser-offset,0px)}
@media(max-width:680px){
 .hero-house,.hero-reference:before{height:470px}
 .hero-person{height:390px;min-height:390px}
 .hero-person img{height:100%;max-width:92%}
}
@media(max-width:359px){
 .hero-house,.hero-reference:before{height:434px}
 .hero-person{height:356px;min-height:356px}
}
@media(prefers-reduced-motion:reduce){
 .hero-house img{transform:none}
 .hero-person img{translate:none}
}


/* Hero headline entrance adapted from the supplied motion reference. */
.hero-message h1{animation:none}
@media(prefers-reduced-motion:no-preference){
 .hero-message h1.headline-enter{
  animation:headline-rise 500ms 300ms cubic-bezier(.42,0,.58,1) both;
 }
 @keyframes headline-rise{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}
 }
}

/* Property cards inspired by the supplied welcome-screen composition. */
.home{background:#fff}
.home .catalog{background:#fff}
.property-grid{gap:32px}
.property{background:#fff;border:1px solid #d8dce0;border-radius:16px;text-align:center}
.property .cover{aspect-ratio:4/3;overflow:hidden;background:#fff;clip-path:ellipse(100% 60% at 50% 40%)}
.property .cover img{border-radius:0}
.property .property-meta{margin:23px 24px 12px;font-size:12px}
.property h3{margin:0 24px;font-size:24px;line-height:1.28;text-wrap:pretty}
.property>p{margin:16px 24px 26px;font-size:14px;line-height:1.65;min-height:0}
.property>.text-link{
 width:calc(100% - 48px);
 margin:auto 24px 24px;
 padding:14px 18px;
 min-height:50px;
 border:0;
 border-radius:8px;
 justify-content:center;
 background:var(--green);
 color:#fff;
 transition:background-color 160ms ease;
}
.property>.text-link:hover{background:#233e5e;text-decoration:none}
.property .status{background:#fff;color:var(--ink);top:16px;left:16px}
@media(max-width:1000px){.property-grid{gap:24px}}
@media(max-width:680px){
 .property-grid{gap:28px}
 .property h3{font-size:25px}
 .property>p{margin-bottom:24px}
}

/* Full-width property cards on mobile; text retains its reading inset. */
@media(max-width:680px){
 .home .property-grid{margin-inline:-18px}
 .property{border:0;border-radius:0}
}

/* WhatsApp hero action: a gentle hop and a clipped light sweep. */
.hero-message .hero-actions>.button{
 position:relative;
 isolation:isolate;
 overflow:hidden;
 gap:12px;
}
.hero-message .button .whatsapp-icon,.hero-message .button .cta-label{position:relative;z-index:1;flex-shrink:0}
.hero-message .button .cta-label{transform:none;transition:none}
.hero-message .hero-actions>.button:after{
 content:"";
 position:absolute;
 z-index:0;
 top:-50%;
 left:0;
 width:32%;
 height:200%;
 pointer-events:none;
 background:linear-gradient(90deg,transparent,rgba(255,255,255,.24),transparent);
 transform:translateX(-180%) skewX(-22deg);
}
@media(prefers-reduced-motion:no-preference){
 .hero-message .hero-actions>.button{animation:whatsapp-hop 4.8s ease-in-out infinite}
 .hero-message .hero-actions>.button:after{animation:whatsapp-shine 4.8s ease-in-out infinite}
 .hero-message .hero-actions>.button:hover,.hero-message .hero-actions>.button:focus-visible,.hero-message .hero-actions>.button:active{animation-play-state:paused}
 @keyframes whatsapp-hop{
  0%,10%,27%,100%{transform:translateY(0)}
  18%{transform:translateY(-5px)}
  23%{transform:translateY(-1px)}
 }
 @keyframes whatsapp-shine{
  0%,34%{transform:translateX(-180%) skewX(-22deg)}
  67%,100%{transform:translateX(460%) skewX(-22deg)}
 }
}
@media(prefers-reduced-motion:reduce){.hero-message .hero-actions>.button:after{display:none}}

/* Compact handoff between the hero and property catalogue. */
.hero-locations{margin-top:10px}
.hero-reference{margin-bottom:28px}
@media(max-width:680px){
 .hero-locations{margin-top:5px}
 .hero-reference{margin-bottom:14px}
 .home .catalog{padding-top:14px}
 .hero-message .hero-actions{gap:8px}
}

/* Fixed introduction and ending frame a stable, vertically rotating audience. */
.hero-message h1{font-weight:400;line-height:1.18}
.hero-message h1 .headline-fixed{display:block;color:inherit;font-weight:400}
.hero-message h1 .headline-rotation{
 display:block;
 position:relative;
 height:1.45em;
 overflow:hidden;
 color:#d7e3f2;
 margin-block:4px 8px;
}
.hero-message h1 .headline-word{
 position:absolute;
 inset:0;
 display:flex;
 align-items:center;
 white-space:nowrap;
 font-weight:600;
 opacity:0;
 transform:translateY(110%);
 transition:transform 650ms cubic-bezier(.22,1,.36,1),opacity 450ms ease;
 color:inherit;
}
.hero-message h1 .headline-word.is-active{opacity:1;transform:translateY(0)}
.hero-message h1 .headline-word.is-leaving{opacity:0;transform:translateY(-110%)}
.hero-message h1 .headline-ending{display:block;font-weight:600;color:#d7e3f2}
@media(max-width:680px){
 .hero-message h1{font-size:clamp(28px,7.3vw,36px)}
 .hero-message h1 .headline-rotation,.hero-message h1 .headline-ending{color:var(--green)}
}
@media(prefers-reduced-motion:reduce){.hero-message h1 .headline-word{transition:none}}

/* Mobile headline: centred hierarchy and a compact, stable rotating line. */
@media(max-width:680px){
 .hero-message{padding:36px 24px 0}
 .hero-message h1{
  width:100%;
  max-width:440px;
  font-size:clamp(30px,8.2vw,38px);
  line-height:1.16;
  text-align:center;
  letter-spacing:-.025em;
 }
 .hero-message h1 .headline-fixed{font-size:.78em;line-height:1.2;margin-bottom:2px}
 .hero-message h1 .headline-rotation{height:1.36em;margin:0 0 10px}
 .hero-message h1 .headline-word{justify-content:center;font-size:1em;letter-spacing:-.03em}
 .hero-message h1 .headline-ending{
  max-width:21ch;
  margin-inline:auto;
  font-size:.86em;
  line-height:1.23;
  letter-spacing:-.02em;
  text-wrap:balance;
 }
 .hero-message .hero-actions{margin-top:22px}
 .hero-message .button{min-height:54px}
 .hero-locations{font-size:11px}
}
@media(max-width:359px){
 .hero-message{padding-inline:20px;padding-top:32px}
 .hero-message h1{font-size:29px}
 .hero-message h1 .headline-ending{font-size:25px}
}

/* Three deliberate levels: introduction, audience, closing promise. */
.hero-message h1 .headline-fixed{
 font-size:.56em;
 font-weight:400;
 line-height:1.3;
 letter-spacing:0;
 margin-bottom:6px;
}
.hero-message h1 .headline-rotation{height:1.38em;margin-block:0 16px}
.hero-message h1 .headline-word{font-weight:700;letter-spacing:-.03em}
.hero-message h1 .headline-ending{
 font-size:.72em;
 font-weight:500;
 line-height:1.3;
 letter-spacing:-.015em;
 max-width:23ch;
 color:inherit;
 text-wrap:balance;
}
@media(max-width:680px){
 .hero-message h1{font-size:clamp(32px,8.6vw,42px)}
 .hero-message h1 .headline-fixed{font-size:20px;margin-bottom:3px}
 .hero-message h1 .headline-rotation{height:1.36em;margin-bottom:14px;color:var(--green)}
 .hero-message h1 .headline-word{font-size:1em}
 .hero-message h1 .headline-ending{
  font-size:clamp(24px,6.2vw,29px);
  font-weight:500;
  line-height:1.3;
  max-width:23ch;
  color:var(--ink);
 }
 .hero-message .hero-actions{margin-top:26px}
}
@media(max-width:359px){
 .hero-message h1{font-size:30px}
 .hero-message h1 .headline-fixed{font-size:18px}
 .hero-message h1 .headline-ending{font-size:23px}
}

/* Equal-sized headline lines, followed by a separate supporting sentence. */
.hero-message h1 .headline-fixed{
 font-size:1em;
 font-weight:600;
 line-height:1.2;
 letter-spacing:-.03em;
 margin-bottom:0;
}
.hero-message h1 .headline-rotation{margin-bottom:0}
.hero-subheadline{
 margin:16px 0 0;
 max-width:32ch;
 font-size:clamp(19px,1.6vw,23px);
 font-weight:400;
 line-height:1.45;
 letter-spacing:-.01em;
 color:#d7dfe9;
 text-wrap:balance;
}
@media(max-width:680px){
 .hero-message h1 .headline-fixed{font-size:1em}
 .hero-message h1 .headline-rotation{margin-bottom:0}
 .hero-subheadline{
  margin:12px auto 0;
  max-width:30ch;
  font-size:clamp(19px,5vw,22px);
  line-height:1.4;
  text-align:center;
  color:var(--ink);
 }
}

/* Larger rotating headline and an intentional two-line mobile subheadline. */
.mobile-subheadline-break{display:none}
.hero-message h1{font-size:clamp(38px,3.8vw,54px)}
@media(min-width:681px) and (max-width:1000px){.hero-message h1{font-size:clamp(30px,4.3vw,38px)}}
@media(max-width:680px){
 .hero-message h1{font-size:clamp(32px,9.5vw,46px)}
 .mobile-subheadline-break{display:block}
 .hero-subheadline{max-width:none;font-size:clamp(18px,4.65vw,22px);text-wrap:initial}
}

/* Give the rotating audience more room and stronger emphasis on phones. */
@media(max-width:680px){
 .hero-message{padding-inline:16px}
 .hero-message h1{font-size:clamp(34px,10.2vw,50px);max-width:480px}
 .hero-message h1 .headline-rotation{margin-top:0;height:1.3em}
 .hero-subheadline{margin-top:8px}
}
@media(max-width:359px){
 .hero-message{padding-inline:12px}
 .hero-message h1{font-size:clamp(31px,10vw,36px)}
}

/* Equal headline weight, with a restrained blue highlight on each new audience. */
.hero-message h1 .headline-fixed{font-weight:700}
.hero-message h1 .headline-word{color:#b9d8fb}
@media(max-width:680px){.hero-message h1 .headline-word{color:#426d9c}}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
 @media(prefers-reduced-motion:no-preference){
  .hero-message h1 .headline-word.audience-shine{
   background-image:linear-gradient(110deg,#b9d8fb 34%,#fff 49%,#b9d8fb 64%);
   background-size:300% 100%;
   background-position:100% 0;
   background-clip:text;
   -webkit-background-clip:text;
   color:transparent;
   animation:audience-glint 1200ms ease-in-out both;
  }
  @keyframes audience-glint{from{background-position:100% 0}to{background-position:0% 0}}
 }
 @media(max-width:680px) and (prefers-reduced-motion:no-preference){
  .hero-message h1 .headline-word.audience-shine{
   background-image:linear-gradient(110deg,#426d9c 34%,#7c9cbd 49%,#426d9c 64%);
  }
 }
}

/* Tighter spacing within the hero headline group. */
.hero-message h1 .headline-fixed{line-height:1.08}
.hero-message h1 .headline-rotation{height:1.18em}
.hero-subheadline{margin-top:10px;line-height:1.32}
@media(max-width:680px){
 .hero-message h1 .headline-rotation{height:1.16em}
 .hero-subheadline{margin-top:5px;line-height:1.28}
}

/* Uppercase audiences, scaled to keep the longest label inside the mobile frame. */
.hero-message h1 .headline-word{text-transform:uppercase;font-size:.82em;letter-spacing:-.03em}
@media(max-width:680px){.hero-message h1 .headline-word{font-size:.82em}}

/* Slightly larger mobile heading, retaining room for uppercase audiences. */
@media(max-width:680px){
 .hero-message h1{font-size:clamp(36px,10.8vw,54px)}
}
@media(max-width:359px){
 .hero-message h1{font-size:clamp(33px,10.5vw,38px)}
}

/* Discreet mobile hero header with comfortable navigation touch targets. */
@media(max-width:680px){
 .home .header{padding:10px 0;width:calc(100% - 36px);gap:12px}
 .home .header .brand{font-size:13px;gap:9px}
 .home .header .monogram{font-size:26px}
 .home .header .brand small{font-size:6px;letter-spacing:.17em;margin-top:4px}
 .home .header nav a{font-size:11px;min-height:44px;display:inline-flex;align-items:center;padding:8px 0}
 .home .header nav a:nth-child(2),.home .header nav .nav-contact{display:none}
}

/* Swipeable property galleries, with native touch scrolling and keyboard controls. */
.detail-layout>div{min-width:0}
.property-slider{min-width:0;width:100%}
.slide-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#8794a4 transparent;border-radius:14px;background:#fff;cursor:grab}
.property-slide{flex:0 0 100%;min-width:0;margin:0;scroll-snap-align:start;scroll-snap-stop:always;position:relative}
.slide-photo{width:100%;height:clamp(280px,45vw,580px);object-fit:contain;background:#fff;user-select:none;-webkit-user-drag:none}
.slide-enlarge{display:block;padding:10px;text-align:center;font-size:12px;color:var(--muted)}
.slide-controls{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:12px}
.slide-controls:empty{display:none}
.slide-controls button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink)}
.slide-controls button:hover{background:#e2e8ef}
.slide-controls button:disabled{opacity:.35;cursor:default}
.slide-count{min-width:58px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums;color:var(--muted)}
.slide-track.is-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
@media(max-width:680px){.slide-photo{height:clamp(280px,85vw,480px)}}
