/* SPACEFORMS — HOMEPAGE REFINEMENTS (only applies to Default.aspx sections) */
:root{--sf-green:#163f39;--sf-teal:#08aa95;--sf-magenta:#ad006f;--sf-mist:#ebf3ef;--sf-border:#d7e4dd;--sf-surface:#f7faf8}
#sectors .sector-grid{align-items:stretch}
#sectors .sector-grid>a{display:flex;flex-direction:column;height:100%;min-width:0;transition:background .2s ease}
#sectors .sector-grid>a>.sector-link{display:block;margin-top:auto;padding-top:27px;color:var(--sf-magenta);font-weight:600;font-size:12px;line-height:1.5}
#sectors .sector-grid>a>.sector-link:after{content:' ↗';margin-left:5px}
#sectors .sector-grid>a:hover{background:#edf7f3}

/* Featured projects: gallery with editorial detail panels */
.sf-featured-work{background:#eaf2ed;padding-top:clamp(65px,8vw,110px);padding-bottom:clamp(70px,9vw,120px)}
.sf-home-section-heading{display:flex;justify-content:space-between;align-items:end;gap:40px;margin-bottom:42px}
.sf-home-section-heading .eyebrow{color:#007e70;margin-bottom:14px}
.sf-home-section-heading h2{font:400 clamp(36px,4.7vw,66px)/1.12 Arial,Helvetica,sans-serif;letter-spacing:-2.5px;color:#1d3732}
.sf-home-section-heading h2 em{color:var(--sf-teal);font-family:Georgia,'Times New Roman',serif;font-weight:400}
.sf-home-section-heading>p{font-size:14px;line-height:1.9;max-width:390px;color:#5e7169;margin:0 0 5px}
.sf-featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 24px}
.sf-featured-card{min-width:0;background:#fff;border:1px solid #d4e0da;display:flex;flex-direction:column;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease}
.sf-featured-card:hover{transform:translateY(-3px);box-shadow:0 16px 42px rgba(22,63,57,.07)}
.sf-featured-media{height:265px;position:relative;overflow:hidden;background:#dce8e2}
.sf-featured-media img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.sf-featured-card:hover .sf-featured-media img{transform:scale(1.04)}
.sf-featured-index{position:absolute;top:20px;left:20px;color:#fff;background:#112d289e;padding:8px 12px;font-size:10px;letter-spacing:1.4px}
.sf-illustrative-label{position:absolute;bottom:13px;left:13px;right:13px;width:max-content;max-width:calc(100% - 26px);padding:7px 11px;background:#fffdf0e8;color:#425c52;font-size:10px;letter-spacing:.1px}
.sf-featured-copy{padding:27px 30px 30px;display:flex;flex-direction:column;flex:1}
.sf-featured-category{font-size:10px;letter-spacing:1.6px;color:#007f6d;text-transform:uppercase;font-weight:700}
.sf-featured-copy h3{font:400 clamp(24px,2.4vw,35px)/1.2 Arial,Helvetica,sans-serif;color:#223a35;letter-spacing:-1px;margin:14px 0 6px}
.sf-featured-location{display:block;color:#708078;font-size:13px;margin:0 0 16px}
.sf-featured-copy p{font-size:13px;line-height:1.85;color:#61716a;margin:0 0 24px;max-width:620px}
.sf-featured-link{margin-top:auto;border-top:1px solid #dbe5df;padding-top:15px;color:#ad006f;font-size:12px;font-weight:700;display:flex;justify-content:space-between;align-items:center;gap:16px}
.sf-featured-link>span{font-size:19px;font-weight:400}
.sf-featured-link:hover{color:#087e6f}

/* Design philosophy — dark editorial feature + soft numbered grid */
.sf-home-philosophy{background:#f7faf8;padding:clamp(70px,8vw,114px) 0}
.sf-home-philosophy .sf-philosophy-wrap{position:relative;display:grid;grid-template-columns:.72fr 1.28fr;gap:6%;align-items:start}
.sf-home-philosophy .sf-philosophy-wrap>div{display:contents}
.sf-home-philosophy .sf-philosophy-wrap .eyebrow{grid-column:1/-1;color:#008b79;margin-bottom:-20px}
.sf-home-philosophy h2{font:400 clamp(36px,4.1vw,59px)/1.15 Arial,Helvetica,sans-serif;letter-spacing:-2px;color:#203b36;max-width:790px;grid-column:1/-1;margin:0}
.sf-home-philosophy .sf-philosophy-wrap>div>p{grid-column:1/-1;font-size:15px;line-height:1.8;margin:0;color:#667970}
.sf-home-philosophy .sf-philosophy-wrap>div>p strong{color:#25443e}
.sf-home-philosophy .principles.sf-principle-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0 0}
.sf-home-philosophy .principles article{position:relative;min-height:260px;padding:32px 25px 25px;background:#eaf2ed;border:1px solid #d5e4dd;display:flex;flex-direction:column;gap:0}
.sf-home-philosophy .principles article:before{content:'0' counter(sfprinciple);counter-increment:sfprinciple;display:block;color:#008e7c;font:400 31px Georgia,serif;margin-bottom:34px}
.sf-home-philosophy .principles{counter-reset:sfprinciple}
.sf-home-philosophy .principles h3{font-size:17px;line-height:1.3;color:#213b35;font-weight:600;margin:0 0 13px}
.sf-home-philosophy .principles p{font-size:13px;line-height:1.75;color:#62756d}

/* Process: spacious step cards and striking expectations panel */
.sf-home-approach{background:#eaf3ee;padding:clamp(78px,9vw,120px) 0}
.sf-home-approach .sf-inner{width:88%;max-width:1440px}
.sf-home-approach h2{max-width:900px;font-size:clamp(40px,4.8vw,67px);line-height:1.13;margin:18px 0 20px;color:#1a3d35}
.sf-home-approach>.sf-inner>p{max-width:710px;font-size:15px;line-height:1.9}
.sf-home-approach .steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:43px;border:0}
.sf-home-approach .steps article{min-height:255px;background:#fff;padding:28px 19px 28px;border:1px solid #d8e6de}
.sf-home-approach .steps article:before{display:none}
.sf-home-approach .steps article h3{font-size:17px;line-height:1.35;color:#19483d;font-weight:600}
.sf-home-approach .steps article p{font-size:12px;line-height:1.85;margin-top:17px;color:#60736c}
.sf-home-approach .expect{margin-top:25px;display:grid;grid-template-columns:.78fr 1.22fr;gap:45px;padding:45px 50px;background:#18463b;color:#fff;align-items:start}
.sf-home-approach .expect h3{font:400 clamp(27px,3.15vw,43px)/1.2 Georgia,'Times New Roman',serif;color:#fff;max-width:320px}
.sf-home-approach .expect ul{list-style:none;padding:0;margin:0}
.sf-home-approach .expect li{position:relative;padding:11px 0 11px 28px;border-bottom:1px solid #ffffff26;font-size:13px;line-height:1.7;color:#e0efea}
.sf-home-approach .expect li:first-child{padding-top:0}
.sf-home-approach .expect li:before{content:'✓';position:absolute;left:0;color:#79d7c0}

/* History: image-backed side and structured timeline */
.sf-home-history{padding:clamp(80px,8vw,115px) 0;background:#f8faf8}
.sf-home-history .sf-inner{width:88%;max-width:1440px;grid-template-columns:.88fr 1.12fr;gap:8%}
.sf-home-history .sf-heading{padding:0 0 300px;position:relative}
.sf-home-history .sf-heading:after{content:'';position:absolute;left:0;bottom:0;right:0;height:260px;background:url('../img/about-studio.jpg') center/cover}
.sf-home-history .sf-heading h2{font-size:clamp(35px,3.5vw,52px);line-height:1.16;max-width:590px}
.sf-home-history .sf-copy{padding-top:22px}
.sf-home-history .sf-copy p{font-size:14px;line-height:1.9;margin:0 0 18px}
.sf-home-history .timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid #cdded5;border-bottom:1px solid #cdded5;margin:28px 0 15px;padding:0}
.sf-home-history .timeline div{padding:22px 12px 22px 0}
.sf-home-history .timeline div+div{border-left:1px solid #cdded5;padding-left:16px}
.sf-home-history .timeline strong{color:#039b85;font:400 clamp(30px,3vw,43px)/1.2 Georgia,serif}
.sf-home-history .timeline span{color:#667b71;font-size:12px;line-height:1.5}
.sf-home-history .sf-link{margin-top:23px}

/* Collaboration: asymmetric split with subtle photographic context */
.sf-home-collaboration{position:relative;background:#e7f0ea;padding:clamp(74px,8vw,115px) 0;overflow:hidden}
.sf-home-collaboration .sf-inner{width:88%;max-width:1440px;grid-template-columns:1fr 1.08fr;gap:7%;align-items:center}
.sf-home-collaboration .sf-heading{position:relative;padding:25px 0}
.sf-home-collaboration .sf-heading:before{content:'';display:block;width:67px;height:3px;background:#06a890;margin-bottom:28px}
.sf-home-collaboration .sf-heading h2{font-size:clamp(37px,3.65vw,54px);max-width:600px}
.sf-home-collaboration .sf-copy{border-left:0;padding:32px 35px;background:#fff;box-shadow:0 15px 42px #173f3610;border:1px solid #d9e8df}
.sf-home-collaboration .sf-copy p{font-size:14px;line-height:1.92}
.sf-home-collaboration .actions{display:flex;gap:13px;flex-wrap:wrap;margin-top:24px}
.sf-home-collaboration .actions .sf-link{border:1px solid #b0cec0;padding:12px 16px;margin-top:0;font-size:12px}
.sf-home-collaboration .actions .sf-link:first-child{color:#fff;background:#a70071;border-color:#a70071}
.sf-home-collaboration .actions .sf-link:first-child:hover{background:#85005b}

/* Final project CTA: immersive image with controlled overlay */
.sf-home-enquiry{position:relative;overflow:hidden;background:#0c3029 url('../img/courtyard-residence.jpg') center 46%/cover no-repeat;padding:clamp(90px,11vw,160px) 0;color:#fff}
.sf-home-enquiry:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0a241fef 0%,#0c3029da 52%,#0e2f2870 100%)}
.sf-home-enquiry .sf-inner{position:relative;z-index:1;width:88%;max-width:1440px}
.sf-home-enquiry .sf-inner:after{display:none}
.sf-home-enquiry .eyebrow{color:#a5dfd0}
.sf-home-enquiry h2{font-size:clamp(43px,5.4vw,79px);line-height:1.1;letter-spacing:-2.8px;max-width:900px;color:#fff;margin:23px 0}
.sf-home-enquiry p{font-size:15px;line-height:1.9;color:#e3f3ec;max-width:660px}
.sf-home-enquiry .sf-link{display:inline-flex;margin-top:32px;background:#aa006d;color:#fff;border:0;padding:15px 23px;font-size:13px}
.sf-home-enquiry .sf-link:hover{background:#850056;color:#fff}

@media(max-width:1100px){.sf-home-philosophy .principles.sf-principle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sf-home-approach .steps{grid-template-columns:repeat(3,minmax(0,1fr))}.sf-home-approach .steps article{min-height:210px}.sf-featured-media{height:230px}}
@media(max-width:800px){.sf-home-section-heading{align-items:start;flex-direction:column;gap:15px}.sf-featured-grid{gap:20px}.sf-featured-copy{padding:21px}.sf-featured-media{height:210px}.sf-home-history .sf-inner,.sf-home-collaboration .sf-inner{grid-template-columns:1fr;gap:28px}.sf-home-history .sf-heading{padding-bottom:250px}.sf-home-history .sf-heading:after{height:210px}.sf-home-history .sf-copy{padding-top:0}.sf-home-approach .expect{padding:35px 30px;gap:20px}}
@media(max-width:640px){.sf-featured-grid{grid-template-columns:1fr;gap:20px}.sf-featured-media{height:240px}.sf-featured-copy h3{font-size:27px}.sf-home-section-heading h2{font-size:38px;letter-spacing:-1.4px}.sf-home-philosophy .sf-philosophy-wrap{display:block}.sf-home-philosophy .sf-philosophy-wrap>div{display:block}.sf-home-philosophy .sf-philosophy-wrap .eyebrow{margin:0 0 18px}.sf-home-philosophy h2{font-size:37px;letter-spacing:-1.3px;margin-bottom:20px}.sf-home-philosophy .sf-philosophy-wrap>div>p{margin:0 0 12px}.sf-home-philosophy .principles.sf-principle-grid{grid-template-columns:1fr;gap:11px;margin-top:24px}.sf-home-philosophy .principles article{min-height:0;padding:23px 22px}.sf-home-philosophy .principles article:before{margin-bottom:15px}.sf-home-approach .steps{grid-template-columns:1fr;gap:12px;margin-top:28px}.sf-home-approach .steps article{min-height:0;padding:22px}.sf-home-approach h2{font-size:38px}.sf-home-approach .expect{grid-template-columns:1fr;padding:30px 22px}.sf-home-history .sf-heading{padding-bottom:225px}.sf-home-history .sf-heading:after{height:195px}.sf-home-history .timeline{grid-template-columns:1fr}.sf-home-history .timeline div,.sf-home-history .timeline div+div{padding:17px 0;border-left:0;border-bottom:1px solid #cdded5}.sf-home-history .timeline div:last-child{border-bottom:0}.sf-home-collaboration .sf-copy{padding:25px 20px}.sf-home-collaboration .actions{flex-direction:column;align-items:stretch}.sf-home-collaboration .actions .sf-link{justify-content:space-between}.sf-home-enquiry h2{font-size:43px;letter-spacing:-1.5px}.sf-home-enquiry{background-position:58% center}}
@media(prefers-reduced-motion:reduce){.sf-featured-card,.sf-featured-media img{transition:none}}


/* Featured projects tabs, intentionally scoped to Featured section */
.sf-featured-work .sf-featured-tabs{display:flex;align-items:center;gap:clamp(16px,3vw,34px);flex-wrap:wrap;border-bottom:1px solid #c5d9cf;margin:-7px 0 0;padding:0}
.sf-featured-work .sf-featured-tabs button{appearance:none;border:0;border-bottom:2px solid transparent;background:transparent;color:#547267;cursor:pointer;white-space:nowrap;padding:15px 2px 16px;margin-bottom:-1px;font:500 13px/1.3 Arial,Helvetica,sans-serif;transition:color .2s,border-color .2s}
.sf-featured-work .sf-featured-tabs button sup{font-size:9px;margin-left:4px;vertical-align:super;color:#77928a}
.sf-featured-work .sf-featured-tabs button:hover,.sf-featured-work .sf-featured-tabs button.is-active{color:#ad006f;border-bottom-color:#ad006f}
.sf-featured-work .sf-featured-tabs button:focus-visible{outline:2px solid #ad006f;outline-offset:3px}
.sf-featured-work .sf-featured-results{color:#6b8378;font-size:11px;letter-spacing:.5px;margin:15px 0 22px}
.sf-featured-work .sf-featured-card[hidden]{display:none!important}
.sf-featured-work .sf-featured-grid{align-items:stretch}
@media(max-width:640px){.sf-featured-work .sf-featured-tabs{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;gap:21px;margin-top:0}.sf-featured-work .sf-featured-tabs button{font-size:12px;flex:none;padding:13px 1px 14px}.sf-featured-work .sf-featured-results{margin-bottom:18px}}
