/* NBC P3 cascade containment v7329 */
@layer nbc.legacy{
/*! NBC v7.064 · P2 Case Evidence Hero
    Scope: case-studies hero + hero-to-ledger transition only.
    Intent: editorial evidence / outcome composition; no card wall, no particle motif. */

body.page-template-case-index[data-p2-case-hero="v7064"]{
  --p2-case-paper:#edf2ed;
  --p2-case-muted:rgba(232,238,232,.64);
  --p2-case-dim:rgba(232,238,232,.42);
  --p2-case-line:rgba(220,236,226,.14);
  --p2-case-line-strong:rgba(220,236,226,.24);
  --p2-case-mint:#9ad9aa;
  --p2-case-deep:#07100b;
}

/* HERO — one continuous evidence field, deliberately without a visual container. */
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero{
  position:relative!important;
  display:block!important;
  min-height:clamp(790px,92svh,960px)!important;
  padding:0!important;
  overflow:clip!important;
  border:0!important;
  background:
    radial-gradient(60% 70% at 84% 34%,rgba(80,137,94,.11),transparent 72%),
    linear-gradient(180deg,rgba(7,16,11,.18) 0%,rgba(7,16,11,.02) 66%,rgba(7,16,11,.32) 100%)!important;
  isolation:isolate;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,transparent 0 64%,rgba(220,236,226,.045) 64% calc(64% + 1px),transparent calc(64% + 1px)),
    linear-gradient(180deg,transparent 0 78%,rgba(220,236,226,.04) 78% calc(78% + 1px),transparent calc(78% + 1px));
  opacity:.9;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:180px;
  pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(7,16,11,.64));
  z-index:-1;
}

body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero__frame{
  min-height:inherit;
  display:grid!important;
  grid-template-columns:minmax(0,1.18fr) minmax(360px,.66fr)!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  column-gap:clamp(64px,7vw,132px)!important;
  row-gap:40px!important;
  align-items:center!important;
  padding-top:clamp(164px,15vh,196px)!important;
  padding-bottom:0!important;
}

body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero__intro{
  align-self:center;
  padding-bottom:clamp(42px,6vh,78px);
  max-width:1040px;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero .case2-eyebrow{
  display:inline-flex!important;
  align-items:center;
  gap:12px;
  margin:0 0 25px!important;
  color:var(--p2-case-mint)!important;
  font:600 10px/1.3 var(--mono,"IBM Plex Mono",monospace)!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero .case2-eyebrow::before{
  content:"";
  width:28px;
  height:1px;
  background:currentColor;
  opacity:.7;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero .case2-title{
  max-width:12.6ch!important;
  margin:0!important;
  color:var(--p2-case-paper)!important;
  font-size:clamp(58px,5.65vw,94px)!important;
  line-height:.94!important;
  letter-spacing:-.058em!important;
  text-wrap:balance!important;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero .case2-title-line{
  display:inline!important;
  white-space:normal!important;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero .p2-evidence-hero__accent{
  color:rgba(211,232,216,.92);
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero__lead{
  max-width:47ch!important;
  margin:30px 0 0!important;
  color:var(--p2-case-muted)!important;
  font-size:clamp(17px,1.2vw,20px)!important;
  line-height:1.58!important;
}

/* Three real proof marks. No cards: only type, rhythm and a common evidence spine. */
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof{
  position:relative;
  align-self:center;
  margin-top:clamp(12px,4vh,54px);
  padding:0;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof::before{
  content:"";
  position:absolute;
  left:7px;
  top:44px;
  bottom:64px;
  width:1px;
  background:linear-gradient(180deg,var(--p2-case-line-strong),rgba(220,236,226,.04));
  pointer-events:none;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof__meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:0 0 12px;
  padding:0 0 16px 28px;
  border-bottom:1px solid var(--p2-case-line);
  color:var(--p2-case-dim);
  font:600 9px/1.3 var(--mono,"IBM Plex Mono",monospace);
  letter-spacing:.1em;
  text-transform:uppercase;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof__meta strong{
  color:var(--p2-case-mint)!important;
  font:inherit!important;
  font-weight:600!important;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark{
  position:relative;
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  gap:0 0;
  padding:22px 0 23px;
  border-bottom:1px solid var(--p2-case-line);
  color:inherit;
  text-decoration:none;
  background:transparent!important;
  transform:none!important;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark::before{
  content:"";
  position:absolute;
  left:4px;
  top:31px;
  width:7px;
  height:7px;
  border:1px solid rgba(154,217,170,.62);
  border-radius:50%;
  background:var(--p2-case-deep);
  box-shadow:0 0 0 4px rgba(154,217,170,.035);
  transition:background .22s ease,box-shadow .22s ease,transform .22s ease;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark__index{
  grid-column:1;
  grid-row:1 / 3;
  padding-top:2px;
  color:rgba(154,217,170,.48);
  font:600 8px/1 var(--mono,"IBM Plex Mono",monospace);
  letter-spacing:.04em;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark__metric{
  grid-column:2;
  color:var(--p2-case-paper)!important;
  font:520 clamp(35px,3.15vw,52px)/.98 Archivo,sans-serif!important;
  letter-spacing:-.05em!important;
  white-space:normal;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark__metric small{
  margin-left:.12em;
  color:rgba(232,238,232,.58);
  font-size:.43em;
  font-weight:500;
  letter-spacing:-.015em;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark__label{
  grid-column:2;
  margin-top:8px;
  color:var(--p2-case-muted);
  font-size:12px;
  line-height:1.45;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark:hover::before,
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark:focus-visible::before{
  background:var(--p2-case-mint);
  box-shadow:0 0 0 6px rgba(154,217,170,.07);
  transform:scale(1.08);
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark:focus-visible{
  outline:1px solid rgba(154,217,170,.5);
  outline-offset:7px;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof__note{
  margin:16px 0 0 28px;
  max-width:42ch;
  color:var(--p2-case-dim);
  font-size:11px;
  line-height:1.52;
}

/* Shared proof grammar bridges directly into the ledger below. */
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-journey{
  position:relative;
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-self:end;
  margin-top:auto;
  border-top:1px solid var(--p2-case-line-strong);
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-journey::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-92px;
  width:1px;
  height:92px;
  background:linear-gradient(180deg,var(--p2-case-line-strong),transparent);
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-journey__step{
  position:relative;
  min-height:76px;
  padding:18px clamp(18px,2vw,30px) 16px 0;
  color:var(--p2-case-dim);
  font:600 9px/1.35 var(--mono,"IBM Plex Mono",monospace);
  letter-spacing:.095em;
  text-transform:uppercase;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-journey__step:not(:last-child){
  border-right:1px solid rgba(220,236,226,.08);
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-journey__step b{
  display:block;
  margin-bottom:7px;
  color:var(--p2-case-paper);
  font:500 13px/1.2 Archivo,sans-serif;
  letter-spacing:-.01em;
  text-transform:none;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-journey__step span{
  color:var(--p2-case-mint);
  margin-right:8px;
}

/* HERO -> LEDGER — same dark canvas, no new box or surface. */
body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library.f2-case-ledger{
  position:relative;
  padding-top:0!important;
  background:
    radial-gradient(68% 54% at 72% 4%,rgba(67,126,82,.075),transparent 70%),
    linear-gradient(180deg,#07100b 0%,#08120c 46%,#07100b 100%)!important;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library.f2-case-ledger > .case2-wrap{
  padding-top:clamp(72px,6vw,104px)!important;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library-head{
  position:relative;
  display:grid!important;
  grid-template-columns:minmax(0,.9fr) minmax(320px,.55fr)!important;
  gap:18px clamp(52px,7vw,112px)!important;
  align-items:end!important;
  margin:0 0 clamp(42px,5vw,66px)!important;
  padding:0 0 28px!important;
  border-bottom:1px solid var(--p2-case-line)!important;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library-head .nbc-folio__meta{
  grid-column:1 / -1;
  margin:0!important;
  color:var(--p2-case-mint)!important;
  font:600 9px/1.35 var(--mono,"IBM Plex Mono",monospace)!important;
  letter-spacing:.1em!important;
  text-transform:uppercase!important;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library-head .nbc-folio__statement{
  grid-column:1;
  max-width:12ch!important;
  margin:0!important;
  color:var(--p2-case-paper)!important;
  font-size:clamp(34px,3.35vw,54px)!important;
  line-height:1!important;
  letter-spacing:-.045em!important;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library-head .nbc-folio__lead{
  grid-column:2;
  max-width:42ch!important;
  margin:0!important;
  color:var(--p2-case-muted)!important;
  font-size:15px!important;
  line-height:1.62!important;
}

/* First record picks up the hero's evidence spine without becoming a card. */
body.page-template-case-index[data-p2-case-hero="v7064"] .f2-case-ledger #proof-01{
  position:relative!important;
  padding-top:34px!important;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .f2-case-ledger #proof-01::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:0!important;
  top:-1px!important;
  width:72px!important;
  height:1px!important;
  background:var(--p2-case-mint)!important;
  opacity:.72!important;
}

@media (min-width:761px) and (max-width:1100px){
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero{
    min-height:auto!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero__frame{
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto auto!important;
    gap:0!important;
    padding-top:148px!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero__intro{
    padding-bottom:54px;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero .case2-title{
    max-width:12ch!important;
    font-size:clamp(60px,7.3vw,78px)!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    margin:0 0 54px;
    border-top:1px solid var(--p2-case-line-strong);
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof::before{display:none}
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof__meta{
    grid-column:1 / -1;
    padding:16px 0;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark{
    grid-template-columns:1fr;
    padding:22px 22px 24px 0;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark:not(:nth-last-of-type(1)){
    border-right:1px solid rgba(220,236,226,.08);
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark::before{display:none}
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark__index,
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark__metric,
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark__label{grid-column:1;grid-row:auto}
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark__index{margin-bottom:12px}
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark__metric{font-size:clamp(30px,4.1vw,44px)!important}
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof__note{grid-column:1 / -1;margin:14px 0 0}
}

@media (max-width:760px){
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero{
    min-height:auto!important;
    background:
      radial-gradient(94% 38% at 74% 21%,rgba(80,137,94,.09),transparent 74%),
      linear-gradient(180deg,rgba(7,16,11,.12),rgba(7,16,11,.34))!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero::before{
    background:linear-gradient(180deg,transparent 0 78%,rgba(220,236,226,.035) 78% calc(78% + 1px),transparent calc(78% + 1px));
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero__frame{
    display:block!important;
    min-height:0!important;
    padding-top:118px!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero__intro{
    padding-bottom:50px;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero .case2-eyebrow{
    margin-bottom:19px!important;
    font-size:8.5px!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero .case2-title{
    max-width:100%!important;
    font-size:clamp(40px,11.7vw,50px)!important;
    line-height:.96!important;
    letter-spacing:-.052em!important;
    text-wrap:pretty!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero__lead{
    max-width:35ch!important;
    margin-top:22px!important;
    font-size:16px!important;
    line-height:1.56!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof{
    margin:0 0 44px;
    padding-top:2px;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof__meta{
    padding:0 0 14px 24px;
    font-size:8px;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof::before{
    left:5px;
    top:35px;
    bottom:58px;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark{
    grid-template-columns:24px minmax(0,1fr);
    padding:18px 0 19px;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark::before{
    left:2px;
    top:25px;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark__metric{
    font-size:clamp(31px,9.5vw,39px)!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark__label{
    margin-top:6px;
    font-size:11px;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof__note{
    margin:14px 0 0 24px;
    font-size:10.5px;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-journey{
    margin-top:0;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-journey__step{
    min-height:67px;
    padding:14px 7px 13px 0;
    font-size:7.5px;
    letter-spacing:.07em;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-journey__step b{
    margin-bottom:5px;
    font-size:10.5px;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-journey__step span{
    display:block;
    margin-bottom:4px;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library.f2-case-ledger > .case2-wrap{
    padding-top:58px!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library-head{
    display:block!important;
    margin-bottom:28px!important;
    padding-bottom:24px!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library-head .nbc-folio__statement{
    max-width:100%!important;
    margin-top:12px!important;
    font-size:clamp(31px,8.7vw,38px)!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library-head .nbc-folio__lead{
    max-width:35ch!important;
    margin-top:15px!important;
    font-size:14px!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .f2-case-ledger #proof-01{
    padding-top:27px!important;
  }
}

@media (prefers-reduced-motion:no-preference){
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero__intro > *,
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof > *,
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-journey{
    opacity:0;
    transform:translateY(10px);
    animation:p2-evidence-enter .72s cubic-bezier(.2,.7,.2,1) forwards;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero__intro > :nth-child(1){animation-delay:.06s}
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero__intro > :nth-child(2){animation-delay:.12s}
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero__intro > :nth-child(3){animation-delay:.20s}
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof > :nth-child(1){animation-delay:.24s}
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof > :nth-child(2){animation-delay:.30s}
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof > :nth-child(3){animation-delay:.36s}
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof > :nth-child(4){animation-delay:.42s}
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-proof > :nth-child(5){animation-delay:.48s}
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-journey{animation-delay:.54s}
}
@keyframes p2-evidence-enter{to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark::before{transition:none!important}
}

/* P2 visual QA corrections: keep the monetary proof deliberate, never orphan the unit. */
@media (min-width:1101px){
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-proof-mark--money .p2-proof-mark__metric{
    font-size:clamp(31px,2.55vw,42px)!important;
    white-space:nowrap;
  }
}
@media (min-width:901px) and (max-width:1100px){
  body.page-template-case-index[data-p2-case-hero="v7064"] .p2-evidence-hero .case2-title{
    max-width:15.8ch!important;
    font-size:clamp(62px,6.6vw,70px)!important;
  }
}

/* Ledger bridge uses P2-owned primitives; legacy folio grid areas must not leak into it. */
body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library-head .p2-ledger-meta{
  grid-area:auto!important;
  grid-column:1 / -1!important;
  grid-row:1!important;
  display:block!important;
  margin:0!important;
  padding:0!important;
  color:var(--p2-case-mint)!important;
  font:600 9px/1.35 var(--mono,"IBM Plex Mono",monospace)!important;
  letter-spacing:.1em!important;
  text-transform:uppercase!important;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library-head .p2-ledger-title{
  grid-area:auto!important;
  grid-column:1!important;
  grid-row:2!important;
  align-self:end!important;
  max-width:12ch!important;
  margin:0!important;
  padding:0!important;
  color:var(--p2-case-paper)!important;
  font:500 clamp(34px,3.35vw,54px)/1 Archivo,sans-serif!important;
  letter-spacing:-.045em!important;
}
body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library-head .p2-ledger-lead{
  grid-area:auto!important;
  grid-column:2!important;
  grid-row:2!important;
  align-self:end!important;
  max-width:42ch!important;
  margin:0!important;
  padding:0!important;
  color:var(--p2-case-muted)!important;
  font-size:15px!important;
  line-height:1.62!important;
}
@media (max-width:760px){
  body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library-head .p2-ledger-title{
    max-width:100%!important;
    margin-top:12px!important;
    font-size:clamp(31px,8.7vw,38px)!important;
  }
  body.page-template-case-index[data-p2-case-hero="v7064"] .case2-index-library-head .p2-ledger-lead{
    max-width:35ch!important;
    margin-top:15px!important;
    font-size:14px!important;
  }
}

}
