/*
 * Utmost Builds v3.8 — screenshot-driven design corrections.
 * Loaded after every prior stylesheet so each correction is deterministic.
 */
body.utmost-launch-final main{overflow-x:clip}
body.utmost-launch-final :where(.service-grid,.signature-baths-stage,.bathroom-city-images,.kitchen-editorial,.whole-home-story,.whole-home-story-track)>*{min-width:0}

/* Header: use the flat ivory mark without the old rounded/beveled badge. */
body.utmost-launch-final .site-header .brand,
body.utmost-launch-final .site-header .site-logo-link{
  display:flex;align-items:center;justify-content:flex-start;position:static;inset:auto;
  width:auto;height:auto;max-width:205px;padding:0;margin:0;background:transparent;border:0;box-shadow:none;
}
body.utmost-launch-final .site-header .brand img{
  display:block;width:auto!important;height:58px!important;max-width:190px!important;max-height:58px!important;
  padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;filter:none!important;object-fit:contain;
}
body.utmost-launch-final .site-header .header-cta{
  position:static!important;inset:auto!important;width:auto!important;height:auto!important;max-width:230px!important;
  margin:0!important;transform:none!important;white-space:nowrap;writing-mode:horizontal-tb!important;
}

/* Homepage services: a deliberate 3 + 2 editorial grid instead of page-wide stacked cards. */
body.utmost-launch-final .services .service-grid{
  display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:18px!important;align-items:stretch;
}
body.utmost-launch-final .services .service-card{
  grid-column:span 4!important;display:flex;flex-direction:column;min-height:100%;overflow:hidden;
}
body.utmost-launch-final .services .service-card:nth-child(4),
body.utmost-launch-final .services .service-card:nth-child(5){grid-column:span 6!important}
body.utmost-launch-final .services .service-image{aspect-ratio:16/10;min-height:0;overflow:hidden;background:#102622}
body.utmost-launch-final .services .service-image img{width:100%;height:100%;object-fit:cover}
body.utmost-launch-final .services .service-body{display:flex;flex:1;flex-direction:column;padding:30px 28px 32px}
body.utmost-launch-final .services .service-body h3{font-size:clamp(1.65rem,2.2vw,2.25rem);margin-bottom:13px}
body.utmost-launch-final .services .service-body p{color:var(--launch-muted);font-size:.83rem;line-height:1.72}
body.utmost-launch-final .services .service-body .text-link{margin-top:auto;padding-top:20px}

/* Services hub: honest new-home planning artwork and ordered list numbering. */
body.utmost-launch-final .service-pathway-copy ul{counter-reset:utmost-service-point}
body.utmost-launch-final .service-pathway-copy li{counter-increment:utmost-service-point}
body.utmost-launch-final .service-pathway-copy li::before{content:counter(utmost-service-point,decimal-leading-zero)!important}
body.utmost-launch-final .service-pathway-06 .service-pathway-media{background:#06110e}
body.utmost-launch-final .service-pathway-06 .service-pathway-media img{object-fit:contain!important;padding:0}

/* Dark-page communication cards: restore readable contrast over the generic luxury-card override. */
body.utmost-launch-final .foundation-dark .value-card{
  background:rgba(7,29,23,.88)!important;color:#fff!important;border-color:rgba(213,187,134,.24)!important;
  box-shadow:none!important;
}
body.utmost-launch-final .foundation-dark .value-card h3{color:#fff!important}
body.utmost-launch-final .foundation-dark .value-card p{color:rgba(255,255,255,.67)!important}
body.utmost-launch-final .foundation-dark .value-card>span{color:var(--launch-champagne)!important}

/* Realtor page: keep the repaired Gutenberg layout contained and refined. */
body.utmost-launch-final .realtor-block-page{overflow:hidden}
body.utmost-launch-final .realtor-block-page>.wp-block-cover:first-child{margin-top:0}
body.utmost-launch-final .realtor-hero-inner{width:min(calc(100% - 48px),var(--max));margin-inline:auto!important}
body.utmost-launch-final .realtor-hero-inner h1{font-size:clamp(3.45rem,6.1vw,6.65rem);line-height:.95;letter-spacing:-.045em}
body.utmost-launch-final .realtor-section h2{font-size:clamp(2.75rem,4.5vw,4.9rem)}
body.utmost-launch-final .utmost-v38-compat-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;width:min(calc(100% - 48px),var(--max));margin:45px auto}
body.utmost-launch-final .utmost-v38-compat-gallery figure{margin:0;background:var(--launch-paper);border:1px solid var(--launch-line)}
body.utmost-launch-final .utmost-v38-compat-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover}
body.utmost-launch-final .utmost-v38-compat-gallery figcaption{padding:16px 18px;font-family:var(--serif)}

/* Bathroom signature gallery: captions participate in document flow and cannot overlap neighboring rooms. */
body.utmost-launch-final .signature-baths-stage{
  display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;grid-template-rows:none!important;
  grid-auto-rows:auto!important;gap:16px!important;
}
body.utmost-launch-final .signature-bath,
body.utmost-launch-final .signature-bath-1,
body.utmost-launch-final .signature-bath-2,
body.utmost-launch-final .signature-bath-3,
body.utmost-launch-final .signature-bath-4,
body.utmost-launch-final .signature-bath-5,
body.utmost-launch-final .signature-bath-6{
  grid-row:auto!important;grid-column:span 3!important;display:flex;flex-direction:column;margin:0;
  background:#0b211c;border:1px solid rgba(213,187,134,.20);overflow:hidden;
}
body.utmost-launch-final .signature-bath-1,
body.utmost-launch-final .signature-bath-2{grid-column:span 6!important}
body.utmost-launch-final .signature-bath button{position:relative;width:100%;height:auto!important;aspect-ratio:4/3;border:0;box-shadow:none}
body.utmost-launch-final .signature-bath-1 button,
body.utmost-launch-final .signature-bath-2 button{aspect-ratio:16/10}
body.utmost-launch-final .signature-bath figcaption{
  position:static!important;inset:auto!important;display:block;min-height:88px;padding:18px 19px 20px!important;
  background:#0b211c!important;pointer-events:none;overflow-wrap:anywhere;
}
body.utmost-launch-final .signature-bath figcaption span{font-family:var(--mono);font-size:.55rem;line-height:1.5;letter-spacing:.09em}
body.utmost-launch-final .signature-bath figcaption strong{display:block;margin-top:7px;font-size:1.22rem;line-height:1.15}

/* Bathroom city portfolio: readable desktop collection without a hidden horizontal carousel. */
body.utmost-launch-final .bathroom-city-images{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-flow:row!important;
  grid-auto-columns:auto!important;gap:14px!important;overflow:visible!important;padding-bottom:0!important;scroll-snap-type:none!important;
}
body.utmost-launch-final .bathroom-city-images figure{display:flex;flex-direction:column;margin:0;scroll-snap-align:none}
body.utmost-launch-final .bathroom-city-images button{width:100%;height:auto!important;aspect-ratio:4/5;border:0;overflow:hidden;background:#102622}
body.utmost-launch-final .bathroom-city-images figcaption{min-height:54px;padding:11px 2px 0;font-size:1rem;line-height:1.2}

/* Kitchen portfolio: uniform image wells remove the large blank dark voids caused by mixed row heights. */
body.utmost-launch-final .kitchen-editorial{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:16px!important;
}
body.utmost-launch-final .kitchen-editorial .kitchen-editorial-shot,
body.utmost-launch-final .kitchen-editorial .kitchen-editorial-shot:nth-child(n){
  grid-column:auto!important;grid-row:auto!important;align-self:start;display:flex;flex-direction:column;margin:0;
  background:#0b211c;border:1px solid rgba(213,187,134,.18);overflow:hidden;
}
body.utmost-launch-final .kitchen-editorial .kitchen-editorial-shot button,
body.utmost-launch-final .kitchen-editorial .kitchen-editorial-shot:nth-child(n) button{
  width:100%;height:auto!important;min-height:0!important;aspect-ratio:4/3;border:0;overflow:hidden;background:#0b211c;
}
body.utmost-launch-final .kitchen-editorial .kitchen-editorial-shot img{width:100%;height:100%;object-fit:cover}
body.utmost-launch-final .kitchen-editorial .kitchen-editorial-shot figcaption{
  display:block;min-height:104px;padding:18px 19px 20px;background:#0b211c;overflow-wrap:anywhere;
}

/* Whole-home galleries: controlled editorial hierarchy without dead masonry gaps or page-level scrolling. */
body.utmost-launch-final .whole-home-story{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:16px!important;
}
body.utmost-launch-final .whole-home-story .whole-home-story-card,
body.utmost-launch-final .whole-home-story figure,
body.utmost-launch-final .whole-home-story>*{
  grid-column:auto!important;grid-row:auto!important;align-self:start;min-width:0;margin:0;
}
body.utmost-launch-final .whole-home-story>*:first-child{grid-column:1/-1!important}
body.utmost-launch-final .whole-home-story button,
body.utmost-launch-final .whole-home-story>*:nth-child(n) button{width:100%;height:auto!important;min-height:0!important;aspect-ratio:4/3}
body.utmost-launch-final .whole-home-story>*:first-child button{aspect-ratio:16/7}
body.utmost-launch-final .whole-home-story figcaption{min-height:90px;padding:17px 19px 20px;overflow-wrap:anywhere}

body.utmost-launch-final .whole-home-story-track{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;
  grid-auto-columns:auto!important;width:min(calc(100% - 48px),var(--max))!important;margin-inline:auto!important;
  gap:16px!important;padding-left:0!important;padding-right:0!important;padding-bottom:0!important;
  overflow:visible!important;scroll-snap-type:none!important;
}
body.utmost-launch-final .whole-home-story-track>*{min-width:0;scroll-snap-align:none!important}
body.utmost-launch-final .whole-home-story-track button{width:100%;height:auto!important;aspect-ratio:4/3}
body.utmost-launch-final .whole-home-story-track figcaption{min-height:88px;overflow-wrap:anywhere}

/* Subtle planning-panel finish without changing the successful layouts. */
body.utmost-launch-final :is(.bathroom-plan-frame,.service-network-visual,.whole-home-plan-frame){border-color:rgba(155,118,71,.34)!important;box-shadow:0 32px 82px rgba(4,15,12,.16)!important}

@media(max-width:1100px){
  body.utmost-launch-final .services .service-card{grid-column:span 6!important}
  body.utmost-launch-final .services .service-card:last-child{grid-column:4/span 6!important}
  body.utmost-launch-final .signature-bath,
  body.utmost-launch-final .signature-bath-1,
  body.utmost-launch-final .signature-bath-2,
  body.utmost-launch-final .signature-bath-3,
  body.utmost-launch-final .signature-bath-4,
  body.utmost-launch-final .signature-bath-5,
  body.utmost-launch-final .signature-bath-6{grid-column:span 6!important}
    body.utmost-launch-final .bathroom-city-images{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.utmost-launch-final .kitchen-editorial,
  body.utmost-launch-final .whole-home-story,
  body.utmost-launch-final .whole-home-story-track{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.utmost-launch-final .whole-home-story>*:first-child{grid-column:1/-1!important}
}
@media(max-width:800px){
  body.utmost-launch-final .signature-bath,
  body.utmost-launch-final .signature-bath-1,
  body.utmost-launch-final .signature-bath-2,
  body.utmost-launch-final .signature-bath-3,
  body.utmost-launch-final .signature-bath-4,
  body.utmost-launch-final .signature-bath-5,
  body.utmost-launch-final .signature-bath-6{grid-column:span 6!important}
  body.utmost-launch-final .bathroom-city-row{grid-template-columns:1fr!important;gap:20px!important}
  body.utmost-launch-final .bathroom-city-images{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.utmost-launch-final .realtor-hero-inner{width:min(calc(100% - 36px),var(--max))}
  body.utmost-launch-final .utmost-v38-compat-gallery{grid-template-columns:1fr;width:min(calc(100% - 36px),var(--max))}
}
@media(max-width:760px){
  body.utmost-launch-final .site-header .brand img{height:50px!important;max-height:50px!important;max-width:164px!important}
  body.utmost-launch-final .site-header .header-cta{display:none!important}
  body.utmost-launch-final .services .service-card,
  body.utmost-launch-final .services .service-card:nth-child(4),
  body.utmost-launch-final .services .service-card:nth-child(5),
  body.utmost-launch-final .services .service-card:last-child{grid-column:1/-1!important}
  body.utmost-launch-final .services .service-body{padding:26px 23px 29px}
  body.utmost-launch-final .kitchen-editorial,
  body.utmost-launch-final .whole-home-story,
  body.utmost-launch-final .whole-home-story-track{grid-template-columns:1fr!important;width:min(calc(100% - 32px),var(--max))!important}
  body.utmost-launch-final .whole-home-story>*:first-child{grid-column:auto!important}
  body.utmost-launch-final .whole-home-story>*:first-child button{aspect-ratio:4/3}
  body.utmost-launch-final .signature-bath,
  body.utmost-launch-final .signature-bath-1,
  body.utmost-launch-final .signature-bath-2,
  body.utmost-launch-final .signature-bath-3,
  body.utmost-launch-final .signature-bath-4,
  body.utmost-launch-final .signature-bath-5,
  body.utmost-launch-final .signature-bath-6{grid-column:1/-1!important}
  body.utmost-launch-final .signature-bath button,
  body.utmost-launch-final .signature-bath-1 button,
  body.utmost-launch-final .signature-bath-2 button{aspect-ratio:4/3}
  body.utmost-launch-final .bathroom-city-images{grid-template-columns:1fr!important}
  body.utmost-launch-final .realtor-hero-inner h1{font-size:clamp(2.85rem,12vw,4.2rem)}
}
