/* Home page (loaded only on "/", after theme.css and motion.css). One layout system:
   12-column wrap, 64px section rhythm, 16-20px card radius, one shadow scale. Replaces the earlier stacked home overrides. */
.home{--hpad:64px;--hr:18px;--hsh:0 1px 2px rgba(15,23,42,.05),0 10px 30px -18px rgba(15,23,42,.28);--hline:#e8ecf2}
.home .wrap{max-width:1240px}

/* ---------- hero ---------- */
.home .hero{display:block;min-height:0;position:relative;overflow:hidden}
.home .hero .hg{padding:64px 24px 72px;position:relative;z-index:2}
.home .hero .hl{max-width:620px}
.home .hero .pill{display:inline-flex;align-items:center;gap:8px;padding:6px 13px;font-size:12px;font-weight:700;border-radius:99px}
.home .hero h1{font-size:52px;line-height:1.06;letter-spacing:-.04em;margin:18px 0 12px;max-width:620px;text-wrap:balance}
.home .hero p.s{font-size:17px;line-height:1.55;color:#c3cddd;max-width:520px;margin:0}

/* search card */
.hsearch{margin-top:28px;background:#fff;border-radius:20px;padding:8px;box-shadow:0 30px 60px -30px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.06);max-width:620px}
.htabs{display:flex;gap:4px;padding:4px 4px 10px;overflow-x:auto;scrollbar-width:none}
.htabs::-webkit-scrollbar{display:none}
.htabs label{flex:none;cursor:pointer}
.htabs input{position:absolute;opacity:0;pointer-events:none}
.htabs span{display:block;padding:7px 14px;border-radius:99px;font-size:13px;font-weight:700;color:var(--muted);transition:background .15s,color .15s}
.htabs label:hover span{background:var(--soft);color:var(--navy)}
.htabs input:checked+span{background:var(--navy);color:#fff}
.htabs input:focus-visible+span{outline:2px solid var(--or);outline-offset:2px}
.hrow{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) auto;border:1.5px solid var(--hline);border-radius:14px;overflow:hidden}
.hrow:focus-within{border-color:var(--or);box-shadow:0 0 0 4px rgba(242,140,27,.12)}
.hrow label{display:flex;flex-direction:column;justify-content:center;min-height:58px;padding:8px 16px;min-width:0;cursor:text}
.hrow .hq{flex-direction:row;align-items:center;gap:10px;border-right:1px solid var(--hline)}
.hrow .hq i{font-size:19px;color:#94a3b8}
.hrow input,.hrow select{width:100%;border:0;outline:0;background:transparent;font:600 15px 'Plus Jakarta Sans',sans-serif;color:var(--navy);padding:0;min-width:0}
.hrow input::placeholder{color:#94a3b8;font-weight:500}
.hrow .ha small{display:block;font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hrow .ha select{cursor:pointer;appearance:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center no-repeat;padding-right:18px}
.hgo{display:flex;align-items:center;gap:8px;border:0;background:linear-gradient(180deg,#F79A2E,#EE7F12);color:#fff;font:800 15px 'Plus Jakarta Sans',sans-serif;padding:0 26px;cursor:pointer;transition:filter .15s}
.hgo:hover{filter:brightness(1.06)}.hgo i{font-size:18px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* cities + stats on the dark hero */
.hcities{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:18px;max-width:620px}
.hcities>span{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#8e9cb4;margin-right:4px}
.hcities a{padding:5px 12px;border-radius:99px;font-size:12.5px;font-weight:600;color:#dbe3f0;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);transition:.15s}
.hcities a:hover{background:rgba(255,255,255,.14);color:#fff}
.hcities a.on{background:var(--or);border-color:var(--or);color:#fff}
.home .hstats{display:flex;flex-wrap:wrap;gap:0;margin-top:28px;max-width:620px}
.home .hstats>div{padding:0 22px;border-left:1px solid rgba(255,255,255,.14)}
.home .hstats>div:first-child{padding-left:0;border-left:0}
.home .hstats div+div:before{display:none}
.home .hstats b{font-size:26px;color:#fff}
.home .hstats span{display:block;font-size:12px;color:#9fadc4;margin-top:4px}

/* ---------- sections ---------- */
.hsec{padding:var(--hpad) 0}
.hsoft{background:#f7f8fa}
.hfeat:has([data-city-section]:empty){display:none}
.home .sh{margin-bottom:24px;align-items:flex-end}
.home .sh h2{font-size:30px;line-height:1.15;letter-spacing:-.03em}
.home .sh p{margin-top:6px;font-size:14px}
.home .eyebrow{font-size:11.5px;margin-bottom:8px}
.home .more{padding:9px 15px;font-size:14px}

/* quick property types, overlapping the hero edge */
.hquick{padding:0;position:relative;z-index:5;margin-top:-34px}
.home .cgroups{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.home .cg{display:flex;align-items:center;gap:12px;padding:16px;background:#fff;border:1px solid var(--hline);border-radius:var(--hr);box-shadow:var(--hsh);transition:border-color .15s,transform .15s}
.home .cg:hover{border-color:var(--or);transform:translateY(-2px)}
.home .cg .ci{width:44px;height:44px;border-radius:12px;flex:none}
.home .cg b{font-size:14px}.home .cg em{font-size:12px}
.home .cg.zero{opacity:1}.home .cg.zero em{color:#a0aabb}

/* latest listings: a tidy 4-column grid */
.home .cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;max-width:none}
.home .card{border-radius:var(--hr);box-shadow:var(--hsh)}
.home .card .ph{aspect-ratio:4/3}
.home .card h5{font-size:14.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.home .card .chp{flex-wrap:nowrap;overflow:hidden}

/* areas */
.home .locs{gap:8px}
.home .locs .loc{padding:8px 14px;background:#fff;border-color:var(--hline)}

/* categories: compact icon tiles, no oversized artwork */
.hcats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.hcat{display:flex;align-items:center;gap:12px;padding:14px;background:#fff;border:1px solid var(--hline);border-radius:16px;color:var(--navy);transition:border-color .15s,box-shadow .15s}
.hcat:hover{border-color:transparent;box-shadow:var(--hsh)}
.hci{width:42px;height:42px;flex:none;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;background:linear-gradient(140deg,var(--t1),var(--t2))}
.hct{min-width:0}.hct b{display:block;font-size:13.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hct em{font-style:normal;font-size:12px;color:var(--muted)}
.hcat.zero .hct em{color:#a0aabb}

/* owners */
.howners{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.ho{display:flex;flex-direction:column;gap:10px;padding:28px;border-radius:22px;background:#fff;border:1px solid var(--hline);box-shadow:var(--hsh)}
.ho h3{font-size:21px;margin:4px 0 0;letter-spacing:-.02em}
.ho p{color:var(--muted);font-size:14.5px;line-height:1.55;margin:0}
.ho ul{list-style:none;padding:0;margin:4px 0 8px;display:flex;flex-wrap:wrap;gap:8px 18px}
.ho li{display:flex;align-items:center;gap:6px;font-size:13.5px;font-weight:600;color:var(--ink)}.ho li i{color:var(--gr)}
.ho .cta,.ho .ghostb{align-self:flex-start;margin-top:auto}
.hoi{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:23px}
.ho-post .hoi{background:var(--ortint);color:var(--or2)}
.ho-mg{background:var(--navy);border-color:var(--navy)}
.ho-mg h3{color:#fff}.ho-mg p{color:#b8c4d9}.ho-mg li{color:#e2e8f0}.ho-mg li i{color:#fdba74}
.ho-mg .hoi{background:rgba(255,255,255,.1);color:#fdba74}
.ghostb{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:14px;font-weight:800;font-size:14px;border:1.5px solid var(--line);background:#fff;color:var(--navy);transition:.15s}
.ghostb:hover{border-color:var(--navy)}
.ho-mg .ghostb{background:transparent;color:#fff;border-color:rgba(255,255,255,.35)}.ho-mg .ghostb:hover{border-color:#fff}
.ghostb.sm{padding:8px 14px;font-size:13px;border-radius:12px}

/* projects + live updates */
.hduo{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:20px;align-items:start}
.hduo .pgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.hduo .pgrid>a:nth-child(3){display:none}
.home .live{border-radius:20px;border:1px solid var(--hline);box-shadow:var(--hsh);background:#fff;padding:22px}
.hempty{display:flex;align-items:center;gap:16px;padding:22px;border:1.5px dashed #d8dee8;border-radius:18px;background:#fff}
.hempty>i{font-size:30px;color:var(--or);flex:none}
.hempty b{display:block;font-size:15px;color:var(--navy)}.hempty span{display:block;font-size:13.5px;color:var(--muted);margin-top:2px}
.hempty .ghostb{margin-left:auto;flex:none}

/* other cities */
.hcitygrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hcity-t{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#fff;border:1px solid var(--hline);border-radius:16px;color:var(--navy);transition:border-color .15s,box-shadow .15s}
.hcity-t:hover{border-color:transparent;box-shadow:var(--hsh)}
.hcity-t.on{border-color:var(--or);background:var(--ortint)}
.ct-th{width:44px;height:44px;flex:none;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#1e2c4f,#0f172a);color:#fff;font-weight:800;font-size:18px}
.ct-th img{width:100%;height:100%;object-fit:cover}
.hcity-t.on .ct-th{background:linear-gradient(140deg,#F5A524,#EE7F12)}
.ct-tx{min-width:0;flex:1}.ct-tx b{display:block;font-size:14.5px}.ct-tx em{font-style:normal;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.hcity-t>.ti{color:#a0aabb;transition:transform .15s}.hcity-t:hover>.ti{transform:translateX(3px);color:var(--or)}

/* ---------- responsive ---------- */
@media(max-width:1200px){
  .home .hero h1{font-size:46px}
  .home .cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home .cards>.card:nth-child(n+7){display:none}
  .hcats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .home .cgroups{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1100px){.home .hero .hl{max-width:620px}}
@media(max-width:1000px){
  .home{--hpad:52px}
  .home .hero .hg{padding:48px 20px 64px}
  .home .hero #hero3d{opacity:.18}
  .home .hero .hposter{opacity:.12!important}
  .hduo{grid-template-columns:1fr}
  .hcitygrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home .sh h2{font-size:26px}
}
@media(max-width:760px){
  .home{--hpad:44px}
  .home .hero .hg{padding:36px 16px 52px}
  .home .hero h1{font-size:36px;margin:14px 0 10px}
  .home .hero p.s{font-size:15px}
  .home .hero #hero3d,.home .hero .hposter,.home .hero .hlines{display:none}
  .hsearch{margin-top:22px;padding:6px;border-radius:18px}
  .hrow{grid-template-columns:1fr;border-radius:12px}
  .hrow .hq{border-right:0;border-bottom:1px solid var(--hline)}
  .hrow label{min-height:52px;padding:8px 14px}
  .hgo{justify-content:center;min-height:50px}
  .home .hstats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}
  .home .hstats>div:nth-child(3){padding-left:0;border-left:0}
  .home .hstats b{font-size:22px}
  .hquick{margin-top:-22px}
  .home .cgroups{display:flex;overflow-x:auto;gap:10px;margin:0 -16px;padding:2px 16px 6px;scroll-snap-type:x mandatory;scrollbar-width:none}
  .home .cgroups::-webkit-scrollbar{display:none}
  .home .cg{flex:0 0 72%;scroll-snap-align:start}
  /* latest: swipeable row instead of a very long column */
  .home .cards{display:flex;overflow-x:auto;gap:14px;margin:0 -16px;padding:2px 16px 10px;scroll-snap-type:x mandatory;scrollbar-width:none}
  .home .cards::-webkit-scrollbar{display:none}
  .home .cards>.card{flex:0 0 78%;scroll-snap-align:start}
  .home .cards>.card:nth-child(n+7){display:block}
  .hcats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .hcat{padding:12px;gap:10px}.hci{width:38px;height:38px;font-size:18px}
  .howners{grid-template-columns:1fr}
  .ho{padding:22px}
  .hduo .pgrid{grid-template-columns:1fr}
  .hduo .pgrid>a:nth-child(n+2){display:none}
  .hempty{flex-wrap:wrap}.hempty .ghostb{margin-left:0}
  .home .sh{flex-wrap:wrap;gap:12px}
  .home .sh h2{font-size:23px}
}
@media(max-width:420px){.home .cg{flex-basis:80%}}
@media(max-width:760px){
  .home .locs{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px;padding:2px 16px 6px;scrollbar-width:none}
  .home .locs::-webkit-scrollbar{display:none}
  .home .locs .loc{flex:none}
  .ho{padding:20px;gap:8px}.ho h3{font-size:18px}.ho p{font-size:14px}.ho ul{gap:6px 14px;margin:2px 0 6px}
  .hcitygrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .hcity-t{padding:10px;gap:10px}.ct-th{width:36px;height:36px;font-size:15px;border-radius:10px}.ct-tx b{font-size:13.5px}.hcity-t>.ti{display:none}
}

/* hero with the city picture (an admin photo, or the built-in landmark illustration) */
.home .hero .hcity{transition:opacity .35s ease}
.home .hero.has-city-image .hcity{opacity:1;background-color:#0a1326;background:linear-gradient(90deg,#0a1326 0%,rgba(10,19,38,.94) 26%,rgba(10,19,38,.62) 48%,rgba(10,19,38,.12) 78%),var(--himg) right center/auto 100% no-repeat}
.home .hero.has-city-image #hero3d,.home .hero.has-city-image .hposter,.home .hero.has-city-image .hlines{display:none}
.home .hero.has-city-image:before,.home .hero.has-city-image:after{opacity:.35}
@media(max-width:1000px){.home .hero.has-city-image .hcity{inset:0 0 auto 0;height:min(70vw,480px);min-height:300px;background:linear-gradient(180deg,rgba(10,19,38,.18) 0%,rgba(10,19,38,.34) 45%,#0b1426 100%),var(--himg) right center/auto 100% no-repeat}.home .hero.has-city-image h1,.home .hero.has-city-image p.s{text-shadow:0 2px 16px rgba(5,10,22,.7)}}

/* Refined city-photo handoff and motion; keep search controls on an opaque white surface. */
.home .hero .hcity{transition:opacity .46s ease,transform .72s cubic-bezier(.2,.8,.2,1),filter .46s ease}
.home .hero.city-transitioning .hcity{opacity:.16!important;transform:scale(1.025);filter:blur(5px)}
.home .hero .hsearch{position:relative;z-index:4;isolation:isolate;background:#fff}
.home .hero .hrow{background:#fff}
.home .hero.has-city-image:not(.city-transitioning) .hcity{animation:cityPhotoIn .7s cubic-bezier(.2,.8,.2,1) both}
@keyframes cityPhotoIn{from{opacity:.4;transform:scale(1.018)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.home .hero .hcity,.home .hero.has-city-image .hcity{animation:none!important;transition:none!important}.home .hero.city-transitioning .hcity{opacity:1!important;transform:none;filter:none}}

/* Full image height keeps portrait landmarks in frame; an editorial reveal adds motion without looping. */
.home .hero.has-city-image .hcity{background-position:center,right center;background-size:100% 100%,auto 100%;background-repeat:no-repeat}
.home .hero .hl>.pill{animation:homeHeroUp .62s .03s cubic-bezier(.2,.8,.2,1) both}
.home .hero h1{animation:homeHeroUp .7s .08s cubic-bezier(.2,.8,.2,1) both}
.home .hero p.s{animation:homeHeroUp .68s .14s cubic-bezier(.2,.8,.2,1) both}
.home .hero .hsearch{animation:homeHeroUp .72s .2s cubic-bezier(.2,.8,.2,1) both}
.home .hero .hcities{animation:homeHeroUp .68s .27s cubic-bezier(.2,.8,.2,1) both}
.home .hero .hstats{animation:homeHeroUp .68s .34s cubic-bezier(.2,.8,.2,1) both}
.home .hero.has-city-image:not(.city-transitioning) .hcity{animation:homePhotoReveal .95s cubic-bezier(.2,.8,.2,1) both}
@keyframes homeHeroUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes homePhotoReveal{from{opacity:.35;transform:scale(1.035);clip-path:inset(0 0 0 8%)}to{opacity:1;transform:scale(1);clip-path:inset(0)}}

/* Keep image licensing easy to find without placing a text strip over city photography. */
.home-photo-credits{margin:0 auto 28px;padding:16px 20px;border-top:1px solid #e9edf3;color:#64748b;font-size:12px}
.home-photo-credits>summary{display:flex;align-items:center;gap:8px;width:max-content;max-width:100%;list-style:none;cursor:pointer;font-weight:650;transition:color .2s ease}
.home-photo-credits>summary::-webkit-details-marker{display:none}
.home-photo-credits>summary:after{content:"+";display:grid;place-items:center;width:20px;height:20px;border:1px solid #dce3ec;border-radius:50%;font-size:14px;font-weight:500;transition:transform .2s ease,background .2s ease}
.home-photo-credits[open]>summary:after{content:"−";background:#f3f5f8;transform:rotate(180deg)}
.home-photo-credits>summary:hover{color:#e77b12}
.home-photo-credits__body{padding:14px 0 2px}
.home-photo-credits__body p{margin:0 0 10px}
.home-photo-credits__body a{color:#334155;text-decoration:underline;text-decoration-color:#cbd5e1;text-underline-offset:3px}
.home-photo-credits__body a:hover{color:#d66b09;text-decoration-color:currentColor}
.home-photo-credits__body ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;margin:0;padding:0;list-style:none}
.home-photo-credits__body li{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px}
.home-photo-credits__body li>span:first-child{font-weight:700;color:#334155}
@media(max-width:600px){.home-photo-credits{padding:14px 16px}.home-photo-credits__body ul{grid-template-columns:1fr}}
@media(min-width:1301px) and (max-width:1600px){.home .site-header .cats{gap:0}.home .site-header .cats>a{gap:4px;padding:6px 5px;font-size:12px}.home .site-header .cats>a i{font-size:13px}}
@media(prefers-reduced-motion:reduce){.home .hero .hl>.pill,.home .hero h1,.home .hero p.s,.home .hero .hsearch,.home .hero .hcities,.home .hero .hstats,.home .hero.has-city-image:not(.city-transitioning) .hcity{animation:none!important;clip-path:none!important;opacity:1!important;transform:none!important}}

/* Keep one consistent navy canvas for every city; fade each fitted photo into it. */
.home .hero.has-city-image{background:#0a1326}
.home .hero.has-city-image:before,.home .hero.has-city-image:after{opacity:0!important}
.home .hero.has-city-image .hcity{background:transparent;isolation:isolate}
.home .hero.has-city-image .hcity:before{content:none}
.home .hero.has-city-image .hcity:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,19,38,.97) 0%,rgba(10,19,38,.86) 27%,rgba(10,19,38,.58) 48%,rgba(10,19,38,.24) 74%,rgba(10,19,38,.28) 100%),var(--himg) right center/auto 100% no-repeat;-webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.01) 14%,rgba(0,0,0,.04) 25%,rgba(0,0,0,.18) 40%,rgba(0,0,0,.52) 58%,#000 76%);mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.01) 14%,rgba(0,0,0,.04) 25%,rgba(0,0,0,.18) 40%,rgba(0,0,0,.52) 58%,#000 76%);pointer-events:none}
.home .hero.has-city-image[data-photo-layout="portrait"] .hcity:after{-webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.01) 32%,rgba(0,0,0,.07) 47%,rgba(0,0,0,.3) 66%,rgba(0,0,0,.72) 84%,#000 95%);mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.01) 32%,rgba(0,0,0,.07) 47%,rgba(0,0,0,.3) 66%,rgba(0,0,0,.72) 84%,#000 95%)}
@media(max-width:1000px){.home .hero.has-city-image .hcity:after{background:linear-gradient(180deg,rgba(10,19,38,.18) 0%,rgba(10,19,38,.38) 46%,rgba(10,19,38,.94) 100%),var(--himg) center center/cover no-repeat;-webkit-mask-image:none;mask-image:none}}
