
/* V6.15 — Peptides 101 only. Existing RISE selectors are unchanged. */
#education.education{padding:66px 0 48px;}
#education .education-grid.education-grid--cinematic{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,.8fr);align-items:start;column-gap:38px;row-gap:22px;}
#education .education-copy{grid-column:1;min-width:0;}
#education .education-copy h2{margin-bottom:11px;}
#education .education-copy p{max-width:760px;font-size:17px;line-height:1.55;margin:0 0 12px;color:#d9e7f0;}
#education .education-copy p:last-child{margin-bottom:0;}
#education .education-aside{grid-column:2;align-self:center;min-width:0;padding:17px 22px;border-left:2px solid rgba(207,165,83,.75);background:linear-gradient(90deg,rgba(28,99,130,.12),transparent);}
#education .education-aside .eyebrow{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:#c9a24a;font-weight:700;}
#education .education-aside strong{display:block;font-size:21px;font-family:'Marcellus',Georgia,serif;font-weight:400;color:#f4f7fb;line-height:1.2;margin:8px 0;}
#education .education-aside p{font-size:13px;line-height:1.5;color:#a9c8d9;margin:0;}
#education .peptide-showcase{grid-column:1/-1;width:min(100%,1150px);justify-self:center;min-width:0;margin-top:4px;}
#education .peptide-showcase .peptide-frame{position:relative;border-radius:18px;overflow:hidden;background:#010915;box-shadow:0 20px 65px rgba(0,0,0,.24),0 0 22px rgba(57,170,213,.10);}
#education .peptide-showcase .peptide-frame::after{content:'';position:absolute;inset:0;border:1px solid rgba(98,189,225,.15);border-radius:18px;pointer-events:none;z-index:9;}
#education .peptide-caption{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 7px 2px;font-size:11px;letter-spacing:.02em;color:#a7c3d4;}
#education .peptide-caption .caption-cycle{letter-spacing:.1em;text-transform:uppercase;font-weight:600;color:#dbbd82;white-space:nowrap;}
#education .education-types{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;}
#education .education-type{min-width:0;}
#education .education-status{max-width:990px;padding:0 18px;}
#peptideHero{position:relative;background:radial-gradient(ellipse 77% 88% at 32% 43%,#0c4162 0%,#06233a 45%,#010915 93%);}
#peptideHero .peptide-fallback-video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;opacity:1;transition:opacity .55s ease;pointer-events:none;}
#peptideHero.has-webgl .peptide-fallback-video{opacity:0;}
#peptideHero.is-fallback:not(.is-reduced-motion) .approved-hold{opacity:0!important;}
#peptideHero.is-reduced-motion .approved-hold{opacity:1!important;transform:none;}
#peptideHero.is-reduced-motion .peptide-fallback-video{display:none;}
@media(max-width:1000px){#education .education-grid.education-grid--cinematic{grid-template-columns:1fr;row-gap:16px;}#education .education-copy,#education .education-aside,#education .peptide-showcase,#education .education-types{grid-column:1;}#education .education-aside{padding:12px 18px;}}
@media(max-width:740px){#education.education{padding:42px 0;}#education .education-copy p{font-size:15px;line-height:1.55;}#education .peptide-showcase .peptide-frame{border-radius:12px;}#education .peptide-showcase .peptide-frame::after{border-radius:12px;}#education .education-types{grid-template-columns:1fr;}#education .peptide-caption{display:block;font-size:11px;}#education .peptide-caption .caption-cycle{display:block;margin:6px 0 0;}#education .education-aside strong{font-size:19px;}}
@media(prefers-reduced-motion:reduce){#peptideHero .peptide-fallback-video{display:none;}}

  /* 16:9 production frame, responsive and self-contained (no changes to site-wide CSS). */
  #peptideHero.peptide-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    max-width: 1920px;
    overflow: hidden;
    isolation: isolate;
    contain: layout paint;
    container-type: size;
    background: radial-gradient(ellipse 77% 88% at 32% 43%, #0c4162 0%, #06233a 45%, #010915 93%);
  }
  #peptideHero .stage { position: absolute; inset: 0; opacity: 0; z-index: 1; }
  .peptide-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

  /* A restrained teal/cyan atmosphere over the 3D pixels (film-like rather than neon). */
  .peptide-hero .stage::before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
       radial-gradient(ellipse 18% 58% at 28% 7%, rgba(83,177,235,.13), transparent 84%),
       radial-gradient(ellipse 21% 33% at 61% 44%, rgba(10,138,185,.13), transparent 85%),
       radial-gradient(ellipse 39% 38% at 36% 108%, rgba(17,76,113,.18), transparent 83%);
    mix-blend-mode: screen;
  }
  .peptide-hero .stage::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: radial-gradient(ellipse 81% 77% at 44% 49%, transparent 55%, rgba(0,5,14,.34) 100%);
  }
  .peptide-hero .shade {
    position: absolute; inset: 0; pointer-events: none; z-index: 3;
    background:
       linear-gradient(90deg, transparent 56%, rgba(2,12,25,.15) 77%, rgba(3,11,21,.58) 100%),
       linear-gradient(0deg, rgba(1,8,16,.14), transparent 35%, transparent 73%, rgba(1,8,16,.15));
  }
  .peptide-hero .labels { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
  .peptide-hero .label {
    position: absolute; left: 0; top: 0;
    display: inline-flex; align-items: center; gap: 0.82em;
    min-width: 14em;
    padding: .31em 1.0em .31em .35em;
    opacity: 0;
    font-family: 'Avenir Next', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    font-size: clamp(9px, 1.19cqw, 17.5px);
    font-weight: 450;
    letter-spacing: .11em;
    line-height: 1.44;
    text-transform: uppercase;
    color: #f0f5fa;
    text-shadow: 0 1px 8px #00101f, 0 0 24px rgba(60,166,210,.17);
    white-space: nowrap;
    background: linear-gradient(90deg, rgba(1,15,29,.52), rgba(1,18,34,.36) 58%, rgba(0,9,19,0));
    border-bottom: 1px solid rgba(235,181,82,.25);
    border-radius: 2em 0 0 2em;
    transform-origin: left center;
    will-change: transform, opacity;
  }
  .peptide-hero .label .ring {
    flex: none;
    width: 2.92em; height: 2.92em; border-radius: 50%;
    display: grid; place-items: center;
    border: 1.3px solid rgba(255,197,88,.91);
    background: radial-gradient(circle at 30% 24%, rgba(255,199,109,.20), rgba(72,41,18,.55) 55%, rgba(2,15,24,.55));
    box-shadow: 0 0 1.15em rgba(246,171,62,.30), inset 0 0 .9em rgba(237,153,56,.11);
  }
  .peptide-hero .label .ring svg {
    width: 1.72em; height: 1.72em;
    fill: none; stroke: #f7cc76; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 0 3px rgba(255,191,80,.38));
  }
  .peptide-hero .label .label-words { display: flex; flex-direction: column; }
  .peptide-hero .label .label-words span { display: block; }

  /* The approved photograph anchors the final 2.5 seconds; exact 16:9 reference. */
  .peptide-hero .approved-hold {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 6; opacity: 0; pointer-events: none;
    will-change: opacity, transform;
    transform: scale(1.006);
  }
  /* Fallback is immediately useful if a device blocks 3D or Three.js is unavailable. */
  .peptide-hero.is-fallback .approved-hold { opacity: 1 !important; }
  .peptide-hero.is-fallback .stage { opacity: 0 !important; }
  .peptide-hero .film-grain {
    position:absolute; inset:0; z-index:7; opacity:.12; pointer-events:none;
    background-image: repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(255,255,255,.025) 4px);
    mix-blend-mode: soft-light;
  }
  @media (max-width: 620px) {
    .peptide-hero .label { font-size: clamp(7px, 1.35cqw, 10px); min-width: 12em; letter-spacing:.04em; }
    .peptide-hero .label .ring { width:2.45em; height:2.45em; }
    .peptide-hero .label .ring svg { width:1.45em; height:1.45em; }
  }
  @media (prefers-reduced-motion: reduce) {
    .peptide-hero .approved-hold { transition:none !important; transform:none !important; }
    .peptide-hero .film-grain { display:none; }
  }

/* V6.16 — Video holds on its actual ending frame; pathway selection overlays. */
#peptideHero .peptide-fallback-video { z-index: 0; opacity:1!important; display:block!important; transition:none; }
#peptideHero .stage, #peptideHero .approved-hold {display:none!important;opacity:0!important;}
#peptideHero.p101-video-complete .peptide-fallback-video {opacity:1!important;}
#peptideHero .p101-video-hotspots {position:absolute;inset:0;z-index:8;}
#peptideHero .p101-video-hotspots[hidden], #education .p101-mobile-actions[hidden], #education .p101-descriptor[hidden] {display:none!important;}
#peptideHero .p101-video-target {position:absolute;left:70.7%;width:28.2%;height:11%;margin:0;padding:0;border:1px solid transparent;border-radius:14px 2px 2px 14px;background:transparent;cursor:pointer;transition:background .22s ease,box-shadow .22s ease,border-color .22s ease;}
#peptideHero .p101-hit-metabolic {top:15.1%;}
#peptideHero .p101-hit-recovery {top:30.3%;}
#peptideHero .p101-hit-focus {top:45%;}
#peptideHero .p101-hit-energy {top:59.8%;}
#peptideHero .p101-video-target:hover, #peptideHero .p101-video-target:focus-visible, #peptideHero .p101-video-target.is-selected {outline:none;border-color:rgba(236,196,113,.6);background:linear-gradient(90deg,rgba(212,170,81,.15),rgba(11,44,65,.08));box-shadow:0 0 14px rgba(230,180,82,.16),inset 0 0 12px rgba(189,141,51,.08);}
#peptideHero .p101-select-hint {position:absolute;bottom:5.2%;left:5.5%;padding:6px 12px;border-radius:20px;background:rgba(2,19,34,.69);border:1px solid rgba(143,199,218,.25);color:#e6d2a4;font-size:clamp(9px,.87cqw,12px);letter-spacing:.13em;text-transform:uppercase;pointer-events:none;}
#education .p101-replay {flex:none;border:1px solid rgba(189,157,93,.5);background:rgba(9,33,49,.78);color:#f4d38d;padding:9px 13px;border-radius:22px;font-size:11px;letter-spacing:.03em;cursor:pointer;transition:background .2s ease,border-color .2s ease;}
#education .p101-replay:hover, #education .p101-replay:focus-visible {background:#173348;border-color:#e0bc74;outline-offset:3px;}
#education .p101-mobile-actions {display:none;}
#education .p101-descriptor {display:flex;align-items:center;justify-content:space-between;gap:22px;margin:12px 3px 8px;padding:15px 20px;border-left:2px solid #c9a24a;border-radius:5px 14px 14px 5px;background:linear-gradient(110deg,rgba(13,55,77,.87),rgba(7,25,43,.92));box-shadow:inset 0 0 22px rgba(51,155,207,.06);}
#education .p101-descriptor-copy {max-width:770px;min-width:0;}
#education .p101-descriptor-eyebrow {font-size:9px;letter-spacing:.18em;color:#d8bd80;font-weight:700;}
#education .p101-descriptor h3 {margin:5px 0 6px;color:#f1d69d;font-size:clamp(19px,1.6vw,25px);}
#education .p101-descriptor p {margin:0;color:#d6e7ef;line-height:1.5;font-size:13px;}
#education .p101-descriptor-actions {display:flex;flex:none;flex-direction:column;align-items:stretch;gap:7px;min-width:185px;}
#education .p101-descriptor-actions button {padding:9px 14px;font-size:12px;cursor:pointer;border-radius:24px;}
#education .p101-visit {background:linear-gradient(100deg,#e4c375,#ba9646);border:1px solid #e4cb8e;color:#071626;font-weight:750;}
#education .p101-dismiss {border:1px solid rgba(150,188,208,.3);background:transparent;color:#aac4d5;}
#education .p101-mobile-actions button.is-selected {border-color:#d1af72!important;background:rgba(208,159,75,.22)!important;}
#education .p101-video-error::after {content:'Video unavailable. Try opening this page in Chrome.';position:absolute;left:5%;bottom:10%;color:#f6d69b;font-size:12px;z-index:12;}
@media(max-width:800px){#education .peptide-caption{flex-wrap:wrap;}#education .p101-descriptor {flex-wrap:wrap;}#education .p101-descriptor-actions {flex-direction:row;min-width:0;width:100%;}#education .p101-descriptor-actions button {flex:1;}}
@media(max-width:680px){#peptideHero .p101-video-hotspots .p101-video-target {display:none;}#peptideHero .p101-select-hint {display:none;}#education .p101-mobile-actions:not([hidden]) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 2px;}#education .p101-mobile-intro {grid-column:1/-1;font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#c8c3ad;}#education .p101-mobile-actions button {text-align:left;background:rgba(8,36,55,.85);border:1px solid rgba(71,156,190,.52);color:#e4eff8;border-radius:12px;padding:11px 12px;min-height:46px;font-size:12px;cursor:pointer;}#education .p101-descriptor{padding:14px;}#education .p101-descriptor-actions{flex-direction:column;}#education .p101-replay{margin-left:auto;} }
@media(prefers-reduced-motion:reduce){#peptideHero .peptide-fallback-video{display:block!important;}#education .p101-replay{display:inline-block;}}


/* V6.17: original 3D interactive HTML replaces the substituted MP4. */
#peptideHero .p101-original-scene {position:absolute;inset:0;width:100%;height:100%;display:block;border:0;background:radial-gradient(ellipse at 38% 42%,#0b3558,#020a14 85%);z-index:1;}
#peptideHero .p101-scene-loading {position:absolute;z-index:4;left:50%;top:50%;transform:translate(-50%,-50%);width:min(86%,460px);text-align:center;background:rgba(2,15,29,.88);border:1px solid rgba(215,175,90,.28);border-radius:14px;color:#e0d2ac;padding:16px;font-size:13px;line-height:1.5;}
#peptideHero .p101-scene-loading[hidden]{display:none!important;}
#peptideHero .film-grain {pointer-events:none;z-index:3;}
#peptideHero .p101-original-scene {pointer-events:auto;}
#peptideHero .p101-video-hotspots {display:none!important;}
#education .p101-mobile-actions:not([hidden]) {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 2px;}
#education .p101-mobile-intro {grid-column:1/-1;font-size:11px;letter-spacing:.12em;color:#dac18c;text-transform:uppercase;}
#education .p101-mobile-actions button {background:rgba(8,36,55,.88);border:1px solid rgba(71,156,190,.48);color:#e4eff8;border-radius:11px;padding:10px 9px;min-height:42px;font-size:12px;text-align:center;cursor:pointer;}
@media(max-width:680px){#education .p101-mobile-actions:not([hidden]){grid-template-columns:repeat(2,minmax(0,1fr));}}

@media (min-width:681px){#education .p101-mobile-actions:not([hidden]){display:none!important;}}

/* v6.18: taller 3D stage on phones */
@media(max-width:740px){#peptideHero{aspect-ratio:auto!important;height:min(112vw,500px)!important;min-height:340px}}
