/* 1.8.538 (THE-29) — home page layout (front-page.php). Shared r8-* components live in redesign-538.css. */
body.r538-home .r8-home{display:block;background:#101438}
body.r538-home .r8-home > .r8-sec{margin:0}

/* Hero (lighter textured navy) */
body.r538-home .r8-hero{padding:clamp(48px,6vw,88px) 0 clamp(44px,6vw,84px)}
body.r538-home .r8-hero::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  background:radial-gradient(900px 520px at 78% 48%,rgba(243,201,26,.14),transparent 58%),linear-gradient(180deg,rgba(255,255,255,.1),transparent 32%)}
body.r538-home .r8-hero .r8-h1{background:linear-gradient(180deg,#fff 50%,#ffe9a8);-webkit-background-clip:text;background-clip:text;color:transparent;
  padding-right:.08em;filter:drop-shadow(0 10px 24px rgba(0,0,0,.35))}
body.r538-home .r8-hero__grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(28px,5vw,70px);align-items:center;margin-top:clamp(18px,2.4vw,30px)}
body.r538-home .r8-hero__grid > *{min-width:0}
body.r538-home .r8-hero .r8-lede:first-child{margin-top:0}
body.r538-home .r8-frame{position:relative;margin:0;padding:12px;border-radius:16px;border:1px solid rgba(255,255,255,.22);
  background:linear-gradient(145deg,#6a7ab8,#1c2a5c 45%,#0b0e28);
  box-shadow:0 36px 80px rgba(0,0,0,.5),0 0 70px rgba(243,201,26,.26),inset 0 1px 0 rgba(255,255,255,.4)}
body.r538-home .r8-frame::after{content:"";position:absolute;right:-14px;bottom:-14px;width:38%;height:38%;pointer-events:none;
  border-right:3px solid #f3c91a;border-bottom:3px solid #f3c91a;border-radius:0 0 16px 0}
body.r538-home .r8-frame picture,
body.r538-home .r8-frame img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;margin:0}
body.r538-home .r8-frame figcaption{padding:12px 4px 2px;font:600 11px/1.4 var(--r8-body);letter-spacing:.14em;text-transform:uppercase;color:#d6dbef}
body.r538-home .r8-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 0;list-style:none;margin:clamp(36px,5vw,60px) 0 0;padding:24px 0 0;border-top:1px solid rgba(255,255,255,.16)}
body.r538-home .r8-strip li{position:relative;padding:0 clamp(9px,1.6vw,22px);margin:0}
body.r538-home .r8-strip li + li::before{content:"";position:absolute;left:-3px;top:50%;width:6px;height:6px;margin-top:-3px;transform:rotate(45deg);background:#f3c91a}
body.r538-home .r8-strip a{font:600 clamp(13px,1.45vw,19px)/1.3 var(--r8-head);letter-spacing:.12em;text-transform:uppercase;color:#e6e9f7;text-decoration:none}
body.r538-home .r8-strip a:hover,
body.r538-home .r8-strip a:focus-visible{color:#f3c91a}

/* Builders band (deep) */
body.r538-home #builders .r8-plate{padding:1.5rem 1.5rem 1.6rem}
body.r538-home #builders .r8-plate__top h3{font-size:1rem}
body.r538-home #builders .r8-plate__desc{font-size:1rem}

/* Who we are (light split) */
body.r538-home .r8-split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,64px);align-items:center}
body.r538-home .r8-split > *{min-width:0}
body.r538-home .r8-copy p:not(.r8-eyebrow){margin:14px 0 0;max-width:38em;color:var(--r8-muted);font-size:16px;line-height:1.65}
body.r538-home .r8-copy .r8-h2{margin-bottom:4px}
body.r538-home .r8-photo{overflow:hidden;border-radius:14px;border:1px solid rgba(16,20,56,.15);box-shadow:0 22px 50px rgba(16,20,56,.28)}
body.r538-home .r8-photo picture,
body.r538-home .r8-photo img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;margin:0}

/* IDX Cares (plate on lighter navy) */
body.r538-home .r8-cares{flex-direction:row;align-items:center;gap:clamp(20px,4vw,44px);padding:clamp(22px,3vw,34px);max-width:980px;margin:0 auto}
body.r538-home .r8-cares__photo{flex:none;width:clamp(120px,16vw,180px);aspect-ratio:1;border-radius:50%;overflow:hidden;border:3px solid #f3c91a;box-shadow:0 12px 30px rgba(0,0,0,.35)}
body.r538-home .r8-cares__photo picture,
body.r538-home .r8-cares__photo img{display:block;width:100%;height:100%;object-fit:cover;margin:0}
body.r538-home .r8-cares .r8-h2{color:#fff}
body.r538-home .r8-cares__text{margin:12px 0 0;max-width:40em;font-size:16px;line-height:1.6;color:#e1e5f5}
body.r538-home .r8-cares .r8-cta-row{margin-top:18px}

/* Portfolio */
body.r538-home #work .r8-cta-row{justify-content:center;margin-top:34px}

/* Closing CTA (deep) */
body.r538-home .r8-cta-band{text-align:center}
body.r538-home .r8-cta-band .r8-eyebrow{justify-content:center}
body.r538-home .r8-cta-band .r8-lede{margin-inline:auto}
body.r538-home .r8-cta-band .r8-cta-row{justify-content:center}

@media (max-width:1000px){
  body.r538-home .r8-hero__grid,
  body.r538-home .r8-split{grid-template-columns:1fr}
}
@media (max-width:640px){
  body.r538-home .r8-frame::after{right:-8px;bottom:-8px}
  body.r538-home .r8-cares{flex-direction:column;align-items:flex-start}
  body.r538-home .r8-strip a{font-size:13px}
}
