
/* Platforms: eight photo/diagram flip cards, based on the approved comparison. */
.platforms-gallery{padding:26px 0 72px;background:#fbfaf7}
.platforms-instruction{font-size:.89rem;color:#657081;margin:0 0 20px}
.platforms-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.platform-flip-card{appearance:none;border:0;background:transparent;text-align:left;padding:0;perspective:1200px;cursor:pointer;color:inherit;font:inherit;min-width:0;height:365px}
.platform-flip-inner{position:relative;display:block;width:100%;height:100%;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.2,.65,.2,1)}
.platform-flip-card.is-flipped .platform-flip-inner{transform:rotateY(180deg)}
.platform-face{position:absolute;inset:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #e8e2dc;border-radius:9px;background:#fff;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 7px 22px rgba(23,32,51,.045)}
.platform-back{transform:rotateY(180deg);background:#fffdfb}
.platform-tile{display:block;flex:0 0 150px;width:100%;background-color:#f1f1ef;background-image:url("assets/platforms_flip_sprite_crisp.webp");background-size:400% 400%;background-repeat:no-repeat}
.tile-0,.tile-4,.tile-8,.tile-12{background-position-x:0}
.tile-1,.tile-5,.tile-9,.tile-13{background-position-x:33.333333%}
.tile-2,.tile-6,.tile-10,.tile-14{background-position-x:66.666667%}
.tile-3,.tile-7,.tile-11,.tile-15{background-position-x:100%}
.tile-0,.tile-1,.tile-2,.tile-3{background-position-y:0}
.tile-4,.tile-5,.tile-6,.tile-7{background-position-y:33.333333%}
.tile-8,.tile-9,.tile-10,.tile-11{background-position-y:66.666667%}
.tile-12,.tile-13,.tile-14,.tile-15{background-position-y:100%}
.platform-copy{padding:16px 17px 17px;display:flex;flex-direction:column;flex:1}
.platform-name{display:block;font:500 1.28rem/1.19 Georgia,"Times New Roman",serif;letter-spacing:-.015em}
.platform-rule{display:block;width:40px;height:2px;background:#8c1515;margin:11px 0}
.platform-description{display:block;font-size:.89rem;line-height:1.48;color:#3e4859}
.platform-cue{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:12px;font-size:.78rem;color:#687386}
.platform-cue span{font-size:1.35rem;color:#8c1515;line-height:1}
.platform-flip-card:focus-visible{outline:3px solid #8c1515;outline-offset:5px;border-radius:9px}
@media(hover:hover){.platform-flip-card:hover .platform-face{box-shadow:0 12px 28px rgba(23,32,51,.09)}}
@media(max-width:1100px){.platforms-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.platform-flip-card{height:345px}}
@media(max-width:620px){.platforms-grid{grid-template-columns:1fr;gap:18px}.platform-flip-card{height:355px}.platform-tile{flex-basis:170px}.platform-name{font-size:1.3rem}}
@media(prefers-reduced-motion:reduce){.platform-flip-inner{transition:none}}

/* Approved crisp image layout: full 2:1 panels, no cover-cropping. */
.platforms-gallery {padding-top:22px;}
.platforms-grid {gap:18px;}
.platform-flip-card {height:355px;}
.platform-tile {
  flex:0 0 auto;
  width:100%;
  aspect-ratio:2/1;
  height:auto;
  background-color:#fff;
  background-size:400% 400%;
}
.platform-copy {padding:15px 16px 17px;}
.platform-name {font-size:1.18rem;line-height:1.2;}
.platform-description {font-size:.89rem;line-height:1.5;}
.platforms-instruction {margin:0 0 16px;}
@media(max-width:1100px) {
  .platform-flip-card {height:365px;}
}
@media(max-width:620px) {
  .platform-flip-card {height:380px;}
  .platform-tile {flex-basis:auto;}
}

/* Integrated Technologies: approved split hero with uploaded NAMs graphic. */
.platforms-split-hero{
  display:grid;grid-template-columns:minmax(0,51%) minmax(0,49%);
  min-height:500px;background:#fbfaf7;overflow:hidden;
}
.platforms-hero-copy{
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  padding:clamp(34px,5.5vw,90px) clamp(28px,4vw,76px) clamp(34px,5vw,76px)
    max(28px,calc((100vw - 1180px)/2));
}
.platforms-hero-copy h1{
  font:500 clamp(2.35rem,4.1vw,4.5rem)/1.08 Georgia,"Times New Roman",serif;
  letter-spacing:-.03em;color:var(--ink);margin:16px 0 22px;
}
.platforms-hero-copy h2{
  font-size:clamp(1.12rem,1.7vw,1.55rem);line-height:1.42;
  color:#657797;font-weight:650;margin:0 0 22px;
}
.platforms-hero-copy p{font-size:clamp(.99rem,1.15vw,1.12rem);line-height:1.75;color:#61718b;margin:0;}
.platforms-hero-rule{display:block;width:78px;height:4px;background:var(--cardinal);margin-top:25px;}
.platforms-hero-visual{
  display:flex;align-items:center;justify-content:center;
  background:#061423;min-width:0;
}
.platforms-hero-visual img{
  display:block;width:100%;height:100%;max-height:640px;
  object-fit:contain;object-position:center;
}
.platforms-section-intro{text-align:center;padding:40px 20px 10px;background:#fbfaf7;}
.platforms-section-intro h2{font:500 clamp(1.85rem,2.8vw,2.8rem)/1.18 Georgia,serif;margin:0 0 9px;}
.platforms-section-intro p{margin:0 auto;color:#657797;max-width:850px;line-height:1.55;}
@media(max-width:850px){
  .platforms-split-hero{grid-template-columns:1fr;}
  .platforms-hero-copy{padding:44px 28px 36px;}
  .platforms-hero-visual{min-height:360px;}
  .platforms-hero-visual img{max-height:540px;height:auto;}
}

/* Platforms hero: blend uploaded NAMs artwork behind the copy rather than splitting panels. */
.platforms-split-hero{
  position:relative;
  display:block;
  isolation:isolate;
  min-height:clamp(460px,43vw,650px);
  background:#f7fbff;
  overflow:hidden;
}
.platforms-hero-visual{
  position:absolute;inset:0;z-index:-1;
  display:block;background:#061423;
}
.platforms-hero-visual img{
  display:block;width:100%;height:100%;max-height:none;
  object-fit:cover;object-position:right center;
}
.platforms-split-hero::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(90deg,
    #f8fbff 0%,rgba(248,251,255,.99) 21%,
    rgba(248,251,255,.94) 35%,
    rgba(248,251,255,.74) 46%,
    rgba(248,251,255,.25) 58%,
    rgba(248,251,255,0) 73%);
}
.platforms-hero-copy{
  position:relative;z-index:1;width:min(62%,900px);
  min-height:clamp(460px,43vw,650px);
  padding:clamp(42px,6vw,92px) 18px clamp(42px,6vw,92px)
    max(28px,calc((100vw - 1180px)/2));
}
.platforms-hero-copy h1{font-size:clamp(2.35rem,3.7vw,4rem);}
.platforms-hero-copy h2,.platforms-hero-copy p{max-width:710px;}
@media(max-width:850px){
 .platforms-split-hero{min-height:690px;}
 .platforms-hero-copy{width:100%;min-height:0;padding:38px 26px 30px;}
 .platforms-hero-visual img{object-position:65% center;}
 .platforms-split-hero::before{
  background:linear-gradient(180deg,#f8fbff 0%,rgba(248,251,255,.98) 22%,rgba(248,251,255,.92) 38%,rgba(248,251,255,.2) 66%,rgba(248,251,255,0) 85%);
 }
}

/* Reduce the NAMs artwork scale while preserving its soft fade behind the text. */
.platforms-hero-visual{
  background:#061423;
}
.platforms-hero-visual img{
  width:66%;
  height:90%;
  max-height:560px;
  margin-left:auto;
  margin-right:2%;
  object-fit:contain;
  object-position:center;
}
.platforms-split-hero::before{
  background:linear-gradient(90deg,
    #f8fbff 0%,rgba(248,251,255,.99) 27%,
    rgba(248,251,255,.94) 40%,
    rgba(248,251,255,.65) 51%,
    rgba(248,251,255,.12) 64%,
    rgba(248,251,255,0) 77%);
}
@media(max-width:850px){
 .platforms-hero-visual img{
   width:88%;height:55%;max-height:none;
   margin:280px auto 0;object-fit:contain;
 }
 .platforms-split-hero::before{
   background:linear-gradient(180deg,#f8fbff 0%,rgba(248,251,255,.99) 29%,rgba(248,251,255,.9) 44%,rgba(248,251,255,.18) 70%,rgba(248,251,255,0) 90%);
 }
}

/* Fit NAMs artwork to the hero's full height, preserving the blend behind text. */
.platforms-hero-visual img{
  width:auto;
  height:100%;
  max-height:none;
  max-width:none;
  margin:0 0 0 auto;
  object-fit:contain;
  object-position:right center;
}
.platforms-split-hero::before{
  background:linear-gradient(90deg,
    #f8fbff 0%,rgba(248,251,255,.99) 23%,
    rgba(248,251,255,.93) 37%,
    rgba(248,251,255,.67) 48%,
    rgba(248,251,255,.2) 61%,
    rgba(248,251,255,0) 75%);
}
@media(max-width:850px){
 .platforms-hero-visual img{
   width:auto;
   height:65%;
   max-width:100%;
   max-height:none;
   margin:240px auto 0;
   object-fit:contain;
   object-position:center;
 }
 .platforms-split-hero::before{
   background:linear-gradient(180deg,#f8fbff 0%,rgba(248,251,255,.99) 27%,rgba(248,251,255,.86) 44%,rgba(248,251,255,.12) 74%,rgba(248,251,255,0) 94%);
 }
}

/* Final hero adjustment: retain full-height NAMs graphic; protect headline and copy. */
.platforms-split-hero::before{
  background:linear-gradient(90deg,
    #f8fbff 0%,
    rgba(248,251,255,.99) 19%,
    rgba(248,251,255,.97) 30%,
    rgba(248,251,255,.86) 39%,
    rgba(248,251,255,.61) 48%,
    rgba(248,251,255,.2) 59%,
    rgba(248,251,255,0) 73%);
}
.platforms-hero-copy{width:min(61%,900px);}
@media(max-width:850px){
 .platforms-hero-copy{width:100%;}
 .platforms-split-hero::before{
   background:linear-gradient(180deg,#f8fbff 0%,rgba(248,251,255,.99) 31%,rgba(248,251,255,.9) 46%,rgba(248,251,255,.18) 74%,rgba(248,251,255,0) 94%);
 }
}

/* Shift the existing full-height NAMs image toward the text without resizing it. */
@media(min-width:851px){
 .platforms-hero-visual img{
   position:relative;
   left:-7%;
 }
}

/* Clean, text-led Platforms hero: remove the NAMs image and all overlay effects. */
.platforms-split-hero{
  display:block;min-height:0;isolation:auto;
  background:#fbfaf7;padding:0;overflow:visible;
}
.platforms-split-hero::before{content:none;display:none;}
.platforms-hero-copy{
  width:min(100%,1180px);min-height:0;
  margin:0 auto;
  padding:clamp(48px,6vw,90px) clamp(24px,4vw,56px);
}
.platforms-hero-copy h1{font-size:clamp(2.35rem,3.7vw,4rem);}
.platforms-hero-copy h2,.platforms-hero-copy p{max-width:850px;}
@media(max-width:850px){
 .platforms-split-hero{min-height:0;}
 .platforms-hero-copy{width:100%;min-height:0;padding:48px 26px;}
 .platforms-split-hero::before{content:none;display:none;}
}
