/* Homepage-only presentation. */
/* Homepage OEM / ODM capability entry */
.oemHomeFeature{padding:100px 6vw;background:var(--paper);display:grid;grid-template-columns:1.12fr .88fr;gap:7vw;align-items:center}
.oemHomeFeature>.homeModulePoster.oemHomeVisual{display:block;min-height:590px;height:590px;overflow:hidden;background:var(--paper)}
.oemHomeFeature>.homeModulePoster.oemHomeVisual img{display:block;width:100%;height:100%;object-fit:contain!important;object-position:center!important}
.oemHomeCopy{max-width:700px}
.oemHomeCopy h2{font-size:clamp(42px,4.4vw,66px);line-height:1.04;margin:18px 0 24px}
.oemHomeCopy>p{font-size:17px;max-width:650px}
.oemHomeCapabilities{display:grid;grid-template-columns:1fr 1fr;margin:32px 0;border-top:1px solid var(--line)}
.oemHomeCapabilities span{padding:17px 18px 17px 0;border-bottom:1px solid var(--line);font-size:13px;color:var(--ink)}
.oemHomeCapabilities span:nth-child(odd){border-right:1px solid var(--line)}
.oemHomeCapabilities span:nth-child(even){padding-left:18px}
@media(max-width:1000px){.oemHomeFeature{grid-template-columns:1fr;gap:50px}.oemHomeVisual{min-height:520px}.oemHomeCopy{max-width:none}}
@media(max-width:640px){.oemHomeFeature{padding:75px 22px}.oemHomeVisual{min-height:390px}.oemHomeCapabilities{grid-template-columns:1fr}.oemHomeCapabilities span:nth-child(odd){border-right:0}.oemHomeCapabilities span:nth-child(even){padding-left:0}.oemHomeCopy .btn{width:100%}}
@media(max-width:640px){.oemHomeFeature>.homeModulePoster.oemHomeVisual{min-height:0;height:auto;aspect-ratio:1491/1055}}

/* Homepage customer-facing development process */
.homeProcess{padding:100px 6vw;background:var(--ivory)}
.homeProcessHead{display:grid;grid-template-columns:1.1fr .9fr;gap:10vw;align-items:end}
.homeProcessHead h2{font-size:clamp(40px,4.2vw,62px);line-height:1.05;margin:18px 0 0;max-width:850px}
.homeProcessHead>div:last-child p{font-size:17px;max-width:570px;margin:0 0 25px}
.homeProcessSteps{display:grid;grid-template-columns:repeat(4,1fr);margin-top:36px;border:1px solid var(--line);background:var(--paper)}
.homeProcessSteps article{position:relative;padding:28px 30px;min-height:260px;border-right:1px solid var(--line)}
.homeProcessSteps article:last-child{border-right:0}
.homeProcessSteps b{font-size:11px;color:var(--blue2)}
.homeProcessSteps h3{font-size:23px;line-height:1.15;margin:68px 0 14px;max-width:260px}
.homeProcessSteps p{font-size:13px;margin:0}
.processArrow{position:absolute;right:22px;top:24px;color:var(--blue2);font-size:20px}
.homeProcessSteps article:last-child .processArrow{display:none}
@media(max-width:1000px){.homeProcessHead{grid-template-columns:1fr;gap:30px}.homeProcessSteps{grid-template-columns:1fr 1fr}.homeProcessSteps article:nth-child(2){border-right:0}.homeProcessSteps article:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media(max-width:640px){.homeProcess{padding:75px 22px}.homeProcessHead .btn{width:max-content}.homeProcessSteps{grid-template-columns:1fr}.homeProcessSteps article,.homeProcessSteps article:nth-child(2){border-right:0;border-bottom:1px solid var(--line);min-height:220px}.homeProcessSteps article:last-child{border-bottom:0}.homeProcessSteps h3{margin-top:52px}}

/* Compact homepage product portfolio introduction */
.productPortfolioIntro{padding:85px 6vw 65px;display:grid;grid-template-columns:1.15fr .85fr;gap:10vw;align-items:start}
.productPortfolioIntro h2{font-size:clamp(40px,4.3vw,64px);line-height:1.05;margin:18px 0 0;max-width:780px}
.productPortfolioIntro>div:last-child{padding-top:28px}
.productPortfolioIntro p{font-size:17px;max-width:570px;margin:0 0 25px}
@media(max-width:1000px){.productPortfolioIntro{grid-template-columns:1fr;gap:25px}.productPortfolioIntro>div:last-child{padding-top:0}}
@media(max-width:640px){.productPortfolioIntro{padding:70px 22px 48px}.productPortfolioIntro .btn{width:100%}}

/* Homepage editorial insights with image-led rhythm */
.homeInsights{padding:100px 6vw;background:#efede6}
.homeInsightsHead{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:45px}
.homeInsightsHead h2{font-size:clamp(38px,3.8vw,58px);line-height:1.05;margin:18px 0 0;max-width:880px}
.homeInsightsGrid{display:grid;grid-template-columns:1.08fr .92fr;gap:24px}
.homeInsightsGrid a{background:var(--paper);color:var(--ink);overflow:hidden}
.insightFeature{display:grid;grid-template-rows:minmax(350px,1fr) auto}
.insightSide{display:grid;grid-template-rows:1fr 1fr;gap:24px}
.insightSide>a{display:grid;grid-template-columns:.44fr .56fr;min-height:285px}
.insightImage{background-position:center;background-size:cover;min-height:230px}
.insightOem{background-image:url('/images/oem-engineering-exploded-v1.webp')}
.insightProduct{background-image:url('/images/maxwell-home-hero-v2.webp')}
.insightPartner{background-image:url('/images/hero-clinical.webp')}
.insightContent{padding:28px;display:flex;flex-direction:column}
.insightContent small{color:var(--blue2);font-size:10px;letter-spacing:.13em}
.insightContent h3{font-size:clamp(22px,2vw,31px);line-height:1.15;margin:18px 0 13px}
.insightSide .insightContent h3{font-size:22px}
.insightContent p{font-size:13px;margin:0 0 25px;flex:1}
.insightContent span{color:var(--blue2);font-size:13px;font-weight:650}
@media(max-width:1000px){.homeInsightsGrid{grid-template-columns:1fr}.insightSide{grid-template-columns:1fr 1fr;grid-template-rows:auto}.insightSide>a{grid-template-columns:1fr}.homeInsightsHead{align-items:flex-start;flex-direction:column}}
@media(max-width:640px){.homeInsights{padding:75px 22px}.homeInsightsHead .btn{width:100%}.insightSide{grid-template-columns:1fr}.insightFeature{grid-template-rows:260px auto}.insightSide>a{display:block}.insightImage{min-height:240px}}

/* Consistent homepage vertical rhythm — avoid stacked margin and padding gaps. */
.productPortfolioIntro{padding-top:72px;padding-bottom:48px}
.seriesShowcase{margin-bottom:0}
.oemHomeFeature{padding-top:82px;padding-bottom:82px}
.homeProcess{padding-top:68px;padding-bottom:68px}
.dark{padding-top:76px;padding-bottom:76px}
.homeInsights{padding-top:82px;padding-bottom:82px}
.homeFinal{padding-top:82px;padding-bottom:82px}
@media(max-width:1000px){.productPortfolioIntro{padding-top:65px;padding-bottom:42px}.oemHomeFeature,.homeInsights,.homeFinal{padding-top:70px;padding-bottom:70px}.homeProcess{padding-top:60px;padding-bottom:60px}}
@media(max-width:640px){.productPortfolioIntro{padding-top:58px;padding-bottom:36px}.seriesShowcase{margin-bottom:0}.oemHomeFeature,.homeInsights,.homeFinal{padding-top:60px;padding-bottom:60px}.homeProcess{padding-top:52px;padding-bottom:52px}.dark{padding-top:60px;padding-bottom:60px}}

/* Homepage hero — real Maxwell devices with a protected copy zone. */
.heroImage{
  background:#f7f4ef;
}
.heroImage picture{background:#f7f4ef}
.heroImage img{object-fit:contain;object-position:right center}
.heroImage:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#f7f4ef 0%,#f7f4ef 40%,rgba(247,244,239,.97) 45%,rgba(247,244,239,.72) 52%,rgba(247,244,239,.16) 61%,transparent 68%)}
.heroCopy{width:48%;max-width:800px}
.hero h1{font-size:clamp(46px,4.65vw,70px)}
@media(max-width:1000px){
  .hero{min-height:900px}
  .heroCopy{width:100%;max-width:760px;padding-bottom:390px}
  .heroImage img{object-position:center bottom}
  .heroImage:after{background:linear-gradient(180deg,#f7f4ef 0%,#f7f4ef 48%,rgba(247,244,239,.96) 56%,rgba(247,244,239,.45) 67%,transparent 78%)}
}
@media(max-width:640px){
  .hero{min-height:850px}
  .heroCopy{padding-bottom:330px}
  .heroImage img{height:54%;margin-top:auto;object-position:center bottom}
  .heroImage:after{background:linear-gradient(180deg,#f7f4ef 0%,#f7f4ef 53%,rgba(247,244,239,.9) 62%,rgba(247,244,239,.18) 76%,transparent 86%)}
}

/* Homepage hero: use one continuous banner canvas so the copy and equipment
   share exactly the same background colour. */
.hero{
  min-height:calc(100svh - 86px);
  display:block;
  background:#f4eee6;
}
.hero>.cmsHeroImage{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  transform:none;
}
.hero:hover>.cmsHeroImage{transform:none}
.hero>.cmsHeroImage img{
  object-fit:cover;
  object-position:center center;
}
.hero>.heroCopy{
  position:relative;
  z-index:2;
  width:48%;
  max-width:780px;
  padding:clamp(58px,7vh,88px) 4.4vw 52px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:calc(100svh - 86px);
}
.hero>.heroCopy>p{max-width:610px}

/* Mobile homepage hero: keep copy readable and contained in the first viewport.
   This final override intentionally follows the shared hero declarations above. */
@media(max-width:640px){
  .hero{min-height:0;display:flex;flex-direction:column;background:#f4eee6}
  .hero>.heroCopy{
    order:1;width:100%;max-width:none;min-height:0;padding:38px 22px 30px;
    display:block;
  }
  .hero>.heroCopy .eyebrow{
    display:block;max-width:330px;font-size:10px;line-height:1.55;letter-spacing:.16em;
  }
  .hero h1{
    max-width:390px;margin:14px 0 18px;font-size:clamp(40px,11.2vw,48px);
    line-height:.98;letter-spacing:-.055em;overflow-wrap:normal;word-break:normal;
  }
  .hero>.heroCopy>p{
    width:100%;max-width:390px;margin:0;font-size:16px;line-height:1.55;
  }
  .hero .buttons{
    display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0 18px;
  }
  .hero .btn{min-height:50px;padding:0 14px;font-size:12px}
  .hero .micro{gap:8px;font-size:10px;line-height:1.4}
  .hero>.cmsHeroImage{
    position:relative;inset:auto;order:2;width:100%;height:auto;min-height:0;
    aspect-ratio:16/9;max-height:250px;
  }
  .hero>.cmsHeroImage picture{position:absolute;inset:0}
  .hero>.cmsHeroImage img{
    width:100%;height:100%;object-fit:cover;object-position:72% bottom;
  }
}
@media(max-width:390px){
  .hero>.heroCopy{padding-inline:18px}
  .hero h1{font-size:39px}
  .hero .buttons{grid-template-columns:1fr}
}
