/* PROTAR v24.8 — responsive hero stage
   Blueprint and cards now share one responsive coordinate system.
   Hero copy remains aligned with the normal 1180px site shell. */

/* Final hero paint is available immediately; detailed geometry activates after the overlay mounts. */
.hero{background:#001635!important}
.hero::before{display:none!important}
.hero-grid,.hero-glow{display:none!important}

.hero.hero--v247{
  box-sizing:border-box;
  min-height:clamp(720px,90svh,820px)!important;
  padding:clamp(112px,13vh,145px) 0 clamp(72px,8vh,94px)!important;
  background:#001635!important;
  overflow:hidden!important;
}
.hero.hero--v247 .hero-grid,.hero.hero--v247 .hero-glow{display:none!important}
.hero.hero--v247 .scroll-cue{z-index:6}

/* Wider hero only. The padding calculation keeps the copy left edge exactly aligned
   with the standard 1180px site shell while giving the visual extra room on the right. */
.hero-layout--v247{
  --hero-wide:min(1480px,calc(100vw - 48px));
  --site-wide:min(1180px,calc(100vw - 48px));
  width:var(--hero-wide)!important;
  max-width:none!important;
  box-sizing:border-box;
  margin-inline:auto!important;
  padding-left:calc((var(--hero-wide) - var(--site-wide))/2)!important;
  grid-template-columns:minmax(400px,455px) minmax(0,1fr)!important;
  gap:clamp(28px,2.7vw,46px)!important;
  align-items:center!important;
}
.hero-layout--v247 .hero-copy{
  position:relative;
  z-index:5;
  max-width:455px;
  padding-bottom:0!important;
}
.hero-layout--v247 .hero-copy h1{max-width:455px}
.hero-layout--v247 .hero-lede{max-width:455px}
.hero-layout--v247 .hero-support{max-width:445px}

/* Hide the original React dashboard before the replacement mounts. */
.energy-console{visibility:hidden!important}
.energy-console.energy-console--v247{
  visibility:visible!important;
  display:block!important;
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.energy-console.energy-console--v247::before{display:none!important}

/* One stage = one coordinate system. Image and every card scale and move together. */
.pv247-stage{
  position:relative;
  width:100%;
  max-width:860px;
  margin-left:auto;
  aspect-ratio:1672/941;
  min-width:0;
  overflow:visible;
  isolation:isolate;
}
.pv247-blueprint{
  position:absolute;
  inset:0;
  z-index:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  opacity:.93;
  pointer-events:none;
  user-select:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.12) 6%,rgba(0,0,0,.68) 16%,#000 27%,#000 100%);
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.12) 6%,rgba(0,0,0,.68) 16%,#000 27%,#000 100%);
}
.pv247-stage::after{
  content:"";
  position:absolute;
  z-index:1;
  inset:-2% auto -2% -2%;
  width:24%;
  pointer-events:none;
  background:linear-gradient(90deg,#001635 0%,rgba(0,22,53,.84) 30%,rgba(0,22,53,0) 100%);
}

.pv247-card{
  position:absolute;
  z-index:4;
  display:flex;
  gap:clamp(7px,.65vw,9px);
  width:clamp(146px,22.5%,186px);
  box-sizing:border-box;
  padding:clamp(10px,.75vw,13px) clamp(11px,.82vw,14px);
  color:#fff;
  background:linear-gradient(180deg,rgba(8,30,59,.95),rgba(6,24,49,.97));
  border:1px solid rgba(216,180,87,.50);
  border-radius:clamp(11px,.75vw,13px);
  box-shadow:0 14px 32px rgba(2,12,31,.20);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
.pv247-card__icon{
  flex:0 0 auto;
  width:clamp(14px,1.05vw,18px);
  height:clamp(14px,1.05vw,18px);
  color:#e2bb4e;
  margin-top:1px;
}
.pv247-card__icon svg{display:block;width:100%;height:100%}
.pv247-card b{display:block;font-size:clamp(10px,.68vw,12px);line-height:1.28;font-weight:730}
.pv247-card p{margin:4px 0 0;color:#b9c6d5;font-size:clamp(8px,.55vw,10px);line-height:1.42}

/* Semantic anchors in the same 1312×941 stage. */
.pv247-card--grid{left:2%;top:27%}
.pv247-card--solar{left:49%;top:17%}
.pv247-card--contract{right:0;top:42%}
.pv247-card--battery{right:1%;bottom:15%}
.pv247-card--ev{left:35%;bottom:3%}

.pv247-core{
  position:absolute;
  z-index:5;
  left:56%;
  top:52%;
  transform:translate(-50%,-50%);
  width:clamp(180px,25%,205px);
  box-sizing:border-box;
  padding:clamp(12px,.9vw,15px) clamp(14px,1.05vw,18px) clamp(11px,.8vw,14px);
  text-align:center;
  color:#fff;
  background:linear-gradient(180deg,rgba(10,35,67,.97),rgba(7,27,54,.985));
  border:1px solid rgba(216,180,87,.72);
  border-radius:clamp(12px,.85vw,14px);
  box-shadow:0 18px 42px rgba(2,12,31,.25);
}
.pv247-core__brand{display:flex;justify-content:center;align-items:center;gap:8px;font-size:clamp(14px,1.05vw,17px);font-weight:760}
.pv247-core__brand svg{width:18px;height:18px;color:#f5f8fb}
.pv247-core strong{display:block;margin-top:6px;color:#e8c45d;font-size:clamp(13px,.92vw,15px)}
.pv247-core small{display:block;margin-top:4px;color:#cad5e0;font-size:clamp(8px,.55vw,10px);letter-spacing:.08em;text-transform:uppercase}

/* Laptop range: the entire shared visual stage shrinks fluidly; coordinates do not change. */
@media (min-width:1081px) and (max-width:1380px){
  .hero-layout--v247{
    --hero-wide:calc(100vw - 40px);
    --site-wide:min(1180px,calc(100vw - 40px));
    grid-template-columns:minmax(390px,440px) minmax(0,1fr)!important;
    gap:clamp(22px,2.2vw,34px)!important;
  }
  .pv247-stage{max-width:820px}
  .pv247-card{width:clamp(144px,23%,172px)}
  .pv247-core{width:clamp(176px,25%,200px)}
}

/* Tablet/mobile: preserve the product story and remove the dense desktop composition. */
@media (max-width:1080px){
  .hero.hero--v247{
    position:relative!important;
    min-height:auto!important;
    padding:122px 0 76px!important;
    isolation:isolate;
  }
  .hero.hero--v247::after{
    content:"";
    position:absolute;
    inset:72px 0 0 0;
    z-index:1;
    pointer-events:none;
    background-image:url("/protar-blueprint-stage-v24.8.png?v=2483");
    background-repeat:no-repeat;
    background-position:center 44px;
    background-size:min(138vw,820px) auto;
    opacity:.22;
    filter:brightness(1.2) contrast(1.18) saturate(1.04);
    -webkit-mask-image:radial-gradient(ellipse at center, rgba(0,0,0,.95) 0%, rgba(0,0,0,.78) 34%, rgba(0,0,0,.34) 64%, transparent 96%);
    mask-image:radial-gradient(ellipse at center, rgba(0,0,0,.95) 0%, rgba(0,0,0,.78) 34%, rgba(0,0,0,.34) 64%, transparent 90%);
  }
  .hero-layout--v247{
    position:relative;
    z-index:2;
    width:min(100% - 48px,1180px)!important;
    padding-left:0!important;
    grid-template-columns:1fr!important;
    gap:0!important;
  }
  .hero-layout--v247 .hero-copy{max-width:760px}
  .hero-layout--v247 .hero-copy h1,.hero-layout--v247 .hero-lede,.hero-layout--v247 .hero-support{max-width:680px}
  .energy-console.energy-console--v247{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;overflow:hidden!important}
}
@media (max-width:820px){
  .hero.hero--v247::after{
    inset:94px -8% 0 -8%;
    background-position:center 62px;
    background-size:min(148vw,800px) auto;
    opacity:.19;
    filter:brightness(1.18) contrast(1.16) saturate(1.03);
  }
}
@media (max-width:560px){
  .hero.hero--v247::after{
    inset:102px -4% 0 -4%;
    background-position:center 88px;
    background-size:min(158vw,760px) auto;
    opacity:.17;
    filter:brightness(1.16) contrast(1.14) saturate(1.03);
  }
}
@media (max-width:820px){.hero-layout--v247{width:min(100% - 32px,680px)!important}}
@media (max-width:520px){.hero-layout--v247{width:calc(100% - 26px)!important}}

/* Compact founder strip — enlarged desktop version. */
.protar-founder-compact{
  padding:54px 0 58px;
  background:#f5f7fb;
  border-top:1px solid rgba(7,27,53,.055);
  border-bottom:1px solid rgba(7,27,53,.055)
}

.protar-founder-compact__inner{
  display:grid;
  grid-template-columns:200px minmax(0,720px);
  gap:32px;
  align-items:center;
  max-width:1000px
}

.protar-founder-compact__photo{
  width:200px;
  height:238px;
  margin:0;
  overflow:hidden;
  border-radius:20px;
  background:#dfe7f1;
  box-shadow:0 14px 30px rgba(7,27,53,.12)
}

.protar-founder-compact__photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 34%
}

.protar-founder-compact__eyebrow{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 10px;
  color:#163456;
  font-size:10px;
  font-weight:750;
  letter-spacing:.13em;
  text-transform:uppercase
}

.protar-founder-compact__eyebrow:before{
  content:"";
  width:24px;
  height:1px;
  background:#d8b44f
}

.protar-founder-compact h3{
  margin:0 0 8px;
  color:#071b35;
  font-size:23px;
  line-height:1.2;
  font-weight:760
}

.protar-founder-compact__role{
  color:#d2aa3f;
  font-weight:650
}

.protar-founder-compact p{
  margin:0;
  max-width:700px;
  color:#465a70;
  font-size:14px;
  line-height:1.7
}

@media(max-width:900px){
  .protar-founder-compact{
    padding:44px 0 48px
  }

  .protar-founder-compact__inner{
    grid-template-columns:112px 1fr;
    gap:20px;
    align-items:start
  }

  .protar-founder-compact__photo{
    width:112px;
    height:138px;
    border-radius:15px
  }

  .protar-founder-compact h3{
    font-size:20px
  }

  .protar-founder-compact p{
    font-size:13px;
    line-height:1.65
  }
}

@media(max-width:560px){
  .protar-founder-compact{
    padding:38px 0 42px
  }

  .protar-founder-compact__inner{
    grid-template-columns:92px 1fr;
    gap:16px
  }

  .protar-founder-compact__photo{
    width:92px;
    height:116px;
    border-radius:13px
  }

  .protar-founder-compact__eyebrow{
    margin-bottom:7px;
    font-size:9px
  }

  .protar-founder-compact h3{
    margin-bottom:6px;
    font-size:18px
  }

  .protar-founder-compact p{
    font-size:12px;
    line-height:1.6
  }
}


/* PROTAR v24.8.2 — premium Performance Layer overlay system
   Peak & demand remains a core capability only; four object-bound use-case cards are balanced around the stage. */
@media (min-width:1081px){
  .pv248-stage{isolation:isolate}

  .pv248-stage .pv247-card{
    z-index:6;
    width:clamp(156px,21.5%,182px);
    min-height:62px;
    align-items:flex-start;
    gap:10px;
    padding:10px 12px 10px 10px;
    background:linear-gradient(145deg,rgba(8,30,59,.88),rgba(5,23,47,.94));
    border:1px solid rgba(220,184,83,.42);
    border-radius:9px;
    box-shadow:0 10px 28px rgba(1,11,28,.20), inset 0 1px 0 rgba(255,255,255,.025);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }
  .pv248-stage .pv247-card::before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:1px;
    background:linear-gradient(180deg,transparent 10%,rgba(229,190,82,.85) 50%,transparent 90%);
    opacity:.8;
  }
  .pv248-stage .pv247-card__icon{
    display:grid;
    place-items:center;
    flex:0 0 clamp(28px,2.3vw,34px);
    width:clamp(28px,2.3vw,34px);
    height:clamp(28px,2.3vw,34px);
    margin:0;
    color:#e5bb48;
    border:1px solid rgba(229,187,72,.22);
    border-radius:50%;
    background:radial-gradient(circle at 45% 40%,rgba(229,187,72,.18),rgba(229,187,72,.07) 60%,rgba(229,187,72,.02));
    box-shadow:inset 0 0 18px rgba(229,187,72,.045);
  }
  .pv248-stage .pv247-card__icon svg{width:55%;height:55%;stroke-width:1.65}
  .pv248-stage .pv247-card__copy{min-width:0;padding-top:1px}
  .pv248-stage .pv247-card b{
    font-size:clamp(10px,.69vw,12px);
    line-height:1.25;
    letter-spacing:-.01em;
    font-weight:720;
  }
  .pv248-stage .pv247-card p{
    margin-top:4px;
    color:rgba(213,222,232,.82);
    font-size:clamp(8px,.52vw,9.5px);
    line-height:1.38;
  }
  .pv248-stage .pv247-card__node{display:none!important}

  /* Intentional semantic placement around the installation. */
  .pv248-stage .pv247-card--grid{left:6.5%;top:34%}
  .pv248-stage .pv247-card--solar{left:58%;top:16%}
  .pv248-stage .pv247-card--battery{right:2%;top:68%;bottom:auto}
  .pv248-stage .pv247-card--ev{left:36%;top:80%;bottom:auto}

  /* Central product concept becomes a floating title, not another card. */
  .pv248-stage .pv248-core{
    z-index:7;
    left:55.5%;
    top:44.5%;
    width:min(44%,390px);
    padding:0;
    color:#fff;
    background:transparent;
    border:0;
    border-radius:0;
    box-shadow:none;
    text-align:center;
    filter:drop-shadow(0 9px 18px rgba(1,10,27,.28));
  }
  .pv248-stage .pv248-core::before{
    content:"";
    position:absolute;
    z-index:-1;
    left:50%;
    top:49%;
    transform:translate(-50%,-50%);
    width:126%;
    height:168%;
    border-radius:50%;
    background:radial-gradient(ellipse,rgba(7,27,53,.82) 0%,rgba(7,27,53,.54) 38%,rgba(7,27,53,.18) 64%,transparent 78%);
    pointer-events:none;
  }
  .pv248-core__mark{
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    margin:0 auto 8px;
    color:#f4f7fa;
  }
  .pv248-core__mark svg{width:100%;height:100%;stroke-width:1.55}
  .pv248-stage .pv247-core__brand{
    display:block;
    font-size:clamp(18px,1.42vw,23px);
    line-height:1;
    font-weight:770;
    letter-spacing:-.02em;
    text-shadow:0 2px 16px rgba(1,12,31,.65);
  }
  .pv248-stage .pv247-core__brand svg{display:none}
  .pv248-stage .pv248-core strong{
    display:block;
    margin-top:7px;
    color:#e6bd52;
    font-size:clamp(15px,1.12vw,18px);
    line-height:1.15;
    font-weight:650;
    letter-spacing:-.01em;
    text-shadow:0 0 18px rgba(230,189,82,.15);
  }
  .pv248-core__chips{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:nowrap;
    gap:7px;
    margin-top:14px;
  }
  .pv248-core__chips span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:27px;
    padding:5px 9px;
    border:1px solid rgba(222,184,80,.42);
    border-radius:7px;
    color:rgba(241,246,250,.92);
    background:rgba(5,24,48,.72);
    box-shadow:0 6px 18px rgba(2,12,31,.14),inset 0 1px 0 rgba(255,255,255,.025);
    backdrop-filter:blur(7px);
    -webkit-backdrop-filter:blur(7px);
    font-size:clamp(8px,.53vw,9.5px);
    line-height:1.15;
    white-space:nowrap;
  }
}

@media (min-width:1081px) and (max-width:1380px){
  .pv248-stage .pv247-card{width:clamp(142px,22.5%,164px);padding:9px 10px 9px 9px;gap:8px}
  .pv248-stage .pv247-card__icon{flex-basis:28px;width:28px;height:28px}
  .pv248-stage .pv248-core{width:min(46%,360px);left:55.5%;top:45%}
  .pv248-core__chips{gap:5px;margin-top:10px}
  .pv248-core__chips span{padding:5px 7px;min-height:27px}
  .pv248-stage .pv247-card--ev{left:37%;top:81%;bottom:auto}
}
