/* Cinematic v3 — responsive art direction, interaction polish and accessible motion. */
:root { --ease-out-expo: cubic-bezier(.16, 1, .3, 1); --ease-luxe: cubic-bezier(.22, 1, .36, 1); }
html { scroll-padding-top: 90px; }
body { overflow-x: clip; }
::selection { background:#f4bf63; color:#092139; }
:where(a,button,input,textarea,select):focus-visible { outline: 3px solid #e5aa36; outline-offset: 4px; }
.scroll-progress { height: 3px; width:100%; position: fixed; inset:0 0 auto; z-index:1002; transform:scaleX(0); transform-origin:left center; background:linear-gradient(90deg,#dd9022,#ffe29c,#d28a22); box-shadow:0 0 11px #ffc15f99; pointer-events:none; }
.header { transition:height .35s ease, background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease; }
.header.scrolled { background:rgba(7,23,43,.87); border-bottom:1px solid #ffffff17; }
.nav a, .header-cta { transition:color .25s ease, background .25s ease, transform .3s var(--ease-out-expo), border-color .25s ease; }
.header-cta:hover { transform:translateY(-2px); }
.hero { isolation:isolate; }
.hero-scene { transform-origin:center 60%; will-change:transform; }
.hero-shade { z-index:0; }
.hero-sheen { z-index:0; background: radial-gradient(ellipse 40% 62% at var(--spot-x, 73%) var(--spot-y, 35%),rgba(255,183,100,.18),transparent 72%); }
.hero:before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.18; background:linear-gradient(110deg,transparent 0%,#f2b65929 48%,transparent 52%); background-size:240% 100%; animation:goldenSweep 12s linear infinite; }
.hero-horizon { position:absolute; bottom:9px; left:0; width:100%; height:1px; background:linear-gradient(90deg,transparent,#f7d487a1,transparent); opacity:.65; z-index:3; }
.hero-copy { position:relative; }
.hero-overline { animation:overlineEnter .8s .16s both; }
.hero h1 { animation:headingEnter 1s .2s both; }
.hero-subtitle { animation:liftEnter .85s .4s both; }
.hero-buttons { animation:liftEnter .85s .55s both; }
.hero h1 em::after { transform-origin:left center; animation:underlineDraw 1.1s .95s both; }
.hero-story { display:none; }
.search-panel { transition:transform .55s var(--ease-out-expo),box-shadow .55s ease; animation:panelArrival .9s .42s both; }
.search-panel:focus-within { box-shadow:0 17px 42px #091c3544,0 0 0 1px #dfb86e; }
.search-submit { position:relative; overflow:hidden; isolation:isolate; box-shadow:0 3px 15px #8550053a; }
.search-submit:before,.button.gold:before { content:""; position:absolute; top:-80%; left:-50%; width:40%; height:260%; transform:rotate(30deg) translateX(-350%); background:linear-gradient(90deg,transparent,#ffffff86,transparent); pointer-events:none; transition:transform .8s var(--ease-luxe); }
.search-submit:hover:before,.button.gold:hover:before { transform:rotate(30deg) translateX(600%); }
.button.gold { position:relative; overflow:hidden; isolation:isolate; }
.button svg,.search-submit svg { transition:transform .35s var(--ease-out-expo); }
.button:hover svg,.search-submit:hover svg { transform:scale(1.08); }
.button:active,.search-submit:active { transform:scale(.975)!important; }
.feature { transition:transform .4s var(--ease-out-expo); }
.feature svg { transition:transform .5s var(--ease-out-expo),color .3s; }
@media (hover:hover) and (pointer:fine) {
  .feature:hover { transform:translateY(-4px); }
  .feature:hover svg { transform:rotate(-8deg) scale(1.12); color:#e5a52f; }
  .region:hover .region-image { transform:scale(1.1) translateX(1%); }
  .region:hover .region-action b { transform:translateX(4px); }
}
.region { box-shadow:0 7px 22px #10182815; transition:transform .5s var(--ease-out-expo), box-shadow .5s ease; }
.region-image { transition:transform 1.1s var(--ease-luxe), filter 1.1s ease; }
.region:after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(110deg,transparent 23%,#ffffff20 45%,transparent 65%); background-size:240% 100%; transform:translateX(-50%); opacity:0; transition:opacity .35s,transform 1s; }
.region:hover:after { opacity:1; transform:translateX(25%); }
.region-content { transition:transform .55s var(--ease-out-expo); }
.region:hover .region-content { transform:translateY(-3px); }
.region-action b { display:inline-block; transition:transform .35s var(--ease-out-expo); }
.listings-heading { position:relative; }
.listings-heading h2 { letter-spacing:-1px; }
.listing-card { position:relative; transform-style:preserve-3d; backface-visibility:hidden; transition:transform .55s var(--ease-out-expo),box-shadow .55s ease, opacity .65s ease; }
.listing-card:after { content:""; position:absolute; inset:0; z-index:0; border-radius:12px; border:1px solid transparent; pointer-events:none; transition:border-color .3s; }
.listing-card:hover:after { border-color:#dda95b; }
.listing-card .listing-image { overflow:hidden; }
.listing-card .listing-image img { transition:transform .95s var(--ease-luxe),filter .95s ease; }
.listing-card:hover .listing-image img { filter:saturate(1.08); }
.listing-foot button { transition:transform .35s var(--ease-out-expo),background .35s; }
.listing-card:hover .listing-foot button { transform:translateX(3px); background:#edbc74; }
.heart { width:38px;height:38px; display:grid;place-items:center;transition:transform .35s var(--ease-out-expo),background-color .35s; }
.heart:active { transform:scale(.86); }
.reveal { transition:opacity .9s ease,transform .9s var(--ease-out-expo),filter .9s ease; }
.reveal:not(.in-view) { filter:blur(3px); }
.reveal.in-view { filter:blur(0); }
.regions .region:nth-child(2) { transition-delay:.1s; }
.listing-card:nth-child(2){transition-delay:.07s}.listing-card:nth-child(3){transition-delay:.14s}
.about-photo img { transition:transform 1.3s var(--ease-luxe); }
.about-photo:hover img { transform:scale(1.045); }
.next-step-bg { transition:transform 1.4s var(--ease-luxe); }
.next-step:hover .next-step-bg { transform:scale(1.035); }
.floating-chat { transition:transform .45s var(--ease-out-expo),box-shadow .45s ease; }
.floating-chat:hover { box-shadow:0 12px 28px #054c3070; }
.contact-form { transition:box-shadow .4s ease,transform .4s var(--ease-out-expo); }
.contact-form:focus-within { box-shadow:0 23px 60px #0005; }
.ripple-ink { position:absolute; pointer-events:none; border-radius:50%; transform:translate(-50%,-50%) scale(0); background:#ffffff6b; animation:rippleOpen .62s ease-out both; z-index:5; }
@keyframes rippleOpen { to{transform:translate(-50%,-50%) scale(3.2); opacity:0} }
@keyframes goldenSweep { 0%{background-position:-60% center} 100%{background-position:240% center} }
@keyframes underlineDraw { from{transform:scaleX(0)} to{transform:scaleX(1)} }
@keyframes overlineEnter { from{opacity:0; transform:translateY(-7px);letter-spacing:7px}to{opacity:1;transform:none} }
@keyframes headingEnter { from{opacity:0; transform:translateY(20px); filter:blur(5px)}to{opacity:1;transform:none;filter:none} }
@keyframes liftEnter { from{opacity:0; transform:translateY(15px)}to{opacity:1;transform:none} }
@keyframes panelArrival { from{opacity:0;transform:translateY(30px) scale(.985)}to{opacity:1;transform:none} }
@keyframes badgeReveal {from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
/* Large tablet: no collision between the brand, copy and realtor illustration. */
@media (min-width:901px) and (max-width:1190px) {
  .hero-copy { max-width: 59%; }
  .hero h1 { font-size:clamp(39px,4.1vw,48px); }
  .hero-subtitle { max-width:390px; }
  .realtor { right:-12px; }
  .region-title { font-size:clamp(25px,2.65vw,33px); }
}
/* Tablet portrait: hero is still cinematic; search becomes a spacious two-column form. */
@media (min-width:681px) and (max-width:900px) {
  .hero { height:520px; }
  .hero-copy { max-width:64%; padding-top:105px; }
  .hero h1 { font-size:clamp(35px,5.5vw,48px); }
  .hero-subtitle { max-width:340px; }
  .realtor { right:-60px; width:340px; height:420px; }
  .realtor > img { height:400px; }
  .hero-story { display:block; position:absolute; left:0; bottom:38px; width:35%; color:white; z-index:2; }
  .story-kicker { display:block; letter-spacing:2px; font-size:9px; font-weight:800; color:#f5ca78; }
  .story-copy { display:block; font:600 19px 'Playfair Display',Georgia,serif;line-height:1.25;margin:7px 0; }
  .story-copy em { color:#ffcd72; }
  .story-location { color:#e4ecf5;font-size:9px;letter-spacing:1.4px; }
  .search-section { margin-top:-35px; }
  .features { margin-top:28px; }
  .region { min-height:195px; }
  .region-content { margin-top:23px; }
}
/* Mobile art direction: one compact story, strong portrait crop, no empty blue rectangle. */
@media (max-width:680px) {
  html { scroll-padding-top:76px; }
  .container { width:calc(100% - 32px); }
  .header { height:70px; }
  .header.scrolled { height:64px; }
  .header-content { align-items:center; }
  .brand { gap:4px; }
  .brand svg { width:43px;height:39px; }
  .brand strong { font-size:23px;letter-spacing:-1.2px; }
  .brand small { font-size:8px;letter-spacing:4.3px; }
  .creci { display:none!important; }
  .menu-button { height:44px;width:44px;border-radius:12px; background:#071e38c9; backdrop-filter:blur(12px); border-color:#d5e5f182; box-shadow:0 4px 18px #0003; }
  .menu-button[aria-expanded="true"] { background:#273b52; }
  .mobile-nav { border-radius:0 0 18px 18px; padding:8px 16px 15px; background:#091e36f5; backdrop-filter:blur(18px); }
  .mobile-nav a { font-size:15px; font-weight:650; }
  .hero { height:628px; min-height:628px; max-height:none; }
  .hero-scene { background-position:58% center; background-size:cover; transform:none!important; animation:none!important; }
  .hero-shade { background:linear-gradient(180deg,#081b35c2 0%,#07182fd1 30%,#04172ac9 55%,#04162cdd 100%),linear-gradient(90deg,#07172bc7,#0e23455c 77%); }
  .hero-sheen { display:none; }
  .hero:before { opacity:.12;animation-duration:22s; }
  .hero-inner { height:100%; }
  .hero-copy { max-width:100%; padding-top:92px; z-index:5; }
  .hero-overline { font-size:9px;letter-spacing:2.1px; margin-bottom:13px; }
  .hero h1 { font-size:clamp(35px,9.5vw,43px);line-height:1.075;letter-spacing:-1.15px;margin-bottom:16px;text-wrap:balance; }
  .hero h1 em { white-space:nowrap; }
  .hero-subtitle { font-size:13.1px;line-height:1.53;max-width:350px;margin-bottom:17px; }
  .hero-buttons { display:grid;grid-template-columns:1fr 1fr;gap:9px;width:100%; }
  .hero-buttons .button { padding:0 9px;min-height:45px;font-size:11.5px;gap:6px; letter-spacing:-.1px; white-space:nowrap; }
  .hero-buttons .button svg { width:18px;height:18px; }
  .realtor { bottom:9px;right:-18px; width:240px;height:249px;opacity:1;z-index:2; }
  .realtor > img { width:252px;height:249px;bottom:0;left:0;object-position:bottom;filter:drop-shadow(-11px 4px 16px #0005);animation:realtorAppear 1s .35s both; }
  .hero-story { display:block; position:absolute; bottom:112px; left:0;z-index:3; pointer-events:none;width:clamp(150px,43vw,205px); animation:badgeReveal .85s .7s both; padding:14px 10px 13px 13px;background:linear-gradient(125deg,#0b2a46e8,#0b2441a3);border:1px solid #e4bd7755; border-left:2px solid #f4c879; border-radius:2px 14px 14px 2px;box-shadow:0 7px 27px #04112255;backdrop-filter:blur(8px); }
  .story-kicker { display:block;font-size:8.5px;letter-spacing:1.35px;font-weight:800;color:#ffca65;white-space:nowrap; }
  .story-line { display:inline-block;width:11px;height:1px;background:#ffca65;vertical-align:middle;margin-right:4px; }
  .story-copy { display:block;font:600 clamp(14px,3.8vw,18px) 'Playfair Display',Georgia,serif;line-height:1.25;margin:10px 0 10px;color:#fff;letter-spacing:-.3px; }
  .story-copy em { color:#ffcf80;font-style:italic; }
  .story-location { display:block;font-size:8px;letter-spacing:1.15px;font-weight:700;color:#cddce6;white-space:nowrap; }
  .story-location b { color:#f7bd5c; }
  .hero-bottomline { bottom:-21px; }
  .search-section { margin-top:-44px; z-index:6; }
  .search-panel { grid-template-columns:repeat(2,minmax(0,1fr));column-gap:4px;row-gap:3px;padding:11px 10px;border:1px solid #fff;background:#fffefcf8;border-radius:17px;box-shadow:0 13px 27px #0a24353c; }
  .field { min-width:0;min-height:67px;padding:6px 8px; gap:7px;align-items:center; }
  .field:first-child { padding-left:8px; }
  .field:nth-child(1),.field:nth-child(2) { border-bottom:1px solid #e7e8e9; }
  .field:nth-child(3),.field:nth-child(4) { border-bottom:0; }
  .field-icon svg { width:21px;height:21px; }
  .field small { font-size:10px;line-height:1.4;color:#516071;margin-bottom:4px; }
  .km-select-trigger { min-height:32px; font-size:12.8px;gap:2px; }
  .km-select-trigger svg { width:15px;height:15px; }
  .search-submit { min-height:50px;margin-top:3px;font-size:14.5px;border-radius:11px; }
  .features { margin-top:26px; margin-bottom:27px;row-gap:20px; }
  .feature { gap:9px;padding:0; }
  .feature svg { width:29px;height:29px; }
  .feature strong { font-size:11.5px;line-height:1.3; }
  .feature small { font-size:10px;line-height:1.4; }
  .regions { gap:14px; }
  .region { border-radius:17px;min-height:182px; }
  .region-content { margin:23px 0 19px 22px;max-width:76%; }
  .region-title { font-size:31px; }
  .region-desc { font-size:12px; }
  .region-action { margin-top:11px;padding:9px 16px;min-height:40px; }
  .listings { padding-top:33px; }
  .listings-heading { align-items:start; }
  .listings-heading h2 { font-size:clamp(27px,7vw,34px); }
  .listings-heading .all-listings { padding-top:6px; align-self:end; margin-top:5px; }
  .listing-card { border-radius:16px; }
  .listing-card .listing-image { height:clamp(200px,59vw,265px); }
  .listing-card .listing-info { padding:17px 17px 14px; }
  .listing-card .listing-info h3 { font-size:18px; }
  .listing-card .listing-foot strong { font-size:22px; }
  .about { padding:55px 0; }
  .about-photo { border-radius:18px; }
  .about-copy h2,.contact-copy h2,.next-step h2 { font-size:clamp(32px,9vw,42px); }
  .contact-form { border-radius:17px; }
  .floating-chat { right:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px)); }
  .reveal:not(.in-view) { filter:none; }
  .listing-card:nth-child(2),.listing-card:nth-child(3) { transition-delay:0s; }
  .region:active { transform:scale(.987); }
  .region:hover .region-image { transform:none; }
  .region:hover .region-content { transform:none; }
  .listing-card:hover .listing-image img { transform:none; }
  .listing-card:active .listing-image img { transform:scale(1.015); }
}
/* Small phone widths; keep all elements within 320 CSS pixels. */
@media (max-width:375px) {
  .container { width:calc(100% - 26px); }
  .hero { height:644px;min-height:644px; }
  .hero h1 { font-size:clamp(32px,9.2vw,35px); }
  .hero-copy { padding-top:90px; }
  .hero-buttons .button { font-size:10.4px;gap:4px;padding:0 5px; }
  .hero-buttons .button svg { width:16px;height:16px; }
  .hero-subtitle { font-size:12.5px; }
  .realtor { width:211px;height:239px;right:-22px;bottom:8px; }
  .realtor > img { width:222px;height:239px; }
  .hero-story { width:clamp(138px,43vw,158px);left:0;bottom:113px;padding:12px 7px 12px 10px; }
  .story-kicker { font-size:7.4px;letter-spacing:1px; }
  .story-copy { font-size:14px; }
  .story-location { font-size:7.4px;letter-spacing:.5px; }
  .search-panel { padding:9px 8px; }
  .field { padding-inline:4px;gap:5px; }
  .field:first-child { padding-left:4px; }
  .km-select-trigger { font-size:12px; }
  .field small { font-size:9px; }
  .field-icon svg { width:19px;height:19px; }
  .listings-heading h2 { font-size:26px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto!important; }
  .hero:before,.hero-overline,.hero h1,.hero-subtitle,.hero-buttons,.hero h1 em::after,.search-panel,.hero-story { animation:none!important; }
  .hero-scene,.realtor>img { animation:none!important; }
  .reveal,.reveal:not(.in-view) { transform:none!important;opacity:1!important;filter:none!important;transition:none!important; }
  .button,.search-submit,.region,.listing-card,.listing-card img,.region-image,.feature,.hero-story,.next-step-bg { transition:none!important; }
  .scroll-progress { transition:none!important; }
}
@media (max-width:349px) {
  .field .field-icon { display:none!important; }
  .field small { font-size:10px; }
  .km-select-trigger { font-size:12.5px; }
}
