@layer desktop-restoration;
/* Stiltz of Florida desktop system v12. Shared responsive header/footer refinements. */
:root {
    --ds-canvas:#e8eee9; --ds-shell:#f6f7f2; --ds-paper:#fbfcf9;
    --ds-sage:#dfeadb; --ds-blue:#dcebf0; --ds-warm:#f3ddc5;
    --ds-ink:#383d3f; --ds-green:#9ab600; --ds-line:rgba(65,89,82,.22);
    --ds-shadow:0 18px 46px rgba(31,47,41,.10);
}
@media (min-width: 901px) {
  html,body { background:var(--ds-canvas)!important; }
  body { margin:0!important; color:var(--ds-ink)!important; }

  /* Use the desktop instead of parking the site in a skinny center column. */
  .site-header,main,.site-footer {
    width:min(calc(100% - 72px),2100px)!important;
    max-width:2100px!important; box-sizing:border-box!important;
  }
  .site-header {
    min-height:82px!important; margin:0 auto!important; padding:14px 28px!important;
    border:1px solid var(--ds-line)!important; border-radius:24px!important;
    background:rgba(251,252,249,.97)!important; box-shadow:0 10px 26px rgba(31,47,41,.08)!important;
  }
  .site-header .brand-logo { width:auto!important; max-width:138px!important; max-height:54px!important; }
  .desktop-nav details>div { border-radius:18px!important; box-shadow:var(--ds-shadow)!important; }

  /* One continuous page card; every section belongs to the same layout. */
  main {
    display:flex!important; flex-direction:column!important; gap:18px!important;
    margin:18px auto 26px!important; padding:22px!important; overflow:clip!important;
    border:1px solid var(--ds-line)!important; border-radius:38px!important;
    background:var(--ds-shell)!important; box-shadow:0 24px 60px rgba(31,47,41,.11)!important;
  }
  main>section {
    width:100%!important; max-width:none!important; min-height:0!important;
    margin:0!important; box-sizing:border-box!important; border-radius:28px!important;
  }
  main :is(h1,h2,h3,p,blockquote) { max-width:none; }
  main h1 { font-size:clamp(48px,4.3vw,76px)!important; line-height:.97!important; }
  main h2 { font-size:clamp(34px,3vw,52px)!important; line-height:1.02!important; }
  main p { line-height:1.58!important; }
  main figure { margin:0!important; overflow:hidden!important; border-radius:22px!important; }
  main img { display:block!important; max-width:100%!important; border-radius:18px!important; }
  main :is(video,iframe) { display:block!important; max-width:100%!important; border-radius:20px!important; }
  main :is(article,[class*="-card"]) { box-sizing:border-box!important; border-radius:22px!important; }

  /* Shared section rhythm and deliberate color rotation. */
  .about-origin,.about-principles,.about-team-link,.coastal-intro,.coastal-reasons,
  .coastal-detail,.coastal-note,.installation-assurance,.installation-prep,
  .installation-financing,.costs-principle,.costs-factors,.costs-scope,.costs-finance,
  .finance-video,.finance-details,.faq-finder,.faq-list,.faq-note,.compare-model-grid,
  .compare-specification-sheet,.factory-brochures-list,.factory-brochures-disclaimer,
  .curated-models,.testimonial-stories,.video-library-grid-section,.news-list,
  .team-directory,.contact-page-request,.contact-page-map {
    padding:clamp(34px,3vw,54px)!important; border:1px solid var(--ds-line)!important;
  }
  .about-origin,.about-team-link,.coastal-reasons,.installation-assurance,
  .costs-principle,.faq-finder,.compare-specification-sheet { background:var(--ds-sage)!important; }
  .about-principles,.coastal-detail,.finance-video,.faq-list,.factory-brochures-list,
  .curated-models,.testimonial-stories,.video-library-grid-section,.news-list,
  .team-directory,.contact-page-request { background:var(--ds-paper)!important; }
  .about-credentials,.coastal-intro,.coastal-note,.finance-details,.faq-note,
  .factory-brochures-disclaimer,.contact-page-map { background:var(--ds-blue)!important; }

  /* All major photo heroes share one geometry and show the whole lift. */
  .brand-hero,.about-hero,.coastal-hero,.variant-hero,.alta-hero,.duo-classic-hero {
    display:grid!important; grid-template-columns:minmax(420px,.9fr) minmax(540px,1.1fr)!important;
    gap:22px!important; height:clamp(520px,45vw,680px)!important; min-height:520px!important;
    padding:22px!important; overflow:hidden!important; border:1px solid var(--ds-line)!important;
    background:var(--ds-sage)!important; box-shadow:none!important;
  }
  .brand-hero>div,.about-hero>div,.coastal-hero>div,.variant-hero>div,
  .alta-hero>div,.duo-classic-hero>div {
    display:flex!important; flex-direction:column!important; justify-content:center!important;
    min-width:0!important; padding:clamp(28px,3.2vw,58px)!important;
    box-sizing:border-box!important; border-radius:24px!important; background:var(--ds-paper)!important;
    color:var(--ds-ink)!important;
  }
  .brand-hero>div :is(h1,h2,h3,p,.eyebrow),.about-hero>div :is(h1,h2,h3,p,.eyebrow),
  .coastal-hero>div :is(h1,h2,h3,p,.eyebrow),.variant-hero>div :is(h1,h2,h3,p,.eyebrow),
  .alta-hero>div :is(h1,h2,h3,p,.eyebrow),.duo-classic-hero>div :is(h1,h2,h3,p,.eyebrow) {
    color:var(--ds-ink)!important;
  }
  .brand-hero figure,.about-hero figure,.variant-hero figure,.duo-classic-hero figure {
    display:flex!important; width:100%!important; height:100%!important; align-items:center!important;
    justify-content:center!important; padding:12px!important; box-sizing:border-box!important;
    background:var(--ds-blue)!important;
  }
  .brand-hero figure>img,.about-hero figure>img,.variant-hero figure>img,
  .duo-classic-hero figure>img,.coastal-hero>img,.alta-hero>img {
    width:100%!important; height:100%!important; min-height:0!important; max-height:100%!important;
    margin:0!important; padding:0!important; object-fit:contain!important; object-position:center!important;
    border-radius:20px!important; background:transparent!important;
  }
  .coastal-hero>img,.alta-hero>img { align-self:stretch!important; justify-self:stretch!important; }
  .about-hero figure>img {
    width:min(100%,520px)!important; object-fit:cover!important; object-position:center 18%!important;
  }
  .about-hero figcaption { border-radius:16px!important; }
  .duo-alta-hero-heading {
    margin:8px 0 12px!important; font-size:clamp(28px,2.2vw,42px)!important;
    line-height:1.02!important; color:var(--ds-ink)!important;
  }
  .duo-alta-hero-copy { margin:0 0 22px!important; font-size:clamp(16px,1.05vw,20px)!important; }

  /* Text-led heroes are compact and connected to what follows. */
  .compare-page-intro,.factory-brochures-hero,.curated-gallery-intro,.testimonials-hero,
  .video-library-lead,.news-hero,.installation-hero,.costs-hero,.faq-page-hero,.team-hero,
  .installation-page__intro,.finance-hero,.contact-page-hero {
    min-height:0!important; padding:clamp(40px,4vw,68px)!important;
    border:1px solid var(--ds-line)!important; background:var(--ds-sage)!important;
  }
  .testimonials-hero {
    display:grid!important; grid-template-columns:1.15fr .85fr!important;
    gap:40px!important; align-items:end!important;
  }
  .testimonials-hero>p { margin:0!important; font-size:clamp(18px,1.25vw,23px)!important; }
  .testimonials-intro {
    display:grid!important; grid-template-columns:.75fr 1.25fr!important; gap:30px!important;
    padding:34px 46px!important; border:1px solid var(--ds-line)!important; background:var(--ds-blue)!important;
  }
  .testimonials-intro h2 { margin:0!important; font-size:clamp(34px,2.7vw,48px)!important; }

  /* About and team. */
  .about-team-link { display:grid!important; grid-template-columns:1.25fr .75fr!important; gap:18px!important; }
  .about-team-link>div,.about-team-link>aside {
    min-height:0!important; padding:36px!important; border-radius:22px!important;
  }
  .about-team-link>div { background:var(--ds-paper)!important; }
  .about-team-link>aside { background:var(--ds-ink)!important; color:#fff!important; }
  .about-team-link>aside :is(p,span,a,svg) { color:#fff!important; stroke:currentColor!important; }
  .team-feature { overflow:hidden!important; border:1px solid var(--ds-line)!important; }
  .team-group { padding:28px 0 0!important; background:transparent!important; }
  .team-grid { gap:clamp(24px,2.6vw,44px)!important; align-items:start!important; }
  .team-card {
    overflow:visible!important; border:0!important; border-radius:0!important;
    background:transparent!important; box-shadow:none!important;
  }
  .team-portrait {
    aspect-ratio:1/1!important; padding:0!important; overflow:hidden!important;
    border:0!important; border-radius:50%!important; background:var(--ds-sage)!important;
    box-shadow:0 14px 30px rgba(31,47,41,.12)!important;
  }
  .team-portrait img {
    width:100%!important; height:100%!important; object-fit:cover!important;
    object-position:center top!important; border-radius:50%!important;
  }
  .team-card-caption { padding:16px 4px 0!important; text-align:center!important; }

  /* Model copy and facts. */
  .variant-intro,.alta-intro,.duo-classic-intro,.variant-callout,.alta-story,
  .duo-classic-install,.duo-classic-specs {
    padding:clamp(36px,3vw,54px)!important; border:1px solid var(--ds-line)!important;
    background:var(--ds-paper)!important;
  }
  .variant-facts,.alta-features,.duo-classic-feature-grid {
    display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:18px!important;
  }
  .variant-facts>*,.alta-features>*,.duo-classic-feature-grid>* {
    min-height:190px!important; padding:30px!important; border:1px solid var(--ds-line)!important;
    border-radius:22px!important; background:var(--ds-sage)!important;
  }
  .variant-facts>:nth-child(3n+2),.alta-features>:nth-child(3n+2),
  .duo-classic-feature-grid>:nth-child(3n+2) { background:var(--ds-ink)!important; color:#fff!important; }
  .variant-facts>:nth-child(3n+2) :is(h3,p,svg),.alta-features>:nth-child(3n+2) :is(h3,p,svg),
  .duo-classic-feature-grid>:nth-child(3n+2) :is(h3,p,svg) { color:#fff!important; stroke:currentColor!important; }
  .variant-facts>:nth-child(3n+3),.alta-features>:nth-child(3n+3),
  .duo-classic-feature-grid>:nth-child(3n+3) { background:var(--ds-warm)!important; }

  /* Model galleries: one box, equal media, no amputated elevators. */
  .variant-media,.alta-gallery,.duo-classic-media,.trio-full-door-option,
  .three-story-detail-gallery,.three-story-brochure,.three-story-enclosure {
    display:grid!important; grid-template-columns:minmax(280px,.52fr) minmax(0,1.48fr)!important;
    gap:28px!important; padding:clamp(34px,3vw,54px)!important; overflow:hidden!important;
    border:1px solid var(--ds-line)!important; background:var(--ds-blue)!important;
    color:var(--ds-ink)!important;
  }
  .variant-media>div:first-child :is(h2,p,.eyebrow),.alta-gallery>div:first-child :is(h2,p,.eyebrow),
  .duo-classic-media>div:first-child :is(h2,p,.eyebrow),.trio-full-door-option>div:first-child :is(h2,p,.eyebrow),
  .three-story-detail-gallery>div:first-child :is(h2,p,.eyebrow),.three-story-brochure>div:first-child :is(h2,p,.eyebrow),
  .three-story-enclosure>div:first-child :is(h2,p,.eyebrow) { color:var(--ds-ink)!important; }
  .variant-media>div:first-child,.alta-gallery>div:first-child,.duo-classic-media>div:first-child,
  .trio-full-door-option>div:first-child,.three-story-detail-gallery>div:first-child,
  .three-story-brochure>div:first-child,.three-story-enclosure>div:first-child {
    align-self:center!important; padding:8px!important;
  }
  .variant-media>div:last-child,.duo-classic-media>div:last-child,
  .three-story-detail-gallery>div:last-child,.three-story-brochure-gallery,
  .three-story-enclosure-gallery {
    display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:16px!important; align-items:stretch!important;
  }
  .duo-classic-media>div:last-child { grid-template-columns:repeat(4,minmax(0,1fr))!important; }
  .three-story-brochure-gallery,.three-story-enclosure-gallery { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  .variant-media figure,.duo-classic-media figure,.three-story-detail-gallery figure,
  .three-story-brochure-gallery figure,.three-story-enclosure-gallery figure {
    display:flex!important; width:100%!important; height:390px!important; min-height:0!important;
    padding:10px!important; align-items:center!important; justify-content:center!important;
    box-sizing:border-box!important; border:1px solid var(--ds-line)!important; background:var(--ds-paper)!important;
  }
  .duo-classic-media figure { height:350px!important; }
  .variant-media figure:nth-child(2),.duo-classic-media figure:nth-child(2),
  .duo-classic-media figure:nth-child(4) { background:var(--ds-sage)!important; }
  .variant-media figure:nth-child(3),.duo-classic-media figure:nth-child(3) { background:var(--ds-warm)!important; }
  .variant-media figure img,.duo-classic-media figure img,.three-story-detail-gallery figure img,
  .three-story-brochure-gallery figure img,.three-story-enclosure-gallery figure img {
    width:100%!important; height:100%!important; min-height:0!important;
    object-fit:contain!important; object-position:center!important; border-radius:16px!important;
  }
  .alta-gallery .model-photo-carousel,.trio-full-door-option .model-photo-carousel { min-width:0!important; }
  .alta-gallery .model-photo-carousel figure,.trio-full-door-option .model-photo-carousel figure {
    display:flex!important; height:620px!important; padding:10px!important; align-items:center!important;
    justify-content:center!important; border:1px solid var(--ds-line)!important; background:var(--ds-paper)!important;
  }
  .alta-gallery .model-photo-carousel img,.trio-full-door-option .model-photo-carousel img {
    width:100%!important; height:100%!important; object-fit:contain!important;
    object-position:center!important; border-radius:16px!important;
  }
  .duo-alta-photo-grid {
    display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:16px!important;
  }
  .duo-alta-photo-grid figure {
    display:flex!important; height:360px!important; padding:10px!important; align-items:center!important;
    justify-content:center!important; border:1px solid var(--ds-line)!important; background:var(--ds-paper)!important;
  }
  .duo-alta-photo-grid figure:nth-child(3n+2) { background:var(--ds-sage)!important; }
  .duo-alta-photo-grid figure:nth-child(3n+3) { background:var(--ds-warm)!important; }
  .duo-alta-photo-grid img {
    width:100%!important; height:100%!important; object-fit:contain!important;
    object-position:center!important; border-radius:16px!important;
  }

  /* Florida install cards and photo carousels. */
  .curated-models { display:flex!important; flex-direction:column!important; gap:18px!important; }
  .curated-model-card {
    display:grid!important; grid-template-columns:minmax(300px,.45fr) minmax(0,1.55fr)!important;
    gap:24px!important; padding:28px!important; overflow:hidden!important;
    border:1px solid var(--ds-line)!important; background:var(--ds-sage)!important;
  }
  .curated-model-card:nth-child(even) { background:var(--ds-blue)!important; }
  .curated-model-card,.curated-model-card :is(h2,p,a,.eyebrow) { color:var(--ds-ink)!important; }
  .curated-model-copy { align-self:center!important; padding:16px!important; }
  .curated-model-images { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:16px!important; }
  .curated-model-images figure {
    display:flex!important; height:430px!important; padding:10px!important;
    align-items:center!important; justify-content:center!important;
    border:1px solid var(--ds-line)!important; background:var(--ds-paper)!important;
  }
  .curated-model-images img {
    width:100%!important; height:100%!important; object-fit:contain!important;
    object-position:center!important; border-radius:16px!important;
  }
  .installation-page__gallery {
    display:grid!important; grid-template-columns:minmax(290px,.42fr) minmax(0,1.58fr)!important;
    gap:30px!important; align-items:center!important; padding:clamp(34px,3vw,54px)!important;
    border:1px solid var(--ds-line)!important; background:var(--ds-blue)!important;
  }
  .installation-carousel { min-width:0!important; }
  .installation-carousel figure {
    display:flex!important; width:100%!important; height:min(68vh,760px)!important;
    min-height:560px!important; padding:10px!important; align-items:center!important;
    justify-content:center!important; box-sizing:border-box!important;
    border:1px solid var(--ds-line)!important; border-radius:24px!important; background:var(--ds-paper)!important;
  }
  .installation-carousel figure img {
    width:100%!important; height:100%!important; min-height:0!important;
    object-fit:contain!important; object-position:center!important; border-radius:18px!important;
  }
  .installation-carousel__controls { justify-content:center!important; margin-top:16px!important; }

  /* Finishes: readable hierarchy and visible text. */
  .installation-page--finishes .installation-page__intro,
  .installation-page--custom-colors .installation-page__intro { background:var(--ds-sage)!important; }
  .installation-page--finishes .installation-page__intro>div,
  .installation-page--custom-colors .installation-page__intro>div { max-width:1100px!important; }
  .installation-page--finishes .installation-page__intro h1,
  .installation-page--custom-colors .installation-page__intro h1 {
    color:var(--ds-ink)!important; font-size:clamp(46px,4vw,70px)!important;
  }
  .installation-page--finishes .installation-page__intro :is(p,.eyebrow),
  .installation-page--custom-colors .installation-page__intro :is(p,.eyebrow) { color:var(--ds-ink)!important; }

  /* Compare reads as a connected block: 2, context, 2, then 3. */
  .compare-model-grid {
    display:grid!important; grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:18px!important; background:var(--ds-paper)!important;
  }
  .compare-model-card {
    grid-column:span 3!important; overflow:hidden!important;
    border:1px solid var(--ds-line)!important; background:var(--ds-sage)!important;
  }
  .compare-model-card:nth-of-type(even) { background:var(--ds-blue)!important; }
  .compare-model-card:nth-of-type(n+5) { grid-column:span 2!important; }
  .compare-model-card figure {
    height:390px!important; padding:10px!important; box-sizing:border-box!important; background:var(--ds-paper)!important;
  }
  .compare-model-card figure img {
    width:100%!important; height:100%!important; object-fit:contain!important;
    object-position:center!important; border-radius:16px!important;
  }
  .compare-model-content { padding:28px!important; }
  .compare-model-grid>.compare-specification-sheet {
    grid-column:1/-1!important; margin:0!important; border-radius:22px!important; background:var(--ds-warm)!important;
  }

  /* Calls to action and footer stop taking over the entire page. */
  .variant-next,.alta-next,.duo-classic-next,.cta-section,.curated-gallery-cta,
  .testimonials-cta,.video-library-note,.team-contact-band,.installation-close,
  .costs-close,.faq-page-cta,.coastal-cta,.finance-call,.about-cta {
    min-height:0!important; padding:clamp(34px,3vw,54px)!important; overflow:hidden!important;
    border:1px solid var(--ds-line)!important; background:var(--ds-warm)!important;
  }
  .variant-next,.alta-next,.duo-classic-next {
    display:grid!important; grid-template-columns:1.25fr .75fr!important; gap:20px!important;
  }
  .variant-next>div,.alta-next>div,.duo-classic-next>div { min-height:0!important; padding:0!important; }
  .variant-next aside,.alta-next>div:last-child,.duo-classic-next aside {
    min-height:0!important; padding:28px!important; border-radius:20px!important;
    background:var(--ds-ink)!important; color:#fff!important;
  }
  .variant-next aside :is(p,a,svg),.alta-next>div:last-child :is(p,a,svg),
  .duo-classic-next aside :is(p,a,svg) { color:#fff!important; stroke:currentColor!important; }
  .site-footer {
    display:grid!important; grid-template-columns:1.05fr 1.25fr .8fr!important;
    gap:24px 40px!important; min-height:0!important; margin:0 auto 20px!important;
    padding:32px 42px 22px!important; border-radius:28px!important;
  }
  .site-footer>div,.site-footer>nav { min-height:0!important; margin:0!important; }
  .site-footer .brand-logo { width:auto!important; max-width:128px!important; height:auto!important; }
  .site-footer small { grid-column:1/-1!important; margin:0!important; padding-top:12px!important; }

  /* Homepage and remaining content families use the same large shell. */
  .brand-home>section { padding:clamp(38px,3.2vw,58px)!important; border:1px solid var(--ds-line)!important; }
  .brand-home .brand-hero { padding:22px!important; }
  .brand-models,.brand-real-homes { background:var(--ds-paper)!important; }
  .brand-financing,.brand-process { background:var(--ds-sage)!important; }
  .instagram-feed { background:var(--ds-blue)!important; }
  .brand-contact-band { height:390px!important; padding:0!important; overflow:hidden!important; }
  .brand-contact-band img {
    width:100%!important; height:100%!important; object-fit:contain!important; object-position:center!important;
  }
  .gh-hero,.gh-meaning,.gh-quote,.article-hero,.article-body {
    padding:clamp(38px,3.2vw,58px)!important; border:1px solid var(--ds-line)!important; background:var(--ds-paper)!important;
  }
  .gh-meaning { background:var(--ds-sage)!important; }
}

/* Mobile header must remain a solid, correctly stacked bar while scrolling.
   Keep the identity fully visible; don't let page content ghost through it. */
@media (max-width:900px) {
  header.site-header {
    position:sticky!important; top:0!important; z-index:100!important;
    height:72px!important; min-height:72px!important; box-sizing:border-box!important;
    overflow:visible!important;
    opacity:1!important; background:#fff!important; backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important; isolation:isolate!important;
    border-bottom:1px solid rgba(65,89,82,.24)!important;
    box-shadow:0 5px 16px rgba(31,47,41,.08)!important;
  }
  header.site-header .brand-logo {
    display:block!important; width:104px!important; max-width:104px!important;
    height:65px!important; max-height:65px!important; object-fit:contain!important;
    object-position:left center!important;
  }
}

/* Duo Vista media: keep rounded edges and equal image windows at phone and
   tablet widths too. Contain preserves the complete installation photos. */
@media (max-width: 900px) {
  html body main.variant-page > .variant-hero > figure,
  html body main.variant-page > .variant-hero > figure > picture,
  html body main.variant-page > .variant-hero > figure > img {
    overflow: hidden !important;
    border-radius: 22px !important;
    clip-path: inset(0 round 22px) !important;
  }

  html body main.variant-page > .variant-hero > figure > img,
  html body main.variant-page > .variant-hero > figure > picture > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  html body main.variant-page > .variant-media {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
  }

  html body main.variant-page > .variant-media > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(8px, 2vw, 14px) !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  html body main.variant-page .variant-media figure {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    overflow: hidden !important;
    padding: 5px !important;
    border-radius: 20px !important;
    clip-path: inset(0 round 20px) !important;
  }

  html body main.variant-page .variant-media figure img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 15px !important;
    clip-path: inset(0 round 15px) !important;
  }
}

/* Keep mobile model galleries easy to understand: no hidden sideways track,
   and carousel arrows stay directly below the active photo. */
@media (max-width: 900px) {
  html body main.alta-page > .alta-gallery > .duo-alta-photo-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    gap: 18px !important;
    overflow: visible !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
  }

  html body main.alta-page .duo-alta-photo-grid > figure {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 22px !important;
    clip-path: none !important;
    background: transparent !important;
  }

  html body main.alta-page .duo-alta-photo-grid > figure > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: min(62vh, 600px) !important;
    border-radius: 22px !important;
    clip-path: inset(0 round 22px) !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  html body main.alta-page .model-photo-carousel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    gap: 12px !important;
  }

  html body main.alta-page .model-photo-carousel > figure {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 22px !important;
    clip-path: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  html body main.alta-page .model-photo-carousel > figure > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: min(62vh, 600px) !important;
    border-radius: 22px !important;
    clip-path: inset(0 round 22px) !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
  }

  html body main.alta-page .model-photo-carousel-controls {
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  html body main.alta-page .model-photo-carousel-controls button {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    border: 1px solid var(--ds-ink, #383d3f) !important;
    border-radius: 50% !important;
    background: var(--ds-sage, #e5eee8) !important;
    color: var(--ds-ink, #383d3f) !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
  }

  html body main.alta-page .model-photo-carousel-controls button svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    color: currentColor !important;
    stroke: currentColor !important;
  }

  html body main.alta-page .model-photo-carousel-controls :is(span, p) {
    color: var(--ds-ink, #383d3f) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
  }

  /* The narrow two-column facts made every card unnecessarily tall. */
  html body main.variant-page .variant-facts,
  html body main.trio-page .variant-facts,
  html body main.alta-page .alta-features,
  html body main.duo-classic-page .duo-classic-feature-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  html body main.variant-page .variant-facts > *,
  html body main.trio-page .variant-facts > *,
  html body main.alta-page .alta-features > *,
  html body main.duo-classic-page .duo-classic-feature-grid > * {
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 20px 22px !important;
    border-radius: 22px !important;
  }
}

/* Remove the extra color tile behind the closing photo: the CTA remains one
   dark rounded card and the complete image sits directly in its right column. */
@media (max-width:900px) {
  .brand-home .brand-contact-band {
    overflow:hidden!important; border-radius:24px!important;
    padding:0!important; gap:0!important;
  }
  .brand-home .brand-contact-band>img {
    display:block!important; width:100%!important; height:auto!important;
    min-height:0!important; max-height:none!important; padding:0!important;
    box-sizing:border-box!important; object-fit:contain!important;
    object-position:center!important; background:transparent!important;
    border-radius:18px!important;
  }
}

@media (min-width:901px) and (max-width:1220px) {
  .site-header,main,.site-footer { width:calc(100% - 36px)!important; }
  .brand-hero,.about-hero,.coastal-hero,.variant-hero,.alta-hero,.duo-classic-hero {
    grid-template-columns:minmax(330px,.9fr) minmax(390px,1.1fr)!important;
  }
  .variant-media,.alta-gallery,.duo-classic-media,.trio-full-door-option,
  .three-story-detail-gallery,.three-story-brochure,.three-story-enclosure,
  .installation-page__gallery,.curated-model-card {
    grid-template-columns:minmax(240px,.6fr) minmax(0,1.4fr)!important;
  }
  .duo-classic-media>div:last-child,.duo-alta-photo-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}

/* Homepage bookends: keep the full photographs visible inside intentional,
   rounded media frames. This prevents the hero lift and closing room scene
   from reading as accidentally cropped at wide desktop aspect ratios. */
@media (min-width:901px) {
  .brand-home .brand-hero>figure {
    padding:18px!important; background:var(--ds-blue)!important;
    border-radius:24px!important;
  }
  .brand-home .brand-hero>figure>img {
    width:auto!important; max-width:100%!important; height:100%!important;
    max-height:100%!important; object-fit:contain!important; object-position:center!important;
    clip-path:none!important; border-radius:18px!important;
  }
  .brand-home .brand-contact-band {
    display:grid!important; grid-template-columns:minmax(360px,.9fr) minmax(520px,1.1fr)!important;
    height:auto!important; min-height:360px!important; padding:14px!important;
    gap:14px!important; align-items:stretch!important; background:var(--ds-ink)!important;
  }
  .brand-home .brand-contact-band>div {
    min-width:0!important; padding:clamp(28px,3vw,48px)!important;
    border-radius:20px!important;
  }
  .brand-home .brand-contact-band>img {
    align-self:stretch!important; justify-self:stretch!important;
    width:100%!important; height:100%!important; min-height:0!important;
    padding:14px!important; box-sizing:border-box!important;
    object-fit:contain!important; object-position:center!important;
    clip-path:none!important; border-radius:20px!important; background:var(--ds-blue)!important;
  }
}

/* Some mobile browsers can request a desktop-width layout viewport. In that
   mode max-width breakpoints never run even though the device is a phone.
   Keep the shared chrome genuinely mobile on touch-first devices too. */
@media (hover:none) and (pointer:coarse) {
  header.site-header {
    position:sticky!important; top:0!important; z-index:100!important;
    display:flex!important; width:calc(100% - 28px)!important; max-width:none!important;
    height:74px!important; min-height:74px!important; margin:12px auto 0!important;
    padding:0 18px!important; box-sizing:border-box!important; overflow:visible!important;
    border:1px solid rgba(65,89,82,.22)!important; border-radius:22px!important;
    background:#fbfcf9!important; opacity:1!important; backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important; box-shadow:0 8px 22px rgba(31,47,41,.09)!important;
  }
  header.site-header>a { display:flex!important; align-items:center!important; flex:0 0 auto!important; height:100%!important; }
  header.site-header .brand-logo {
    display:block!important; width:104px!important; max-width:104px!important;
    height:65px!important; max-height:65px!important; object-fit:contain!important;
    object-position:left center!important; border-radius:0!important;
  }
  header.site-header .desktop-nav,header.site-header .head-act { display:none!important; }
  header.site-header .home-menu {
    display:grid!important; place-items:center!important; flex:0 0 44px!important;
    width:44px!important; height:44px!important; margin-left:auto!important;
    padding:0!important; border:1px solid rgba(65,89,82,.35)!important;
    border-radius:50%!important; background:#fff!important; color:#383d3f!important;
  }
  header.site-header+.home-mobile-nav {
    position:fixed!important; top:86px!important; left:14px!important; right:14px!important;
    z-index:101!important; max-height:calc(100dvh - 100px)!important;
    overflow:auto!important; border-radius:0 0 22px 22px!important;
    background:#fff!important; padding:12px 22px 24px!important;
    box-shadow:0 16px 35px rgba(28,37,25,.12)!important;
  }
  header.site-header+.home-mobile-nav:not([hidden]) { display:grid!important; }
  .home-mobile-nav details {
    display:block!important; border-bottom:1px solid rgba(65,89,82,.18)!important;
    border-radius:14px!important; padding:2px 10px!important;
  }
  .home-mobile-nav summary {
    display:flex!important; align-items:center!important; justify-content:space-between!important;
    min-height:48px!important; padding:12px 4px!important; color:#383d3f!important;
    cursor:pointer!important; font-size:16px!important; font-weight:700!important;
    list-style:none!important;
  }
  .home-mobile-nav summary::-webkit-details-marker { display:none!important; }
  .home-mobile-nav details>div {
    display:grid!important; gap:2px!important; padding:0 0 12px!important;
  }
  .home-mobile-nav details>div a {
    display:block!important; min-height:44px!important; padding:12px 8px!important;
    border-radius:10px!important; color:#383d3f!important; font-size:15px!important;
    font-weight:500!important; text-decoration:none!important;
  }
  .home-mobile-nav .mobile-nav-cta {
    display:block!important; margin-top:14px!important; padding:15px 18px!important;
    border-radius:16px!important; background:#383d3f!important; color:#fff!important;
    text-align:center!important; font-size:15px!important; font-weight:700!important;
  }

  /* One closing CTA card: copy and photo share its surface, with no extra
     blue inset tile around the image. */
  .brand-home .brand-contact-band {
    display:grid!important; grid-template-columns:minmax(0,1fr)!important;
    width:100%!important; height:auto!important; min-height:0!important;
    gap:0!important; padding:0!important; overflow:hidden!important;
    border:0!important; border-radius:24px!important; background:#383d3f!important;
  }
  .brand-home .brand-contact-band>div {
    min-width:0!important; padding:30px 26px!important; border-radius:0!important;
  }
  .brand-home .brand-contact-band>img {
    display:block!important; align-self:auto!important; justify-self:stretch!important;
    width:100%!important; height:auto!important; min-height:0!important; max-height:none!important;
    margin:0!important; padding:0!important; box-sizing:border-box!important;
    object-fit:contain!important; object-position:center!important; clip-path:none!important;
    border-radius:0 0 24px 24px!important; background:transparent!important;
  }
}

/* Canonical sitewide image rule. Keep both the photo and its frame rounded;
   constrain photographs to their frame while preserving natural proportions. */
main figure,
main picture,
main .model-photo-carousel figure,
main .installation-carousel figure,
main .curated-gallery figure,
main .real-homes-gallery figure,
main .duo-alta-photo-grid figure,
main .three-story-enclosure-gallery figure,
main .duo-classic-media figure,
main .variant-media figure {
  overflow: hidden !important;
  border-radius: 24px !important;
  clip-path: inset(0 round 24px) !important;
}

main img,
main picture img,
main figure img,
main .gallery img,
main [class*="gallery"] img,
main [class*="carousel"] img {
  border-radius: 18px !important;
}

main figure img,
main .brand-model > img,
main .alta-hero > img,
main .variant-hero figure img,
main .variant-media figure img,
main .duo-classic-media figure img,
main .three-story-enclosure-gallery figure img,
main .installation-carousel figure img {
  display: block !important;
  max-width: 100% !important;
  border-radius: 18px !important;
}

/* Portraits keep their intended circular crop. */
main .team-portrait img,
main .about-hero img {
  border-radius: 50% !important;
}
main .team-portrait {
  overflow: hidden !important;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%) !important;
}

/* Desktop mode on touch devices must not leave a strip of canvas above the
   header or squeeze the header contents outside their own background. */
@media (hover:none) and (pointer:coarse) {
  html, body { scroll-padding-top: 80px !important; }
  header.site-header {
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 76px !important;
    min-height: 76px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(65,89,82,.24) !important;
    border-radius: 22px !important;
    background: #fbfcf9 !important;
    box-shadow: 0 8px 22px rgba(31,47,41,.10) !important;
  }
  header.site-header > a {
    height: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  header.site-header .brand-logo {
    width: 112px !important;
    max-width: 112px !important;
    height: 68px !important;
    max-height: 68px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
}

/* Duo Vista and the other standard variant pages had a later legacy rule
   limiting the hero to 420px. Give the lift a real hero-sized frame. */
@media (min-width: 901px) {
  main.variant-page .variant-hero {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    height: clamp(590px, 48vw, 760px) !important;
    min-height: 590px !important;
    margin: 0 !important;
    grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr) !important;
    gap: 22px !important;
    padding: 22px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 30px !important;
  }
  main.variant-page .variant-hero > figure {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    background: var(--ds-blue, #dcebf0) !important;
  }
  main.variant-page .variant-hero > figure > img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 18px !important;
  }
}

@media (max-width: 900px) {
  main.variant-page .variant-hero > figure {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 24px !important;
  }
  main.variant-page .variant-hero > figure > img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 18px !important;
  }
}

/* Production correction: preserve the approved page-specific palette and use
   one warm outer canvas. Earlier broad rules overwrote section colors and
   forced dark text onto dark cards. */
:root {
  --ds-canvas:#ffffff;
  --ds-shell:#f1eadf;
  --ds-paper:#eee6d8;
  --ds-sage:#dfeadb;
  --ds-blue:#dcebf0;
  --ds-warm:#f3ddc5;
  --ds-ink:#383d3f;
  --ds-green:#9ab600;
  --ds-line:rgba(65,89,82,.24);
}
html,body { background:#fff !important; color:var(--ds-ink) !important; }
header.site-header { box-sizing:border-box !important; border-radius:22px !important; }
main {
  box-sizing:border-box !important;
  width:min(calc(100% - 40px),2100px) !important;
  max-width:2100px !important;
  margin:18px auto 26px !important;
  padding:clamp(12px,1.5vw,22px) !important;
  border:1px solid var(--ds-line) !important;
  border-radius:34px !important;
  background:var(--ds-shell) !important;
}
main > section {
  box-sizing:border-box !important;
  border-radius:28px !important;
}
main :is(article,[class*="-card"],[class*="-tile"],[class*="-gallery"],[class*="-media"],figure,picture) {
  border-radius:22px !important;
}
main figure,
main picture,
main .model-photo-carousel figure,
main .installation-carousel figure,
main .duo-alta-photo-grid figure,
main .variant-media figure,
main .duo-classic-media figure,
main .three-story-detail-gallery figure,
main .three-story-brochure-gallery figure,
main .three-story-enclosure-gallery figure,
main .curated-model-images figure,
main .team-portrait {
  box-sizing:border-box !important;
  overflow:hidden !important;
  border-radius:22px !important;
  clip-path:inset(0 round 22px) !important;
}
main img:not(.brand-logo),
main picture img:not(.brand-logo),
main figure img:not(.brand-logo),
main [class*="gallery"] img:not(.brand-logo),
main [class*="carousel"] img:not(.brand-logo) {
  border-radius:18px !important;
}
main .team-portrait { border-radius:50% !important; clip-path:circle(50% at 50% 50%) !important; }
main .team-portrait img { border-radius:50% !important; object-position:center 16% !important; }
main .team-portrait-fallback {
  position:absolute !important;
  inset:0 !important;
  display:grid !important;
  width:100% !important;
  height:100% !important;
  place-items:center !important;
  border-radius:50% !important;
  background:var(--ds-green) !important;
  color:#26302c !important;
  font-size:clamp(34px,5vw,64px) !important;
  font-weight:700 !important;
  letter-spacing:.04em !important;
}
html body main.variant-page .variant-media figure,
html body main.duo-classic-page .duo-classic-media figure,
html body main.variant-page .three-story-detail-gallery figure,
html body main.variant-page .three-story-brochure-gallery figure,
html body main.variant-page .three-story-enclosure-gallery figure {
  overflow:hidden !important;
  border-radius:24px !important;
  clip-path:inset(0 round 24px) !important;
}
html body main.variant-page .variant-media figure img,
html body main.duo-classic-page .duo-classic-media figure img,
html body main.variant-page .three-story-detail-gallery figure img,
html body main.variant-page .three-story-brochure-gallery figure img,
html body main.variant-page .three-story-enclosure-gallery figure img,
html body main.alta-page .alta-gallery .model-photo-carousel img,
html body main.alta-page .trio-full-door-option .model-photo-carousel img,
html body main.installation-page .installation-carousel figure img {
  border-radius:18px !important;
  object-fit:contain !important;
  object-position:center !important;
}

/* Keep the photo galleries uniform and show each whole installation. */
@media (min-width:901px) {
  html body main.variant-page .variant-hero,
  html body main.duo-classic-page .duo-classic-hero,
  html body main.alta-page .alta-hero {
    border-radius:30px !important;
  }
  html body main.variant-page .variant-hero figure,
  html body main.duo-classic-page .duo-classic-hero figure {
    border-radius:24px !important;
    clip-path:inset(0 round 24px) !important;
    background:var(--ds-blue) !important;
  }
  html body main.variant-page .variant-hero figure img,
  html body main.duo-classic-page .duo-classic-hero figure img {
    width:100% !important;
    height:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    border-radius:18px !important;
  }
  html body main.alta-page .alta-hero > img {
    border-radius:24px !important;
    object-fit:contain !important;
  }
  main .variant-media figure,
  main .duo-classic-media figure,
  main .three-story-detail-gallery figure,
  main .three-story-brochure-gallery figure,
  main .three-story-enclosure-gallery figure {
    height:clamp(300px,25vw,390px) !important;
    min-height:0 !important;
    padding:10px !important;
    background:var(--ds-paper) !important;
  }
  main .variant-media figure img,
  main .duo-classic-media figure img,
  main .three-story-detail-gallery figure img,
  main .three-story-brochure-gallery figure img,
  main .three-story-enclosure-gallery figure img {
    width:100% !important;
    height:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
    object-position:center !important;
  }
  html body main.variant-page .variant-media figure,
  html body main.duo-classic-page .duo-classic-media figure,
  html body main.variant-page .three-story-detail-gallery figure,
  html body main.variant-page .three-story-brochure-gallery figure,
  html body main.variant-page .three-story-enclosure-gallery figure {
    border-radius:24px !important;
    clip-path:inset(0 round 24px) !important;
  }
  html body main.variant-page .variant-media figure img,
  html body main.duo-classic-page .duo-classic-media figure img,
  html body main.variant-page .three-story-detail-gallery figure img,
  html body main.variant-page .three-story-brochure-gallery figure img,
  html body main.variant-page .three-story-enclosure-gallery figure img {
    border-radius:18px !important;
    object-fit:contain !important;
  }
  main .alta-gallery .model-photo-carousel figure,
  main .trio-full-door-option .model-photo-carousel figure {
    height:clamp(340px,31vw,480px) !important;
    min-height:0 !important;
    padding:10px !important;
    background:var(--ds-paper) !important;
  }
  main .alta-gallery .model-photo-carousel img,
  main .trio-full-door-option .model-photo-carousel img {
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    object-position:center !important;
  }
  main .duo-alta-photo-grid {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:14px !important;
  }
  main .duo-alta-photo-grid figure {
    height:clamp(230px,21vw,310px) !important;
    min-height:0 !important;
    padding:8px !important;
    background:var(--ds-paper) !important;
  }
  main .duo-alta-photo-grid img {
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    object-position:center !important;
  }
  main .installation-carousel figure {
    height:clamp(400px,44vw,620px) !important;
    min-height:0 !important;
    padding:10px !important;
  }
  main .installation-carousel figure img {
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
  }
  html body main.installation-page .installation-carousel figure img {
    object-fit:contain !important;
    border-radius:18px !important;
  }
  html body main.alta-page .alta-gallery .model-photo-carousel figure,
  html body main.alta-page .trio-full-door-option .model-photo-carousel figure {
    border-radius:24px !important;
    clip-path:inset(0 round 24px) !important;
  }
  html body main.alta-page .alta-gallery .model-photo-carousel img,
  html body main.alta-page .trio-full-door-option .model-photo-carousel img {
    object-fit:contain !important;
    border-radius:18px !important;
  }
}

/* Recover readable contrast without flattening intentional charcoal or color
   panels elsewhere in the site. */
main:is(.variant-page,.alta-page,.duo-classic-page) :is(
  .variant-intro,.variant-callout,.alta-intro,.alta-story,.duo-classic-intro,
  .duo-classic-specs,.three-story-detail-gallery,.three-story-brochure,.three-story-enclosure
) :is(h1,h2,h3,p,li,a,.eyebrow) { color:var(--ds-ink) !important; }
main .factory-brochures-disclaimer,
main .factory-brochures-disclaimer :is(h2,h3,p,a,.eyebrow),
main .factory-brochure-card :is(h2,h3,p,a,.eyebrow) { color:var(--ds-ink) !important; }
main .factory-brochures-disclaimer { background:var(--ds-blue) !important; }
main .compare-page-intro h1,
main .factory-brochures-hero h1 { font-size:clamp(34px,3.2vw,52px) !important; line-height:1.04 !important; }
main .compare-specification-sheet {
  display:grid !important;
  grid-template-columns:minmax(0,.9fr) minmax(280px,1.1fr) !important;
  align-items:center !important;
  gap:clamp(20px,3vw,44px) !important;
  width:100% !important;
  min-height:0 !important;
  padding:clamp(24px,3vw,48px) !important;
  background:var(--ds-warm) !important;
  color:var(--ds-ink) !important;
}
main .compare-specification-sheet :is(h2,h3,p,a,.eyebrow) { color:var(--ds-ink) !important; }
main .compare-specification-sheet img { width:100% !important; height:auto !important; object-fit:contain !important; }
main .video-library-grid-section,
main .team-directory,
main .factory-brochures-list,
main .compare-model-grid { background:var(--ds-paper) !important; }
main.installation-page--builddown > .installation-page__intro {
  background:#383d3f !important;
  color:#fff !important;
}
main.installation-page--builddown > .installation-page__intro :is(h1,h2,p,.eyebrow) {
  color:#fff !important;
}
main.alta-page > .alta-intro {
  width:min(100%,1500px) !important;
  margin-inline:auto !important;
  text-align:center !important;
}
main.alta-page > .alta-gallery {
  grid-template-columns:minmax(220px,.34fr) minmax(0,1.66fr) !important;
  gap:clamp(16px,2vw,28px) !important;
  padding:clamp(22px,2.2vw,38px) !important;
}

@media (max-width:900px) {
  main { width:calc(100% - 20px) !important; margin:10px auto 16px !important; padding:10px !important; border-radius:24px !important; }
  main > section { border-radius:20px !important; }
  main .duo-alta-photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:12px !important; }
  main .duo-alta-photo-grid figure { height:clamp(210px,44vw,300px) !important; }
  main .duo-alta-photo-grid figure img { object-fit:contain !important; }
  main .compare-specification-sheet { grid-template-columns:minmax(0,1fr) !important; }
  main .installation-page__gallery { grid-template-columns:minmax(0,1fr) !important; gap:14px !important; }
  main .installation-carousel figure { height:clamp(340px,68vw,520px) !important; min-height:0 !important; }
}
@media (max-width:560px) {
  main .duo-alta-photo-grid figure { height:auto !important; aspect-ratio:4 / 5 !important; }
  main .duo-alta-photo-grid figure img { height:100% !important; }
}

/* v16: final production repair. Keep the shared beige shell, restore color
   panels, and make the media and header geometry survive the legacy rules. */
:root {
  --ds-canvas:#ffffff;
  --ds-shell:#f1eadf;
  --ds-paper:#eee6d8;
  --ds-sage:#dfeadb;
  --ds-blue:#dcebf0;
  --ds-warm:#f3ddc5;
  --ds-ink:#383d3f;
  --ds-green:#9ab600;
  --ds-line:rgba(65,89,82,.24);
}
html,body { background:#fff !important; color:var(--ds-ink) !important; }
.staging-bar { display:none !important; height:0 !important; }
header.site-header {
  display:flex !important;
  align-items:center !important;
  box-sizing:border-box !important;
  height:82px !important;
  min-height:82px !important;
  padding:10px 28px !important;
  overflow:visible !important;
  border-radius:22px !important;
  background:#fbfcf9 !important;
}
header.site-header .brand-logo {
  display:block !important;
  width:auto !important;
  height:50px !important;
  max-width:138px !important;
  max-height:50px !important;
  object-fit:contain !important;
  object-position:center !important;
  border-radius:0 !important;
  clip-path:none !important;
}
main img:not(.brand-logo) {
  border-radius:28px !important;
  clip-path:inset(0 round 28px) !important;
}

/* Undeclared section surfaces use the site beige; existing green, blue,
   orange, and charcoal class panels retain their explicit colors. */
main {
  background:var(--ds-shell) !important;
  border-radius:34px !important;
}
main > section {
  background-color:transparent !important;
  border-radius:28px !important;
}
main :is(.video-library-grid-section,.team-directory,.factory-brochures-list,
  .compare-model-grid,.news-list,.curated-models,.testimonial-stories) {
  background:var(--ds-sage) !important;
}
main .video-library-card,
main .compare-model-card,
main .curated-model-card,
main .factory-brochure-card,
main .factory-brochures-note {
  box-sizing:border-box !important;
  border:1px solid var(--ds-line) !important;
  border-radius:24px !important;
  background:var(--ds-paper) !important;
  color:var(--ds-ink) !important;
  overflow:hidden !important;
}
main .video-library-card :is(h2,h3,p,a),
main .compare-model-card :is(h2,h3,p,dt,dd,a),
main .curated-model-card :is(h2,h3,p,a),
main .factory-brochure-card :is(h2,h3,p,a),
main .factory-brochures-note :is(h2,h3,p,a) { color:var(--ds-ink) !important; }
main .testimonial-story.moss { background:var(--ds-sage) !important; color:var(--ds-ink) !important; }
main .testimonial-story.sand { background:var(--ds-warm) !important; color:var(--ds-ink) !important; }
main .testimonial-story.line,
main .testimonial-story.blue { background:var(--ds-blue) !important; color:var(--ds-ink) !important; }
main .testimonial-story.olive { background:#e7edcf !important; color:var(--ds-ink) !important; }
main .testimonial-story.paper { background:var(--ds-paper) !important; color:var(--ds-ink) !important; }
main .testimonial-story.ink { background:#383d3f !important; color:#fff !important; }
main .testimonial-story.ink :is(h2,h3,p,a,blockquote) { color:#fff !important; }

/* Give every photograph and its frame the same rounded treatment. Clip the
   image itself so object-fit and legacy gallery rules cannot expose corners. */
main figure,
main picture,
main .model-photo-carousel figure,
main .installation-carousel figure,
main [class*="gallery"] figure {
  box-sizing:border-box !important;
  overflow:hidden !important;
  border-radius:24px !important;
  clip-path:inset(0 round 24px) !important;
  background-color:var(--ds-paper) !important;
}
main figure img:not(.brand-logo),
main picture img:not(.brand-logo),
main [class*="gallery"] img:not(.brand-logo),
main [class*="carousel"] img:not(.brand-logo) {
  border-radius:18px !important;
  clip-path:inset(0 round 18px) !important;
  object-position:center !important;
}
main .team-portrait { border-radius:50% !important; clip-path:circle(50% at 50% 50%) !important; }
main .team-portrait img { border-radius:50% !important; clip-path:circle(50% at 50% 50%) !important; object-position:center 12% !important; }
main .about-hero figure,
main .about-hero figure img { border-radius:24px !important; clip-path:inset(0 round 24px) !important; }
main .about-hero figure img { object-fit:cover !important; object-position:center 16% !important; }
main .team-feature-image .team-portrait { width:min(100%,440px) !important; margin-inline:auto !important; }

/* Align model copy with the media instead of leaving a narrow text island. */
main.variant-page > .variant-intro,
main.duo-classic-page > .duo-classic-intro,
main.alta-page > .alta-intro {
  display:grid !important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) !important;
  align-items:center !important;
  gap:clamp(22px,3vw,48px) !important;
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:clamp(28px,3vw,48px) !important;
  text-align:left !important;
  background:var(--ds-sage) !important;
  color:var(--ds-ink) !important;
}
main.variant-page > .variant-intro :is(h2,p,.eyebrow),
main.duo-classic-page > .duo-classic-intro :is(h2,p,.eyebrow),
main.alta-page > .alta-intro :is(h2,p,.eyebrow) { color:var(--ds-ink) !important; }
main.variant-page > .variant-callout,
main.duo-classic-page > .duo-classic-specs,
main.alta-page > .alta-story {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:clamp(28px,3vw,48px) !important;
  border-radius:28px !important;
  background:var(--ds-warm) !important;
  color:var(--ds-ink) !important;
}
main.variant-page > .variant-callout :is(h2,h3,p,blockquote),
main.duo-classic-page > .duo-classic-specs :is(h2,h3,p,li),
main.alta-page > .alta-story :is(h2,h3,p,li) { color:var(--ds-ink) !important; }
main.variant-page > .variant-next,
main.duo-classic-page > .duo-classic-next,
main.alta-page > .alta-next {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  border-radius:28px !important;
  background:var(--ds-blue) !important;
}

/* Portrait lift photography gets a portrait-shaped stage instead of being
   shrunk into a wide landscape panel. The whole photo remains visible. */
@media (min-width:901px) {
  main.variant-page > .variant-hero,
  main.duo-classic-page > .duo-classic-hero {
    grid-template-columns:minmax(360px,1fr) minmax(0,.76fr) !important;
    height:clamp(640px,52vw,780px) !important;
    min-height:640px !important;
    align-items:stretch !important;
  }
  main.variant-page > .variant-hero > figure,
  main.duo-classic-page > .duo-classic-hero > figure {
    width:min(100%,500px) !important;
    max-width:500px !important;
    height:100% !important;
    justify-self:center !important;
    border-radius:24px !important;
    clip-path:inset(0 round 24px) !important;
    background:var(--ds-blue) !important;
  }
  main.variant-page > .variant-hero > figure > img,
  main.duo-classic-page > .duo-classic-hero > figure > img {
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    border-radius:18px !important;
    clip-path:inset(0 round 18px) !important;
  }
  main.alta-page > .alta-hero {
    height:clamp(620px,48vw,740px) !important;
    min-height:620px !important;
    grid-template-columns:minmax(0,1fr) minmax(400px,.9fr) !important;
  }
  main.alta-page > .alta-hero > img {
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    border-radius:24px !important;
    clip-path:inset(0 round 24px) !important;
    background:var(--ds-blue) !important;
  }
  main.variant-page .variant-media,
  main.duo-classic-page .duo-classic-media,
  main.variant-page .three-story-detail-gallery,
  main.variant-page .three-story-brochure,
  main.variant-page .three-story-enclosure {
    width:100% !important;
    grid-template-columns:minmax(250px,.42fr) minmax(0,1.58fr) !important;
    align-items:center !important;
  }
  main.variant-page .variant-media figure,
  main.duo-classic-page .duo-classic-media figure,
  main.variant-page .three-story-detail-gallery figure,
  main.variant-page .three-story-brochure-gallery figure,
  main.variant-page .three-story-enclosure-gallery figure {
    height:clamp(280px,24vw,370px) !important;
    min-height:0 !important;
    padding:10px !important;
    background:var(--ds-paper) !important;
  }
  main.duo-classic-page .duo-classic-media > div:last-child { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
  main.alta-page > .alta-gallery,
  main.alta-page > .trio-full-door-option {
    width:100% !important;
    grid-template-columns:minmax(240px,.42fr) minmax(0,1.58fr) !important;
  }
  main.alta-page .alta-gallery .model-photo-carousel figure,
  main.alta-page .trio-full-door-option .model-photo-carousel figure {
    height:clamp(320px,27vw,420px) !important;
    min-height:0 !important;
    padding:10px !important;
  }
  main.alta-page .alta-gallery .model-photo-carousel img,
  main.alta-page .trio-full-door-option .model-photo-carousel img {
    width:100% !important; height:100% !important; object-fit:contain !important;
  }
  main.installation-page > .installation-page__intro,
  main.installation-page > .installation-page__gallery {
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    border-radius:28px !important;
  }
  main.installation-page > .installation-page__gallery {
    grid-template-columns:minmax(280px,.55fr) minmax(0,1.45fr) !important;
    align-items:center !important;
    padding:clamp(28px,3vw,48px) !important;
    background:var(--ds-blue) !important;
  }
  main.installation-page .installation-carousel figure {
    height:clamp(360px,40vw,560px) !important;
    min-height:0 !important;
    padding:12px !important;
  }
  main.installation-page .installation-carousel figure img {
    width:100% !important; height:100% !important; object-fit:contain !important;
  }
}

main.gh-page > .gh-meaning {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  border-radius:28px !important;
  background:var(--ds-sage) !important;
}
main.gh-page .gh-meaning > div > article:nth-child(3n+1) { background:var(--ds-paper) !important; }
main.gh-page .gh-meaning > div > article:nth-child(3n+2) { background:var(--ds-blue) !important; }
main.gh-page .gh-meaning > div > article:nth-child(3n) { background:var(--ds-warm) !important; }
main.gh-page .gh-meaning > div > article :is(h2,h3,p) { color:var(--ds-ink) !important; }
main.compare-page > .compare-model-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
main.compare-page .compare-model-card figure { height:clamp(250px,23vw,360px) !important; padding:10px !important; background:var(--ds-blue) !important; }
main.compare-page .compare-model-card figure img { width:100% !important; height:100% !important; object-fit:contain !important; }
main.factory-brochures-page :is(.factory-brochures-disclaimer,.factory-brochures-note) {
  width:100% !important;
  border-radius:26px !important;
  background:var(--ds-blue) !important;
  color:var(--ds-ink) !important;
}
main.factory-brochures-page :is(.factory-brochures-disclaimer,.factory-brochures-note) :is(h2,h3,p,a,.eyebrow) { color:var(--ds-ink) !important; }

@media (max-width:900px) {
  header.site-header {
    width:100% !important;
    height:72px !important;
    min-height:72px !important;
    padding:8px 18px !important;
    border-radius:18px !important;
  }
  header.site-header .brand-logo { height:48px !important; max-height:48px !important; }
  main > section { background-color:transparent !important; }
  main.variant-page > .variant-intro,
  main.duo-classic-page > .duo-classic-intro,
  main.alta-page > .alta-intro { grid-template-columns:minmax(0,1fr) !important; }
  main.compare-page > .compare-model-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:560px) {
  main.compare-page > .compare-model-grid { grid-template-columns:minmax(0,1fr) !important; }
}

/* Final visual polish: model hero content sits directly on the single page
   shell; the copy and photo remain the two intentional colored surfaces. */
@media (min-width:901px) {
  main.variant-page > .variant-hero,
  main.duo-classic-page > .duo-classic-hero,
  main.alta-page > .alta-hero {
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
  }
}
html body main.variant-page .variant-hero figure img,
html body main.duo-classic-page .duo-classic-hero figure img,
html body main.alta-page .alta-hero > img,
html body main.variant-page .variant-media figure img,
html body main.duo-classic-page .duo-classic-media figure img,
html body main.variant-page .three-story-detail-gallery figure img,
html body main.variant-page .three-story-brochure-gallery figure img,
html body main.variant-page .three-story-enclosure-gallery figure img,
html body main.alta-page .alta-gallery .model-photo-carousel img,
html body main.alta-page .trio-full-door-option .model-photo-carousel img,
html body main.installation-page .installation-carousel figure img,
html body main.compare-page .compare-model-card figure img {
  border-radius:28px !important;
  clip-path:inset(0 round 28px) !important;
}
main .team-portrait img { border-radius:50% !important; clip-path:circle(50% at 50% 50%) !important; }
main .about-hero figure img { border-radius:24px !important; clip-path:inset(0 round 24px) !important; }

/* Model pages: one continuous warm shell, shared section alignment and
   photo geometry. Color stays on the intentional feature cards and CTAs;
   the page no longer breaks into unrelated white/blue tiles. */
@media (min-width: 901px) {
  :root { --ds-shell: #f1e9dc; }

  main.variant-page,
  main.alta-page,
  main.duo-classic-page,
  main.trio-page,
  main[class*="three-story"] {
    gap: 0 !important;
    padding: clamp(18px, 2vw, 30px) !important;
    background: var(--ds-shell) !important;
  }

  main.variant-page > section,
  main.alta-page > section,
  main.duo-classic-page > section,
  main.trio-page > section,
  main[class*="three-story"] > section {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 26px !important;
    box-shadow: none !important;
  }

  /* The hero and gallery sit directly on the shared beige page surface. */
  main.variant-page .variant-hero,
  main.alta-page .alta-hero,
  main.duo-classic-page .duo-classic-hero,
  main.trio-page .variant-hero,
  main.variant-page .variant-intro,
  main.variant-page .variant-media,
  main.alta-page .alta-intro,
  main.alta-page .alta-gallery,
  main.duo-classic-page .duo-classic-intro,
  main.duo-classic-page .duo-classic-media,
  main.trio-page .variant-intro,
  main.trio-page .variant-media,
  main[class*="three-story"] .three-story-detail-gallery,
  main[class*="three-story"] .three-story-enclosure,
  main[class*="three-story"] .three-story-brochure {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  main.variant-page .variant-hero,
  main.alta-page .alta-hero,
  main.duo-classic-page .duo-classic-hero,
  main.trio-page .variant-hero {
    height: clamp(500px, 39vw, 630px) !important;
    min-height: 500px !important;
    grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr) !important;
    gap: clamp(18px, 2vw, 30px) !important;
    padding: 0 0 28px !important;
    overflow: visible !important;
    border-radius: 0 !important;
  }

  main.variant-page .variant-hero > div,
  main.alta-page .alta-hero > div,
  main.duo-classic-page .duo-classic-hero > div,
  main.trio-page .variant-hero > div {
    padding: clamp(30px, 3.4vw, 58px) !important;
    border-radius: 26px !important;
    background: #e5eddf !important;
  }

  main.variant-page .variant-hero > figure,
  main.alta-page .alta-hero > figure,
  main.duo-classic-page .duo-classic-hero > figure,
  main.trio-page .variant-hero > figure,
  main.variant-page .variant-hero > img,
  main.alta-page .alta-hero > img,
  main.duo-classic-page .duo-classic-hero > img,
  main.trio-page .variant-hero > img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 26px !important;
    background: transparent !important;
    clip-path: inset(0 round 26px) !important;
  }

  main.variant-page .variant-hero figure img,
  main.alta-page .alta-hero figure img,
  main.duo-classic-page .duo-classic-hero figure img,
  main.trio-page .variant-hero figure img,
  main.variant-page .variant-hero > img,
  main.alta-page .alta-hero > img,
  main.duo-classic-page .duo-classic-hero > img,
  main.trio-page .variant-hero > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 26px !important;
    background: transparent !important;
  }

  /* Four planning points line up evenly instead of leaving a lone card below. */
  main.variant-page .variant-facts,
  main.alta-page .alta-features,
  main.duo-classic-page .duo-classic-feature-grid,
  main.trio-page .variant-facts {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0 28px !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
  }

  main.variant-page .variant-facts > *,
  main.alta-page .alta-features > *,
  main.duo-classic-page .duo-classic-feature-grid > *,
  main.trio-page .variant-facts > * {
    min-width: 0 !important;
    min-height: 170px !important;
    padding: clamp(22px, 2vw, 32px) !important;
    border-radius: 22px !important;
  }

  /* Consistent gallery grid: same aligned frames, no pale inset tile, rounded
     images, and the complete source photograph preserved without cropping. */
  main.variant-page .variant-media,
  main.alta-page .alta-gallery,
  main.duo-classic-page .duo-classic-media,
  main.trio-page .variant-media,
  main[class*="three-story"] .three-story-detail-gallery {
    grid-template-columns: minmax(260px, .42fr) minmax(0, 1.58fr) !important;
    gap: clamp(20px, 2vw, 32px) !important;
    padding: 28px 0 !important;
  }

  main.variant-page .variant-media > div:last-child,
  main.alta-page .duo-alta-photo-grid,
  main.duo-classic-page .duo-classic-media > div:last-child,
  main.trio-page .variant-media > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
  }

  main.variant-page .variant-media figure,
  main.alta-page .duo-alta-photo-grid figure,
  main.alta-page .model-photo-carousel figure,
  main.duo-classic-page .duo-classic-media figure,
  main.trio-page .variant-media figure,
  main[class*="three-story"] .three-story-detail-gallery figure,
  main[class*="three-story"] .three-story-enclosure-gallery figure {
    display: flex !important;
    width: 100% !important;
    height: clamp(235px, 20vw, 330px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 22px !important;
    background: transparent !important;
    clip-path: inset(0 round 22px) !important;
    box-shadow: none !important;
  }

  main.variant-page .variant-media figure img,
  main.alta-page .duo-alta-photo-grid figure img,
  main.alta-page .model-photo-carousel figure img,
  main.duo-classic-page .duo-classic-media figure img,
  main.trio-page .variant-media figure img,
  main[class*="three-story"] .three-story-detail-gallery figure img,
  main[class*="three-story"] .three-story-enclosure-gallery figure img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 22px !important;
    background: transparent !important;
  }

  /* Keep color in deliberate highlights; story and gallery now share the
     same page surface and section rhythm. */
  main.variant-page .variant-callout,
  main.alta-page .alta-story,
  main.duo-classic-page .duo-classic-story,
  main.trio-page .variant-callout {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(30px, 3vw, 48px) !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: transparent !important;
  }

  main.variant-page .variant-next,
  main.alta-page .alta-next,
  main.duo-classic-page .duo-classic-next,
  main.trio-page .variant-next {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: clamp(28px, 2.6vw, 42px) !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: transparent !important;
  }

  main.variant-page .variant-next aside,
  main.alta-page .alta-next aside,
  main.duo-classic-page .duo-classic-next aside,
  main.trio-page .variant-next aside {
    border-radius: 22px !important;
    background: var(--ds-green) !important;
    color: #fff !important;
  }

  main.variant-page .variant-next aside :is(p, a, svg),
  main.alta-page .alta-next aside :is(p, a, svg),
  main.duo-classic-page .duo-classic-next aside :is(p, a, svg),
  main.trio-page .variant-next aside :is(p, a, svg) {
    color: #fff !important;
    stroke: currentColor !important;
  }
}

@media (min-width: 901px) and (max-width: 1240px) {
  main.variant-page .variant-facts,
  main.alta-page .alta-features,
  main.duo-classic-page .duo-classic-feature-grid,
  main.trio-page .variant-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  main.variant-page .variant-media > div:last-child,
  main.alta-page .duo-alta-photo-grid,
  main.duo-classic-page .duo-classic-media > div:last-child,
  main.trio-page .variant-media > div:last-child { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)) !important; }
}

@media (max-width: 900px) {
  main.variant-page,
  main.alta-page,
  main.duo-classic-page,
  main.trio-page,
  main[class*="three-story"] { background: #f1e9dc !important; }

  main.variant-page .variant-hero figure,
  main.alta-page .alta-hero figure,
  main.duo-classic-page .duo-classic-hero figure,
  main.trio-page .variant-hero figure,
  main.variant-page .variant-media figure,
  main.alta-page .duo-alta-photo-grid figure,
  main.duo-classic-page .duo-classic-media figure,
  main.trio-page .variant-media figure {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 20px !important;
    clip-path: inset(0 round 20px) !important;
  }

  main.variant-page .variant-hero img,
  main.alta-page .alta-hero img,
  main.duo-classic-page .duo-classic-hero img,
  main.trio-page .variant-hero img,
  main.variant-page .variant-media figure img,
  main.alta-page .duo-alta-photo-grid figure img,
  main.duo-classic-page .duo-classic-media figure img,
  main.trio-page .variant-media figure img {
    border-radius: 20px !important;
  }
}

/* Win over the old rescue selectors that were more specific than the shared
   model rules above. The photo itself remains clipped to the same rounded
   frame, while its whole composition stays visible in the hero. */
@media (min-width: 901px) {
  html body main.variant-page > .variant-hero > figure,
  html body main.duo-classic-page > .duo-classic-hero > figure,
  html body main.alta-page > .alta-hero > figure {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 26px !important;
    clip-path: inset(0 round 26px) !important;
    background: transparent !important;
  }

  html body main.variant-page > .variant-hero > figure > img,
  html body main.duo-classic-page > .duo-classic-hero > figure > img,
  html body main.alta-page > .alta-hero > figure > img {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 26px !important;
    clip-path: inset(0 round 26px) !important;
    object-fit: contain !important;
    background: transparent !important;
  }

  /* Duo Alta and Trio Alta use a direct <img> hero rather than a figure. */
  html body main.alta-page > .alta-hero > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 26px !important;
    clip-path: inset(0 round 26px) !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
  }

  html body main.variant-page > .variant-media,
  html body main.duo-classic-page > .duo-classic-media,
  html body main.alta-page > .alta-gallery,
  html body main.alta-page > .trio-full-door-option {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body main.variant-page .variant-media figure,
  html body main.duo-classic-page .duo-classic-media figure,
  html body main.alta-page .model-photo-carousel figure,
  html body main.duo-classic-page .duo-classic-media figure img,
  html body main.variant-page .variant-media figure img,
  html body main.alta-page .model-photo-carousel figure img {
    border-radius: 22px !important;
    clip-path: inset(0 round 22px) !important;
  }

  html body main.variant-page .variant-media figure,
  html body main.duo-classic-page .duo-classic-media figure,
  html body main.alta-page .model-photo-carousel figure {
    height: clamp(280px, 24vw, 360px) !important;
    aspect-ratio: 4 / 3 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  html body main.variant-page .variant-media figure img,
  html body main.duo-classic-page .duo-classic-media figure img,
  html body main.alta-page .model-photo-carousel figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
  }

  html body main.alta-page .duo-alta-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  html body main.alta-page .duo-alta-photo-grid figure {
    width: 100% !important;
    height: clamp(245px, 19vw, 310px) !important;
    aspect-ratio: 4 / 3 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 22px !important;
    clip-path: inset(0 round 22px) !important;
    background: transparent !important;
  }

  html body main.alta-page .duo-alta-photo-grid figure img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 22px !important;
    clip-path: inset(0 round 22px) !important;
  }

  html body main.variant-page > .variant-intro,
  html body main.variant-page > .variant-callout,
  html body main.variant-page > .variant-next,
  html body main.duo-classic-page > .duo-classic-intro,
  html body main.duo-classic-page > .duo-classic-next,
  html body main.alta-page > .alta-intro,
  html body main.alta-page > .alta-story,
  html body main.alta-page > .alta-next {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Keep the Vista supporting statement visually centered like the rest of
     the model layout, while preserving its two-column reading width. */
  html body main.variant-page > .variant-intro {
    justify-items: center !important;
    text-align: center !important;
  }
  html body main.variant-page > .variant-intro > * {
    width: min(100%, 760px) !important;
    text-align: center !important;
  }

  html body main.variant-page > .variant-next aside,
  html body main.duo-classic-page > .duo-classic-next aside,
  html body main.alta-page > .alta-next > div:last-child {
    border-radius: 22px !important;
    background: var(--ds-green) !important;
    color: #fff !important;
  }
}

/* Mobile legibility: the warm beige sections on these editorial pages were
   inheriting white copy from dark-panel treatments, leaving text unreadable. */
@media (max-width: 900px) {
  html body main.installation-page :is(.installation-hero, .installation-roadmap) :is(h1, h2, h3, p, li, .eyebrow),
  html body main.costs-page .costs-close :is(h1, h2, h3, p, li, .eyebrow),
  html body main.testimonials-page .testimonials-cta :is(h1, h2, h3, p, .eyebrow) {
    color: var(--ds-ink, #383d3f) !important;
  }
}

/* Mobile model-page corrections: keep the hero and every gallery image fully
   visible, rounded, and sized to the available column. Long galleries become
   swipeable image tracks instead of tiny side-by-side thumbnails. */
@media (max-width: 900px) {
  html body main.variant-page > .variant-hero,
  html body main.trio-page > .variant-hero,
  html body main.alta-page > .alta-hero,
  html body main.duo-classic-page > .duo-classic-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 20px !important;
  }

  html body main.variant-page > .variant-hero > figure,
  html body main.trio-page > .variant-hero > figure,
  html body main.duo-classic-page > .duo-classic-hero > figure {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 24px !important;
    clip-path: inset(0 round 24px) !important;
    background: transparent !important;
  }

  html body main.variant-page > .variant-hero > figure > img,
  html body main.variant-page > .variant-hero > figure > picture,
  html body main.trio-page > .variant-hero > figure > img,
  html body main.duo-classic-page > .duo-classic-hero > figure > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 24px !important;
    clip-path: inset(0 round 24px) !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
  }

  html body main.alta-page > .alta-hero > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 24px !important;
    clip-path: inset(0 round 24px) !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
  }

  html body main.variant-page > .variant-media,
  html body main.trio-page > .variant-media,
  html body main.duo-classic-page > .duo-classic-media,
  html body main.alta-page > .alta-gallery,
  html body main.alta-page > .trio-full-door-option,
  html body main[class*="three-story"] .three-story-detail-gallery,
  html body main[class*="three-story"] .three-story-enclosure,
  html body main[class*="three-story"] .three-story-brochure {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 22px !important;
  }

  html body main.variant-page > .variant-media > div:last-child,
  html body main.trio-page > .variant-media > div:last-child,
  html body main.duo-classic-page > .duo-classic-media > div:last-child,
  html body main[class*="three-story"] .three-story-detail-gallery > div:last-child,
  html body main[class*="three-story"] .three-story-enclosure-gallery,
  html body main[class*="three-story"] .three-story-brochure-gallery {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body main.variant-page > .variant-media > div:last-child > figure,
  html body main.trio-page > .variant-media > div:last-child > figure,
  html body main.duo-classic-page > .duo-classic-media > div:last-child > figure,
  html body main[class*="three-story"] .three-story-detail-gallery figure,
  html body main[class*="three-story"] .three-story-enclosure-gallery figure,
  html body main[class*="three-story"] .three-story-brochure-gallery figure {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 4 / 3 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    clip-path: inset(0 round 20px) !important;
    background: transparent !important;
  }

  html body main.variant-page .variant-media figure img,
  html body main.trio-page .variant-media figure img,
  html body main.duo-classic-page .duo-classic-media figure img,
  html body main[class*="three-story"] .three-story-detail-gallery figure img,
  html body main[class*="three-story"] .three-story-enclosure-gallery figure img,
  html body main[class*="three-story"] .three-story-brochure-gallery figure img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 20px !important;
    clip-path: inset(0 round 20px) !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
  }

  /* Duo Alta has eight photos; let each photo occupy the full swipe card. */
  html body main.alta-page > .alta-gallery > .duo-alta-photo-grid {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 8px !important;
    scroll-snap-type: x mandatory !important;
    overscroll-behavior-inline: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body main.alta-page .duo-alta-photo-grid > figure {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 4 / 3 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    clip-path: inset(0 round 22px) !important;
    scroll-snap-align: start !important;
    background: transparent !important;
  }

  html body main.alta-page .duo-alta-photo-grid > figure > img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 22px !important;
    clip-path: inset(0 round 22px) !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
  }

  /* Alta photo carousels (including the 11-photo Trio gallery) need one
     full-width slide and a natural height on phones, never a clipped panel. */
  html body main:is(.variant-page, .trio-page, .alta-page, .duo-classic-page, [class*="three-story"]) .model-photo-carousel {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 14px !important;
    overflow: visible !important;
  }

  html body main:is(.variant-page, .trio-page, .alta-page, .duo-classic-page, [class*="three-story"]) .model-photo-carousel figure {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    clip-path: inset(0 round 22px) !important;
    scroll-snap-align: start !important;
    background: transparent !important;
  }

  html body main:is(.variant-page, .trio-page, .alta-page, .duo-classic-page, [class*="three-story"]) .model-photo-carousel figure img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: min(68vh, 680px) !important;
    border-radius: 22px !important;
    clip-path: inset(0 round 22px) !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
  }

  html body main:is(.variant-page, .trio-page, .alta-page, .duo-classic-page, [class*="three-story"]) .model-photo-carousel-controls {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    inset: auto !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 14px 0 0 !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    color: var(--ds-ink, #383d3f) !important;
  }

  html body main:is(.variant-page, .trio-page, .alta-page, .duo-classic-page, [class*="three-story"]) .model-photo-carousel-controls button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
    justify-content: center !important;
    align-items: center !important;
    border: 1px solid var(--ds-ink, #383d3f) !important;
    border-radius: 50% !important;
    background: var(--ds-paper, #f7f5ef) !important;
    color: var(--ds-ink, #383d3f) !important;
  }

  html body main:is(.variant-page, .trio-page, .alta-page, .duo-classic-page, [class*="three-story"]) .model-photo-carousel-controls :is(span, p) {
    color: var(--ds-ink, #383d3f) !important;
  }

  /* Keep portrait product photography at its natural aspect ratio. A fixed
     hero frame was cropping the Vista lift on narrow screens. */
  html body main:is(.variant-page, .trio-page, .duo-classic-page) > :is(.variant-hero, .duo-classic-hero) figure,
  html body main.alta-page > .alta-hero figure {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
  html body main:is(.variant-page, .trio-page, .duo-classic-page) > :is(.variant-hero, .duo-classic-hero) figure img,
  html body main.alta-page > .alta-hero figure img,
  html body main.alta-page > .alta-hero > img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  /* Light beige, sage, and pale blue model panels use charcoal copy. Keep
     their colored/dark feature cards and CTA buttons' intentional white text. */
  html body main:is(.variant-page, .alta-page, .duo-classic-page, .trio-page, [class*="three-story"])
    :is(.variant-hero > div, .variant-intro, .variant-callout, .variant-media > div:first-child,
      .variant-next > div:first-child, .alta-hero > div, .alta-intro, .alta-gallery > div:first-child,
      .alta-story, .trio-full-door-option > div:first-child, .alta-next > div:first-child,
      .duo-classic-hero > div, .duo-classic-intro, .duo-classic-media > div:first-child,
      .duo-classic-story, .duo-classic-specs, .duo-classic-next > div:first-child,
      .three-story-detail-gallery > div:first-child, .three-story-enclosure > div:first-child,
      .three-story-brochure > div:first-child)
    :is(h1, h2, h3, h4, p, li, blockquote, .eyebrow) {
    color: var(--ds-ink, #383d3f) !important;
  }
}

/* Sitewide contrast rule: default all editorial copy inside page content to
   charcoal. Light panels inherit this; the explicit exceptions below restore
   white only for copy sitting on intentionally dark or saturated surfaces. */
html body main :is(
  h1, h2, h3, h4, p, li, blockquote, .eyebrow,
  a:not(:where(.button, .btn, [class*="button"], [class*="btn"], [class*="cta"], [role="button"]))
) {
  color: var(--ds-ink, #383d3f) !important;
}

/* Preserve white copy only where the surface itself is intentionally dark
   or saturated. The surrounding light panels remain charcoal. */
html body main :is(.ink, .dark-panel, .is-dark, [data-theme="dark"]) :is(h1, h2, h3, h4, p, li, blockquote, .eyebrow, a),
html body main.about-team-link > aside :is(h2, h3, p, span, a),
html body main.installation-page--builddown > .installation-page__intro :is(h1, h2, h3, p, li, .eyebrow),
html body main .testimonial-story.ink :is(h2, h3, p, a, blockquote),
html body main .variant-facts > :nth-child(3n + 2) :is(h3, p, svg),
html body main .alta-features > :nth-child(3n + 2) :is(h3, p, svg),
html body main .duo-classic-feature-grid > :nth-child(3n + 2) :is(h3, p, svg),
html body main .variant-next aside :is(p, a, svg),
html body main .alta-next > :last-child :is(p, a, svg),
html body main .duo-classic-next aside :is(p, a, svg),
html body main section:has(a[href*="instagram.com"]) a:is([href*="instagram.com"], [href*="facebook.com"], [href*="tiktok.com"]),
html body main section:has(a[href*="instagram.com"]) a:is([href*="instagram.com"], [href*="facebook.com"], [href*="tiktok.com"]) :is(h3, p, span) {
  color: #fff !important;
}

/* Dark buttons and intentionally dark cards retain bright, readable copy.
   This rule follows the sitewide charcoal default so the text stays visible. */
html body main a:is(.cta, [class*="-cta"], [class*="cta-button"]),
html body main a:is(.cta, [class*="-cta"], [class*="cta-button"]) *,
html body main .brand-contact-band *,
html body main :is(.team-contact-band, .contact-band, .phone-card, .contact-card, .contact-panel) *,
html body main :is(.variant-facts, .alta-features, .duo-classic-feature-grid) > :nth-child(3n + 2) *,
html body main :is(.variant-next aside, .alta-next > :last-child, .duo-classic-next aside) *,
html body main :is(.about-team-link > aside, .testimonial-story.ink) *,
html body main.installation-page--builddown > .installation-page__intro * {
  color: #fff !important;
  opacity: 1 !important;
}

html body main section:has(a[href*="instagram.com"]) a:is([href*="instagram.com"], [href*="facebook.com"], [href*="tiktok.com"]) svg {
  color: #fff !important;
  stroke: currentColor !important;
}

/* A dark-text exception is only valid together with its dark surface.
   These surfaces previously existed only inside the desktop breakpoint. */
html body main :is(.variant-facts, .alta-features, .duo-classic-feature-grid) > :nth-child(3n + 2),
html body main .variant-next aside,
html body main .alta-next > :last-child,
html body main .duo-classic-next aside,
html body main.about-team-link > aside {
  background: #383d3f !important;
  color: #fff !important;
}

@media (min-width: 901px) {
  .duo-alta-mobile-carousel { display: none !important; }
}

@media (max-width: 900px) {
  html body main.alta-page .duo-alta-photo-grid { display: none !important; }

  /* Let the image define its own rounded box. A landscape frame with contain
     makes a portrait look like a tiny square-cornered thumbnail inside it. */
  html body main:is(.variant-page, .trio-page, .alta-page, .duo-classic-page, [class*="three-story"])
    :is(.variant-media, .duo-classic-media) > div:last-child {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  html body main:is(.variant-page, .trio-page, .alta-page, .duo-classic-page, [class*="three-story"])
    :is(.variant-media, .duo-classic-media, .model-photo-carousel, .three-story-detail-gallery, .three-story-enclosure-gallery, .three-story-brochure-gallery) figure {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 22px !important;
    clip-path: none !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  html body main:is(.variant-page, .trio-page, .alta-page, .duo-classic-page, [class*="three-story"])
    :is(.variant-media, .duo-classic-media, .model-photo-carousel, .three-story-detail-gallery, .three-story-enclosure-gallery, .three-story-brochure-gallery) figure img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    border-radius: 22px !important;
    clip-path: none !important;
    object-fit: contain !important;
  }
}

/* Match the original page selectors so their padding and green backgrounds
   cannot outrank the paired surface and natural-photo rules. */
html body main.variant-page > .variant-next aside,
html body main.duo-classic-page > .duo-classic-next aside,
html body main.alta-page > .alta-next > :last-child {
  background: #383d3f !important;
}
@media (max-width: 900px) {
  html body main.alta-page > .alta-gallery > .duo-alta-photo-grid {
    display: none !important;
  }
  html body main.alta-page > :is(.alta-gallery, .trio-full-door-option) > .model-photo-carousel > figure {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 22px !important;
    clip-path: none !important;
    background: transparent !important;
  }
  html body main.alta-page > :is(.alta-gallery, .trio-full-door-option) > .model-photo-carousel > figure > img {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 22px !important;
    clip-path: none !important;
  }
}
@media (max-width: 900px) {
  html body main:is(.variant-page, .trio-page, .duo-classic-page) > :is(.variant-media, .duo-classic-media) > div:last-child > figure {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    border: 0 !important;
  }
  html body main:is(.variant-page, .trio-page, .duo-classic-page) > :is(.variant-media, .duo-classic-media) > div:last-child > figure > img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
}

/* Editorial dark cards keep both their surface and readable foreground. */
html body main.news-page .news-card:nth-child(4n + 3),
html body main.testimonials-page .testimonial-story.ink {
  background: #383d3f !important;
  color: #fff !important;
}
html body main.news-page .news-card:nth-child(4n + 3) *,
html body main.testimonials-page .testimonial-story.ink * {
  color: #fff !important;
  opacity: 1 !important;
}

/* Custom Paint uses the same light surface at mobile and desktop widths. */
html body main.installation-page--custom-colors > .installation-page__intro {
  background: var(--ds-sage) !important;
  background-image: none !important;
  color: var(--ds-ink) !important;
}
html body main.installation-page--custom-colors > .installation-page__intro :is(h1, p) {
  color: var(--ds-ink) !important;
}

/* Installation photos must define the frame height, including captions. */
html body main.curated-gallery .curated-model-card .curated-model-images > figure,
html body main.installation-page .installation-carousel > figure {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 22px !important;
  clip-path: none !important;
  overflow: hidden !important;
  background: transparent !important;
}
html body main.curated-gallery .curated-model-card .curated-model-images > figure > img,
html body main.installation-page .installation-carousel > figure > img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 22px !important;
  clip-path: none !important;
  object-fit: contain !important;
  transform: none !important;
}
html body main.curated-gallery .curated-model-card .curated-model-images > figure > figcaption {
  position: static !important;
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 8px 0 0 !important;
  background: #383d3f !important;
  color: #fff !important;
}
/* Deeper charcoal keeps small type readable on the green/orange news cards. */
html body main.news-page .news-card:not(:nth-child(4n + 3)),
html body main.news-page .news-card:not(:nth-child(4n + 3)) * {
  color: #202628 !important;
}

/* Round the photograph's own edges, including portrait images in comparison. */
html body main.compare-page .compare-model-card > figure {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: transparent !important;
}
html body main.compare-page .compare-model-card > figure > img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  border-radius: 22px !important;
  clip-path: none !important;
  object-fit: contain !important;
}
@media (max-width: 900px) {
  html body main.compare-page .compare-model-card > figure {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
  html body main.compare-page .compare-model-card > figure > img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }
}
html body main.compare-page .compare-model-content > a,
html body main.compare-page .compare-model-content > a * {
  color: #fff !important;
}
html body main.compare-page .compare-model-content > a {
  background: #383d3f !important;
}

/* The Testimonials closing button has a white surface. */
html body main.testimonials-page .testimonials-cta > a.cta {
  background: #fff !important;
  color: #383d3f !important;
}
html body main.testimonials-page .testimonials-cta > a.cta * {
  color: #383d3f !important;
}

/* The social hub contains white link rows, so its labels and icons are dark. */
html body main .social-hub .social-hub-links > a.social-hub-link,
html body main .social-hub .social-hub-links > a.social-hub-link * {
  color: #383d3f !important;
  opacity: 1 !important;
}
html body main .social-hub .social-hub-links > a.social-hub-link svg {
  stroke: currentColor !important;
}
html body main .social-hub .social-hub-links > a.social-hub-link small {
  color: #59656a !important;
}

/* Keep these final surface/foreground pairs together. Important declarations
   in this layer outrank the older unlayered rescue overrides. */
@layer verified-surfaces {
  main.about-page { background: #f1e9dc !important; }
  main :is(h1,h2,h3) em { color: inherit !important; }
  main .installation-assurance span { color: #383d3f !important; }
  main .installation-carousel__controls span { color: #383d3f !important; }

  main.installation-page .installation-page__intro a.cta { background: #9ab600 !important; }
  main.installation-page .installation-page__intro a.cta, main.installation-page .installation-page__intro a.cta * { color: #202628 !important; }

  main.curated-gallery .curated-gallery-cta h2 em { color: #383d3f !important; }

  main a.cta, main a.finance-cta { background: #383d3f !important; }
  main a.cta, main a.cta *, main a.finance-cta, main a.finance-cta * { color: #fff !important; }
  main.testimonials-page .testimonials-cta > a.cta { background: #fff !important; color: #383d3f !important; }
  main.testimonials-page .testimonials-cta > a.cta * { color: #383d3f !important; }

  main .social-hub-link { background: #fff !important; color: #383d3f !important; }
  main .social-hub-link * { color: #383d3f !important; }
  main .social-hub-link small { color: #59656a !important; }
  main .social-hub-link svg { stroke: currentColor !important; }
  main .instagram-follow-link { background: #fff !important; }
  main .instagram-follow-link, main .instagram-follow-link * { color: #383d3f !important; }
  main .brand-hero-content small { color: #59656a !important; }
  main .brand-contact-band { background: #383d3f !important; }
  main .brand-contact-band * { color: #fff !important; }
  main .brand-button.green, main .brand-button.green *,
    main .contact-page-form button, main .contact-form button,
  main .gh-quote a, main .gh-quote a * { color: #202628 !important; }
  main .contact-page-request button { color: #202628 !important; }
  main .team-contact-band { background: #f3ddc5 !important; }
  main .team-contact-band, main .team-contact-band * { color: #383d3f !important; }
  main .about-principles > article:nth-child(2),
  main .coastal-reasons > article:last-child,
  main .contact-page-location { background: #383d3f !important; color: #fff !important; }
  main .about-principles > article:nth-child(2) *,
  main .coastal-reasons > article:last-child *,
  main .contact-page-location * { color: #fff !important; }
  main .coastal-reasons > article:nth-child(3) { background: #f3ddc5 !important; }
  main .coastal-reasons > article:nth-child(3) * { color: #383d3f !important; }
  main .alta-gallery .eyebrow { color: #383d3f !important; }
  main .video-preview { background: #383d3f !important; color: #fff !important; }
  main .video-preview-copy, main .video-preview-copy * { color: #fff !important; }
  main .video-fallback { background: #dfeadb !important; }
  main .video-fallback, main .video-fallback * { color: #383d3f !important; }
}

@layer verified-photographs {
  @media (min-width: 901px) {
    main .variant-media figure, main .duo-classic-media figure {
      height: clamp(320px, 25vw, 480px) !important; min-height: 0 !important; aspect-ratio: auto !important;
      display: flex !important; align-items: center !important; justify-content: center !important;
      background: transparent !important; padding: 0 !important; border: 0 !important; clip-path: none !important;
    }
    main .variant-media figure img, main .duo-classic-media figure img { height: 100% !important; width: auto !important; }
  }

  @media (min-width: 901px) {
    main.compare-page > .compare-model-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
    main.compare-page .compare-model-card { grid-column: span 3 !important; }
    main.compare-page .compare-model-card:nth-of-type(n+5) { grid-column: span 2 !important; }
    main.compare-page .compare-model-card > figure { height: clamp(400px, 30vw, 520px) !important; }
    main.compare-page .compare-model-card > figure > img { height: 100% !important; width: auto !important; }
    main .installation-carousel > figure {
      height: clamp(420px, 38vw, 680px) !important; min-height: 0 !important; max-height: 680px !important;
      display: flex !important; justify-content: center !important; align-items: center !important;
      background: transparent !important; box-shadow: none !important;
    }
    main .installation-carousel > figure > img { height: 100% !important; width: auto !important; }
    main .model-photo-carousel > figure { background: transparent !important; border: 0 !important; box-shadow: none !important; }
    main .model-photo-carousel__controls { justify-content: center !important; }
  }

  @media (min-width: 901px) {
    main img:is([src*="/models/"], [src*="/installations/"], [src*="images/alta/"]) {
      display: block !important;
      width: auto !important;
      height: auto !important;
      max-width: 100% !important;
      max-height: 100% !important;
      min-height: 0 !important;
      min-width: 0 !important;
      aspect-ratio: auto !important;
      object-fit: contain !important;
      border-radius: 22px !important;
      clip-path: none !important;
      justify-self: center !important;
      align-self: center !important;
      margin-inline: auto !important;
      padding: 0 !important;
    }
    main .model-photo-carousel > figure {
      height: clamp(420px, 30vw, 600px) !important;
      min-height: 0 !important;
      aspect-ratio: auto !important;
    }
    main .duo-alta-photo-grid > figure {
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      aspect-ratio: auto !important;
    }
    main .duo-alta-photo-grid > figure > img {
      width: 100% !important;
      height: auto !important;
      max-height: none !important;
    }
    main .real-homes-gallery > figure, main .curated-model-images > figure {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      height: clamp(380px, 30vw, 520px) !important;
      min-height: 0 !important;
      aspect-ratio: auto !important;
      gap: 8px !important;
      padding: 0 !important;
    }
    main .real-homes-gallery > figure > img, main .curated-model-images > figure > img {
      max-height: calc(100% - 46px) !important;
      flex: 0 1 auto !important;
    }
    main .real-homes-gallery figcaption, main .curated-model-images figcaption {
      position: static !important;
      flex: 0 0 auto !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      margin: 0 !important;
    }
  }
  @media (max-width: 900px) {
    main.brand-home .brand-model > img,
    main.brand-home .real-homes-gallery > figure > img {
      min-height: 0 !important;
      width: 100% !important;
      height: auto !important;
      max-height: none !important;
      aspect-ratio: auto !important;
      object-fit: contain !important;
    }
    main.brand-home .real-homes-gallery > figure {
      height: auto !important;
      min-height: 0 !important;
      aspect-ratio: auto !important;
    }
  }
}
