/* =========================================================================
   MAKTONIC — Products page
   Loaded after main.css, which supplies the tokens, nav, footer and buttons.
   Everything here is scoped to sections that only exist on this page.
   ========================================================================= */

/* ================================================================== HERO */
.prd-hero{position:relative;overflow:hidden}
.prd-hero_container{
  display:grid;grid-template-columns:1fr 1fr;gap:var(--s-60);
  align-items:center;height:100vh;min-height:46rem;
  padding-top:var(--s-120);padding-bottom:var(--s-120);
}
.prd-hero_content{display:flex;flex-direction:column;gap:var(--s-24);max-width:30rem}
.prd-hero_content h1{margin:0}
.prd-hero_content .text--l{color:var(--gray-700)}
.prd-hero_buttons{display:flex;flex-wrap:wrap;gap:var(--s-12);margin-top:var(--s-8)}

.prd-hero_visual{position:relative;display:flex;align-items:center;justify-content:center;height:100%}
.prd-hero_art{position:relative;width:100%;max-width:36rem;aspect-ratio:6.7/5.9;display:grid;place-items:center}
.prd-hero_beams{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.prd-hero_beam{position:absolute;width:0;height:200vh;border-right:1px solid var(--gray-200)}
.prd-hero_beam.b2{transform:rotate(120deg)}
.prd-hero_beam.b3{transform:rotate(240deg)}
.prd-hero_ring{position:absolute;aspect-ratio:1;border:1px solid var(--gray-200);border-radius:50%}
.prd-hero_ring.r1{width:44%}
.prd-hero_ring.r2{width:72%}
.prd-hero_ring.r3{width:100%}
/* the dark hub at the centre of the diagram */
.prd-hero_hub{
  position:relative;z-index:2;width:9.5rem;height:9.5rem;border-radius:50%;
  background-color:var(--navy-hub,#1d3b33);color:var(--white);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;
  box-shadow:0 30px 70px rgba(8,144,108,.28);
}
.prd-hero_hub img{width:2.5rem;height:auto}
.prd-hero_hub span{font-size:var(--f-text-s);letter-spacing:var(--ls-1);opacity:.85}
.prd-hero_node{
  position:absolute;width:.75rem;height:.75rem;border-radius:50%;
  background:var(--green-500);box-shadow:0 0 0 5px rgba(8,144,108,.12);
}

/* ============================================================= CHALLENGE */
.prd-challenge_descr{display:flex;flex-direction:column;gap:var(--s-24);width:100%}
@media (min-width:1280px){ .prd-challenge_descr{width:62%;margin-left:auto} }

/* ================================================== THE SCHEME (pinned) */
.prd-scheme_wrapp{background-color:var(--white);width:100%;position:relative}
.prd-scheme_stage{
  position:relative;width:100%;height:100vh;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.prd-scheme_beams{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:0;transform:rotate(-10deg)}
.prd-scheme_beam{position:absolute;width:0;height:300vh;border-right:1px solid var(--gray-100)}
.prd-scheme_beam.b2{transform:rotate(72deg)}
.prd-scheme_beam.b3{transform:rotate(144deg)}
.prd-scheme_beam.b4{transform:rotate(216deg)}
.prd-scheme_beam.b5{transform:rotate(288deg)}

.prd-scheme_row{
  position:relative;z-index:2;width:100%;max-width:71.25rem;height:35.5rem;
  margin-inline:auto;display:flex;align-items:center;justify-content:center;
  padding-inline:var(--s-20);
}
.prd-scheme_label{
  position:absolute;top:0;font-size:var(--f-text-s);letter-spacing:var(--ls-1);
  color:var(--gray-400);text-transform:uppercase;
}
.prd-scheme_label.is--left{left:var(--s-20);width:11rem}
.prd-scheme_label.is--right{right:var(--s-20);width:12rem;text-align:right}

.prd-scheme_side{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.prd-scheme_side.is--left{margin-right:auto;gap:2rem;width:auto}
.prd-scheme_side.is--right{margin-left:auto;gap:5rem;width:auto}
/* each source and capability is a tinted pill sized to its label */
.prd-scheme_item{
  display:inline-flex;align-items:center;gap:var(--s-12);white-space:nowrap;
  padding:.75rem 1.25rem;border-radius:var(--s-12);
  background-color:var(--blue-100);color:var(--blue-500);
}
.prd-scheme_side.is--right .prd-scheme_item{background-color:var(--green-100);color:var(--green-500)}
.prd-scheme_item .ico{width:1.5rem;height:1.5rem;flex:none}
.prd-scheme_item .ico svg{width:100%;height:100%}
.prd-scheme_item .lbl{font-size:1.375rem;letter-spacing:var(--ls-3);color:var(--black)}

/* the wires are one SVG spanning the row, drawn from measured positions */
.prd-scheme_wires{
  position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;z-index:1;overflow:visible;
}
.prd-scheme_wires path{fill:none;stroke-width:1;}
.prd-scheme_wires path.is--in{stroke:var(--gray-300)}
.prd-scheme_wires path.is--out{stroke:var(--green-500)}

/* the hub */
.prd-scheme_hub{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  z-index:10;width:24.125rem;height:24.125rem;border-radius:50%;
  background-color:var(--green-500);color:var(--white);text-align:center;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s-20);
  overflow:hidden;
}
.prd-scheme_hub::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:url(../img/6a66fa2a7b405f421adeae37_Pattern.png);
  background-size:cover;background-position:center;opacity:.75;
}
.prd-scheme_hub-inner{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:var(--s-20);width:15.625rem}
.prd-scheme_hub img{width:3.75rem;height:auto}
.prd-scheme_hub .t{font-size:var(--s-32);line-height:var(--lh-120);font-weight:500;letter-spacing:var(--ls-3)}
.prd-scheme_hub-list{display:flex;align-items:center;justify-content:center;gap:var(--s-6);font-size:1rem}
.prd-scheme_hub-list i{width:var(--s-4);height:var(--s-4);border-radius:50%;background:rgba(255,255,255,.6);display:block}

/* the hub grows into a full panel carrying the explanation */
.prd-scheme_mask{
  position:absolute;left:50%;top:50%;z-index:11;
  width:42rem;height:42rem;border-radius:50%;
  background-color:var(--green-500);color:var(--white);overflow:hidden;
  transform:translate(-50%,-50%) scale(0);
}
/* without JS the panel would never scale in, so leave it readable */
.js-off .prd-scheme_mask{transform:translate(-50%,-50%) scale(1)}

.prd-scheme_mask-title{
  position:absolute;inset:0;display:grid;place-items:center;
  padding:0 4.5rem;text-align:center;
}
.prd-scheme_mask-title .title--m{font-size:1.75rem;line-height:var(--lh-120);max-width:24rem}

/* The copy sits below the circle and travels up through it, clipped by the
   circle's own overflow, so each paragraph reads as it passes the middle. */
.prd-scheme_mask-scroll{
  position:absolute;left:50%;top:76%;transform:translateX(-50%);
  width:22rem;display:flex;flex-direction:column;gap:7rem;text-align:left;
}
.prd-scheme_mask-scroll p{
  font-size:1.375rem;line-height:1.45;letter-spacing:var(--ls-2);
  color:var(--white);opacity:0;margin:0;
}

/* ============================================================ HOW WE WORK */
/* the expanding circle hands straight over to this section's green */
.prd-hiw{margin-top:-12vh}

.prd-hiw{position:relative;z-index:2;background-color:var(--green-500);color:var(--white);width:100%}
.prd-hiw_container{display:flex;flex-direction:column;gap:var(--s-60)}
.prd-hiw_header{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--s-40)}
.prd-hiw_title{display:flex;flex-direction:column;gap:var(--s-24);max-width:36rem}
.prd-hiw_title p{color:rgba(255,255,255,.78);max-width:26rem}
.prd-hiw_content{display:grid;grid-template-columns:1fr 3fr;gap:0}
.prd-hiw_phase{position:relative}
.prd-hiw_phase-sticky{position:sticky;top:38vh}
.text--90{font-size:4.375rem;line-height:var(--lh-120);letter-spacing:var(--ls-3);font-weight:500}
.prd-hiw_list{display:flex;flex-direction:column;gap:var(--s-24)}
.prd-hiw_item{
  display:flex;align-items:flex-end;gap:2.25rem;width:100%;
  color:#7dc3b0;transition:color .35s ease-in-out;
}
.prd-hiw_item.is--on{color:var(--white)}
.prd-hiw_item-sub{margin-bottom:var(--s-20)}
.prd-hiw_item-sub .text--l{color:inherit;opacity:.85}
.prd-hiw_foot{display:grid;grid-template-columns:1fr 3fr;gap:0;margin-top:var(--s-60)}
.prd-hiw_foot .title--m{max-width:44rem}

/* ============================================================ WHITE PAPER */
.prd-paper{
  position:relative;z-index:3;width:100%;overflow:clip;
  padding-top:var(--s-100);padding-bottom:var(--s-140);
  background-color:var(--gray-50);
}
.prd-paper_inner{
  position:relative;display:flex;flex-direction:column;align-items:center;
  gap:var(--s-32);padding-block:var(--s-80);
}
.prd-paper_title{
  position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;
  gap:var(--s-24);max-width:46.25rem;margin-inline:auto;text-align:center;
}
.prd-paper_title p{max-width:30rem;color:var(--gray-600)}
.prd-paper_bg{position:absolute;inset:0;z-index:0;display:grid;place-items:center;transform:rotate(-10deg);pointer-events:none}
.prd-paper_line{position:absolute;width:0;height:300vh;border-right:1px solid var(--gray-100)}
.prd-paper_line.l2{transform:rotate(72deg)}
.prd-paper_line.l3{transform:rotate(144deg)}
.prd-paper_line.l4{transform:rotate(216deg)}
.prd-paper_line.l5{transform:rotate(288deg)}

/* ========================================================= FOUNDATION GRID */
.prd-foundation{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-20)}
.prd-foundation_card{
  display:flex;flex-direction:column;justify-content:space-between;gap:var(--s-40);
  min-height:34.375rem;padding:2rem;border-radius:var(--s-24);
  background-color:var(--gray-50);position:relative;overflow:hidden;
}
.prd-foundation_card.is--coral{background-color:var(--coral-500);color:var(--white)}
.prd-foundation_card.is--green{background-color:var(--green-500);color:var(--white)}
.prd-foundation_top{display:flex;flex-direction:column;gap:var(--s-20);align-items:flex-start;width:100%}
.prd-foundation_num{font-size:4.375rem;line-height:1;letter-spacing:var(--ls-3);font-weight:500;color:var(--gray-200)}
.prd-foundation_card.is--coral .prd-foundation_num{color:var(--coral-200)}
.prd-foundation_card.is--green .prd-foundation_num{color:var(--green-200)}
.prd-foundation_fig{
  width:100%;aspect-ratio:3.94/2.22;border-radius:var(--s-20);overflow:hidden;position:relative;
}
.prd-foundation_fig img{width:100%;height:100%;object-fit:cover;display:block}
.prd-foundation_text{display:flex;flex-direction:column;gap:var(--s-12)}
.prd-foundation_card .title--m.is--green{color:var(--green-500)}
.prd-foundation_card p{opacity:.9}

/* ======================================================= PARTNERSHIP CARDS */
/* a breath between the last card and the footer */
.prd-partner-track{position:relative;padding-bottom:var(--s-120)}
.prd-partner{
  position:relative;height:100vh;overflow:hidden;
  display:flex;flex-direction:column;justify-content:center;
  padding-top:var(--s-80);padding-bottom:var(--s-80);
}
/* overflow:hidden clips the horizontal travel, but it would also cut the card
   bottoms, the hover lift and its shadow — so pad the rail and pull the
   padding back off with a matching negative margin */
.prd-partner_rail{
  width:100%;overflow:hidden;
  /* never let the column squeeze the rail — overflow:hidden would then cut
     the cards, which is what clipped the last line of body copy */
  flex:none;
  padding:2rem 0 3.5rem;margin:calc(var(--s-60) - 2rem) 0 -3.5rem;
}
/* the row starts flush with the container but is free to run off the right
   edge of the screen, so the next card is always half in view */
.prd-partner_grid{
  display:flex;gap:var(--s-24);width:max-content;
  padding-left:calc(var(--s-40) + (100vw - var(--s-80) - min(100vw - var(--s-80), var(--container))) / 2);
  padding-right:12vw;
}
.prd-partner_card{
  flex:none;width:27rem;
  display:flex;flex-direction:column;gap:var(--s-32);
  padding:2rem;border-radius:var(--s-24);background-color:var(--white);
  box-shadow:0 2px 4px rgba(21,23,26,.03);
  transition:transform .45s var(--ease),box-shadow .45s var(--ease);
}
.prd-partner_fig{
  width:12.5rem;aspect-ratio:240/280;margin-inline:auto;
  border-radius:var(--s-16);overflow:hidden;
}
.prd-partner_fig img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .55s var(--ease);
}
.prd-partner_text{display:flex;flex-direction:column;gap:var(--s-16)}
.prd-partner_text .title--s{color:var(--green-500);margin:0}
.prd-partner_text p{margin:0;color:var(--gray-800)}

/* the row closes on a statement rather than another feature */
.prd-partner_card.is--accent{
  background-color:var(--coral-500);color:var(--white);justify-content:flex-start;
}
.prd-partner_statement{
  margin:0;font-size:1.75rem;line-height:1.22;
  letter-spacing:var(--ls-3);font-weight:500;
}

/* hover lifts the card and eases the figure forward */
@media (hover:hover){
  .prd-partner_card:hover{
    transform:translateY(-10px);
    box-shadow:0 26px 50px rgba(8,144,108,.16),0 6px 14px rgba(8,144,108,.08);
  }
  .prd-partner_card:hover .prd-partner_fig img{transform:scale(1.06)}
}

/* the panel is 42rem tall — taller than a short window, so it has to come
   down with the viewport or the copy clips against the stage */
@media (max-height:860px){
  .prd-scheme_mask{width:34rem;height:34rem}
  .prd-scheme_mask-title{padding:0 3.5rem}
  .prd-scheme_mask-title .title--m{font-size:1.375rem;max-width:20rem}
  .prd-scheme_mask-scroll{width:19rem;gap:5rem}
  .prd-scheme_mask-scroll p{font-size:1.125rem}
  .prd-scheme_hub{width:20rem;height:20rem}
  .prd-scheme_hub .t{font-size:1.5rem}
}
@media (max-height:740px){
  .prd-scheme_mask{width:29rem;height:29rem}
  .prd-scheme_mask-title .title--m{font-size:1.1875rem;max-width:17rem}
  .prd-scheme_mask-scroll{width:16.5rem;gap:4rem}
  .prd-scheme_mask-scroll p{font-size:1rem}
  .prd-scheme_hub{width:17rem;height:17rem}
  .prd-scheme_hub .t{font-size:1.25rem}
}

/* Short windows: the section is 100vh, so the card has to shrink to fit or
   it overflows and gets clipped. Keyed to height, not width. */
@media (max-height:880px){
  .prd-partner{padding-top:var(--s-48);padding-bottom:var(--s-48)}
  .prd-partner_rail{padding:1.25rem 0 2rem;margin:calc(var(--s-40) - 1.25rem) 0 -2rem}
  .prd-partner_card{padding:1.5rem;gap:var(--s-24)}
  .prd-partner_fig{width:10rem}
  .prd-partner_statement{font-size:1.5rem}
}
@media (max-height:760px){
  .prd-partner{padding-top:var(--s-32);padding-bottom:var(--s-32)}
  .prd-partner_card{gap:var(--s-20)}
  .prd-partner_fig{width:8.5rem}
  .prd-partner_statement{font-size:1.3125rem}
}

/* ============================================================== RESPONSIVE */
@media (max-width:1279px){
  .prd-scheme_row{max-width:100%}
  .prd-scheme_hub{width:20rem;height:20rem}
  .prd-scheme_mask{width:32rem;height:32rem}
  .text--90{font-size:3.5rem}
  .prd-hiw_content,.prd-hiw_foot{grid-template-columns:1fr 2fr}
  .prd-partner_card{width:23rem}
}

@media (max-width:991px){
  .prd-hero_container{
    grid-template-columns:1fr;height:auto;min-height:0;gap:var(--s-60);
    padding-top:8.625rem;padding-bottom:var(--s-80);
  }
  .prd-hero_content{max-width:none}

  /* the pinned diagram unstacks into a plain three-part explainer */
  .prd-scheme_wrapp{height:auto;padding-block:var(--s-80)}
  .prd-scheme_stage{height:auto;display:block}
  .prd-scheme_beams{display:none}
  .prd-scheme_row{
    height:auto;flex-direction:column;gap:var(--s-40);
    max-width:none;padding-inline:0;
  }
  .prd-scheme_label{position:static;width:auto !important;text-align:left !important}
  .prd-scheme_side{width:100% !important;margin:0 !important;align-items:flex-start !important;gap:var(--s-20) !important}
  .prd-scheme_item .wire{display:none}
  .prd-scheme_hub{position:static;transform:none;width:100%;height:auto;border-radius:var(--s-24);padding:var(--s-60) var(--s-24)}
  .prd-scheme_hub::before{display:none}
  .prd-scheme_mask{
    position:static;transform:none;width:100%;height:auto;
    border-radius:var(--s-24);margin-top:var(--s-40);
  }
  .prd-scheme_mask-in{position:static;opacity:1;padding:var(--s-40) var(--s-24);gap:var(--s-24)}
  .prd-scheme_mask-body{text-align:left}

  .prd-hiw_content,.prd-hiw_foot{grid-template-columns:1fr;gap:var(--s-24)}
  .prd-hiw_phase-sticky{position:static}
  .prd-hiw_item{flex-direction:column;align-items:flex-start;gap:var(--s-8)}
  .prd-hiw_item.is--on{color:var(--white)}
  .prd-hiw_item{color:var(--white)}
  .prd-hiw_item-sub{margin-bottom:0}

  .prd-foundation{grid-template-columns:1fr}
  .prd-foundation_card{min-height:0}

  /* the scrub gives way to a plain swipeable rail */
  .prd-partner{height:auto;padding-block:var(--s-80)}
  .prd-partner_rail{overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .prd-partner_rail::-webkit-scrollbar{display:none}
  .prd-partner_grid{gap:var(--s-16);padding-right:var(--s-24);transform:none !important}
  .prd-partner_card{width:20rem;padding:1.5rem;gap:var(--s-24)}
}

@media (max-width:600px){
  .prd-hero_buttons .button,.prd-hero_buttons{width:100%}
  .prd-hero_art{max-width:22rem}
  .prd-hero_hub{width:7.5rem;height:7.5rem}
  .text--90{font-size:2.75rem}
  .prd-foundation_num{font-size:3rem}
  .prd-foundation_card{padding:var(--s-24)}
  .prd-partner_card{width:16.5rem}
  .prd-partner_fig{width:10rem}
}
