/* OPL R&D Pipeline 0.2.0 - affects only the R&D page (body.opl-rd-page). Motion = transform/opacity/stroke only. */
html:has(body.opl-rd-page) { scroll-behavior: smooth; }
.opl-rd-page { --opl-ease: cubic-bezier(.2,.7,.2,1); --opl-spring: cubic-bezier(.34,1.56,.64,1); }
.opl-rd-page [id="overview"], .opl-rd-page [id="pipeline"], .opl-rd-page [id="research-areas"],
.opl-rd-page [id="testing"], .opl-rd-page [id="literature"], .opl-rd-page [id="faq"], .opl-rd-page .e-con[id] { scroll-margin-top: 56px; }

/* ================= hero: helix canvas ================= */
.opl-fx-helix { position: relative; isolation: isolate; overflow: hidden; }
.opl-fx-helix > .e-con-inner, .opl-fx-helix > .e-con { position: relative; z-index: 2; }
.opl-helix-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
@media (max-width: 1024px) { .opl-rd-hero .opl-helix-spacer { display: none; } }

/* ================= sticky section nav ================= */
.opl-rd-nav { scrollbar-width: none; }
.opl-rd-nav::-webkit-scrollbar { display: none; }
.opl-rd-nav .opl-rd-navlink .elementor-button { white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(181,125,43,0); transition: color .2s ease, box-shadow .25s ease; }
.opl-rd-nav .opl-rd-navlink.is-active .elementor-button { color: #7B2D77; box-shadow: inset 0 -2px 0 #B57D2B; }

/* ================= buttons (home style + light sweep) ================= */
.opl-rd-btn .elementor-button { position: relative; overflow: hidden; isolation: isolate; transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .35s var(--opl-spring), box-shadow .35s ease; }
.opl-rd-btn .elementor-button::after { content: ""; position: absolute; top: -2px; bottom: -2px; left: -60%; width: 45%; z-index: -1; pointer-events: none;
	background: linear-gradient(100deg, rgba(255,240,200,0), rgba(255,240,200,.55), rgba(255,240,200,0)); transform: skewX(-20deg) translateX(-120%); }
.opl-rd-btn .elementor-button:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -14px rgba(123,45,119,.7), 0 0 0 4px rgba(255,222,138,.12); }
.opl-rd-btn .elementor-button:hover::after { transform: skewX(-20deg) translateX(460%); transition: transform .9s ease; }
.opl-rd-btn .elementor-button:active { transform: translateY(-1px) scale(.98); }

/* ================= pipeline ================= */
.elementor-element.opl-pipe-steps { position: relative; }
.opl-pipe-svg { position: absolute; left: 0; top: 0; width: 56px; height: 100%; overflow: visible; pointer-events: none; }
.opl-pipe-track { stroke: #DCCBEA; stroke-width: 2; stroke-linecap: round; }
.opl-pipe-prog { stroke: #B57D2B; stroke-width: 3; stroke-linecap: round; }
.opl-pipe-node { fill: #fff; stroke: #D3BEE6; stroke-width: 2; transition: fill .35s ease, stroke .35s ease; }
.opl-pipe-node.is-on { fill: #FFD375; stroke: #B57D2B; }
.opl-pipe-halo { fill: rgba(255,211,117,0); transition: fill .5s ease; }
.opl-pipe-halo.is-on { fill: rgba(255,211,117,.32); }
.opl-pipe-step .elementor-heading-title { transition: color .35s ease; }
.opl-pipe-step.is-on h3.elementor-heading-title { color: #7B2D77; }
@media (min-width: 1025px) { .elementor-element.opl-pipe-intro { position: sticky; top: 96px; align-self: flex-start; } }

/* ================= research area cards ================= */
.opl-area-card { --glow: rgba(123,45,119,.45); transform-style: preserve-3d; transition: box-shadow .45s ease, border-color .45s ease; }
.opl-acc-metabolic { --glow: rgba(181,125,43,.55); }
.opl-acc-muscle    { --glow: rgba(123,45,119,.5); }
.opl-acc-longevity { --glow: rgba(33,68,123,.5); }
.opl-acc-repair    { --glow: rgba(163,54,110,.5); }
.opl-acc-immune    { --glow: rgba(75,63,176,.5); }
.opl-acc-shop      { --glow: rgba(255,211,117,.45); }
.opl-area-card.is-hover { box-shadow: 0 34px 60px -32px var(--glow), 0 2px 0 rgba(255,255,255,.6) inset; }
.opl-area-card > .e-con, .opl-area-card .elementor-widget { transform-style: preserve-3d; }
.opl-area-card .opl-area-title, .opl-area-card .opl-motif-wrap { transition: transform .6s var(--opl-ease); }
.opl-area-card.is-hover .opl-area-title { transform: translateZ(26px); }
.opl-area-card.is-hover .opl-motif-wrap { transform: translateZ(48px) rotate(-8deg) scale(1.1); }
.opl-motif-wrap { display: inline-block; animation: opl-float 6s ease-in-out infinite; }
.opl-acc-muscle .opl-motif-wrap { animation-delay: -1.5s; } .opl-acc-longevity .opl-motif-wrap { animation-delay: -3s; }
.opl-acc-repair .opl-motif-wrap { animation-delay: -4.5s; } .opl-acc-immune .opl-motif-wrap { animation-delay: -2.2s; }
.opl-motif * { stroke-dasharray: 280; stroke-dashoffset: 0; }
.opl-area-card.is-hover .opl-motif * { animation: opl-draw 1.2s var(--opl-ease) both; }
.opl-area-card.is-in .opl-motif * { animation: opl-draw 1.6s var(--opl-ease) .25s both; }
.opl-area-go .elementor-heading-title a, .opl-area-go a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: letter-spacing .35s ease; }
.opl-area-card.is-hover .opl-area-go a { letter-spacing: .4px; }
@keyframes opl-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes opl-draw { from { stroke-dashoffset: 280; } to { stroke-dashoffset: 0; } }

/* ================= blueprint (testing) ================= */
.opl-bp-wrap { position: relative; border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(207,224,255,.12); overflow: hidden; }
.opl-bp { display: block; width: 100%; height: auto; }
.opl-bp.is-anim .bp-d { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.1s var(--opl-ease) var(--d, 0s); }
.opl-bp.is-anim .bp-trace { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 2.4s cubic-bezier(.5,0,.2,1) 1s; }
.opl-bp.is-anim .bp-t, .opl-bp.is-anim .bp-fade { opacity: 0; transition: opacity .9s ease 2.2s; }
.opl-bp.is-anim.is-drawn .bp-d, .opl-bp.is-anim.is-drawn .bp-trace { stroke-dashoffset: 0; }
.opl-bp.is-anim.is-drawn .bp-t { opacity: 1; }
.opl-bp.is-anim.is-drawn .bp-fade { opacity: .55; }
.opl-bp .bp-gold { stroke: #FFD375; stroke-width: 2.2; }
.opl-bp-dot { filter: drop-shadow(0 0 6px rgba(255,211,117,.95)); }
.opl-bp-scan { stroke: rgba(255,211,117,.35); stroke-width: 1; }

/* ================= evidence map (literature) ================= */
.opl-litmap-wrap { max-width: 380px; margin-top: 8px; }
.opl-litmap { display: block; width: 100%; height: auto; overflow: visible; }
.opl-litmap .lit-orbit { transform-origin: 180px 160px; animation: opl-spin 70s linear infinite; }
.opl-litmap .lit-orbit--outer { animation-duration: 110s; animation-direction: reverse; }
.opl-litmap .lit-core { transform-origin: 180px 160px; animation: opl-pulse 3.2s ease-in-out infinite; }
.opl-litmap .lit-node { cursor: pointer; outline: none; }
.opl-litmap .lit-node .lit-pill, .opl-litmap .lit-node .lit-yr { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--opl-spring), filter .3s ease; }
.opl-litmap .lit-node .lit-spoke { stroke-opacity: .45; transition: stroke-opacity .3s ease, stroke-width .3s ease; }
.opl-litmap .lit-node.is-hot .lit-pill { transform: scale(1.12); filter: drop-shadow(0 6px 10px rgba(57,14,80,.25)); }
.opl-litmap .lit-node.is-hot .lit-yr { transform: scale(1.18); }
.opl-litmap .lit-node.is-hot .lit-spoke { stroke-opacity: 1; stroke-width: 2.6; }
.opl-litmap.is-anim .lit-spoke { stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.2s var(--opl-ease) var(--d, 0s), stroke-opacity .3s ease, stroke-width .3s ease; }
.opl-litmap.is-anim .lit-pill, .opl-litmap.is-anim .lit-yr { opacity: 0; transition: opacity .6s ease var(--d2, 0s), transform .45s var(--opl-spring), filter .3s ease; }
.opl-litmap.is-anim.is-drawn .lit-spoke { stroke-dashoffset: 0; }
.opl-litmap.is-anim.is-drawn .lit-pill, .opl-litmap.is-anim.is-drawn .lit-yr { opacity: 1; }
@keyframes opl-spin { to { transform: rotate(360deg); } }
@keyframes opl-pulse { 0%,100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.12); opacity: 1; } }

/* references list, colour-coded to the map */
.opl-rd-refs { list-style: none; margin: 0; padding: 0; }
.opl-rd-refs li { position: relative; padding: 20px 18px; border-bottom: 1px solid #E2D3EE; line-height: 1.6; border-radius: 12px; transition: background .35s ease, transform .35s var(--opl-ease); }
.opl-rd-refs li:first-child { border-top: 1px solid #E2D3EE; }
.opl-rd-refs li::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; border-radius: 2px; background: var(--acc, #B57D2B); transform: scaleY(0); transition: transform .35s var(--opl-ease); }
.opl-rd-refs li.is-hot { background: #fff; transform: translateX(6px); }
.opl-rd-refs li.is-hot::before { transform: scaleY(1); }
.opl-rd-refs li[data-ref="0"] { --acc: #B57D2B; } .opl-rd-refs li[data-ref="1"] { --acc: #7B2D77; } .opl-rd-refs li[data-ref="2"] { --acc: #21447B; }
.opl-rd-refs li[data-ref="3"] { --acc: #A3366E; } .opl-rd-refs li[data-ref="4"] { --acc: #4B3FB0; }
.opl-rd-refs .opl-ref-area { display: block; font: 600 12px/1.2 "Poppins", sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: var(--acc, #B57D2B); margin-bottom: 6px; }
.opl-rd-refs a { color: #7B2D77; text-decoration: underline; text-underline-offset: 3px; }

/* ================= FAQ: question frame vs answer frame ================= */
.opl-rd-faq .elementor-accordion-item { border: 0 !important; margin: 0 0 14px; border-radius: 16px; overflow: hidden; background: #fff;
	box-shadow: 0 1px 0 rgba(57,14,80,.05), 0 14px 30px -22px rgba(57,14,80,.45); transition: transform .4s var(--opl-ease), box-shadow .4s ease; }
.opl-rd-faq .elementor-accordion-item:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(57,14,80,.05), 0 22px 40px -22px rgba(57,14,80,.55); }
.opl-rd-faq .elementor-tab-title { position: relative; overflow: hidden; border: 0 !important; padding-left: 66px !important;
	background: linear-gradient(100deg, #F6EEFC, #EEE1F8) !important; transition: background .5s ease; }
.opl-rd-faq .elementor-tab-title::before { content: "Q"; position: absolute; left: 18px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 10px;
	display: grid; place-items: center; font: 700 14px/1 "Poppins", sans-serif; color: #fff; background: #7B2D77; transition: transform .6s var(--opl-spring), background .35s ease, color .35s ease; }
.opl-rd-faq .elementor-tab-title::after { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(100deg, transparent 30%, rgba(255,236,190,.4) 50%, transparent 70%); transform: translateX(-120%); }
.opl-rd-faq .elementor-tab-title:hover::before { transform: rotate(-10deg) scale(1.08); }
.opl-rd-faq .elementor-tab-title.elementor-active { background: linear-gradient(100deg, #3A0F55, #7B2D77) !important; }
.opl-rd-faq .elementor-tab-title.elementor-active .elementor-accordion-title { color: #FFFFFF !important; }
.opl-rd-faq .elementor-tab-title.elementor-active::before { background: #FFD375; color: #3A0F55; transform: rotate(360deg); }
.opl-rd-faq .elementor-tab-title.elementor-active::after { animation: opl-sweep 1.2s ease .1s 1; }
.opl-rd-faq .elementor-tab-title.elementor-active .elementor-accordion-icon svg { fill: #FFD375 !important; }
.opl-rd-faq .elementor-tab-title .elementor-accordion-icon { transition: transform .5s var(--opl-spring); }
.opl-rd-faq .elementor-tab-title.elementor-active .elementor-accordion-icon { transform: rotate(180deg); }
.opl-rd-faq .elementor-tab-content { position: relative; border: 0 !important; padding-left: 66px !important;
	background: linear-gradient(180deg, #FFF8E6, #FFF3D6) !important; }
.opl-rd-faq .elementor-tab-content::before { content: "A"; position: absolute; left: 18px; top: 20px; width: 32px; height: 32px; border-radius: 50%;
	display: grid; place-items: center; font: 700 14px/1 "Poppins", sans-serif; color: #5B3A1A; background: #FFD375; box-shadow: 0 0 0 5px rgba(255,211,117,.28); }
.opl-rd-faq .elementor-tab-content::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; transform-origin: left; transform: scaleX(1);
	background: linear-gradient(90deg, #B57D2B, #FFD375 55%, #B57D2B); }
.opl-rd-faq .elementor-tab-content.elementor-active::after { animation: opl-line .9s var(--opl-ease) both; }
.opl-rd-faq .elementor-tab-content.elementor-active::before { animation: opl-pop .7s var(--opl-spring) .15s both; }
.opl-rd-faq .elementor-tab-content.elementor-active p { animation: opl-up .6s var(--opl-ease) .2s both; }
@keyframes opl-sweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes opl-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes opl-pop { from { transform: scale(.3) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes opl-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ================= Quality & Testing: trace hero ================= */
.opl-fx-trace { position: relative; isolation: isolate; overflow: hidden; }
.opl-fx-trace > .e-con-inner, .opl-fx-trace > .e-con { position: relative; z-index: 2; }

/* ================= Quality & Testing: test cards mini diagrams ================= */
.opl-test-svg { display: block; width: 100%; height: auto; max-width: 260px; }
.opl-test-svg .ts-d { stroke-dasharray: 400; stroke-dashoffset: 0; }
.opl-area-card.is-in .opl-test-svg .ts-d { animation: opl-ts-draw 1.8s var(--opl-ease) .3s both; }
.opl-area-card.is-hover .opl-test-svg .ts-d { animation: opl-ts-draw 1.2s var(--opl-ease) both; }
@keyframes opl-ts-draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
.opl-area-card.is-hover .opl-test-svg { transform: translateZ(36px); }
.opl-test-svg { transition: transform .6s var(--opl-ease); }

/* ================= Quality & Testing: COA anatomy ================= */
.opl-coa-wrap { position: relative; filter: drop-shadow(0 30px 40px rgba(57,14,80,.22)); }
.opl-coa { display: block; width: 100%; height: auto; overflow: visible; }
.opl-coa [data-coa] { cursor: pointer; }
.opl-coa .coa-row { transition: fill .35s ease; }
.opl-coa [data-coa].is-hot .coa-row { fill: #FFF3D6; }
.opl-coa .coa-badge { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--opl-spring); }
.opl-coa [data-coa].is-hot .coa-badge { transform: scale(1.25); }
.opl-coa.is-anim .coa-badge { opacity: 0; transform: scale(.2); transition: opacity .4s ease var(--d, 0s), transform .6s var(--opl-spring) var(--d, 0s); }
.opl-coa.is-anim.is-drawn .coa-badge { opacity: 1; transform: none; }
.opl-coa.is-anim.is-drawn [data-coa].is-hot .coa-badge { transform: scale(1.25); transition-delay: 0s; }
.opl-coa.is-anim .coa-stamp { opacity: 0; transform: scale(1.6) rotate(-14deg); transform-box: fill-box; transform-origin: center; transition: opacity .3s ease 1.2s, transform .5s var(--opl-spring) 1.2s; }
.opl-coa.is-anim.is-drawn .coa-stamp { opacity: .9; transform: rotate(-14deg); }
.opl-coa-item { position: relative; border-radius: 14px; transition: background .35s ease, transform .35s var(--opl-ease); }
.opl-coa-item.is-hot { background: #FFF8E6; transform: translateX(6px); }
.opl-coa-item .opl-coa-num .elementor-heading-title { transition: transform .45s var(--opl-spring), background .3s ease; }
.opl-coa-item.is-hot .opl-coa-num .elementor-heading-title { transform: scale(1.12) rotate(-6deg); }

/* Quality & Testing (page 2143) is set tighter than R&D: closer FAQ rows */
.page-id-2143 .opl-rd-faq .elementor-accordion-item, .page-id-611 .opl-rd-faq .elementor-accordion-item { margin-bottom: 8px; }

/* ================= reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
	html:has(body.opl-rd-page) { scroll-behavior: auto; }
	.opl-motif-wrap, .opl-litmap .lit-orbit, .opl-litmap .lit-core { animation: none; }
	.opl-area-card .opl-motif *, .opl-rd-faq .elementor-tab-title::after, .opl-rd-faq .elementor-tab-content::after,
	.opl-rd-faq .elementor-tab-content::before, .opl-rd-faq .elementor-tab-content p { animation: none !important; }
	.opl-rd-btn .elementor-button, .opl-rd-btn .elementor-button:hover, .opl-rd-faq .elementor-accordion-item:hover { transform: none; }
}
