:root{--green:#606e40;--sage:#c3c59a;--ivory:#f0ead8;--gray:#d5d6d8;--ink:#30352b;--muted:#4A583F;--line:#d8d7c8}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f6f4eb;color:var(--ink);font-family:'SVN Optima',Georgia,serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #7b8d58;outline-offset:3px}img{display:block;width:100%;height:100%;object-fit:cover}#app{min-height:75vh}.shell{width:min(1490px,calc(100% - 84px));margin:auto}.header{height:86px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:25px}.brand{display:inline-flex;align-items:center;gap:13px;border:0;background:none;color:var(--green);padding:0;text-align:left}.brand-icon{display:grid;place-items:center;border:1px solid var(--green);width:39px;height:39px;font-size:22px;font-weight:300;letter-spacing:-4px;padding-right:3px}.nav{display:flex;align-items:center;gap:34px}.nav :is(button,a){border:0;background:none;color:#4A583F;font-size:12px;letter-spacing:.09em;padding:12px 0}.nav :is(button,a):hover{color:#111}.nav .primary:hover{background:#454f2e;color:#fff}.hamburger{display:none;background:none;border:0;font-size:24px}.eyebrow{font-size:10px;letter-spacing:.25em;text-transform:uppercase;font-weight:700;color:#747d65}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:68px 0 25px}.top-hero{display:grid;grid-template-columns:minmax(0,1fr) 265px;background:#384332;min-height:570px;margin-top:26px;overflow:hidden}.hero-photo{background-image:linear-gradient(90deg,rgba(23,30,20,.56),rgba(23,30,20,.06)),linear-gradient(0deg,rgba(22,25,18,.5),transparent 40%),var(--hero-image);background-size:cover;background-position:center;position:relative;color:white;display:flex;flex-direction:column;justify-content:space-between;padding:31px 44px 42px}.outline-light:hover{background:#fff;color:#34412e}.side-link:hover{color:white;padding-left:5px}.filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.filter{border:1px solid #d7d8c7;color:#636b58;background:transparent;padding:10px 15px;font-size:11px;letter-spacing:.04em}.search{display:flex;gap:10px;align-items:center;margin-left:auto;background:#ebece2;border:1px solid #dedfce;padding:0 14px}.search input{border:0;outline:none;background:transparent;font-size:12px;height:39px;width:190px;color:var(--ink)}.project-card{position:relative;isolation:isolate;overflow:hidden;border:0;text-align:left;background:#6c7956;color:#fff;padding:0;display:block}.project-card img{position:absolute;inset:0;transition:transform .65s,filter .5s}.project-card:hover img{transform:scale(1.06);filter:brightness(.86)}.project-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(13,22,14,.88),transparent 67%);pointer-events:none}.project-card.large{grid-column:span 2;grid-row:span 2}.project-card.wide{grid-column:span 2}.fave{color:#fff;background:#18201973;border:1px solid #ffffff55;border-radius:50%;width:30px;height:30px;font-size:16px;display:grid;place-items:center}.fave.saved{color:#f7dca1}.card-bottom{position:absolute;z-index:2;left:22px;right:22px;bottom:20px}.card-bottom small{font-size:10px;letter-spacing:.18em;color:#e0e9d5}.large .card-bottom{left:33px;bottom:31px}.large .card-bottom h3{font-size:clamp(27px,3vw,46px)}.empty{text-align:center;padding:80px 20px;background:#ecefe2;color:var(--green);grid-column:1/-1}.footer p{max-width:500px;color:#898e7d;font-size:12px;line-height:1.8}.detail-hero{height:min(590px,60vw);min-height:360px;position:relative;color:#fff;margin:26px 0 0;display:flex;align-items:end;background-color:#657254;overflow:hidden}.detail-hero img{position:absolute;inset:0}.detail-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(17,26,19,.85),rgba(17,26,19,.1))}.detail-hero h1{font:300 clamp(40px,6vw,80px)/1.05 'SVN Optima';letter-spacing:-.06em;margin:12px 0 18px}.detail-hero p{font-size:13px;color:#e4ebdd}.breadcrumb{display:flex;gap:10px;align-items:center;margin:23px 0;color:#8b917e;font-size:12px}.breadcrumb :is(button,a){border:0;background:none;color:var(--green);padding:0}.solid-btn{background:var(--green);border:1px solid var(--green);color:#fff;padding:15px 22px;font-size:11px;letter-spacing:.13em}.solid-btn:hover{background:#475330}.detail-tile{position:relative;display:flex;flex-direction:column;justify-content:end;text-align:left;overflow:hidden;border:0;padding:24px;background:#58654d;color:#fff}.detail-tile img{position:absolute;inset:0;transition:transform .5s}.detail-tile:hover img{transform:scale(1.06)}.detail-tile:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#111c16d9,transparent 85%)}.detail-tile>*:not(img){position:relative;z-index:1}.detail-tile h3{font:400 24px/1.2 'SVN Optima';margin:7px 0 0}.detail-tile small{font-size:10px;letter-spacing:.14em}.detail-tile.wide{grid-column:span 2}.detail-tile.tall{grid-row:span 2}.detail-tile.info{background:var(--green)}.detail-tile.info:after{display:none}.detail-tile.info p{font-size:12px;line-height:1.8;color:#e0e5d0;max-width:270px}.story-head{text-align:center;padding:70px 10px 38px;max-width:820px;margin:auto}.story-head h1{font:300 clamp(36px,5vw,68px)/1.18 'SVN Optima';letter-spacing:-.055em;margin:16px 0}.story-photo{height:540px;max-height:60vh}.contact-inline{background:#e8e9dc;padding:45px;margin:30px 0 80px;display:flex;justify-content:space-between;align-items:center;gap:25px}.contact-inline h2{font:300 34px 'SVN Optima';margin:8px 0}.modal-backdrop{position:fixed;inset:0;z-index:90;background:#101710b9;display:grid;place-items:center;padding:20px;backdrop-filter:blur(5px)}.modal{position:relative;background:#f7f5ed;color:var(--ink);width:min(495px,100%);max-height:95vh;overflow-y:auto;padding:36px;box-shadow:0 20px 70px #10171055}.modal-close{position:absolute;right:18px;top:14px;border:0;background:none;font-size:24px;color:#6b725e}.modal h2{font:300 35px 'SVN Optima';margin:11px 0 10px}.field{display:block;margin:16px 0 0}.consent{display:flex;align-items:start;gap:10px;font-size:11px;color:#7b8272;line-height:1.6;margin:18px 0}.consent input{margin-top:3px;accent-color:var(--green)}.full{width:100%}.status{font-size:12px;padding:12px 14px;margin-top:13px;line-height:1.65}.status.ok{background:#e0ead9;color:#35542b}.status.error{background:#f3ded7;color:#7c3124}.utility-menu button:hover{background:#ccd6bc}.floating-cta{position:fixed;right:23px;bottom:23px;z-index:40;border:0;background:var(--green);box-shadow:0 8px 30px #1c2c1b4d;color:white;padding:16px 20px;font-size:12px;letter-spacing:.07em}.floating-cta:hover{background:#45502e}@keyframes fade{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}@media(max-width:1050px){.search{margin-left:0}}@media(max-width:750px){.section-heading{margin-top:47px;display:block}.project-card.large{grid-column:span 2;grid-row:span 1}.project-card.wide{grid-column:span 2}.large .card-bottom{left:20px;bottom:20px}.detail-hero{height:450px}.detail-tile.wide{grid-column:span 2}.detail-tile.tall{grid-row:span 1}.story-photo{height:300px}.contact-inline{flex-direction:column;align-items:start;padding:28px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.related-card{padding:0;border:0;background:#e8e9dc;text-align:left;color:var(--ink)}.related-card img{height:170px}.related-card span{display:block;padding:18px;font-size:15px;line-height:1.6}@media(max-width:750px){.related-grid{grid-template-columns:1fr}.related-card img{height:190px}}

/* Compact editorial grid — preserve the existing palette and route structure. */.section-heading{margin:32px 0 16px;align-items:center}.section-heading h2{font-size:clamp(28px,3.4vw,43px);margin:7px 0}.gallery-grid{grid-auto-rows:200px;gap:10px;margin:14px 0 32px}.large .card-bottom{left:26px;bottom:25px}.large .card-bottom h3{font-size:clamp(29px,3.2vw,43px)}.filter{padding:9px 12px}.detail-hero{height:360px;min-height:300px;margin-top:16px}.detail-hero h1{font-size:clamp(38px,5vw,66px)}.breadcrumb{margin:16px 0;font-size:11px;flex-wrap:wrap}.detail-grid{grid-auto-rows:190px;gap:10px;margin:20px 0 30px}.story-head h1{font-size:clamp(32px,4.3vw,54px);margin:12px 0}.story-head p{margin:10px 0}.story-photo{height:420px}.related-grid{gap:10px}.related-card span{padding:14px}.fave{width:36px;height:36px}
@keyframes grid-in{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes panel-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.project-card,.detail-tile,.related-card{animation:none;transition:box-shadow .3s,transform .3s}.project-card:nth-child(2),.detail-tile:nth-child(2){--order:1}.project-card:nth-child(3),.detail-tile:nth-child(3){--order:2}.project-card:nth-child(4),.detail-tile:nth-child(4){--order:3}.project-card:nth-child(5),.detail-tile:nth-child(5){--order:4}.project-card:nth-child(6),.detail-tile:nth-child(6){--order:5}.project-card:nth-child(7),.detail-tile:nth-child(7){--order:6}.detail-tile:nth-child(8){--order:7}.fade{animation:none}.modal{animation:panel-in .25s ease both}.related-card img{transition:filter .4s}.fave{transition:background .2s,color .2s,scale .2s}.fave:active{scale:.88}.filter{transition:background .2s,color .2s,border-color .2s}.project-card:hover .arrow,.detail-tile:hover .tile-arr{translate:3px -3px}
@media(hover:hover){.related-card:hover img{filter:brightness(.88)}}
@media(max-width:750px){.project-card.large{grid-row:span 1;grid-column:span 2}.project-card.wide{grid-column:span 2}.large .card-bottom h3{font-size:28px}.card-bottom small{font-size:9px;letter-spacing:.08em}.detail-hero{height:285px;min-height:285px}.detail-hero h1{font-size:39px}.detail-hero p{font-size:11px}.detail-tile.wide{grid-column:span 2}.detail-tile.tall{grid-row:span 1}.story-photo{height:270px}.related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.related-card:last-child{grid-column:span 2}.related-card img{height:140px}.related-card span{padding:12px;font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.project-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px;margin-top:12px}.project-gallery figure{margin:0}.project-gallery img{height:230px}.project-gallery figcaption{font-size:11px;padding:8px;line-height:1.7}

/* Journal shares the project masonry and responsive card behavior. */
.news-section{padding:30px 0 1px;background:#eae8db;border-top:1px solid var(--line)}
.news-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:20px}.news-heading h2{font:300 clamp(32px,4vw,50px)/1.15 'SVN Optima',Georgia,serif;letter-spacing:-.045em;margin:10px 0}.news-heading p{font-size:13px;line-height:1.7;color:#4A583F;margin:0}.news-all{display:inline-flex;align-items:center;gap:25px;min-height:44px;font-size:10px;letter-spacing:.12em;border-bottom:1px solid #929a7d;white-space:nowrap}.news-all span{font-size:20px}
.brand .brand-icon{width:48px;height:48px;flex-shrink:0;padding:0;border:0;letter-spacing:normal}

/* mobile.css */
/* Mobile layout and display cutouts; desktop editorial layout stays in index.html. */
:root{
 --safe-top:env(safe-area-inset-top,0px);
 --safe-right:env(safe-area-inset-right,0px);
 --safe-bottom:env(safe-area-inset-bottom,0px);
 --safe-left:env(safe-area-inset-left,0px);
}
body{padding-top:var(--safe-top);padding-bottom:var(--safe-bottom)}
main,section,article,.feature-layout>div,.detail-intro>div,.filters,.header,.brand-copy{min-width:0}
img{max-width:100%}
button,a,input,select{touch-action:manipulation}
button{ -webkit-tap-highlight-color:rgba(96,110,64,.18)}
.floating-cta{right:calc(23px + var(--safe-right));bottom:calc(23px + var(--safe-bottom))}
.modal-backdrop{padding:calc(12px + var(--safe-top)) calc(12px + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(12px + var(--safe-left));overflow-y:auto;overscroll-behavior:contain}
.modal{max-height:calc(100vh - 24px - var(--safe-top) - var(--safe-bottom));max-height:calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom));overscroll-behavior:contain;scroll-padding:20px;-webkit-overflow-scrolling:touch}
@media(max-width:750px){
 .shell{width:auto;margin-left:calc(12px + var(--safe-left));margin-right:calc(12px + var(--safe-right));max-width:none}
 .brand{min-height:44px;flex-shrink:1}
 .mobile-menu{padding-block:4px 10px}
 .hero-photo{min-height:320px;padding:20px;gap:30px}.filter{min-height:44px;padding:10px 12px;white-space:normal}
 .search{flex:1 0 100%;width:100%;min-width:0;padding-inline:12px}
 .project-card.large,.project-card.wide{grid-column:span 2}
 .fave{width:44px;height:44px;flex:0 0 44px;font-size:20px}.large .card-bottom h3{font-size:clamp(25px,7vw,34px)}.card-bottom small{line-height:1.6}
 .detail-hero{height:300px;min-height:0}.detail-hero h1{font-size:clamp(32px,9vw,48px);overflow-wrap:anywhere}.detail-hero p{line-height:1.7}.detail-tile small{line-height:1.6;overflow-wrap:anywhere}
 .outline-light,.solid-btn{min-height:46px;line-height:1.6;letter-spacing:.06em;white-space:normal}
 .contact-inline{padding:20px;align-items:stretch}.contact-inline h2{font-size:26px;overflow-wrap:anywhere}.contact-inline p{line-height:1.7}.contact-inline>div:last-child{min-width:0}.contact-inline button{max-width:100%}
 .story-head{padding:26px 0 20px}.story-head h1{font-size:clamp(30px,8.5vw,43px);overflow-wrap:anywhere}.story-head .eyebrow{line-height:1.9}
 .story-photo{height:clamp(220px,66vw,360px)}
 .related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.related-card span{overflow-wrap:anywhere}
 .modal-backdrop{align-items:center}.modal{width:min(495px,100%);padding:28px 20px 22px}.modal-close{display:grid;place-items:center;right:6px;top:6px;min-width:44px;min-height:44px}
 .field input,.field select,.settings-section input{font-size:16px;min-width:0;max-width:100%;min-height:48px}.field select{text-overflow:ellipsis}
 .consent{font-size:12px;gap:12px;min-height:44px;padding-block:6px}.consent input{width:20px;height:20px;flex:0 0 20px}.status{overflow-wrap:anywhere}
 .floating-cta{right:calc(12px + var(--safe-right));bottom:calc(12px + var(--safe-bottom));min-height:48px;padding:12px 18px}.footer p{font-size:12px}
}
/* Narrow screens keep the grid but give long project titles full width. */
@media(max-width:359px){
 .project-card.large,.project-card.wide,.detail-tile.wide,.related-card:last-child{grid-column:auto}
}
/* Landscape phones: preserve room for the content and keyboard. */
@media(max-height:500px) and (orientation:landscape){
 .modal-backdrop{align-items:start}.modal{margin:auto}.modal h2{font-size:26px}.modal{padding-top:24px}
 .hero-photo{min-height:280px}.top-hero{grid-template-columns:1fr}
}

/* Cover-driven masonry. Each image determines its card height; no fixed row spans.
   Columns keep DOM/keyboard order from top to bottom, then left to right. */
.gallery-grid>.project-card{display:block;width:100%;break-inside:avoid;position:relative;margin:0 0 12px;grid-column:auto;grid-row:auto;overflow:hidden;transform:translateZ(0)}
.gallery-grid>.project-card .card-bottom h3{font-size:clamp(20px,2vw,30px);line-height:1.25;overflow-wrap:anywhere}
.gallery-grid>.empty{column-span:all}
@media(max-width:750px){
 .gallery-grid>.project-card .card-bottom small{font-size:8px;letter-spacing:.04em}
}

/* Keep the two homepage collections close after removing editorial labels. */
#collection{margin-top:28px}
#collection h2{margin-top:0}
#projectGrid{margin-bottom:18px}
.news-heading h2{margin-top:0}

/* Pure crossfade: preserve image framing, with no zoom or permanent overlay. */
.hero-photo{isolation:isolate;overflow:hidden;background:#384332;padding-bottom:74px}
.hero-media{position:absolute;inset:0;z-index:-2;overflow:hidden}
.hero-slide{position:absolute;inset:0;visibility:hidden;opacity:1}
.hero-slide.is-exiting{visibility:visible;z-index:2;animation:hero-crossfade .9s ease-in-out both}
.hero-slide.is-active{transform:none;visibility:visible;z-index:1}
@keyframes hero-crossfade{0%{opacity:1;visibility:visible}99%{visibility:visible}100%{opacity:0;visibility:hidden}}
@media(prefers-reduced-motion:reduce){.hero-slide.is-exiting{animation:none;visibility:hidden}}

/* Full-width hero: only the main headline and discovery action remain. */

/* Circular portrait, retaining the background from the uploaded photograph. */
.brand .brand-icon img{object-fit:cover;object-position:58% 20%;transform:scale(1.7);transform-origin:58% 22%}

/* Compact primary navigation. */
.nav :is(button,a):not(.primary){border-radius:3px}
.nav :is(button,a):not(.primary):hover{background:#606e400c;color:var(--green)}
.nav .primary{margin-left:12px;padding:12px 20px;font-size:12px;min-height:44px}

.contact-picker{max-width:490px}
.contact-picker h2{font-size:32px;line-height:1.2;padding-right:16px}
.contact-options{display:grid;gap:10px;margin-top:24px}
.contact-option{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;min-height:76px;padding:17px 20px;background:#606e400a;border:1px solid #c3c59a;color:#30352b;text-align:left}
.contact-option strong{display:block;font-size:20px;font-weight:500}
.contact-option small{display:block;font-size:13px;line-height:1.5;margin-top:5px;color:#4A583F}
.contact-option>span:last-child{font-size:24px;color:#606e40}

/* Floating consultation action matches the header CTA. */
.floating-cta{background:var(--green);color:#fff;border:0;border-radius:0;padding:12px 20px;min-height:44px;font-size:12px;font-weight:400;letter-spacing:.045em;line-height:normal;box-shadow:none}
.floating-cta:hover{background:#454f2e;color:#fff}

/* Quiet footer with one identity block and direct contact links. */
.footer-contact a:hover{text-decoration:underline;text-underline-offset:5px}
.floating-cta[hidden]{display:none!important}
.footer-socials{display:flex;align-items:center;gap:4px}
.footer-socials:empty{display:none}
.social-icon svg{width:22px;height:22px;flex-shrink:0}
.footer-contact .social-icon:hover{background:#606e400c;border-color:#c3c59a;text-decoration:none}
.gallery-grid [data-project] .card-bottom p{display:block;font-size:13px;line-height:1.5;margin:7px 0 0;color:#f0ead8}

/* About: one balanced editorial composition, independent of homepage layouts. */
.about-page{padding-top:46px;padding-bottom:48px}
.about-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,76px);align-items:center}
.about-copy .eyebrow{color:var(--green);letter-spacing:.18em}
.about-copy h1{font-size:clamp(36px,4.2vw,60px);line-height:1.12;font-weight:400;letter-spacing:-.035em;margin:18px 0 23px;text-wrap:balance}
.about-copy h2{font-size:25px;line-height:1.4;font-weight:400;margin:0 0 12px}
.about-copy .solid-btn{margin:0 0 20px;min-height:44px}
.about-visual{margin:0;position:relative;aspect-ratio:2/3;max-height:760px;overflow:hidden;background:#d5d6d8}
.about-visual>img{width:100%;height:100%;object-fit:cover}
.about-visual:after{content:"";position:absolute;inset:50% 0 0;background:linear-gradient(0deg,#17201499,transparent);pointer-events:none}
.about-visual figcaption{position:absolute;z-index:1;bottom:26px;left:28px;right:28px;display:flex;flex-direction:column;gap:9px;color:#fff;font-size:15px;line-height:1.5}
@media(max-width:1000px) and (min-width:751px){.about-visual{aspect-ratio:2/3}}
@media(max-width:750px){.about-page{padding-top:26px;padding-bottom:30px}.about-layout{grid-template-columns:1fr;gap:26px}.about-visual figcaption{left:20px;bottom:20px}}

/* Preserve the uploaded portrait on phones as well. */
@media(max-width:750px){.about-visual{aspect-ratio:2/3;max-height:none}}

/* About copy: name, one headline, one description, one action. */
.about-copy{max-width:510px;padding:28px 0}
.about-name{display:block;color:var(--green);font-size:16px;line-height:1.5;letter-spacing:.06em}
.about-copy h1{font-size:clamp(40px,4.7vw,66px);line-height:1.12;letter-spacing:-.035em;margin:22px 0 26px}
.about-copy .about-description{font-size:18px;line-height:1.85;margin:0 0 32px;max-width:465px;color:#4A583F}
.about-copy .about-action{margin:0;padding:15px 24px;font-size:12px;letter-spacing:.06em;min-height:48px}
@media(max-width:750px){.about-copy{padding:8px 0 0;max-width:none}.about-name{font-size:15px}.about-copy h1{font-size:clamp(38px,8vw,54px);margin:18px 0 22px}.about-copy .about-description{font-size:17px;line-height:1.8;margin-bottom:26px;max-width:520px}}

/* Loan planner: compact inputs and a visual schedule. */

/* Compact desktop planner: all inputs and results side by side. */

/* Consistent DD/MM/YYYY calendar, independent of OS date picker styling. */
.detail-hero h1{margin:0;line-height:1}
.detail-hero h1+p{margin:3px 0 0;font-size:15px;line-height:1.35}
@media(max-width:750px){.detail-hero h1+p{margin-top:3px;font-size:13px}}
.loan-calendar{position:fixed;z-index:1000;width:min(300px,calc(100vw - 16px));padding:12px;background:#f6f4eb;color:#30352b;border:1px solid #c3c59a;box-shadow:0 10px 30px #30352b24;font-family:'SVN Optima',Georgia,serif}
.loan-calendar button,.loan-calendar select{font-family:inherit;color:var(--green);border:0;background:transparent;font-size:13px;min-height:34px}
.loan-calendar button{cursor:pointer}.loan-calendar button:focus-visible,.loan-calendar select:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.loan-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:5px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.loan-calendar-head>div{display:flex;gap:3px}.loan-calendar-head>button{font-size:11px;padding:4px}.loan-calendar select{max-width:96px;background:#eceee1;padding:4px}
.loan-calendar-week,.loan-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.loan-calendar-week{font-size:10px;text-align:center;color:#4A583F;padding:12px 0 6px}
.loan-calendar-days button{min-height:35px;border-radius:2px}.loan-calendar-days button:hover{background:#e3e6d3}.loan-calendar-days button[aria-current=date]{box-shadow:inset 0 0 0 1px #a5ae8b}.loan-calendar-days button[aria-pressed=true]{background:var(--green);color:white}
.loan-calendar-foot{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:8px;padding-top:6px}.loan-calendar-foot button{font-size:12px;padding:4px 7px}
@media(pointer:coarse){.loan-calendar{width:min(340px,calc(100vw - 16px))}.loan-calendar-days button,.loan-calendar-foot button,.loan-calendar-head button,.loan-calendar select{min-height:44px}}

/* Balanced panels with distinct calculated values. */

/* Keep the highlighted results compact on desktop. */

/* One cover-driven masonry system across public content pages. */
.gallery-grid,.detail-grid,.related-grid,.project-gallery{display:block;columns:3;column-gap:12px;grid-auto-rows:unset}
.gallery-grid>.project-card,.detail-grid>.detail-tile,.related-grid>.related-card,.project-gallery>figure{display:block;width:100%;break-inside:avoid;grid-column:auto;grid-row:auto;margin:0 0 12px;overflow:hidden;box-sizing:border-box}
.detail-grid>.detail-tile{padding:0;position:relative;isolation:isolate}
.detail-grid>.detail-tile>img,.related-grid>.related-card>img,.project-gallery>figure>img{position:relative;inset:auto;width:100%;height:auto;object-fit:contain}
.detail-grid>.detail-tile>.tile-copy{position:absolute;inset:auto 18px 18px;z-index:1}
.detail-grid>.detail-tile .tile-copy h3{font-size:clamp(20px,2vw,28px);line-height:1.25;max-width:100%;overflow-wrap:anywhere}
.detail-grid>.detail-tile .tile-copy small{font-size:9px;line-height:1.5}
.detail-grid>.detail-tile:not(:has(>img)){min-height:140px;padding:20px}
.detail-grid>.detail-tile:not(:has(>img))>.tile-copy{position:relative;inset:auto}
.related-grid>.related-card>span{padding:14px;line-height:1.6}
.project-gallery>figure{background:#eceee1}
@media(min-width:1500px){.gallery-grid,.detail-grid,.related-grid,.project-gallery{columns:4}}
@media(max-width:1050px){.gallery-grid,.detail-grid,.related-grid,.project-gallery{columns:2}}
@media(max-width:479px){.gallery-grid,.detail-grid,.related-grid,.project-gallery{columns:1}}
.follow-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;white-space:nowrap;flex-shrink:0}
/* Journal: three flowing masonry columns, with image-driven heights. */
#projectGrid.project-waterfall{columns:unset;position:relative;display:block}
#projectGrid.project-waterfall>.project-card{position:absolute;margin:0}
#projectGrid.project-waterfall>.project-card>img{width:100%;height:100%}
.contact-inline.journal-follow{padding:16px 22px;gap:20px;margin:16px 0 24px}
.journal-follow h2{font-size:clamp(21px,2.2vw,28px);line-height:1.35;margin:0}
.journal-follow .follow-link{min-height:40px;padding:11px 18px;font-size:10px;letter-spacing:.06em}
@media(max-width:750px){.contact-inline.journal-follow{padding:16px;gap:12px;margin-bottom:20px}.journal-follow h2{font-size:22px}}
.story-head.journal-heading h1{margin:0 0 10px;font-size:clamp(30px,3.6vw,46px);line-height:1.2}
.story-head.journal-heading p{margin:0;font-size:14px;line-height:1.6}
.journal-heading+.detail-grid.journal-three-grid{margin-top:14px}
@media(max-width:750px){.story-head.journal-heading h1{font-size:30px;margin-bottom:7px}}
.tile-copy h3 .article-read-inline,.card-bottom h3 .article-read-inline{display:inline-block;vertical-align:middle;min-height:0;margin:0 0 0 4px;padding:4px 6px;font-size:8px;line-height:1.1;letter-spacing:.04em;white-space:nowrap;font-weight:400}
@media(max-width:750px){.collection-page .project-card .project-view{right:12px;bottom:12px;padding-inline:8px;font-size:8px}}
.article-read{display:inline-flex;align-items:center;min-height:32px;margin-top:12px;padding:7px 12px;border:1px solid #f0ead89c;background:#17201435;color:#fff;font-size:9px;line-height:1;letter-spacing:.1em;position:relative;z-index:1}
.journal-pagination{display:flex;flex-direction:column;align-items:center;gap:12px;margin:4px 0 32px}.journal-pagination p{font-size:11px;color:#717961;margin:0}.journal-more{min-height:44px;min-width:180px;letter-spacing:.1em;padding:12px 28px}
.detail-grid.journal-three-grid{display:block;columns:3;column-gap:14px;grid-auto-rows:unset}
.detail-grid.journal-three-grid>.detail-tile{display:block;width:100%;margin:0 0 14px;break-inside:avoid;grid-column:auto;grid-row:auto}
@media(max-width:1000px){.detail-grid.journal-three-grid{columns:2}}
@media(max-width:600px){.detail-grid.journal-three-grid{columns:1;column-gap:12px}}

/* desktop.css */
/* Laptop-first sizing. These rules keep the existing visual language and
   adapt to CSS viewport size, including high-DPI screens and browser zoom. */
main:focus{outline:none}
.brand-tagline{font-size:clamp(14px,1.4vw,20px);line-height:1.3;white-space:nowrap;letter-spacing:.015em}
.brand{gap:10px}
@media(max-width:900px){
 .header .nav{display:none}
 .header .hamburger{display:grid;place-items:center;flex:0 0 44px;min-width:44px;min-height:44px;border:0;background:none;color:var(--green)}
 .mobile-menu{display:flex;flex-direction:column;gap:0;padding:4px 0 10px}
 .mobile-menu :is(button,a){min-height:44px;border:0;border-bottom:1px solid var(--line);text-align:left;background:none;padding:12px;color:var(--green)}
}
@media(min-width:901px) and (max-width:1150px){
 .header .brand{gap:7px}
 .header .nav .primary{margin-left:4px;padding-inline:12px}
}
@media(min-width:751px){
 :root{--page-gutter:clamp(24px,3vw,56px);--masonry-gap:clamp(12px,1.15vw,18px)}
 .shell{width:min(1440px,calc(100% - var(--page-gutter)*2));max-width:calc(100% - var(--safe-left) - var(--safe-right) - 24px);margin-inline:auto}
 .header{height:66px;min-height:66px;gap:20px}
 .nav{gap:clamp(2px,.5vw,9px);flex-shrink:0}
 .nav .primary{margin-left:8px;padding:11px 20px}
 .brand{flex:0 0 auto}
 .section-heading{margin:30px 0 16px}
 #collection{scroll-margin-top:18px}
 .filters{gap:8px;align-items:center}.filters>.filter{min-height:38px;padding:8px 13px;font-size:12px;white-space:nowrap}
 .filters .search{flex:1 1 210px;max-width:330px;min-width:180px;padding-inline:12px}
 .filters .search input{width:100%;min-width:0;font-size:13px;height:38px}
 .gallery-grid,.detail-grid,.related-grid,.project-gallery{column-gap:var(--masonry-gap)}
 .gallery-grid{--project-columns:3}
 .gallery-grid,.detail-grid,.project-gallery{column-count:3}
 .related-grid{column-count:3}
 .detail-grid.journal-three-grid{column-count:3;column-gap:var(--masonry-gap)}
 .detail-hero{height:clamp(300px,43svh,440px);min-height:0;margin-top:14px}
 .detail-hero h1{font-size:clamp(40px,4.3vw,68px);line-height:1.03;max-width:24ch;overflow-wrap:anywhere}
 .detail-hero h1+p{margin-top:3px;font-size:15px}
 .breadcrumb{font-size:11px;line-height:1.7;gap:8px;flex-wrap:wrap;overflow-wrap:anywhere}
 .breadcrumb :is(button,a){font-size:inherit;line-height:inherit;white-space:normal}
 .story-head{max-width:1060px;margin-inline:auto;padding:26px 8px 22px}
 .story-head h1{font-size:clamp(34px,4vw,56px);line-height:1.17;overflow-wrap:anywhere}
 .story-photo{height:clamp(300px,48svh,520px)}.contact-inline h2{font-size:clamp(24px,2.4vw,32px);line-height:1.35}
 .contact-inline>div{min-width:0}.contact-inline>.solid-btn{flex-shrink:0}
 .journal-follow h2{font-size:clamp(22px,2vw,28px)}
 .about-page{padding-block:32px}
 .modal{width:min(520px,100%);padding:30px;overflow-y:auto}
 .contact-picker{max-width:480px}
}
@media(min-width:751px) and (max-width:1099px){
 .gallery-grid{--project-columns:2}
 .gallery-grid,.detail-grid,.related-grid,.project-gallery,.detail-grid.journal-three-grid{column-count:2}
 .filters .search{max-width:none}
 .about-layout{gap:28px}
}
@media(min-width:751px) and (max-width:900px){
 .mobile-menu{display:flex;flex-direction:column;gap:0;padding:4px 0 10px}
 .mobile-menu :is(button,a){min-height:44px;border:0;border-bottom:1px solid var(--line);text-align:left;background:none;padding:12px;color:var(--green)}
 .about-layout{grid-template-columns:1fr;gap:24px}.about-copy{max-width:600px}.about-visual{width:min(100%,440px);justify-self:center}
}
@media(min-width:901px){.about-visual{width:min(100%,48svh);justify-self:center;max-height:none;aspect-ratio:2/3}}
@media(min-width:1720px){
 .shell{width:min(1560px,calc(100% - var(--page-gutter)*2))}
 .gallery-grid{--project-columns:4}
 .gallery-grid,.detail-grid,.project-gallery{column-count:4}
 .detail-grid.journal-three-grid,.related-grid{column-count:3}
}
/* Let the financial planner use available width without shrinking controls. */
@media(min-width:901px) and (max-height:780px){
 .header{height:60px;min-height:60px}
}

/* Desktop home hero: aligned to the navigation and page shell.
   Images, video and posters share the same crop box; mobile rules are untouched. */
@media(min-width:901px){
 .shell>.top-hero{
  --hero-header-height:66px;
  width:100%;max-width:none;margin:0;
  height:calc(100vh - var(--hero-header-height) - var(--safe-top,0px));
  height:calc(100svh - var(--hero-header-height) - var(--safe-top,0px));
  min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);
 }
 .top-hero>.hero-photo{
  width:100%;height:100%;min-width:0;min-height:0;max-height:100%;
  box-sizing:border-box;padding:clamp(24px,4vh,56px) clamp(28px,3.5vw,56px);
 }
 .top-hero .hero-media,.top-hero .hero-slide{
  position:absolute;inset:0;width:100%;height:100%;overflow:hidden;
 }
 .top-hero .hero-slide>img,.top-hero .hero-slide>video{
  display:block;position:absolute;inset:0;width:100%;height:100%;
  min-width:0;min-height:0;max-width:none;max-height:none;
  aspect-ratio:auto;object-fit:cover;object-position:center;
 }
}

/* Local brand description: desktop only. */

/* polish.css */
/* Final responsive refinements, shared by all public routes. */
.header-contact{display:none}
.floating-cta{display:none!important}
.mobile-menu :is(button,a)[aria-current=page]{font-weight:600;background:#eceee1}
.detail-grid>.detail-tile>img,.news-project-grid>.project-card>img,.project-gallery>figure>img,.related-grid>.related-card>img{aspect-ratio:auto 4/3;height:auto;min-height:0;background:#d9ddcc}
.detail-grid>.detail-tile:after,.news-project-grid>.project-card:after{pointer-events:none}
.filter:focus-visible,.header :is(button,a):focus-visible{outline-offset:2px}
[hidden]{display:none!important}
.mobile-card-pagination{margin-top:16px}
.spaces-section{background:#f6f4eb;border-top:1px solid var(--line)}
.spaces-empty{color:var(--muted);line-height:1.7;padding:16px 0}
.project-waterfall{position:relative;display:block}
.project-waterfall>.detail-tile>img,.project-waterfall>.project-card>img{width:100%;height:100%;object-fit:cover}
.project-waterfall>.related-card>img{height:calc(100% - 48px);object-fit:cover}
.project-waterfall>.detail-tile:not(:has(>img)){padding:20px}
@media(max-width:900px){
 .mobile-menu{position:fixed;top:var(--mobile-menu-top,68px);z-index:44;margin:0;max-height:calc(100dvh - var(--mobile-menu-top,68px) - 8px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 12px 24px #29332424;border:1px solid var(--line);padding:4px 8px 8px}
 .header .hamburger{flex:0 0 40px;width:40px;min-width:40px;height:44px}
 .header-contact{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid #606e4055;background:transparent;color:var(--green);padding:10px;border-radius:50%}
 .header-contact svg{width:19px;height:19px}
 .mobile-menu :is(button,a){font-size:15px;min-height:46px}
}
@media(max-width:750px){
 .mobile-menu :is(button,a){font-size:17px;font-weight:500;line-height:1.4;letter-spacing:.015em;color:#39452a;min-height:52px;padding:14px 12px}
 .mobile-menu :is(button,a)[aria-current=page]{font-weight:600;color:#303b22}
 .gallery-grid>[data-project] .project-view{display:inline-block;position:absolute;right:12px;bottom:14px;z-index:3;margin:0;padding:8px;font-size:10px}
 #projectGrid,.news-project-grid,.detail-grid.journal-three-grid,.related-grid{--cover-ratio:1.6}
 .news-project-grid .card-bottom .article-topic,.detail-grid.journal-three-grid .tile-copy>small{display:none}
 .news-project-grid>.project-card>img,.detail-grid.journal-three-grid>.detail-tile>img{object-fit:cover;object-position:center}
 .filters>[data-series],.filters>[data-region]:not([data-region="Hưng Yên"]):not([data-region="Hà Nội"]){display:none}
 .filters{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;gap:6px;padding:0 0 8px;scrollbar-width:thin;scrollbar-color:#a6ae91 transparent}
 .filters>.filter{flex:0 0 auto;white-space:nowrap;font-size:13px;min-height:44px;padding:10px 13px}
 .filters>[data-region="Hưng Yên"],.filters>[data-region="Hà Nội"]{flex:1 1 0;text-align:center}
 .filters>.search{display:none}
 .filters:has(.search:focus-within){overflow:visible}
 .search-mobile{display:flex!important;margin:0 0 12px!important;width:100%!important;max-width:none!important;min-width:0!important}
 .search-mobile input{width:100%;min-width:0;height:44px;font-size:16px}
 .section-heading{margin:22px 0 12px}
 .collection-page .project-card .project-view{right:12px;bottom:14px;font-size:10px;padding:8px}
 .detail-grid>.detail-tile .tile-copy small{font-size:11px;letter-spacing:.03em}
 .article-read-inline,.gallery-grid>[data-project] .project-view{display:inline-flex;align-items:center;justify-content:center;width:60px;height:23px;min-height:0;font-size:9px!important;padding:5px 7px!important;line-height:1.1;letter-spacing:.04em;white-space:nowrap;text-align:center}
 .gallery-grid.news-project-grid>.project-card .card-bottom h3,.detail-grid.journal-three-grid>.detail-tile .tile-copy h3{font-size:clamp(16px,4.2vw,18px);line-height:1.2;letter-spacing:-.015em}
 .mobile-article-card>.article-read-inline{position:absolute;right:12px;bottom:14px;z-index:3;margin:0}
 .news-heading .news-all{font-size:10px;flex:0 0 78px;line-height:1.5;min-height:44px;display:flex;align-items:center}
 .compact-footer .footer-socials{flex:0 0 100%;justify-content:center;gap:16px}
 .compact-footer .social-icon{min-width:40px;min-height:44px;display:grid;place-items:center}
}
@media(prefers-reduced-motion:reduce){.header{backdrop-filter:none}}

/* Shared contrast and interaction treatment across desktop and mobile. */
:root{--ink:#293324;--muted:#525f48;--line:#b9bea9;--control-ink:#394929;--control-fill:#4d5e34}
.header .nav :is(button,a){font-weight:600;color:var(--control-ink);min-height:44px}
.header .nav .primary,.solid-btn{background:var(--control-fill);color:#fff;font-weight:600}
.mobile-menu :is(button,a){font-weight:600;color:var(--control-ink);border-bottom-color:#bcc3ad}
.filter{color:var(--control-ink);font-weight:500;border-color:#a9b298;background:#faf9f3}
.filter.active{background:var(--control-fill);border-color:var(--control-fill);color:#fff;font-weight:600}
.journal-more,.news-all{font-weight:600;color:var(--control-ink);border-color:#8c9b77}
.search,.search-mobile{color:var(--control-ink);border:1px solid #a9b298;background:#f1f2e8}
.search input{color:#293924;font-weight:500}
input::placeholder,textarea::placeholder{color:#58644e;opacity:1}
.search svg{width:18px;height:18px;flex:0 0 18px}
.breadcrumb :is(button,a){position:relative;min-height:0}
.breadcrumb :is(button,a):before{content:"";position:absolute;inset:-12px 0}
.social-icon svg{width:24px;height:24px}
.social-icon svg[stroke],.header-contact svg{stroke-width:2}
.social-icon svg path[stroke]{stroke-width:2}
.header .hamburger{color:var(--control-ink);font-size:25px;font-weight:600}
.modal-close{color:var(--control-ink);font-size:28px;font-weight:500;min-width:44px;min-height:44px;display:grid;place-items:center}
.field label,.consent{color:#394929;font-weight:500}
.field input,.field select{border-color:#a2ae91;color:#293924;background:#fcfbf6}
.loan-calendar{border-color:#98a983}
.loan-calendar button{font-weight:500;color:var(--control-ink)}
.contact-option strong{color:#394929;font-weight:600}
.gallery-grid [data-project] .card-bottom p{color:#fff;font-weight:500;text-shadow:0 1px 3px #000b}
.project-card:after,.detail-tile:after{background:linear-gradient(180deg,transparent 30%,#16201245 58%,#10190ee6 100%)}
.article-read,.article-read-inline,.project-view,.hero-body .outline-light{font-weight:600!important;color:#fff;border-color:#f0ead8!important;background:#26351de8;text-shadow:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[role=link]:focus-visible{outline:3px solid #405c2b;outline-offset:3px}
input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:#405c2b}
button:active,.social-icon:active{filter:brightness(.9)}
@media(hover:hover){
 .filter:hover:not(.active),.contact-option:hover,.social-icon:hover{background:#e1e7d4;border-color:#6c8052}
 .solid-btn:hover,.header .nav .primary:hover{background:#3b4b28}
 .article-read:hover,.project-card:hover .article-read,.detail-tile:hover .article-read,.hero-body .outline-light:hover{background:#f0ead8;color:#293924}
}
@media(max-width:900px){
 .header .header-contact{width:44px;height:44px;flex-basis:44px}
 .breadcrumb :is(button,a):before{content:"";position:absolute;inset:-6px 0}
}

/* Keep mobile navigation solid while tapping or scrolling over photos. */
@media(max-width:750px){
 .header :is(a,button){-webkit-tap-highlight-color:transparent}
 .header .brand,.header .brand:active{filter:none;opacity:1}
}

/* Four mobile home screens; other routes and desktop keep their flowing layout. */
@media(max-width:750px){
 body:has(.home-page){--home-header:calc(76px + env(safe-area-inset-top,0px));--home-screen:calc(100svh - var(--home-header))}
 .home-page>.shell{margin-block:0}
 .home-page .home-project-screen,.home-page>.news-section{display:flex;flex-direction:column;min-height:var(--home-screen);padding-block:16px;gap:8px;scroll-margin-top:var(--home-header)}
 .home-page>.news-section{--home-row:max(86px,calc((var(--home-screen) - 156px)/3));margin:0;border-top:1px solid var(--line)}
 .home-page>.news-section>.shell{display:flex;flex:1;flex-direction:column;gap:8px}
 .home-page .section-heading,.home-page .news-heading{margin:0;min-height:36px;align-items:center}
 .home-page .section-heading h2,.home-page .news-heading h2{font-size:clamp(24px,6.5vw,28px);line-height:1.15;margin:0;letter-spacing:-.025em}
 .home-page .filters{padding:0;min-height:44px;overflow:visible}
 .home-page .filters>span{display:none}
 .home-page .search-mobile{margin:0!important;min-height:46px}
 .home-page :is(#projectGrid,.news-project-grid){display:grid;columns:unset;grid-template-columns:minmax(0,1fr);grid-auto-rows:var(--home-row);gap:8px;margin:0!important;height:auto}
 .home-page :is(#projectGrid,.news-project-grid)>.project-card{position:relative;width:100%;height:100%;margin:0;min-height:0;grid-column:auto;grid-row:auto}
 .home-page :is(#projectGrid,.news-project-grid)>.project-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
 .home-page .journal-pagination p{margin:0;font-size:12px;line-height:1.4}
 .home-page .journal-pagination .journal-more{min-width:0;font-size:11px;min-height:44px;padding:10px 14px;flex-shrink:0}
 .home-page #projectMore:empty{display:none}
 .home-page #projectMore{margin-top:auto}
 .home-page .news-heading .news-all{min-height:36px;font-size:9px;flex-basis:72px}
 .home-page #projectGrid .card-bottom h3{font-size:17px;line-height:1.15;white-space:normal;width:auto;overflow-wrap:anywhere}
}
@media(max-width:750px){
 .home-page #journal-preview{--home-row:max(56px,calc((var(--home-screen) - 180px)/6))}
 .home-page #journal-preview .news-project-grid>.project-card{display:grid;grid-template-columns:38% minmax(0,1fr);gap:14px;align-items:center;background:transparent;color:var(--ink);border-bottom:1px solid var(--line);padding-bottom:6px}
 .home-page #journal-preview .news-project-grid>.project-card:after{display:none}
 .home-page #journal-preview .news-project-grid>.project-card>img{position:static;width:100%;height:100%;min-height:0;object-fit:cover}
 .home-page #journal-preview .news-project-grid>.project-card>.card-bottom{position:static;inset:auto;min-width:0;padding:0}
 .home-page #journal-preview .mobile-title-line{font-size:clamp(16px,4.2vw,18px);line-height:1.25;font-weight:500;text-shadow:none;color:var(--ink)}
 .home-page #journal-preview .article-read-inline{display:none!important}
 .home-page #journal-preview .home-news-more{display:flex;margin-top:auto}
}

@media(max-width:750px){
 .home-page #spaces-preview .mobile-card-pagination .journal-more,.home-page #journal-preview .home-news-more .journal-more{font-size:10px;letter-spacing:.02em;padding-inline:10px;text-align:center}
}

/* Project article previews: three readable rows per mobile screen. */
.project-article-screen{display:contents}
@media(max-width:750px){
 body:has(.project-article-screen){--project-header:calc(76px + env(safe-area-inset-top,0px));--project-screen:calc(100svh - var(--project-header))}
 .project-article-screen{display:flex;flex-direction:column;gap:8px;padding-block:16px;min-height:var(--project-screen);scroll-margin-top:var(--project-header)}
 .project-article-screen>.detail-grid{display:grid;columns:unset;grid-template-columns:minmax(0,1fr);grid-auto-rows:max(92px,calc((var(--project-screen) - 200px)/3));gap:8px;margin:0;height:auto}
 .project-article-screen>.detail-grid>.detail-tile{position:relative;width:100%;height:100%;min-height:0;grid-column:auto;grid-row:auto;margin:0;padding:0;overflow:hidden}
 .project-article-screen>.detail-grid>.detail-tile>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
 .project-article-screen .mobile-card-pagination p{font-size:12px;line-height:1.4;margin:0}
}

/* seo.css */
/* Semantic links keep the existing control and card presentation. */
.nav a,.mobile-menu a{cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.mobile-menu a{justify-content:flex-start}
.brand[data-spa-link]{cursor:pointer}
.project-card-link{position:absolute;inset:0;z-index:4}
.project-card .fave{position:relative;z-index:5}
.project-card:focus-within{outline:3px solid #405c2b;outline-offset:3px}
.breadcrumb{display:block;line-height:1.7}
.breadcrumb ol{display:flex;flex-wrap:wrap;align-items:center;gap:0;list-style:none;margin:0;padding:0}
.breadcrumb li{display:inline;min-width:0}
.breadcrumb li+li:before{content:'/';display:inline-block;padding-inline:9px;color:#78816b}
.breadcrumb a{position:relative;color:var(--green);text-decoration:none}
.breadcrumb a:hover{text-decoration:underline;text-underline-offset:3px}

/* article.css */
/* Article presentation. Two-column editorial spreads apply to desktop only. */
.image-empty{display:block;width:100%;height:100%;background:#e6e8de}
.detail-tile.has-no-image{background:#e6e8de;border:1px solid #d5dcc8}
.detail-tile.has-no-image:after{background:none!important}
.detail-tile.has-no-image .tile-copy h3{color:#34412e;text-shadow:none}
.detail-grid>.detail-tile.has-no-image{padding:0;min-height:180px}
.detail-grid>.detail-tile.has-no-image>.image-empty{position:absolute;inset:0}
.detail-grid>.detail-tile.has-no-image>.tile-copy{position:absolute}
.article-visual>.image-empty{height:auto;aspect-ratio:4/3;min-height:220px;border:1px solid #dce1d2;background:#eceee6}
.article-visual figcaption{font-size:11px;line-height:1.6;color:#4A583F;margin-top:8px}
.article-text p{margin:0 0 20px;white-space:pre-line}
.article-related{max-width:none;margin:0 0 28px}
.article-related .section-heading{margin-top:26px}
.article-related .related-articles-grid{margin-bottom:24px}
@media(min-width:901px){
 .article-page .story-head{padding:32px 8px 30px;max-width:1000px}
 .article-layout{display:grid;gap:clamp(32px,4vw,64px);margin:0 0 38px}
 .article-spread{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(28px,4vw,72px);align-items:center}
 .article-spread .article-visual,.article-spread:not(:first-child) .article-visual{display:block;min-width:0}
 .article-visual img{height:auto;aspect-ratio:4/3;object-fit:cover;background:#e1e4d6}
 .article-visual figcaption{margin:9px 0 0}
 .article-text{max-width:none;margin:0;font-size:clamp(16px,1.2vw,18px);line-height:1.9;min-width:0;overflow-wrap:anywhere}
 .article-text h2{font-size:clamp(27px,2.5vw,38px);line-height:1.2;margin:0 0 18px;font-weight:400;letter-spacing:-.02em}
 .article-related .section-heading h2{font-size:clamp(29px,3vw,42px)}
}

/* Desktop article cards: title at lower left, badge aligned to its last line. */
@media(min-width:901px){
 .news-project-grid>.project-card:has(.article-read-inline)>.card-bottom,
 .detail-grid>.detail-tile:has(.article-read-inline)>.tile-copy{
  --card-title-line-height:clamp(26.25px,2.375vw,35px);
  left:18px;right:18px;bottom:18px;padding:0 98px 0 0;
 }
 .news-project-grid>.project-card:has(.article-read-inline) .card-bottom h3,
 .detail-grid>.detail-tile:has(.article-read-inline) .tile-copy h3{
  position:static;white-space:normal;overflow-wrap:anywhere;word-break:normal;
  width:auto;max-width:100%;margin:0;font-size:clamp(21px,1.9vw,28px);line-height:1.25;
 }
 .news-project-grid .card-bottom .article-read-inline,
 .detail-grid .tile-copy .article-read-inline{
  position:absolute;right:0;bottom:calc((var(--card-title-line-height) - 30px)/2);left:auto;top:auto;
  display:inline-flex;align-items:center;justify-content:center;
  width:84px;height:30px;min-height:30px;margin:0;padding:7px 8px;
  font-size:10px;line-height:1;white-space:nowrap;letter-spacing:.05em;
 }
}

/* Mobile article cards: complete title, natural wrapping, badge beside last line. */
@media(max-width:900px){
 .news-project-grid>.project-card:has(.article-read-inline)>.card-bottom,
 .detail-grid>.detail-tile:has(.article-read-inline)>.tile-copy{
  --mobile-title-line-height:clamp(20px,5.25vw,22.5px);
  left:14px;right:14px;bottom:14px;padding:0 72px 0 0;
 }
 .news-project-grid>.project-card:has(.article-read-inline) .card-bottom h3,
 .detail-grid>.detail-tile:has(.article-read-inline) .tile-copy h3{
  position:static;width:auto;max-width:100%;margin:0;
  font-size:clamp(16px,4.2vw,18px);line-height:1.25;
  white-space:normal;overflow-wrap:anywhere;word-break:normal;
 }
 .mobile-article-card .mobile-title-line{
  display:block;white-space:normal;line-height:inherit;
 }
 .news-project-grid .article-read-inline,
 .detail-grid .article-read-inline{
  position:absolute;right:0;left:auto;top:auto;
  bottom:calc((clamp(20px,5.25vw,22.5px) - 23px)/2);
  display:inline-flex;align-items:center;justify-content:center;
  width:60px;height:23px;min-height:23px;margin:0;
  padding:5px 7px!important;font-size:9px!important;
  line-height:1;letter-spacing:.04em;white-space:nowrap;
 }
}

/* Mobile magazine rhythm: wide opening, then offset portrait/text compositions. */
@media(max-width:900px){
 .article-page .story-head{padding:24px 0 22px;text-align:left}
 .article-page .story-head h1{font-size:clamp(30px,8vw,42px);line-height:1.15;margin:8px 0 14px}
 .article-page .story-head>p{font-size:14px;line-height:1.65;margin:0}
 .article-layout{display:grid;gap:28px;margin-bottom:28px}
 .article-spread{min-width:0}
 .article-spread .article-visual,.article-spread:not(:first-child) .article-visual{display:block}
 .article-text{min-width:0;overflow-wrap:anywhere;margin:18px 0 0;font-size:16px;line-height:1.85}
 .article-intro{font-size:18px;line-height:1.65;border-left:2px solid var(--sage);padding-left:14px;margin-bottom:24px!important}
 .article-spread:nth-child(even){display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px 0;align-items:end}
 .article-spread:nth-child(even) .article-visual{grid-column:6/-1;grid-row:1;align-self:stretch;min-height:215px;position:relative}
 .article-spread:nth-child(even) .article-visual img{height:100%;min-height:215px;aspect-ratio:3/4;object-fit:cover;object-position:65% center}
 .article-spread:nth-child(even) .article-visual figcaption{font-size:10px;line-height:1.5}
 .article-spread:nth-child(even) .article-text{display:contents}
 .article-spread:nth-child(even) .article-text>h2{grid-column:1/7;grid-row:1;align-self:end;z-index:1;background:#f6f4eb;padding:14px 14px 0 0;margin:0 0 16px;box-shadow:0 -10px 0 #f6f4eb;font-size:clamp(25px,6.6vw,32px)}
 .article-spread:nth-child(even) .article-text>p{grid-column:1/-1;margin:0;font-size:16px;line-height:1.85}
 .article-spread:nth-child(4n) .article-visual{grid-column:1/8}
 .article-spread:nth-child(4n) .article-text>h2{grid-column:7/-1;padding:14px 0 0 14px}
 .article-spread:nth-child(2n+3) .article-visual{width:88%;margin-right:auto}
 .article-spread:nth-child(2n+3) .article-visual img{height:auto;aspect-ratio:4/3}
 .article-related .section-heading{margin-top:24px}
}

/* Keep all labels/legends of supplied plans and location diagrams visible. */
.detail-grid>.detail-tile.is-document-cover>img{object-fit:contain;background:#fff}
.article-spread .article-visual.is-document img{height:auto!important;min-height:0!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center;background:#fff}
.article-visual.is-document>a{display:block}
.article-visual.is-document figcaption a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:900px){
 .article-spread:has(>.article-visual.is-document){display:block}
 .article-spread .article-visual.is-document{width:100%;min-height:0;margin:0}
 .article-spread:has(>.article-visual.is-document) .article-text{display:block;margin:18px 0 0}
 .article-spread:has(>.article-visual.is-document) .article-text>h2{padding:0;margin:22px 0 14px;box-shadow:none;background:transparent}
}

/* 12:07 mobile reading layout for Sky Quarter and Chuyen Nha articles. */

/* back-to-top.css */
.back-to-top{
 position:fixed;right:calc(22px + env(safe-area-inset-right,0px));
 bottom:calc(22px + env(safe-area-inset-bottom,0px));z-index:42;
 width:46px;height:46px;display:grid;place-items:center;padding:0;
 border:1px solid #606e4070;border-radius:50%;background:#f0ead8f5;color:#4d5e34;
 box-shadow:0 4px 18px #30352b18;cursor:pointer;
 transition:background .2s,color .2s,box-shadow .2s;
 -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
.back-to-top svg{width:22px;height:22px;display:block}
.back-to-top:not([hidden]){animation:back-top-in .2s ease both}
.back-to-top:focus-visible{outline:3px solid #405c2b;outline-offset:3px}
@media(hover:hover){.back-to-top:hover{background:#606e40;color:#f0ead8;box-shadow:0 5px 20px #30352b30}}
@media(max-width:900px){.back-to-top{right:calc(14px + env(safe-area-inset-right,0px));bottom:calc(14px + env(safe-area-inset-bottom,0px));width:44px;height:44px}}
@keyframes back-top-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.back-to-top{animation:none!important;transition:none}}

/* mobile-contact.css */
/* Mobile contact stays above the page, clear of safe areas and the up-arrow. */
@media(max-width:900px){
 .header .header-contact{display:none}
 .mobile-contact{
  position:fixed;right:calc(14px + env(safe-area-inset-right,0px));
  bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:46;
  display:grid;place-items:center;width:52px;height:52px;padding:0;
  border:1px solid #c3c59a;border-radius:50%;background:#606e40;color:#f0ead8;
  box-shadow:0 5px 20px #30352b30;cursor:pointer;touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
 }
 .mobile-contact svg{display:block;width:23px;height:23px}
 .mobile-contact:focus-visible{outline:3px solid #405c2b;outline-offset:3px}
 body.has-mobile-contact .back-to-top{bottom:calc(78px + env(safe-area-inset-bottom,0px))}
}

/* readability.css */
/* Public-site typography: one scale for navigation, copy, captions and controls. */
:root{--ink:#303d29;--muted:#4d5b43;--read-body:17px;--read-secondary:15px;--read-small:14px;--read-label:13px}
body{font-size:var(--read-body);line-height:1.65;color:var(--ink)}
.header .brand-tagline{display:flex;flex-direction:column;gap:4px;max-width:none;text-align:left;font-size:clamp(18px,1.5vw,22px);line-height:1.25;color:#35462b;letter-spacing:0}
.header .brand-description{display:block;font-size:var(--read-small);line-height:1.45;font-style:italic;font-weight:400;letter-spacing:0;color:var(--muted);white-space:normal;max-width:40ch}
.header .nav :is(a,button){font-size:var(--read-small);line-height:1.4;letter-spacing:.025em}
.mobile-menu :is(a,button){font-size:17px;line-height:1.5;color:#35462b}
.breadcrumb{font-size:var(--read-small);line-height:1.65;color:var(--muted)}
.breadcrumb a,.breadcrumb [aria-current=page],.breadcrumb li+li:before{color:var(--muted)}
.eyebrow{font-size:var(--read-label);color:var(--muted);letter-spacing:.1em;line-height:1.5}
.section-heading p,.story-head>p,.detail-intro p,.about-copy p,.about-copy .about-description,.journal-pagination p{font-size:var(--read-body);line-height:1.75;color:var(--muted)}
.article-page .article-text,.article-page .article-text>p{font-size:var(--read-body);line-height:1.85;color:#3f4e35}
.filter,.solid-btn,.outline-light,.contact-inline .filter,.news-all{font-size:var(--read-secondary);line-height:1.4}
.search input,.search-mobile input,.modal input,.modal select,.modal textarea{font-size:16px}
.search input::placeholder,.search-mobile input::placeholder{color:#5c6853;opacity:1}
.modal p,.modal label,.modal .consent,.contact-option small,.form-msg,.form-message{font-size:var(--read-secondary);line-height:1.65}
.floating-cta{font-size:var(--read-small)}
@media(max-width:900px){
 :root{--read-body:16px;--read-secondary:15px;--read-small:13px;--read-label:13px}
 .header{height:auto;min-height:84px;padding-block:10px;gap:8px;align-items:center}
 .header .brand{min-width:0;flex:1 1 auto;gap:9px}
 .header .brand-icon{flex:0 0 42px;width:42px;height:42px}
 .header .brand-tagline{font-size:clamp(16px,4.3vw,19px);min-width:0;max-width:none;white-space:normal;line-height:1.3;gap:4px}
 .header .brand-description{display:block;font-size:13px;line-height:1.45;max-width:34ch;color:#4d5b43}
 .header .hamburger{flex:0 0 44px;width:44px;min-width:44px;min-height:44px}
 .news-heading .news-all{font-size:13px;flex-basis:108px;line-height:1.5}
}
/* Legacy component rules and mobile card markup share the same final scale. */
.filters>.filter{font-size:var(--read-secondary)}
.journal-follow .solid-btn,.about-copy .solid-btn{font-size:var(--read-secondary)}
.story-head.journal-heading>p{font-size:var(--read-body);color:var(--muted)}
.about-visual figcaption span:first-child{font-size:var(--read-small);line-height:1.5;color:#fff;letter-spacing:.08em}
.article-related .section-heading .eyebrow{font-size:var(--read-label);color:var(--muted)}
.article-page .article-spread .article-visual figcaption{font-size:var(--read-small);color:var(--muted);line-height:1.65}
.loan-calendar{font-size:16px}.loan-calendar-week{font-size:13px;color:var(--muted)}.loan-calendar button{font-size:15px}
@media(max-width:900px){
 .detail-grid .article-read-inline,.news-project-grid .article-read-inline,.gallery-grid>[data-project] .project-view{width:88px!important;height:32px!important;min-height:32px!important;padding:8px!important;font-size:13px!important}
 .detail-grid .tile-copy .article-read-inline,.news-project-grid .card-bottom .article-read-inline{bottom:calc((var(--mobile-title-line-height,22px) - 32px)/2)}
 .detail-grid>.mobile-article-card>.article-read-inline,.news-project-grid>.mobile-article-card>.article-read-inline{right:14px;bottom:calc(14px + (var(--mobile-title-line-height,22px) - 32px)/2)}
 .project-card:has(.project-view) .card-bottom p{padding-right:100px;max-width:100%}
}
.filters .search input{font-size:16px;line-height:1.5;min-height:44px}
.loan-calendar .loan-calendar-head select{font-size:15px;min-height:36px}
/* Short laptop screens: recover space through spacing, never tiny text. */

@media(min-width:901px) and (max-width:1150px){
 .header{height:76px;min-height:76px}
}

/* album.css */
/* Photo-only albums; native image proportions, no editorial captions. */
.album-page{padding-block:24px 36px}
.album-page>h1{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.album-grid{columns:3;column-gap:12px}
.album-thumb{display:block;break-inside:avoid;width:100%;margin:0 0 12px;padding:0;border:0;background:#e3e6d8;cursor:zoom-in;overflow:hidden}
.album-thumb img{display:block;width:100%;height:auto;aspect-ratio:auto 4/3;object-fit:contain;transition:filter .2s}
.album-thumb:hover img{filter:brightness(.94)}
#app .image-previewable{cursor:zoom-in}
#app main img[role=button]:focus-visible{outline:3px solid #606e40;outline-offset:3px}
.album-viewer{position:fixed;inset:0;z-index:2000;background:#0d100d;display:grid;grid-template-rows:minmax(0,1fr) auto;color:#fff;padding:calc(60px + env(safe-area-inset-top,0px)) 16px calc(12px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain}
.album-stage{position:relative;min-height:0;overflow:hidden;touch-action:pan-y pinch-zoom}
.album-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;max-height:100%;user-select:none;-webkit-user-drag:none}
.album-viewer button{font:600 15px 'SVN Optima',Georgia,serif;min-width:48px;min-height:48px;border:1px solid #ffffff66;background:#ffffff12;color:#fff;padding:10px 16px;cursor:pointer}
.album-viewer button:hover{background:#ffffff28}
.album-viewer button:focus-visible{outline:3px solid #c3c59a;outline-offset:3px}
.album-viewer .album-close{position:absolute;top:calc(8px + env(safe-area-inset-top,0px));right:12px;width:48px;height:48px;padding:0;font-size:30px;border-radius:50%}
.album-toolbar{display:flex;align-items:center;justify-content:center;gap:24px;padding-top:12px}
.album-toolbar output{font-size:15px;min-width:64px;text-align:center;color:#fff}
@media(min-width:1100px){.album-grid{columns:4;column-gap:16px}.album-thumb{margin-bottom:16px}}
@media(max-width:750px){.album-page{padding-block:14px 24px}.album-thumb{margin-bottom:6px}.album-viewer{padding-inline:8px}.album-toolbar{gap:16px}}
@media(prefers-reduced-motion:reduce){.album-thumb img{transition:none}}

/* image-viewer.css */
.article-layout .article-visual img{cursor:zoom-in}
.article-layout .article-visual img:focus-visible{outline:3px solid #606e40;outline-offset:4px}
.image-viewer{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#20281f;color:#f0ead8;overflow:hidden}
.image-viewer::backdrop{background:#20281f}
.image-viewer-toolbar{position:absolute;z-index:2;top:0;left:0;right:0;display:flex;align-items:center;gap:8px;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));background:#20281ff2}
.image-viewer-toolbar span{margin-right:auto;font-size:15px}
.image-viewer-toolbar button{min-width:44px;height:44px;border:1px solid #c3c59a;background:#f0ead8;color:#303d29;font-family:inherit;font-size:20px;line-height:1;cursor:pointer}
.image-viewer-toolbar button:focus-visible{outline:3px solid #c3c59a;outline-offset:3px}
.image-viewer-stage{position:absolute;inset:calc(76px + env(safe-area-inset-top)) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none}
.image-viewer-stage img{display:block;width:100%;height:100%;object-fit:contain;max-width:none;max-height:none;transform-origin:center;pointer-events:none}
.image-viewer-stage.is-zoomed{cursor:grab}
.image-viewer-stage.is-zoomed:active{cursor:grabbing}

/* design-dna.css */
/* Garden editorial system: nested corners, quiet surfaces, image-led cards. */
:root{--canvas:#f1f2e9;--card:#fffdf5;--forest:#35482e;--leaf:#606e40;--soft-sage:#e5e8d8;--quiet-line:#d6ddc9;--outer-radius:24px;--inner-radius:16px;--card-gap:22px}
.header.shell{background:#405433ed;backdrop-filter:blur(20px);border:1px solid #c3c59a88;border-radius:0 0 26px 26px;box-shadow:0 6px 24px #23351c0b;padding-inline:18px;gap:16px}
.header .nav :is(a,button){font-size:13px;font-weight:500;letter-spacing:.015em;white-space:nowrap;padding-inline:9px}
.header .nav [aria-current=page]:not(.primary){color:#fff;text-decoration-color:#c3c59a;text-decoration-thickness:1px;text-underline-offset:7px}
.header .nav .primary{border:1px solid #d0d8bb;background:#f0ead815;border-radius:999px;color:#fff;padding-inline:18px}
.header .nav :is(a,button):hover{color:#e5e9d7}
.header .nav .primary:hover{background:#f0ead8;color:var(--forest)}
.mobile-menu{border-radius:0 0 24px 24px;background:#f8f8ee;box-shadow:0 14px 32px #22351b15}
.top-hero .hero-photo{height:clamp(430px,70svh,760px);min-height:0;padding:clamp(28px,5vw,76px);justify-content:flex-end;isolation:isolate}
.top-hero .hero-photo:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(90deg,#172d219e,transparent 85%),linear-gradient(0deg,#213720ad,transparent 75%)}
.section-heading{margin-block:38px 20px}
.section-heading h2,.news-heading h2{font-size:clamp(30px,3.3vw,46px);font-weight:400;line-height:1.2;letter-spacing:-.025em}
.filters{gap:8px;margin-block:14px 20px}
.filters>.filter{border-radius:999px;background:#f8f9f2;border-color:#c7cfb8;min-height:44px;padding:10px 18px;font-weight:500}
.search,.search-mobile{border-radius:999px;background:#f7f8ef;border-color:#c7cfb8}
.design-grid,.gallery-grid.design-grid,.detail-grid.design-grid,.related-grid.design-grid,.project-gallery.design-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:auto;gap:var(--card-gap);columns:unset;position:relative;height:auto!important;align-items:stretch;margin-block:18px 30px}
.design-grid>.project-card,.design-grid>.detail-tile,.design-grid>.related-card,.design-grid>figure{display:flex;flex-direction:column;position:relative!important;inset:auto!important;width:auto!important;height:auto!important;min-width:0;min-height:0;grid-column:auto;grid-row:auto;break-inside:auto;margin:0!important;padding:12px;background:var(--card);border:1px solid #fffefa;border-radius:var(--outer-radius);overflow:hidden;box-shadow:none!important;isolation:isolate;text-align:left}
.design-grid>.project-card:after,.design-grid>.project-card:before,.design-grid>.detail-tile:after,.design-grid>.detail-tile:before{display:none!important}
.design-grid>.project-card>img,.design-grid>.detail-tile>img,.design-grid>.related-card>img,.design-grid>figure>img{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1!important;object-fit:cover;border-radius:var(--inner-radius);flex:0 0 auto;filter:none}
.design-grid>.project-card>.card-bottom,.design-grid>.detail-tile>.tile-copy{position:relative!important;inset:auto!important;flex:1;display:flex;flex-direction:column;justify-content:flex-end;min-width:0;width:100%;padding:18px 38px 8px 8px!important;color:var(--forest);z-index:1}
.design-grid .card-kicker{display:block;font-size:12px;line-height:1.5;font-weight:500;letter-spacing:.11em;color:#4A583F;margin:0 0 10px}
.design-grid>.project-card .card-bottom h3,.design-grid>.detail-tile .tile-copy h3{position:static!important;width:auto!important;max-width:100%!important;font-size:clamp(20px,1.9vw,28px)!important;line-height:1.3!important;font-weight:400!important;letter-spacing:-.02em!important;white-space:normal!important;color:var(--forest)!important;text-shadow:none!important;margin:0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.design-grid>[data-project] .card-bottom p{display:block;font-size:14px;line-height:1.5;font-weight:400;color:#4A583F;text-shadow:none;margin:8px 0 0;padding:0!important}
.design-grid .article-read,.design-grid .project-view,.design-grid .card-bottom .article-read,.design-grid .tile-copy .article-read{position:absolute!important;right:18px!important;bottom:18px!important;inset-inline-start:auto!important;display:inline-flex!important;align-items:center;justify-content:center;width:24px!important;height:24px!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0;background:none!important;color:#78845b!important;box-shadow:none;font-size:13px!important;line-height:1!important;z-index:3;pointer-events:auto}
.design-grid .card-arrow{width:24px;height:24px}
.design-grid .card-arrow{flex:0 0 24px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.design-grid .card-kicker{display:none}
.news-project-grid .is-featured .card-kicker{display:block}
.design-grid>.project-card .card-bottom p{white-space:normal;overflow-wrap:anywhere;max-width:100%}
.compact-footer.shell{background:var(--forest);border-radius:28px 28px 0 0;padding:26px 28px 18px;margin-top:24px}
.compact-footer .social-icon{color:#f1f4e8;background:#ffffff08;border-color:#c3c59a55}
.design-grid .project-card-link{border-radius:var(--outer-radius)}
.design-grid>.has-no-image .image-empty{display:block;aspect-ratio:1;background:#e4e8d8;border-radius:var(--inner-radius)}
.news-section,.spaces-section{padding:38px 0;background:var(--canvas);border-top:1px solid #d5dcc8}
.spaces-section{background:var(--soft-sage)}
.news-heading{align-items:center;gap:24px;margin-bottom:22px}
.news-all{font-size:13px;font-weight:500;letter-spacing:.04em;color:#53633d;border-bottom:1px solid #a1ad8c}
.journal-more{border-radius:999px;min-height:48px;background:#f9faf2;border-color:#bac6a5;padding:12px 28px}
.journal-pagination{margin-block:24px 32px;gap:12px}
.journal-pagination p{font-size:14px;line-height:1.6;color:#5c6b4c}
.story-head.journal-heading{padding:24px 0 20px}
.media-section{padding:36px 0 48px;background:var(--forest);color:#f1f4e8}
.media-section .section-heading h2{color:#f1f4e8}
.media-list{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.horizontal-media-card{display:flex;align-items:center;gap:24px;padding:18px;background:#ffffff06;border:1px solid #d0dec02e;border-radius:26px;color:#f0f4e6;text-align:left;min-width:0}
.horizontal-media-card>img{width:34%;aspect-ratio:1;height:auto;object-fit:cover;border-radius:17px;flex-shrink:0}
.media-copy{display:flex;flex-direction:column;min-width:0;gap:12px}
.horizontal-media-card .card-kicker{font-size:12px;letter-spacing:.12em;color:#c7d1ab}
.media-title{font-size:22px;line-height:1.4;font-weight:400}
.media-open{display:flex;align-items:center;gap:12px;font-size:14px;color:#d8e3bf}
.media-open .card-arrow{width:20px;height:20px}
.media-dialog{position:fixed;inset:0;z-index:2100;background:#111b10f5;display:grid;place-items:center;padding:60px 20px 20px}
.media-dialog .album-close{position:absolute;right:12px;top:8px;width:48px;height:48px;background:#ffffff15;border:1px solid #ffffff66;border-radius:50%;color:#fff;font-size:30px}
.media-dialog video{width:100%;height:100%;max-width:1280px;max-height:calc(100dvh - 100px);object-fit:contain}
.design-grid>figure figcaption,.design-grid>.related-card>span{position:static;display:block;padding:16px 6px 6px;background:none;color:var(--forest);font-size:15px}
@media(min-width:1100px){
 .news-project-grid.design-grid>.is-featured>img{flex:1;aspect-ratio:4/3!important;min-height:0!important;object-fit:cover}
 .news-project-grid.design-grid>.is-featured>.card-bottom{flex:0 0 auto;padding:24px 40px 18px 16px!important}
 .news-project-grid.design-grid>.is-featured .card-bottom h3{font-size:clamp(30px,3vw,44px)!important}
}
@media(min-width:901px) and (max-width:1150px){.header .brand-description{max-width:24ch;font-size:13px}.header .nav :is(a,button){font-size:13px;padding-inline:6px;letter-spacing:0}.header.shell{gap:10px;padding-inline:12px}}
@media(max-width:1099px){.design-grid,.gallery-grid.design-grid,.detail-grid.design-grid,.related-grid.design-grid,.project-gallery.design-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){
 .header.shell{min-height:76px;padding:10px 12px;border-radius:0 0 22px 22px;gap:8px}
 .header .brand-description{font-size:13px;color:#e0e6cf;max-width:28ch}
 .media-list{grid-template-columns:1fr}
 .horizontal-media-card{gap:16px;padding:14px}
 .media-title{font-size:19px}
 .media-open{font-size:13px}
}
@media(max-width:750px){
 :root{--card-gap:12px;--outer-radius:21px;--inner-radius:14px}
 .section-heading{margin-block:28px 16px}
 .design-grid>.project-card,.design-grid>.detail-tile,.design-grid>.related-card,.design-grid>figure{padding:8px}
 .design-grid>.project-card>.card-bottom,.design-grid>.detail-tile>.tile-copy{padding:12px 20px 8px 4px!important;justify-content:flex-start}
 .design-grid .card-kicker{font-size:11px;letter-spacing:.06em;line-height:1.5;margin-bottom:7px}
 .news-project-grid .is-featured .card-kicker{display:none}
 .design-grid>.project-card .card-bottom h3,.design-grid>.detail-tile .tile-copy h3{font-size:16px!important;line-height:1.35!important;letter-spacing:0!important;font-weight:500!important;min-height:2.7em}
 .design-grid>[data-project] .card-bottom p{font-size:13px;line-height:1.5;margin-top:7px}
 .design-grid .article-read,.design-grid .project-view,.design-grid .card-bottom .article-read,.design-grid .tile-copy .article-read{width:20px!important;height:20px!important;right:10px!important;bottom:12px!important}
 .design-grid .card-arrow{width:20px;height:20px}
 .news-section,.spaces-section{padding:28px 0}
 .news-heading{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:16px}
 .compact-footer.shell{padding:22px 18px 16px}
}
@media(prefers-reduced-motion:reduce){.design-grid>*{animation:none!important;transition:none!important}}
/* Keep actions beside titles and descriptions readable at every card width. */
.design-grid .card-bottom .article-read,.design-grid .tile-copy .article-read{top:18px!important;right:0!important;bottom:auto!important}
.header .brand-description{text-wrap:balance}
@media(max-width:750px){.design-grid .card-bottom .article-read,.design-grid .tile-copy .article-read{top:12px!important;right:0!important}}
.header .nav :is(button,a)[aria-current=page]:not(.primary){color:#fff!important;text-decoration-color:#dbe3c5}
@media(min-width:1100px){#projectGrid:has(>:nth-child(4)):not(:has(>:nth-child(5))){grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Desktop catalog: all filter/search states share four equal columns. */
@media(min-width:901px){
 #projectGrid.design-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:901px){
 #projectGrid.design-grid>[data-project]>.card-bottom{padding-right:8px!important}
 #projectGrid.design-grid>[data-project] .card-bottom h3{display:block;-webkit-line-clamp:unset;white-space:nowrap!important;overflow-wrap:normal;word-break:normal;font-size:var(--project-title-size,clamp(18px,1.65vw,26px))!important}
 #projectGrid.design-grid>[data-project] .card-bottom p{padding-right:30px!important}
}

/* Space albums: the same three-photo collage on desktop and mobile. */
@media(min-width:751px){
 .spaces-grid.design-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .spaces-grid.design-grid>.spaces-collage-card{grid-column:auto!important;grid-row:auto!important;display:flex;flex-direction:column;min-height:0}
 .spaces-grid.design-grid>.spaces-collage-card>img,.spaces-grid.design-grid>.spaces-collage-card>.image-empty{display:none!important}
 .spaces-collage-card>.living-photos{display:grid;grid-template-columns:3fr 2fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;aspect-ratio:1.9;width:100%;min-height:0;flex:1 1 auto;overflow:hidden;border-radius:16px;padding:0}
 .spaces-collage-card>.living-photos>img{display:block;position:static;width:100%;height:100%;min-height:0;object-fit:cover;border-radius:0}
 .spaces-collage-card>.living-photos>img:first-child{grid-row:1/3}
 .spaces-grid.design-grid>.spaces-collage-card>.card-bottom,.spaces-grid.design-grid>.spaces-collage-card>.tile-copy{flex:0 0 auto;min-height:64px;padding:12px 36px 8px 8px!important;justify-content:center}
 .spaces-grid.design-grid>.spaces-collage-card :is(.card-bottom,.tile-copy) h3{font-size:clamp(20px,1.7vw,26px)!important;line-height:1.25!important}
 .spaces-grid.design-grid>.spaces-collage-card .card-kicker{display:none!important}
 #spaces-preview{padding-block:24px}
 #spaces-preview>.shell{height:max(500px,calc(100svh - 124px));display:grid;grid-template-rows:auto minmax(0,1fr);gap:18px}
 #spaces-preview .news-heading{margin:0;min-height:48px}
 #spaces-preview .spaces-grid{margin:0;grid-template-rows:repeat(2,minmax(0,1fr));gap:20px}
 #spaces-preview .spaces-grid>.spaces-collage-card>.living-photos{aspect-ratio:auto}
 #spaces-preview .spaces-grid>:nth-child(n+5){display:none!important}
}

/* Homepage news: four horizontal articles, cover left and title right. */
@media(min-width:751px){
 #journal-preview{padding-block:24px}
 #journal-preview>.shell{height:max(500px,calc(100svh - 124px));display:grid;grid-template-rows:auto minmax(0,1fr);gap:18px}
 #journal-preview .news-heading{margin:0;min-height:48px}
 #journal-preview .news-project-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(4,minmax(0,1fr));gap:12px;margin:0}
 #journal-preview .news-project-grid>.project-card{display:grid;grid-template-columns:35% minmax(0,1fr);grid-column:auto!important;grid-row:auto!important;align-items:stretch;min-height:0;padding:8px;gap:0}
 #journal-preview .news-project-grid>.project-card>img,#journal-preview .news-project-grid>.project-card>.image-empty{height:100%!important;width:100%!important;min-height:0!important;aspect-ratio:auto!important;object-fit:cover;border-radius:16px}
 #journal-preview .news-project-grid>.project-card>.card-bottom{position:relative!important;display:flex;justify-content:center;align-items:flex-start;inset:auto!important;min-width:0;min-height:0;padding:12px 48px 12px 26px!important}
 #journal-preview .news-project-grid>.project-card .card-bottom h3{font-size:clamp(22px,2vw,32px)!important;line-height:1.3!important;display:block;-webkit-line-clamp:unset;white-space:normal!important;overflow:visible}
 #journal-preview .news-project-grid .card-kicker{display:none!important}
 #journal-preview .news-project-grid>.project-card .article-read{top:auto!important;bottom:8px!important;right:8px!important}
 #journal-preview .news-project-grid>:nth-child(n+5),#journal-preview .home-news-more{display:none!important}
}

/* mobile-presentation.css */
/* The 15:02 variants never apply to tablet or desktop. */
@media(max-width:750px){
 body{--mobile-header:calc(84px + env(safe-area-inset-top,0px))}
 body .header,body:has(.home-page) .header,body:has(.project-article-screen) .header{display:flex;height:var(--mobile-header);min-height:var(--mobile-header);gap:6px;padding-block:8px;padding-top:calc(8px + env(safe-area-inset-top,0px));background:#f6f4eb;overflow:visible}
 body .header .brand{min-width:0;flex:1;gap:8px}
 body .header .brand-icon{width:50px;height:50px;flex:0 0 50px}
 body .header .brand-icon img{transform:scale(1.5);transform-origin:58% 20%}
 body .header .brand-tagline{font-size:clamp(14px,4vw,17px);line-height:1.2;max-width:none;white-space:normal;overflow-wrap:normal}
 body .header .brand-description{display:block;font-size:12px;line-height:1.3;margin-top:4px;font-weight:400;font-style:italic}
 body .header .header-contact,body .header .hamburger{display:grid;place-items:center;width:36px;min-width:36px;height:40px;min-height:40px;flex:0 0 36px;padding:6px}
 body .header .header-contact{border:1px solid #bfc7ad;border-radius:50%;background:#f6f4ebcc}
 body .header .header-contact svg{width:20px;height:20px}
 body .header .header-contact{display:none}
 body:has(.home-page){--home-header:var(--mobile-header)}
 body:has(.project-article-screen){--project-header:var(--mobile-header)}
 .filters{scroll-margin-top:calc(var(--mobile-header) + 12px)}
 .filters [data-region][aria-pressed=true]{background:#4d5e34;color:#fff;border-color:#4d5e34}
 .home-page .home-project-screen,.home-page>.news-section,.project-article-screen{min-height:0;scroll-margin-top:var(--mobile-header)}
 .home-page .home-project-screen,.project-article-screen{padding-block:24px}
 .home-page #spaces-preview,.home-page #journal-preview{padding-block:24px}
 .home-page #spaces-preview>.shell,.home-page #journal-preview>.shell{gap:14px}
 body .mobile-flow-grid,body .home-page :is(#projectGrid,.news-project-grid),body .project-article-screen>.detail-grid{position:static;display:flex;flex-direction:column;columns:unset;gap:16px;height:auto!important;margin:14px 0!important;grid-template:none}
 body .mobile-flow-grid>:is(.projectLarge,.livingThreePhoto,.articleLarge,.relatedCompact){position:relative;display:block;width:100%!important;height:auto!important;left:auto!important;top:auto!important;margin:0!important;grid-area:auto;min-height:0;border:1px solid #d9dfce;border-radius:14px;overflow:hidden;background:#faf8ef;color:#303e28;text-align:left;padding:0;box-shadow:0 3px 12px #30352b0a}
 body .mobile-flow-grid>:is(.projectLarge,.livingThreePhoto,.articleLarge,.relatedCompact):after{display:none}
 body .mobile-flow-grid>:is(.projectLarge,.articleLarge)>img{position:static;display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;transform:none}
 body .mobile-flow-grid>:is(.projectLarge,.articleLarge,.livingThreePhoto)>.card-bottom,
 body .mobile-flow-grid>:is(.articleLarge,.livingThreePhoto)>.tile-copy{position:relative;inset:auto;width:auto;max-width:none;padding:14px 44px 16px 14px;margin:0;min-width:0}
 body .mobile-flow-grid>:is(.projectLarge,.articleLarge,.livingThreePhoto) :is(h3,.mobile-title-line){font-size:19px!important;font-weight:500;line-height:1.35!important;letter-spacing:0;text-shadow:none;color:#303e28;white-space:normal!important;overflow:visible;width:auto!important;max-width:100%;word-break:normal;overflow-wrap:anywhere;margin:0}
 body .mobile-flow-grid>.projectLarge .card-bottom p{font-size:14px;line-height:1.5;color:#4A583F;margin:6px 0 0;text-shadow:none;white-space:normal}
 body .mobile-flow-grid>:is(.projectLarge,.articleLarge,.livingThreePhoto) :is(.card-bottom,.tile-copy):after{content:'→';position:absolute;right:14px;top:14px;font-size:23px;color:#606e40}
 body .mobile-flow-grid>:is(.projectLarge,.articleLarge,.livingThreePhoto,.relatedCompact) :is(.article-read-inline,.project-view,.tile-arr){display:none!important}
 body .mobile-flow-grid>.livingThreePhoto>img,body .mobile-flow-grid>.livingThreePhoto>.image-empty{display:none}
 .living-photos{display:grid;grid-template-columns:3fr 2fr;grid-template-rows:1fr 1fr;gap:5px;aspect-ratio:1.6;padding:6px 6px 0;overflow:hidden}
 .living-photos>img{position:static;width:100%;height:100%;min-height:0;object-fit:cover;transform:none;border-radius:5px}
 .living-photos>img:first-child{grid-row:1/3}
 body .mobile-flow-grid>.relatedCompact{display:grid;grid-template-columns:30% minmax(0,1fr);gap:12px;align-items:center;min-height:88px;border-radius:10px}
 body .mobile-flow-grid>.relatedCompact>img,body .mobile-flow-grid>.relatedCompact>.image-empty{position:static;display:block;width:100%;height:100%;min-height:88px;max-height:126px;object-fit:cover;aspect-ratio:auto;transform:none}
 body .mobile-flow-grid>.relatedCompact>.tile-copy{position:static;inset:auto;padding:10px 12px 10px 0;min-width:0}
 body .mobile-flow-grid>.relatedCompact :is(h3,.mobile-title-line){font-size:16px!important;line-height:1.35!important;color:#303e28;text-shadow:none;white-space:normal;overflow-wrap:anywhere;margin:0}
 body .journal-pagination,body .home-page .journal-pagination,body .project-article-screen .mobile-card-pagination{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:12px;min-height:44px;padding:0;margin:16px 0 24px}
 body .journal-pagination p{font-size:12px;line-height:1.5;margin:0;flex:1;min-width:0}
 body .journal-pagination .journal-more{min-width:0;min-height:44px;padding:10px 14px;font-size:11px;line-height:1.4;text-align:center;white-space:normal}
 body .home-page :is(#spaces-preview,#journal-preview) .news-heading .news-all{display:none}
 body .home-page :is(#spaces-preview,#journal-preview) .journal-pagination{justify-content:center}
 body .home-page #journal-preview .home-news-more p{display:none}
 body .home-page :is(#spaces-preview,#journal-preview) .journal-more{flex:1}
}
@media(max-width:750px){
 /* Reset legacy ID-scoped overlay positions only inside the new variants. */
 body .mobile-flow-grid>:is(.projectLarge,.articleLarge)>img{position:static!important;height:auto!important;inset:auto!important;aspect-ratio:16/10}
 body .mobile-flow-grid>:is(.projectLarge,.articleLarge,.livingThreePhoto)>.card-bottom,
 body .mobile-flow-grid>:is(.articleLarge,.livingThreePhoto)>.tile-copy{position:relative!important;inset:auto!important;padding:14px 44px 16px 14px!important}
 body .mobile-flow-grid>:is(.projectLarge,.articleLarge,.livingThreePhoto) :is(h3,.mobile-title-line){font-style:normal!important;letter-spacing:0!important}
 body .mobile-flow-grid>:is(.projectLarge,.articleLarge,.livingThreePhoto) :is(.card-bottom,.tile-copy):after{font-family:Arial,sans-serif}
 body .mobile-flow-grid>.relatedCompact>.tile-copy{position:static!important;inset:auto!important;padding:10px 12px 10px 0!important}
}
@media(max-width:750px){
 body .mobile-flow-grid.related-articles-grid>.relatedCompact{display:grid!important;grid-template-columns:30% minmax(0,1fr)}
}
@media(max-width:750px){
 body .mobile-flow-grid>:is(.projectLarge,.articleLarge,.livingThreePhoto) :is(.card-bottom,.tile-copy):after{
  content:'';width:20px;height:20px;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23606e40' stroke-width='1.5'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/20px no-repeat;
 }
}
@media(max-width:750px){
 .mobile-flow-grid h3{-webkit-line-clamp:unset;line-clamp:unset;display:block}
}
@media(max-width:750px){body .mobile-flow-grid .card-kicker{display:none!important}}

/* Mobile follow-up: restore olive controls, tall hero and compact project screen. */
@media(max-width:750px){
 body .header,body:has(.home-page) .header,body:has(.project-article-screen) .header{background:#405433ed}
 body #mobileContact{background:#606e40;color:#f0ead8;border-color:#c3c59a;box-shadow:0 5px 20px #30352b30}
 .home-page .top-hero>.hero-photo{position:relative;width:100%;height:100%;min-height:0;padding:0}
 #collection,.home-page #collection{margin:16px 0 6px;min-height:0;scroll-margin-top:calc(var(--mobile-header) + 8px)}
 #collection h2,.home-page #collection h2{font-size:clamp(23px,6vw,27px);line-height:1.15;margin:0}
 .filters{min-height:44px;padding:0;margin:0 0 6px;gap:6px}
 .filters>span{display:none}
 .search-mobile{min-height:44px;margin:0 0 8px!important}
 .search-mobile input{height:42px;min-height:42px}
 body #projectGrid.mobile-flow-grid{gap:8px;margin:8px 0!important}
 body #projectGrid.mobile-flow-grid>.projectLarge{display:flex;flex-direction:column;height:max(92px,calc((100svh - var(--mobile-header) - 232px)/3))!important;min-height:0;flex:none}
 body #projectGrid.mobile-flow-grid>.projectLarge>.card-bottom{flex:0 0 auto;padding:8px 34px 8px 10px!important}
 body #projectGrid.mobile-flow-grid>.projectLarge .card-bottom h3{font-size:16px!important;line-height:1.2!important}
 body #projectGrid.mobile-flow-grid>.projectLarge .card-bottom p{font-size:12px;line-height:1.3;margin:4px 0 0}
 body #projectGrid.mobile-flow-grid>.projectLarge .card-bottom:after{top:8px;right:10px;width:18px;height:18px;background-size:18px}
 body:has(#projectGrid) .mobile-card-pagination,body #projectMore .journal-pagination{padding-right:64px;margin:8px 0 16px}
}

/* hero-video.css */
/* First screen: navigation plus uncropped original-ratio video, without UI overlays. */
.shell>.top-hero:has(.hero-video-only){height:calc(100svh - var(--hero-header-height,84px) - var(--safe-top,0px));min-height:0;margin:0;width:100%;display:grid;grid-template: minmax(0,1fr) / minmax(0,1fr)}
.top-hero>.hero-photo.hero-video-only{height:100%;min-height:0;max-height:none;padding:0;background:#111;isolation:isolate}
.hero-video-only::before,.hero-video-only::after{content:none!important}
.hero-video-only .hero-media,.hero-video-only .hero-slide{position:absolute;inset:0;width:100%;height:100%;background:#111}
.top-hero .hero-video-only .hero-slide>video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center;aspect-ratio:16/9;filter:none;opacity:1;transform:none}
body.hero-in-view :is(.floating-cta,.mobile-contact,.back-to-top){visibility:hidden}
/* A true 16:9 frame removes black side bars without cropping the source. */
.top-hero>.hero-photo.hero-video-only{background:#f6f4eb}
.hero-video-only .hero-media{width:var(--video-frame-width,100%);height:auto;aspect-ratio:16/9;top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);background:transparent;z-index:auto}
.hero-video-only .hero-slide{background:transparent}
.hero-sound{position:absolute;z-index:3;right:16px;bottom:16px;display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:11px;border:0;border-radius:50%;background:transparent;color:#fff;box-shadow:none;cursor:pointer}
.hero-sound svg{width:24px;height:24px;filter:drop-shadow(0 1px 3px #0009)}.hero-sound[aria-pressed=true] .sound-muted-mark{display:none}
.hero-sound:focus-visible{outline:3px solid #fff;outline-offset:2px}.hero-sound:hover{background:transparent}
@media(max-width:750px){.hero-sound{right:10px;bottom:10px;width:44px;height:44px;min-height:44px;padding:9px}}

/* Mobile: the hero fits the video instead of reserving a full screen. */
@media(max-width:900px){
 .shell>.top-hero:has(.hero-video-only){height:auto;aspect-ratio:16/9;display:block;min-height:0;margin-block:0;padding-block:0}
 .top-hero>.hero-photo.hero-video-only{height:100%;aspect-ratio:16/9;min-height:0;padding:0}
 .hero-video-only .hero-media{width:100%;height:100%;inset:0;transform:none;aspect-ratio:16/9}
}

/* Desktop: video toàn màn hình (full-bleed), chữ và nút đặt đè góc dưới trái, không có lớp phủ lên video. */
@media(min-width:901px){
 html{overflow-x:clip}
 .shell>.top-hero:has(.hero-video-only){position:relative;display:block;width:100vw;margin:0 0 0 calc(50% - 50vw);height:calc(100svh - var(--hero-header-height,84px) - var(--safe-top,0px));min-height:520px;padding:0;border-radius:0;overflow:hidden;background:#111}
 .top-hero>.hero-photo.hero-video-only{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;min-height:0;border-radius:0;background:#111}
 .hero-video-only .hero-media{width:100%;height:100%;inset:0;transform:none;aspect-ratio:auto}
 .top-hero .hero-video-only .hero-slide>video{object-fit:cover;aspect-ratio:auto}
 .hero-sound{right:40px;bottom:44px}
}

/* redesign-theme.css */
/* Giao diện mới (giai đoạn 1) — lấy phong cách từ bản redesign/, áp lên site thật.
   Chỉ đổi hình thức: màu, chữ, header, hero, nút, thẻ, footer. Dữ liệu, CMS, URL giữ nguyên.
   File này nạp sau cùng nên ghi đè các lớp CSS cũ. */
:root{
 --rd-olive:#4A5D3A;--rd-dark:#34452D;--rd-cream:#FAF8F0;--rd-bg:#F2F3EC;--rd-sand:#F2E6D3;
 --rd-line:#DCE0CF;--rd-sage:#E7EAD8;--rd-ink:#24301E;--rd-mut:#3E4C35;--rd-soft:#E4EAD8;
 --rd-serif:'SVN Optima','Optima',Georgia,serif;--rd-sans:'SVN Optima','Optima',system-ui,-apple-system,'Segoe UI',sans-serif;
}
html body{background:var(--rd-bg);color:var(--rd-ink);font-weight:500;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html body,html body :is(button,input,select,textarea,.loan-calendar){font-family:var(--rd-sans)!important}
html body :is(h1,h2,h3,h4,h5,h6),html body .header .brand-tagline,html body :is(.project-card,.detail-tile,.album-card) h3,html body .story-copy .quote{font-family:var(--rd-serif)!important}
html body :is(h1,h2,h3){font-weight:600;letter-spacing:-.005em}

/* ---------- Header: thanh olive liền mạch, dính trên cùng ---------- */
html body .header.shell{position:sticky;top:0;z-index:45;background:var(--rd-olive);backdrop-filter:none;-webkit-backdrop-filter:none;border:0;border-radius:0;box-shadow:0 0 0 100vmax var(--rd-olive);clip-path:inset(0 -100vmax);min-height:76px}
html body .header .brand-icon{width:46px;height:46px;border-radius:50%;overflow:hidden;background:var(--rd-sand);flex-shrink:0}
html body .header .brand-icon img{width:100%;height:100%;object-fit:cover}
html body .header .brand-tagline{font-family:var(--rd-serif);font-weight:600;font-size:22px;line-height:1.1;color:var(--rd-cream)}
html body .header .brand-description{font-family:var(--rd-sans);font-style:italic;font-size:12px;color:var(--rd-soft);margin-top:2px}
html body .header .nav{gap:22px}
html body .header .nav :is(a,button):not(.primary){font-family:var(--rd-sans);font-size:15px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--rd-soft);padding:12px 2px;border-bottom:2px solid transparent;text-decoration:none}
html body .header .nav :is(a,button):not(.primary):hover{color:#fff}
html body .header .nav :is(a,button)[aria-current=page]:not(.primary){color:#fff;border-bottom-color:var(--rd-sand);text-decoration:none}
html body .header .nav .primary{display:inline-flex;align-items:center;min-height:44px;padding:0 22px;border:0;border-radius:24px;background:var(--rd-sand);color:var(--rd-ink);font:600 15px var(--rd-sans);letter-spacing:0;white-space:nowrap}
html body .header .nav .primary:hover{background:#fff;color:var(--rd-ink)}
html body .header :is(.hamburger,.header-contact){color:var(--rd-cream);border-color:#ffffff55;background:transparent}
html body .header :is(a,button):focus-visible{outline:3px solid var(--rd-sand);outline-offset:3px}
html body .mobile-menu{background:var(--rd-cream);border:1px solid var(--rd-line);border-radius:0 0 20px 20px}
html body .mobile-menu button{font-family:var(--rd-sans);font-size:16px;color:var(--rd-ink)}

/* ---------- Hero: khối chữ olive đậm + video giữ nguyên tỷ lệ 16:9 ---------- */
.rd-hero-copy{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;gap:16px;padding:48px 52px;background:var(--rd-dark);color:var(--rd-cream)}
/* Họa tiết hoa sen nét vàng, một hình lớn mờ phía sau khung chữ */
.rd-hero-copy:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url(/assets/uploads/hero-lotus.webp) right 0 bottom 0/auto 100% no-repeat;opacity:.24}
html body .rd-hero-copy h1{margin:0;font-family:var(--rd-serif);font-weight:600;font-size:clamp(38px,4.4vw,60px);line-height:1.05;color:var(--rd-cream);white-space:pre-line;text-wrap:balance}
.rd-hero-copy p{margin:0;max-width:440px;font-size:17px;line-height:1.6;color:var(--rd-soft)}
.rd-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.rd-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 26px;border-radius:26px;border:1.5px solid transparent;font:600 15px var(--rd-sans);cursor:pointer;text-decoration:none;transition:background .2s,color .2s}
.rd-btn-sand{background:var(--rd-sand);color:var(--rd-ink)}.rd-btn-sand:hover{background:#fff}
.rd-btn-line{border-color:var(--rd-soft);color:var(--rd-cream);background:transparent}.rd-btn-line:hover{background:#ffffff1a}
.rd-btn-olive{background:var(--rd-olive);color:var(--rd-cream)}.rd-btn-olive:hover{background:var(--rd-dark)}
.rd-btn:focus-visible{outline:3px solid #8A9C74;outline-offset:3px}

@media(min-width:901px){
 html body .top-hero.rd-hero>.rd-hero-copy{position:absolute;z-index:2;left:clamp(32px,4.2vw,60px);bottom:clamp(36px,7vh,68px);max-width:62%;padding:0;gap:24px;background:transparent;border-radius:0;overflow:visible;justify-content:flex-end}
 html body .top-hero.rd-hero>.rd-hero-copy:before{display:none}
 html body .rd-hero-copy h1{font-size:clamp(46px,5.4vw,84px);line-height:1.05;text-shadow:0 2px 24px rgba(0,0,0,.6),0 1px 4px rgba(0,0,0,.5)}
 html body .rd-hero-copy .rd-btn-line{background:rgba(24,34,18,.4);border-color:#faf7ee}
}
@media(max-width:900px){
 html body .shell>.top-hero.rd-hero:has(.hero-video-only){display:flex;flex-direction:column;height:auto;aspect-ratio:auto;margin-top:12px;gap:12px;border-radius:0;overflow:visible;background:transparent}
 html body .top-hero.rd-hero>.hero-photo.hero-video-only{width:100%;height:auto;aspect-ratio:16/9;border-radius:22px;overflow:hidden}
html body .top-hero.rd-hero>.rd-hero-copy{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;background:transparent}
 html body .section-heading .rd-sub{display:none}
 .rd-hero-copy p{font-size:15px}
 .rd-btn{min-height:46px;padding:0 22px}
}

html body .top-hero.rd-hero>.hero-photo.hero-video-only{background:var(--rd-dark)}

/* ---------- Tiêu đề mục và liên kết "Xem tất cả" dạng nút viền ---------- */
html body :is(.section-heading,.news-heading) h2{font-family:var(--rd-serif);font-weight:600;font-size:clamp(30px,3.4vw,42px);line-height:1.1;color:var(--rd-ink)}
html body .news-heading .news-all{display:inline-flex;align-items:center;min-height:44px;padding:0 22px;border:1.5px solid #B9C2A6;border-radius:24px;background:var(--rd-cream);color:var(--rd-ink);font:600 14px var(--rd-sans);letter-spacing:0;text-transform:none;text-decoration:none}
html body .news-heading .news-all:hover{background:var(--rd-sage)}

/* ---------- Bộ lọc dạng viên thuốc ---------- */
html body .filters :is(button,.filter){font-family:var(--rd-sans);font-weight:600;font-size:14px;border-radius:24px;border:1.5px solid #B9C2A6;background:var(--rd-cream);color:var(--rd-ink);min-height:42px;padding:0 20px}
html body .filters :is(button,.filter):is(.active,[aria-pressed=true]){background:var(--rd-olive);border-color:var(--rd-olive);color:var(--rd-cream)}

/* ---------- Thẻ dự án, bài viết, bộ ảnh ---------- */
html body :is(.project-card,.detail-tile){background:var(--rd-cream);border:1px solid var(--rd-line);border-radius:20px}
html body :is(.project-card,.detail-tile) :is(p,small,span){font-family:var(--rd-sans)}

/* ---------- Dải kêu gọi tư vấn cuối trang chủ ---------- */
.rd-band{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px 40px;margin:64px 0 8px;padding:40px 48px;border-radius:28px;background:var(--rd-sage)}
.rd-band>div{flex:1;min-width:260px}
html body .rd-band h2{margin:0;font-size:clamp(28px,3vw,38px);line-height:1.12}
.rd-band p{margin:10px 0 0;font-size:15px;color:#3E4C35;max-width:560px}
@media(max-width:750px){.rd-band{margin-top:40px;padding:28px 22px;border-radius:22px}}

/* ---------- Footer ---------- */
html body .footer :is(p,a,span){font-family:var(--rd-sans)}

/* =====================  GIAI ĐOẠN 2: trang dự án, bài viết, danh sách  ===================== */

/* ---------- Breadcrumb gọn, chữ thường ---------- */
html body .breadcrumb{font-family:var(--rd-sans);font-size:14px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--rd-olive);margin-top:20px}
html body .breadcrumb :is(a,button){color:var(--rd-mut);text-transform:none;letter-spacing:0;font-weight:500}
html body .breadcrumb [aria-current]{color:var(--rd-olive)}

/* ---------- Trang dự án ---------- */
html body .detail-hero{border-radius:24px;overflow:hidden}
.rd-pj{display:block}
.rd-aside{display:none}
@media(min-width:1100px){
 .rd-pj{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:40px;align-items:start;margin-top:8px}
 .rd-pj-main{min-width:0}
 .rd-aside{display:flex;flex-direction:column;gap:14px;position:sticky;top:96px;margin-top:28px;padding:28px 26px;border-radius:24px;background:var(--rd-dark);color:var(--rd-cream)}
 html body .rd-aside h2{margin:0;font-size:30px;line-height:1.1;color:var(--rd-cream)}
 .rd-aside p{margin:0 0 6px;font-size:14px;line-height:1.6;color:var(--rd-soft)}
 .rd-aside-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .rd-aside-row .rd-btn{padding:0 12px}
 /* Hộp tư vấn cạnh bên đã thay cho dải cuối trang dự án trên màn hình rộng */
}

/* ---------- Hộp kêu gọi cuối trang (dự án + bài viết) ---------- */
html body .contact-inline.rd-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 32px;margin:56px auto 0;padding:32px 36px;border:0;border-radius:24px;background:var(--rd-dark);color:var(--rd-cream)}
html body .contact-inline.rd-cta h2{margin:0;font-family:var(--rd-serif)!important;font-weight:600;font-size:clamp(26px,2.8vw,36px);line-height:1.15;color:var(--rd-cream)}
html body .contact-inline.rd-cta p{margin:8px 0 0;font-size:15px;color:var(--rd-soft);max-width:520px}
html body .contact-inline.rd-cta .rd-actions{margin:0}
@media(max-width:750px){html body .contact-inline.rd-cta{padding:26px 22px;border-radius:20px}}

/* ---------- Trang bài viết: một cột đọc, ảnh lớn bo tròn ---------- */
html body .article-page .story-head{max-width:980px;margin:28px auto 0;text-align:center}
html body .article-page .story-head h1{font-family:var(--rd-serif)!important;font-weight:600;font-size:clamp(34px,4.6vw,58px);line-height:1.08;letter-spacing:-.01em;color:var(--rd-ink);text-wrap:balance}
html body .article-page .story-head p{display:inline-block;margin-top:14px;padding:4px 14px;border-radius:14px;background:var(--rd-sage);color:var(--rd-dark);font:600 13px var(--rd-sans);letter-spacing:0}
html body .article-layout{max-width:1040px;margin:40px auto 0}
html body .article-layout .article-spread,
html body .article-layout .article-spread.is-reversed,
html body .article-layout .article-spread:nth-child(n){display:flex!important;flex-direction:column!important;gap:0;grid-template-columns:none!important;margin:0 0 36px;padding:0;min-height:0}
html body .article-layout .article-spread>.article-visual{order:0;width:100%!important;max-width:none;margin:0 0 26px!important;grid-column:auto!important;grid-row:auto!important;transform:none!important}
html body .article-layout .article-spread>.article-visual img{width:100%;height:auto;max-height:620px;aspect-ratio:auto;object-fit:cover;border-radius:20px}
html body .article-layout .article-spread>.article-visual.is-document img{object-fit:contain;background:var(--rd-cream);border:1px solid var(--rd-line)}
html body .article-layout .article-visual figcaption{margin-top:8px;font:13px var(--rd-sans);color:var(--rd-mut);text-align:left}
html body .article-layout .article-spread>.article-text{order:1;width:100%!important;max-width:920px;padding:0!important;margin:0 auto!important;background:none!important;box-shadow:none!important;grid-column:auto!important;grid-row:auto!important;align-self:auto}
html body .article-layout .article-text>h2{grid-column:auto!important;grid-row:auto!important;background:none!important;box-shadow:none!important;padding:0!important;margin:30px 0 14px!important;font-family:var(--rd-serif)!important;font-weight:600;font-size:clamp(26px,2.6vw,34px)!important;line-height:1.2;color:var(--rd-ink)}
html body .article-layout .article-text :is(p,li){font:400 clamp(17px,1.4vw,20px)/1.8 var(--rd-sans);color:var(--rd-ink);margin:0 0 18px}
html body .article-layout .article-text .article-intro{font-size:clamp(19px,1.6vw,23px);line-height:1.7;color:var(--rd-dark)}
html body .article-layout .article-text strong{font-weight:600;color:var(--rd-dark)}
html body .article-layout .article-text blockquote{margin:28px 0;padding-left:20px;border-left:3px solid var(--rd-olive);font:600 26px/1.3 var(--rd-serif);color:var(--rd-dark)}
html body .article-page .article-related{margin-top:56px}

/* ---------- Danh sách Chuyện nhà / Nhà đẹp ---------- */
html body .story-head.journal-heading h1{font-family:var(--rd-serif)!important;font-weight:600;font-size:clamp(38px,4.6vw,60px);color:var(--rd-ink)}
html body .story-head.journal-heading p{font-family:var(--rd-sans);color:var(--rd-mut)}
html body .detail-tile{overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
html body .detail-tile:hover{transform:translateY(-2px);box-shadow:0 10px 28px #24301e14}
html body .detail-tile img{border-radius:14px}
html body .detail-tile .tile-copy h3{font-family:var(--rd-serif)!important;font-weight:600;font-size:clamp(21px,1.6vw,25px);line-height:1.2;color:var(--rd-ink)}
html body .journal-pagination .journal-more,html body #projectMore button{border-radius:24px;border:1.5px solid #B9C2A6;background:var(--rd-cream);color:var(--rd-ink);font:600 14px var(--rd-sans);letter-spacing:0;text-transform:none}
html body .contact-inline.journal-follow{border:0;border-radius:24px;background:var(--rd-sage);padding:28px 32px}
html body .contact-inline.journal-follow h2{font-family:var(--rd-serif)!important;font-weight:600}
html body .solid-btn{border-radius:24px;background:var(--rd-olive);color:var(--rd-cream);font:600 14px var(--rd-sans);letter-spacing:0;text-transform:none;padding:0 22px;min-height:44px}
html body .solid-btn:hover{background:var(--rd-dark)}
@media(prefers-reduced-motion:reduce){html body .detail-tile{transition:none}html body .detail-tile:hover{transform:none}}

/* =====================  GIAI ĐOẠN 3: Giới thiệu, Tài chính, Album, hộp liên hệ  ===================== */

/* ---------- Giới thiệu ---------- */
html body .about-copy .about-name{font:600 13px var(--rd-sans);letter-spacing:.02em;color:var(--rd-olive);text-transform:none}
html body .about-copy h1{font-family:var(--rd-serif)!important;font-weight:600;font-size:clamp(42px,5vw,68px);line-height:1.04;letter-spacing:-.01em;color:var(--rd-ink)}
html body .about-copy .about-description{font:400 17px/1.75 var(--rd-sans);color:var(--rd-mut);max-width:520px}
html body .about-visual{border-radius:28px;overflow:hidden;background:var(--rd-sand)}
html body .about-visual figcaption span{font-family:var(--rd-sans);letter-spacing:0;text-transform:none}
html body .about-visual figcaption span:first-child{font:600 22px var(--rd-serif)!important}

/* ---------- Tài chính ---------- */

/* ---------- Album Nhà đẹp ---------- */
.rd-back{display:inline-flex;align-items:center;min-height:44px;font:600 14px var(--rd-sans);color:var(--rd-olive);text-decoration:none}
.rd-back:hover{text-decoration:underline;text-underline-offset:4px}
html body .album-page>h1{position:static;width:auto;height:auto;margin:4px 0 0;overflow:visible;clip-path:none;white-space:normal;font-family:var(--rd-serif)!important;font-weight:600;font-size:clamp(36px,4.4vw,56px);line-height:1.08;color:var(--rd-ink)}
.rd-album-count{margin:8px 0 24px;font:14px var(--rd-sans);color:var(--rd-mut)}
html body .album-page .album-grid{gap:12px}
html body .album-page .album-thumb{border-radius:18px;overflow:hidden;border:0;padding:0;background:var(--rd-sage);cursor:zoom-in}
html body .album-page .album-thumb img{transition:transform .35s ease}
html body .album-page .album-thumb:hover img{transform:scale(1.03)}
@media(prefers-reduced-motion:reduce){html body .album-page .album-thumb img{transition:none}html body .album-page .album-thumb:hover img{transform:none}}

/* ---------- Hộp liên hệ & biểu mẫu (dùng trên mọi trang) ---------- */
html body .modal-backdrop{background:#1c2617a6;backdrop-filter:blur(4px)}
html body .modal{background:var(--rd-cream);border:0;border-radius:26px;box-shadow:0 24px 60px #1c26173d;color:var(--rd-ink)}
html body .modal .eyebrow{font:600 12px var(--rd-sans);letter-spacing:.04em;color:var(--rd-olive)}
html body .modal h2{font-family:var(--rd-serif)!important;font-weight:600;font-size:clamp(28px,3vw,36px);line-height:1.12;color:var(--rd-ink)}
html body .modal p{font-family:var(--rd-sans);color:var(--rd-mut)}
html body .modal-close{width:44px;height:44px;border-radius:50%;border:1px solid var(--rd-line);background:#fff;color:var(--rd-ink);font-size:24px;line-height:1}
html body .modal-close:hover{background:var(--rd-sage)}
html body .contact-options{gap:10px}
html body .contact-option{border:1.5px solid var(--rd-line);border-radius:18px;background:#fff;padding:16px 18px;transition:border-color .2s,background .2s}
html body .contact-option:hover{border-color:var(--rd-olive);background:var(--rd-sage)}
html body .contact-option strong{font:600 16px var(--rd-sans);color:var(--rd-ink)}
html body .contact-option small{font:13px var(--rd-sans);color:var(--rd-mut)}
html body .modal :is(input,select,textarea){min-height:48px;border-radius:14px;border:1.5px solid #B9C2A6;background:#fff;font:15px var(--rd-sans);color:var(--rd-ink)}
html body .modal :is(input,select,textarea):focus{border-color:var(--rd-olive);outline:none;box-shadow:0 0 0 3px #4a5d3a26}
html body .modal :is(.solid-btn,button[type=submit]){border-radius:24px;background:var(--rd-olive);color:var(--rd-cream);font:600 15px var(--rd-sans);min-height:48px;letter-spacing:0;text-transform:none}

/* ---------- Nút nổi (liên hệ, lên đầu trang, CTA) ---------- */
html body :is(.mobile-contact,.back-to-top){background:var(--rd-olive);color:var(--rd-cream);border-color:var(--rd-olive)}
html body .floating-cta{border-radius:24px;background:var(--rd-olive);color:var(--rd-cream);font:600 14px var(--rd-sans);letter-spacing:0}

/* =====================  NHÓM A: chỉnh theo mockup  ===================== */

/* ---------- Footer dải tối toàn chiều ngang ---------- */
html body .rd-footer{margin:64px 0 0;padding:0;border-radius:0;background:var(--rd-dark);color:var(--rd-cream);width:100%}
.rd-footer-inner{display:grid;grid-template-columns:minmax(260px,1.4fr) minmax(160px,.7fr) minmax(240px,1fr);gap:32px;padding-top:44px;padding-bottom:36px}
html body .rd-footer h3{margin:0;font-family:var(--rd-serif)!important;font-weight:600;font-size:30px;line-height:1.1;color:var(--rd-cream)}
html body .rd-footer p{margin:4px 0 0;font:13px/1.6 var(--rd-sans);color:var(--rd-soft)}
html body .rd-footer .rd-disclaimer{margin-top:16px;font-size:12px;color:#C9D4B8;max-width:420px}
.rd-footer-nav{display:flex;flex-direction:column;gap:12px}
html body .rd-footer-nav a{font:14px var(--rd-sans);color:var(--rd-soft);text-decoration:none}
html body .rd-footer-nav a:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}
.rd-footer-contact{display:flex;flex-direction:column;gap:12px}
.rd-footer-phone{width:100%}
.rd-pills{display:flex;flex-wrap:wrap;gap:8px}
.rd-footer .rd-pills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.rd-footer .rd-pill{padding:0 8px}
html body .rd-pill{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border-radius:20px;border:1.5px solid #B9C2A6;background:transparent;color:inherit;font:600 13px var(--rd-sans);text-decoration:none;cursor:pointer}
html body .rd-footer .rd-pill{color:var(--rd-cream)}
html body .rd-pill:hover{background:#ffffff14}
.rd-footer-copy{border-top:1px solid #4F6044;text-align:center;padding:16px;font:12px var(--rd-sans);color:#C9D4B8}
@media(max-width:900px){
 .rd-footer-inner{grid-template-columns:1fr;gap:24px;padding-top:32px;padding-bottom:24px}
 .rd-footer-nav{flex-direction:row;flex-wrap:wrap;gap:10px 18px}
 html body .rd-footer{margin-top:44px;padding-bottom:var(--safe-bottom,0px)}
}

/* ---------- Trang chủ ---------- */
html body .section-heading .rd-sub{margin:8px 0 0;font:14px/1.6 var(--rd-sans);color:var(--rd-mut);letter-spacing:0}
html body .project-card .card-bottom h3{font-family:var(--rd-serif)!important;font-weight:600;font-size:clamp(22px,1.7vw,26px)!important;line-height:1.12!important;color:var(--rd-ink)}
html body #projectGrid.mobile-flow-grid>.projectLarge .card-bottom h3{font-size:22px!important}
@media(max-width:900px){html body .top-hero.rd-hero>.hero-photo.hero-video-only{order:-1}}

/* ---------- Nút Zalo nổi trên điện thoại ---------- */
@media(max-width:900px){
 /* Trang dự án dùng thanh liên hệ dưới cùng thay cho nút nổi */
 body:has(.rd-mobile-bar) :is(.mobile-contact,.mobile-zalo,.floating-cta){display:none!important}
 body:has(.rd-mobile-bar) .back-to-top{bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}
 body:has(.rd-mobile-bar) .rd-footer{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
}

/* ---------- Trang dự án ---------- */
.rd-mobile-bar{display:none}
@media(max-width:1099px){
 .rd-mobile-bar{position:fixed;left:0;right:0;bottom:0;z-index:44;display:grid;grid-template-columns:1fr 1.4fr;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:#FAF8F0f2;border-top:1px solid var(--rd-line);backdrop-filter:blur(10px)}
 .rd-mobile-bar .rd-btn{min-height:48px;padding:0 12px}
}
.rd-btn-line-dark{border-color:var(--rd-olive);color:var(--rd-ink);background:var(--rd-cream)}
.rd-btn-out{border-color:#B9C2A6;background:var(--rd-cream);color:var(--rd-ink)}.rd-btn-out:hover{background:var(--rd-sage)}
.rd-aside-wrap{display:none}
@media(min-width:1100px){.rd-aside-wrap{display:flex;flex-direction:column;gap:14px;position:sticky;top:96px;margin-top:28px}.rd-aside-wrap .rd-aside{position:static;margin-top:0}}
.rd-person{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:18px;background:var(--rd-cream);border:1px solid var(--rd-line);color:var(--rd-ink);text-decoration:none}
.rd-person img{width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--rd-sand);flex:none}
.rd-person strong{display:block;font:600 15px var(--rd-sans)}.rd-person small{display:block;font:12px var(--rd-sans);color:var(--rd-mut)}
html body .rd-others h2{font-size:clamp(28px,3vw,38px);margin:0 0 18px}
.rd-others-list{display:grid;gap:10px}
.rd-other{display:flex;align-items:center;gap:16px;padding:10px 18px 10px 10px;border-radius:18px;background:var(--rd-cream);border:1px solid var(--rd-line);color:var(--rd-ink);text-decoration:none;transition:border-color .2s}
.rd-other:hover{border-color:var(--rd-olive)}
.rd-other img{width:84px;height:64px;border-radius:12px;object-fit:cover;flex:none}
.rd-other span{flex:1;min-width:0}.rd-other strong{display:block;font:600 21px/1.15 var(--rd-serif)}.rd-other small{display:block;font:13px var(--rd-sans);color:var(--rd-mut)}
.rd-other svg{width:22px;height:22px;color:var(--rd-olive);flex:none}

/* ---------- Bài viết: nhãn trên tiêu đề, tác giả, chia sẻ ---------- */
html body .article-page .story-head{display:flex;flex-direction:column;align-items:center}
html body .article-page .story-head>p{order:-1;margin:0 0 14px}
.rd-byline{display:flex;align-items:center;gap:10px;margin-top:16px;font:14px var(--rd-sans);color:var(--rd-mut)}
.rd-byline img{width:32px;height:32px;border-radius:50%;object-fit:cover;background:var(--rd-sand)}
.rd-byline strong{color:var(--rd-ink);font-weight:600}
.rd-share{max-width:760px;margin:8px auto 0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font:13px var(--rd-sans);color:var(--rd-mut)}
html body .rd-share .rd-pill{color:var(--rd-ink);background:var(--rd-cream)}
html body .rd-share .rd-pill:hover{background:var(--rd-sage)}
.rd-author{max-width:760px;margin:24px auto 0}

/* ---------- Chuyện nhà / Nhà đẹp: tiêu đề trái, bài nổi bật ---------- */
html body .story-head.journal-heading{text-align:left;margin-left:0;max-width:none}
html body .story-head.journal-heading p{margin-left:0}
.rd-feature{display:grid;grid-template-columns:1.15fr 1fr;width:100%;margin:8px 0 22px;padding:0;border:1px solid var(--rd-line);border-radius:24px;overflow:hidden;background:var(--rd-cream);color:var(--rd-ink);text-align:left;cursor:pointer;font:inherit}
.rd-feature img{width:100%;height:100%;min-height:300px;max-height:420px;object-fit:cover}
.rd-feature-copy{display:flex;flex-direction:column;justify-content:center;gap:10px;padding:36px 40px}
.rd-tag{align-self:flex-start;padding:3px 12px;border-radius:12px;background:var(--rd-sage);color:var(--rd-dark);font:600 12px var(--rd-sans)}
.rd-feature-copy strong{font:600 clamp(28px,2.8vw,40px)/1.1 var(--rd-serif)}
.rd-excerpt{display:block;font:14px/1.6 var(--rd-sans);color:var(--rd-mut);margin:0}
.rd-meta{display:block;font:12px var(--rd-sans);color:var(--rd-mut)}
.rd-link{font:600 14px var(--rd-sans);color:var(--rd-olive);margin-top:6px}
.rd-feature:hover .rd-link{text-decoration:underline;text-underline-offset:4px}
html body .detail-tile .tile-copy .rd-excerpt{margin-top:8px}
html body .detail-tile .tile-copy .rd-meta{margin-top:6px}
.rd-more-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:220px;padding:24px;border-radius:20px;background:var(--rd-sage);text-align:center}
html body .rd-more-tile h3{margin:0;font-size:26px}
@media(max-width:750px){.rd-feature{grid-template-columns:1fr}.rd-feature img{min-height:220px;max-height:260px}.rd-feature-copy{padding:22px}}
.rd-band-small{margin-top:40px}
html body .spaces-page .rd-band h2{font-size:clamp(26px,2.6vw,34px)}

/* ---------- Giới thiệu ---------- */
html body .about-copy .rd-actions{margin-top:24px}
.rd-about-contact{margin-top:32px}
html body .rd-about-contact h2{font-size:26px;margin:0 0 12px}
html body .rd-about-contact .rd-pill{color:var(--rd-ink);background:var(--rd-cream)}
html body .rd-about-contact .rd-pill:hover{background:var(--rd-sage)}
html body .rd-footer h3{letter-spacing:0!important}
html body #collection>div{flex:1;max-width:none}
html body .section-heading .rd-sub{max-width:640px!important;width:auto}

/* ---------- Theo mockup: thông số thẻ dự án, trang chi tiết ---------- */
html body .rd-stats{display:flex;gap:8px;margin:14px 0 0;padding:0;position:relative}
html body .rd-stats>div{flex:1;min-width:0;background:#EEF0E4;border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;gap:1px}
html body .rd-stats span{font-size:11px;line-height:1.3;color:#3E4C35;font-weight:400}
html body .rd-stats b{font-size:13px;line-height:1.3;font-weight:600;color:var(--rd-ink,#24301E);overflow-wrap:anywhere}
.rd-facts{margin:0 0 8px}
.rd-facts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:24px}
.rd-facts-grid>div{background:#EEF0E4;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.rd-facts-grid span{font-size:12px;color:#3E4C35}
.rd-facts-grid b{font-size:15px;font-weight:600;color:#24301E}
.rd-facts-note{margin:10px 0 0;font-size:12px;color:#3E4C35}
html body .rd-facts-h{font-size:clamp(26px,2.6vw,32px);margin:36px 0 12px}
.rd-hl{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;counter-reset:hl}
.rd-facts-src{margin:14px 0 0;font-size:12px;line-height:1.55;color:#4A583F}
.rd-hl li{counter-increment:hl;display:grid;grid-template-columns:28px 1fr;column-gap:12px;align-items:center;background:#FAF8F0;border:1px solid #DCE0CF;border-radius:14px;padding:9px 14px;align-content:center}
.rd-hl li:before{content:counter(hl);grid-row:span 2;width:28px;height:28px;border-radius:50%;background:#4A5D3A;color:#FAF8F0;display:grid;place-items:center;font-weight:600;font-size:14px}
.rd-hl span{font-weight:600;font-size:15px;color:#24301E}.rd-hl small{grid-column:2;font-size:13.5px;line-height:1.45;color:#3E4C35}
.rd-hl li:last-child:nth-child(odd){grid-column:1/-1}
@media(max-width:700px){.rd-hl{grid-template-columns:1fr}}
.rd-fin{margin-top:40px}
html body .rd-fin h2{font-size:clamp(26px,2.6vw,32px);margin:0 0 12px}
.rd-fin-box{background:#E7EAD8;border-radius:20px;padding:20px 24px;color:#24301E}
.rd-fin-box p{margin:0;font-size:15px;line-height:1.6}
.rd-fin-link{display:inline-flex;align-items:center;gap:8px;margin-top:14px;font-weight:600;font-size:15px;color:#34452D;text-decoration:none}
@media(max-width:860px){.rd-facts-grid{grid-template-columns:1fr 1fr}.rd-fin{margin-top:32px}}

/* Theo mockup: đầu trang chi tiết dự án (gallery + tag + tiêu đề), khối mặt bằng/vị trí */
.rd-gal{display:grid;gap:10px;margin:8px 0 18px}
.rd-gal-main{position:relative;margin:0;border-radius:22px;overflow:hidden;aspect-ratio:16/10;background:#dfe5d3}
.rd-gal-main img{width:100%;height:100%;object-fit:cover;display:block}
.rd-gal-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.rd-gal-thumbs :is(span,.rd-thumb){display:block;padding:0;border:2px solid transparent;border-radius:14px;overflow:hidden;aspect-ratio:16/10;background:#dfe5d3;cursor:pointer;transition:border-color .15s,transform .15s}.rd-gal-thumbs .rd-thumb:hover{border-color:var(--rd-olive,#606e40);transform:translateY(-2px)}.rd-gal-thumbs .rd-thumb:focus-visible{outline:3px solid #405c2b;outline-offset:2px}.rd-gal-main img{transition:opacity .2s}
.rd-gal-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.rd-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.rd-tags span{padding:5px 12px;border-radius:999px;background:#e8ecdd;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#3d4d33}
html body h1.rd-title{margin:0 0 6px;font-size:clamp(34px,5vw,52px);line-height:1.05}
.rd-sub{margin:0 0 18px;color:#4A583F}
.rd-src{font-size:13px;margin:0 0 14px}
.rd-block{margin:34px 0 0}
.rd-block>h2{margin:0 0 14px}
.rd-empty{display:flex;align-items:center;justify-content:center;min-height:180px;padding:24px;border-radius:20px;background:#faf7ee;border:1px dashed #c9d1bb;text-align:center;font-size:14px;color:#4A583F}
.rd-empty-map{background:#e6ebdb;min-height:240px}
.rd-pj-main .rd-others{margin-top:34px}
@media(min-width:1100px){.rd-aside-wrap{margin-top:8px}}
@media(max-width:600px){.rd-gal-thumbs{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}}
/* Tiện ích: 4 ô nhỏ trên một hàng như mockup; bỏ dải CTA cuối trang */
@media(min-width:1100px){html body .rd-pj-main .project-article-screen .detail-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:12px}html body .rd-pj-main .project-article-screen .detail-grid>.detail-tile{grid-column:span 2}html body .rd-pj-main .project-article-screen .detail-grid>.detail-tile:nth-child(5):nth-last-child(3){grid-column:2/span 2}html body .rd-pj-main .project-article-screen .detail-grid:has(>.detail-tile:nth-child(6):last-child){grid-template-columns:repeat(6,minmax(0,1fr))!important}html body .rd-pj-main .project-article-screen .detail-grid:has(>.detail-tile:nth-child(6):last-child)>.detail-tile{grid-column:span 2}}
/* Thẻ tiện ích & trải nghiệm: tiêu đề cùng mép trên, cùng chiều cao 2 dòng, cho phép 3 dòng */
html body .rd-pj-main .project-article-screen .detail-grid>.detail-tile>.tile-copy{justify-content:flex-start}
html body .rd-pj-main .project-article-screen .detail-grid>.detail-tile .tile-copy h3{min-height:2.6em;-webkit-line-clamp:3;line-height:1.3}
@media(min-width:1100px){html body .rd-pj-main .project-article-screen .detail-grid>.detail-tile .tile-copy h3{font-size:clamp(17px,1.5vw,23px)!important}}
.rd-pj-main .project-article-screen .detail-tile img,.rd-pj-main .project-article-screen .detail-tile .image-empty{aspect-ratio:4/3;height:auto}
.rd-cta{display:none!important}
.rd-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.rd-tab{padding:8px 16px;border-radius:999px;border:1px solid #c9d1bb;background:#faf7ee;font:inherit;font-size:13px;cursor:pointer;color:#3d4d33}
.rd-tab[aria-selected=true]{background:#4a5a3a;color:#fff;border-color:#4a5a3a}
.rd-unit[hidden]{display:none}
.rd-unit figure,.rd-map{margin:0 0 10px;border-radius:20px;overflow:hidden;background:#faf7ee}
.rd-unit figure{min-height:clamp(240px,52vw,560px)}
.rd-unit img,.rd-map img{width:100%;height:auto;display:block}
.rd-unit p,.rd-loc{margin:8px 0 0;font-size:14px;line-height:1.6;color:#4b5642}
.rd-quick{display:flex;flex-direction:column;gap:8px}
.rd-quick label{font-size:12px;color:var(--rd-soft,#cfd6c2)}
.rd-quick input{height:46px;padding:0 16px;border-radius:999px;border:0;font:inherit;font-size:14px;background:#fff;color:#30352b}

/* ===== Phiên 14h40: chỉ áp dụng cho máy tính (>=1100px) ===== */
.rd-footer-h,.rd-ab-more{display:none}
@media(min-width:1100px){
 /* 1. Dòng mô tả thương hiệu */
 /* 2. Hero: bỏ đoạn mô tả, dàn lại cho cân */
 /* 3. Mũi tên chéo -> mũi tên ngang sang phải */
 /* 5. Bỏ lọc LUMIÈRE/Masteri, ô tìm kiếm, nút Tất cả */
 /* 4. Footer cân đối */
 .rd-footer-inner{grid-template-columns:1.3fr 1fr 1fr;gap:56px;align-items:start;padding-top:56px;padding-bottom:48px}
 .rd-footer-h{display:block;margin:0 0 16px;font:600 12px var(--rd-sans);letter-spacing:.14em;text-transform:uppercase;color:#C9D4B8}
 .rd-footer-nav{display:grid;grid-template-columns:repeat(2,max-content);gap:12px 40px;align-content:start}
 .rd-footer-nav .rd-footer-h{grid-column:1/-1;margin-bottom:4px}
 .rd-footer-contact{align-items:flex-start;gap:14px}
 .rd-footer-contact .rd-footer-h{margin-bottom:0}
 .rd-footer-contact{width:100%;max-width:340px}
 .rd-footer-phone{width:100%;padding:0 24px}
 /* 7. Trang Giới thiệu theo mockup */
 html body .about-layout{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:64px;align-items:center}
 html body .about-layout .about-visual{order:-1;margin:0;aspect-ratio:4/5;max-height:560px}
 html body .about-layout .about-visual img{width:100%;height:100%;object-fit:cover}
 html body .about-layout .about-copy .about-action,html body .about-layout .about-copy .rd-about-contact{display:none}
 .rd-ab-more{display:block;padding-bottom:24px}
 .rd-ab-sec{margin-top:56px}
 .rd-ab-more h2{margin:0 0 20px;font:600 32px var(--rd-serif);color:var(--rd-ink)}
 .rd-ab-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
 .rd-ab-pledge{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
 .rd-ab-card{padding:22px 24px;border-radius:20px;background:#faf7ee;border:1px solid #e3e0cf}
 .rd-ab-card h3{margin:0 0 8px;font:600 20px var(--rd-serif);color:var(--rd-olive)}
 .rd-ab-card p{margin:0;font:14px/1.6 var(--rd-sans);color:var(--rd-mut)}
 .rd-ab-n{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin-bottom:14px;border-radius:50%;background:var(--rd-olive);color:#fff;font:600 14px var(--rd-sans)}
 .rd-ab-who{margin-top:56px;padding:32px 36px;border-radius:24px;background:#e6ebdb;max-width:760px}
 .rd-ab-who h2{font-size:26px!important;margin-bottom:12px!important}
 .rd-ab-who p{margin:0;font:16px/1.7 var(--rd-sans);color:var(--rd-ink)}
 .rd-ab-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
 .rd-ab-stats div{padding-top:14px;border-top:2px solid var(--rd-olive)}
 .rd-ab-stats b{display:block;font:600 40px var(--rd-serif);color:var(--rd-ink)}
 .rd-ab-stats span{font:14px var(--rd-sans);color:var(--rd-mut)}
 .rd-ab-cta{margin-top:56px;display:flex;align-items:center;justify-content:space-between;gap:32px;padding:36px 44px;border-radius:28px;background:#e6ebdb}
 .rd-ab-cta h2{margin:0!important;font-size:30px!important}
 .rd-ab-form{display:flex;align-items:center;gap:12px}
 .rd-ab-form label{font:12px var(--rd-sans);color:var(--rd-mut)}
 .rd-ab-form input{height:48px;width:260px;padding:0 20px;border-radius:999px;border:1px solid #c9d1bb;background:#fff;font:inherit}
}
@media(min-width:1100px){
 html body .rd-hero-copy h1{font-size:clamp(46px,5.4vw,84px);white-space:pre-line}
}

/* Tài chính: màn hình desktop thấp (<=760px) vẫn thấy nút hành động trong khung nhìn */

/* Màn hình 901–1100px: thanh điều hướng gọn lại để không tràn ngang */
@media(min-width:901px) and (max-width:1100px){
 html body .header .nav{gap:2px}
 html body .header .nav button{font-size:13.5px;padding-left:8px;padding-right:8px}
 html body .header .nav .primary{padding-left:14px;padding-right:14px}
 html body .header .brand-tagline{font-size:20px}
}
@media(min-width:901px) and (max-width:960px){
 html body .header .nav button{font-size:12.5px;padding-left:5px;padding-right:5px}
 html body .header .nav .primary{padding-left:10px;padding-right:10px}
 html body .header .brand-tagline{font-size:17px}
 html body .header .brand-description{display:none}
}

/* ===== Áp dụng cho cả máy tính và điện thoại ===== */
/* Hero: bỏ đoạn mô tả */
html body .rd-hero-copy>p{display:none}
@media(max-width:1099px){
 html body .rd-hero-copy h1{font-size:clamp(34px,9vw,48px);line-height:1.08}
}
/* Bộ lọc: chỉ giữ Hưng Yên / Hà Nội */
.filters .search,.filters [data-series],.filters [data-region="Tất cả"],.filters>span[style]{display:none!important}
/* Ô tìm kiếm trên mobile bị script chuyển ra ngoài .filters: ẩn luôn */
#collection~label.search,.home-page label.search,.collection-page label.search,label.search.search-mobile{display:none!important}

/* Mobile v2: footer gọn, nút nổi gọn, thẻ dự án có ảnh lớn */
.rd-footer-copy .rd-copy-note{display:none}
@media(max-width:899px){
 html body .rd-footer .rd-disclaimer,html body .rd-footer .rd-footer-nav{display:none}
 .rd-footer-copy .rd-copy-note{display:block;margin-top:4px}
 html body .back-to-top,html body:has(.home-page) .back-to-top{position:fixed!important;display:grid;margin:0;left:auto;right:calc(25px + env(safe-area-inset-right,0px));bottom:calc(76px + env(safe-area-inset-bottom,0px));width:38px;height:38px;z-index:45}
 html body.has-mobile-contact .back-to-top{bottom:calc(76px + env(safe-area-inset-bottom,0px))}
 html body:has(.rd-mobile-bar) .back-to-top{bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}
 html body:has(.home-page) .back-to-top:not([hidden]){display:grid}
 html body #projectGrid.mobile-flow-grid>.project-card.projectLarge,html body #projectGrid>.project-card{position:relative!important;display:flex!important;flex-direction:column;height:auto!important;min-height:0!important;inset:auto!important;transform:none!important;margin:0 0 14px!important}
 html body #projectGrid.mobile-flow-grid>.project-card.projectLarge>img,html body #projectGrid>.project-card>img{position:relative!important;inset:auto!important;flex:none!important;display:block;width:100%!important;height:auto!important;aspect-ratio:16/10!important;object-fit:cover!important;min-height:0}
 html body #projectGrid.mobile-flow-grid>.project-card.projectLarge .card-bottom,html body #projectGrid>.project-card .card-bottom{position:relative!important;inset:auto!important;padding:14px 16px 16px;color:var(--rd-ink,#24301E);background:transparent}
 html body #projectGrid>.project-card .project-view{right:16px;top:auto}
}
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0;pointer-events:none}

/* Hero: bỏ dòng tên, bố cục gọn — tiêu đề + 2 nút canh giữa theo chiều dọc */
html body .rd-hero-copy{gap:28px;justify-content:center}
html body .rd-hero-copy .rd-actions{margin-top:0;gap:12px;flex-wrap:wrap}
@media(max-width:899px){html body .rd-hero-copy{gap:20px;padding:26px 22px 28px}html body .rd-hero-copy h1{font-size:clamp(32px,8.6vw,44px)}}

/* Thẻ dự án: ô thông tin cân đối, cột Giá hẹp hơn để Diện tích/Phòng ngủ đủ chỗ trên một dòng */
html body .rd-stats{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.1fr) minmax(0,1.1fr);gap:8px}
html body .rd-stats>div{padding:8px 9px}
html body .rd-stats span{white-space:nowrap}
html body .rd-stats b{font-size:12px;overflow-wrap:break-word}
html body .project-card .card-bottom{justify-content:flex-start}

/* ===== Trang Tài chính (máy tính khoản vay) — toàn bộ style của trang nằm ở đây ===== */
.loan-page{padding-bottom:24px}
.loan-page .loan-heading{margin:8px 0 18px}
html body .loan-page .loan-heading h1{font-family:var(--rd-serif)!important;font-weight:600;font-size:clamp(28px,3.4vw,42px);line-height:1.1;margin:0 0 6px;color:var(--rd-ink)}
.loan-page .loan-heading p{margin:0;font-size:15px;line-height:1.6;color:var(--rd-mut);max-width:60ch}
.loan-page .cashflow-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
@media(min-width:900px){.loan-page .cashflow-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:20px;align-items:stretch}.loan-page .loan-result{display:flex;flex-direction:column}.loan-page .loan-result .loan-advice{margin-top:auto}.loan-page .loan-timeline{margin-bottom:16px}}
.loan-page .cashflow-inputs{background:var(--rd-cream);border:1px solid var(--rd-line);border-radius:24px;padding:22px;min-width:0}
.loan-page .loan-group{border:0;margin:0 0 20px;padding:0;min-width:0}
.loan-page .loan-group legend{padding:0;margin:0 0 10px;font:600 13px var(--rd-sans);letter-spacing:.1em;text-transform:uppercase;color:var(--rd-mut)}
.loan-page .field{margin:0;min-width:0}
.loan-page .field label,.loan-page .loan-field-label{display:block;margin:0 0 6px;font:500 13px/1.4 var(--rd-sans);color:var(--rd-ink)}
.loan-page .field small{display:block;margin-top:5px;font-size:13px;line-height:1.4;color:var(--rd-mut)}
.loan-page .loan-group input{width:100%;min-width:0;height:46px;padding:0 14px;border:1px solid var(--rd-line);border-radius:12px;background:#fff;color:var(--rd-ink);font:500 16px var(--rd-sans)}
.loan-page .loan-group input:focus-visible{outline:2px solid var(--rd-olive);outline-offset:1px;border-color:var(--rd-olive)}
.loan-page .loan-group input[aria-invalid=true]{border-color:#B4452F}
.loan-page .loan-unit,.loan-page .loan-date-wrap{position:relative}
.loan-page .loan-unit input{padding-right:64px}
.loan-page .loan-unit>span{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--rd-mut);pointer-events:none}
.loan-page .loan-date-wrap input{padding-right:44px}
.loan-page .loan-date-button{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:38px;height:38px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:var(--rd-mut);cursor:pointer}
.loan-page .loan-date-button:hover{background:var(--rd-sage)}
.loan-page .loan-date-button svg{width:20px;height:20px}
.loan-page .loan-price{margin-bottom:12px}
.loan-page .loan-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:10px;align-items:end}
.loan-page .loan-percent-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.loan-page .loan-percent-row .filter{height:46px;min-height:46px;padding:0;border-radius:12px;font:600 15px var(--rd-sans)}
.loan-page .loan-capital{display:flex;flex-direction:column;justify-content:center;min-height:46px;padding:8px 14px;border-radius:12px;background:var(--rd-sage);gap:1px}
.loan-page .loan-capital span{font-size:13px;line-height:1.3;color:var(--rd-mut)}
.loan-page .loan-capital output{font:600 clamp(15px,1.5vw,19px)/1.2 var(--rd-sans);color:var(--rd-ink);overflow-wrap:anywhere}
.loan-page .cashflow-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
.loan-page .loan-rate-row{display:flex;align-items:flex-end;gap:10px}
.loan-page .loan-rate-row .field{flex:1}
.loan-page .loan-reset{height:46px;min-height:46px;padding:0 18px;border-radius:12px}
.loan-page .loan-message{margin:0;font-size:13px;line-height:1.5;color:#8A5A1E}
.loan-page .loan-message:empty{display:none}
/* Kết quả: thẻ xanh nổi bật, số tiền lãi là trọng tâm */
.loan-page .loan-result{padding:24px;border-radius:24px;background:var(--rd-olive);color:var(--rd-cream);min-width:0}
.loan-page .loan-interest-highlight{padding:0 0 18px}
.loan-page .loan-result .eyebrow{display:block;margin:0 0 8px;font:600 13px var(--rd-sans);letter-spacing:.12em;color:#C9D2B4}
html body .loan-page .loan-result .cash-total{margin:0;font-family:var(--rd-serif)!important;font-weight:600;font-size:clamp(32px,4.2vw,50px);line-height:1.08;color:#FAF8F0;overflow-wrap:anywhere}
.loan-page .loan-interest-caption{margin:8px 0 0;font-size:13px;line-height:1.5;color:#C9D2B4}
.loan-page .loan-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 8px}
.loan-page .loan-summary>div{display:block;padding:12px 14px;border:0;border-radius:14px;background:#ffffff1a}
.loan-page .loan-summary dt{font-size:13px;color:#C9D2B4;margin:0 0 3px}
.loan-page .loan-summary dd{margin:0;text-align:left;font:600 16px/1.3 var(--rd-sans);color:#FAF8F0;overflow-wrap:anywhere}
.loan-page .loan-timeline{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.loan-page .loan-timeline li{display:block;position:static;padding:12px 14px;border-radius:14px;background:#ffffff0f;min-width:0}
.loan-page .loan-timeline h3{margin:0 0 4px;font:600 13px var(--rd-sans);letter-spacing:.08em;text-transform:uppercase;color:#C9D2B4}
.loan-page .loan-timeline strong{display:block;font:600 15px/1.35 var(--rd-sans);color:#FAF8F0;overflow-wrap:anywhere}
.loan-page .loan-timeline p{margin:3px 0 0;font-size:13px;line-height:1.4;color:#C9D2B4}
.loan-page .loan-advice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid #ffffff2e}
.loan-page .loan-advice p{margin:0;font-size:13px;color:#C9D2B4}
html body .loan-page .loan-advice .solid-btn{background:#FAF8F0;color:var(--rd-dark);white-space:nowrap}
@media(max-width:479px){.loan-page .cashflow-inputs{padding:16px;border-radius:20px}.loan-page .loan-result{padding:18px;border-radius:20px}.loan-page .loan-split{grid-template-columns:1fr}.loan-page .loan-advice{flex-direction:column;align-items:stretch;text-align:center}}
@media(max-width:399px){.loan-page .cashflow-fields{grid-template-columns:1fr}}
/* Màn hình thấp (laptop 720px): gọn lại để cả máy tính nằm gọn trong một màn hình */
/* Trang dự án: ảnh tiện ích (trong nhà / ngoài trời) và ảnh giao thông, kết nối hạ tầng */
.rd-media-h{margin:22px 0 12px;font-size:18px;font-weight:600;color:#2f3d27}
.rd-block h2+.rd-media-h{margin-top:6px}
.rd-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.rd-media-grid{grid-auto-rows:auto!important;align-items:start;max-width:100%}
.rd-media-grid>figure{min-width:0}
.rd-media-grid figure{margin:0;height:auto!important;min-height:0!important;border-radius:16px;overflow:hidden;background:#faf7ee;cursor:zoom-in}
.rd-media-grid img{display:block;width:100%!important;height:auto!important;aspect-ratio:4/3;object-fit:cover}
.rd-media-grid figcaption{padding:9px 12px 11px;font-size:14px;line-height:1.45;color:#4b5642}
.rd-media-grid.rd-media-wide{grid-template-columns:repeat(2,minmax(0,1fr))}
.rd-media-grid.rd-media-wide img{aspect-ratio:auto;object-fit:contain;background:#fff}
@media(max-width:750px){.rd-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rd-media-grid.rd-media-wide{grid-template-columns:minmax(0,1fr)}.rd-media-grid figcaption{font-size:13px;padding:7px 9px 9px}}

@media(min-width:901px) and (max-height:780px){
.loan-page .loan-heading{margin:2px 0 10px}
html body .loan-page .loan-heading h1{font-size:30px;margin:0 0 2px}
.loan-page .loan-heading p{font-size:13px}
.loan-page .cashflow-inputs{padding:16px 18px}
.loan-page .loan-group{margin-bottom:12px}
.loan-page .loan-group legend{margin-bottom:6px}
.loan-page .field label,.loan-page .loan-field-label{margin-bottom:4px}
.loan-page .loan-group input,.loan-page .loan-percent-row .filter,.loan-page .loan-reset{height:40px;min-height:40px}
.loan-page .loan-capital{min-height:40px;padding:5px 12px}
.loan-page .loan-price{margin-bottom:8px}
.loan-page .cashflow-fields{gap:8px 10px}
.loan-page .loan-result{padding:18px 20px}
.loan-page .loan-interest-highlight{padding-bottom:12px}
html body .loan-page .loan-result .cash-total{font-size:clamp(30px,3.4vw,42px)}
.loan-page .loan-advice{margin-top:12px;padding-top:12px}
/* ===== Quy ước cỡ chữ (desktop): nhãn/chú thích tối thiểu 13px, chữ phụ 15px, chữ nội dung 17px ===== */
@media(min-width:901px){
html body :is(.rd-stats span,.rd-facts-grid span){font-size:13px!important}
html body .rd-stats b{font-size:14px!important;font-weight:600}
html body :is(.rd-meta,small.rd-meta,.rd-facts-note,.rd-facts-src,.rd-tag,.rd-gal-badge,.card-kicker,.eyebrow){font-size:13px!important}
html body :is(.rd-sub,.rd-excerpt,.project-card .card-bottom p,.detail-tile small){font-size:15px!important;line-height:1.5}
html body :is(.rd-pill,.rd-person p,.brand-description,.rd-footer-copy,.rd-disclaimer,.rd-footer-h){font-size:13.5px!important}
html body .rd-footer-h{letter-spacing:.08em;color:#E4EAD8}
html body :is(.rd-meta,.rd-facts-note,.rd-facts-src,.brand-description,.rd-disclaimer,.rd-footer-copy,.rd-person p,.loan-advice p,.rd-sub,.rd-excerpt,.card-bottom p,.tile-copy small,.rd-stats span,.rd-facts-grid span,label,legend,dt){font-weight:500!important}
html body :is(.rd-disclaimer,.rd-footer-copy){color:#E4EAD8}
html body :is(.rd-hl small,.rd-empty,.rd-loc){font-size:15px!important}
html body .article-layout .article-visual figcaption{font-size:14px!important}
html body :is(.project-card,.related-card) .card-bottom span:not(.article-read):not(.visually-hidden){font-size:13px!important;font-weight:500}
html body :is(.rd-person,.rd-author) :is(p,small){font-size:14px!important;font-weight:500!important}
html body :is(.modal,.rd-lead) label{font-size:13px!important}
}
