/* Shared building blocks for rebuilt pages (canvas page boards). Every rule is scoped
   to body.pm-rebuilt so it outranks the Elementor kit's element styles. */

.pm-rebuilt .pmp { font-family: var(--pm-font); color: var(--pm-slate); }
.pm-rebuilt .pmp *, .pm-rebuilt .pmp-hero * { box-sizing: border-box; }
/* Low-specificity reset (body + one class) so the component classes below can set their own spacing. */
body.pm-rebuilt :where(.pmp, .pmp-hero) :where(h1, h2, h3, h4, p, figure, blockquote, ol, ul) { margin: 0; }
.pm-rebuilt :is(.pmp, .pmp-hero) img { border-radius: 0; box-shadow: none; max-width: 100%; }
.pm-rebuilt :is(.pmp, .pmp-hero) :is(a, button):focus-visible { outline: 3px solid var(--pm-accent); outline-offset: 3px; }

@keyframes pm-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pm-rebuilt .pm-rise { animation: pm-up .7s var(--pm-ease) both; animation-delay: var(--d, 0s); }

/* Page hero inside the header frame (no image) */
.pm-rebuilt .pm-frame:has(.pmp-hero) { border-radius: 32px; }
.pm-rebuilt .pmp-hero { position: relative; overflow: hidden; border-radius: 32px; font-family: var(--pm-font); color: var(--pm-slate); }
.pm-rebuilt .pmp-hero-rings::before, .pm-rebuilt .pmp-hero-rings::after { content: ""; position: absolute; border-radius: 999px; pointer-events: none; }
.pm-rebuilt .pmp-hero-rings::before { right: -120px; top: -80px; width: 620px; height: 620px; border: 1px solid var(--pm-line); }
.pm-rebuilt .pmp-hero-rings::after { right: 20px; top: 60px; width: 340px; height: 340px; border: 1px solid var(--pm-line-2); }
.pm-rebuilt .pmp-hero-in { position: relative; max-width: 1240px; margin: 0 auto; padding: 184px 24px 88px; }
.pm-rebuilt .pmp-h1 { font-size: 56px; line-height: 1.06; font-weight: 700; color: var(--pm-navy); letter-spacing: -0.01em; }
.pm-rebuilt .pmp-hero-lead { margin-top: 24px; font-size: 19px; line-height: 1.65; color: var(--pm-text); }

/* Hero with a full-bleed photo behind the copy */
.pm-rebuilt .pmp-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pm-rebuilt .pmp-hero-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(238,246,252,.96) 0%, rgba(238,246,252,.86) 38%, rgba(238,246,252,.2) 70%, rgba(238,246,252,0) 100%); }

/* Layout */
.pm-rebuilt .pmp-sec { padding: 112px 24px; }
.pm-rebuilt .pmp-wrap { max-width: 1240px; margin: 0 auto; }
.pm-rebuilt .pmp-inset { padding: 0 16px; }
.pm-rebuilt .pmp-frame { border-radius: 32px; background: var(--pm-tint); border: 1px solid var(--pm-line); }
.pm-rebuilt .pmp-frame-in { max-width: 1240px; margin: 0 auto; padding: 96px 24px; }
.pm-rebuilt .pmp-split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.pm-rebuilt .pmp-split > * { flex: 1 1 460px; min-width: 0; }
.pm-rebuilt .pmp-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pm-rebuilt .pmp-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* Type */
.pm-rebuilt .pmp-h2 { font-size: 44px; line-height: 1.1; font-weight: 600; color: var(--pm-navy); letter-spacing: -0.01em; }
.pm-rebuilt .pmp-h3 { font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--pm-slate); }
.pm-rebuilt .pmp-lead { font-size: 18px; line-height: 1.6; color: var(--pm-text); }
.pm-rebuilt .pmp-body { font-size: 15px; line-height: 1.6; color: var(--pm-text); }

/* Cards */
.pm-rebuilt .pmp-card {
	background: var(--pm-white); border: 1px solid var(--pm-line); border-radius: 20px;
	transition: transform .3s var(--pm-ease), box-shadow .3s ease, border-color .3s ease;
}
.pm-rebuilt .pmp-card:hover { transform: translateY(-4px); border-color: var(--pm-line-2); box-shadow: 0 24px 48px -24px rgba(32,50,71,.25); }
.pm-rebuilt .pmp-ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--pm-line); color: var(--pm-navy); display: flex; align-items: center; justify-content: center; transition: background .3s ease, color .3s ease; }
.pm-rebuilt .pmp-ico svg { width: 22px; height: 22px; }
.pm-rebuilt .pmp-card:hover .pmp-ico { background: var(--pm-navy); color: var(--pm-white); }

/* Buttons */
.pm-rebuilt .pmp-btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
	background: var(--pm-navy); color: var(--pm-white); font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid transparent;
	transition: background .2s ease, transform .2s var(--pm-ease), box-shadow .2s ease;
}
.pm-rebuilt .pmp-btn:hover { background: var(--pm-navy-hover); color: var(--pm-white); transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(0,64,110,.55); }
.pm-rebuilt .pmp-btn--w { background: var(--pm-white); color: var(--pm-navy); }
.pm-rebuilt .pmp-btn--w:hover { background: var(--pm-line); color: var(--pm-navy); }
.pm-rebuilt .pmp-arr { transition: transform .22s var(--pm-ease); }
.pm-rebuilt .pmp-btn:hover .pmp-arr { transform: translateX(3px); }

/* Check-mark list */
.pm-rebuilt .pmp-chk { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pm-rebuilt .pmp-chk li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--pm-text); }
.pm-rebuilt .pmp-chk li::before {
	content: ""; flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; border-radius: 999px;
	background: var(--pm-line) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300406E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Step picker: tabs on one side, matching photo on the other (assets/js/pages.js) */
.pm-rebuilt .pmp-process { margin-top: 48px; align-items: stretch; gap: 48px; }
.pm-rebuilt .pmp-process > .pmp-shot { flex: 1.35 1 520px; }
.pm-rebuilt .pmp-steps { display: flex; flex-direction: column; gap: 14px; }
.pm-rebuilt .pmp .pmp-step {
	display: flex; gap: 18px; align-items: flex-start; width: 100%; margin: 0; text-align: left; padding: 22px; border-radius: 20px;
	border: 1px solid var(--pm-line); background: var(--pm-white); color: inherit; font: inherit; text-transform: none; letter-spacing: normal; white-space: normal; cursor: pointer;
	transition: border-color .2s ease, box-shadow .3s ease;
}
.pm-rebuilt .pmp .pmp-step:hover { border-color: var(--pm-line-2); background: var(--pm-white); }
.pm-rebuilt .pmp .pmp-step[aria-selected="true"] { border-color: var(--pm-navy); box-shadow: 0 24px 48px -28px rgba(0,64,110,.45); }
.pm-rebuilt .pmp-num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; background: var(--pm-navy); color: var(--pm-white); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; transition: background .2s ease, color .2s ease; }
/* Auto-advancing steps (data-pm-auto): progress bar along the bottom of the current step */
.pm-rebuilt .pmp .pmp-steps .pmp-step { position: relative; overflow: hidden; }
.pm-rebuilt .pmp-process.is-auto .pmp-step::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--pm-navy), #25ade3);
	transform: scaleX(0); transform-origin: left; pointer-events: none;
}
.pm-rebuilt .pmp-process.is-auto .pmp-step.is-timing::after { animation: pmp-bar var(--pm-auto, 6s) linear forwards; }
@keyframes pmp-bar { to { transform: scaleX(1); } }
.pm-rebuilt .pmp-step[aria-selected="false"] .pmp-num { background: var(--pm-line); color: var(--pm-navy); }
.pm-rebuilt .pmp-step-t { display: block; }
.pm-rebuilt .pmp-step-p { display: block; margin-top: 6px; }
/* Sized to the step images (648×369) so nothing is cropped; centred beside the step list */
.pm-rebuilt .pmp-shot { position: relative; align-self: center; aspect-ratio: 648 / 369; border-radius: 28px; overflow: hidden; background: var(--pm-line); }
.pm-rebuilt .pmp-shot > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.pm-rebuilt .pmp-shot > .is-on { opacity: 1; }

.pm-rebuilt .pmp-shot img { width: 100%; height: 100%; object-fit: cover; }
.pm-rebuilt .pmp-step ul { margin: 8px 0 0; padding-left: 18px; }
.pm-rebuilt .pmp-step li { font-size: 15px; line-height: 1.6; color: var(--pm-text); }
/* Round play button over an image or video poster */
.pm-rebuilt .pmp .pmp-play {
	position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 999px; padding: 0; border: 0;
	background: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--pm-navy); cursor: pointer;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 30px -16px rgba(0,64,110,.6); transition: transform .4s var(--pm-ease);
}
.pm-rebuilt .pmp .pmp-play:hover { transform: scale(1.08); background: rgba(255,255,255,.95); color: var(--pm-navy); }
.pm-rebuilt .pmp-play svg { width: 22px; height: 22px; }

/* Person cards with a "Read bio" toggle (pages.js) */
.pm-rebuilt .pmp-people { margin-top: 48px; }
.pm-rebuilt .pmp-person { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.pm-rebuilt .pmp-photo { width: 88px; height: 88px; border-radius: 999px !important; object-fit: cover; background: var(--pm-tint); border: 3px solid var(--pm-white); box-shadow: 0 10px 24px -12px rgba(0,64,110,.45) !important; }
.pm-rebuilt .pmp-name { font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--pm-slate); }
.pm-rebuilt .pmp-role { margin-top: 4px; font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--pm-navy); }
.pm-rebuilt .pmp-bio { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pm-rebuilt .pmp-person.is-open .pmp-bio { display: block; -webkit-line-clamp: unset; overflow: visible; }
.pm-rebuilt .pmp .pmp-more {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; margin: 0;
	border: 0; border-radius: 0; background: none; color: var(--pm-navy); font: 600 14px var(--pm-font); cursor: pointer; text-transform: none; letter-spacing: normal;
}
.pm-rebuilt .pmp .pmp-more:hover { color: var(--pm-navy-hover); background: none; }
.pm-rebuilt .pmp-more svg { width: 12px; height: 12px; transition: transform .2s ease; }
.pm-rebuilt .pmp-person.is-open .pmp-more svg { transform: rotate(180deg); }

/* Email sign-up form (inc/forms.php) */
.pm-rebuilt .pmp-sub { display: flex; flex-wrap: wrap; gap: 10px; }
.pm-rebuilt .pmp-sub-field { flex: 1 1 220px; min-width: 0; }
body.pm-rebuilt .pmp-sub input[type="email"] {
	width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1px solid var(--pm-line-2); border-radius: 12px; background: var(--pm-white);
	font: 400 15px var(--pm-font); line-height: normal; color: var(--pm-slate); box-shadow: none;
}
body.pm-rebuilt .pmp-sub input[type="email"]:focus { border-color: var(--pm-navy); outline: 0; box-shadow: 0 0 0 3px rgba(37,173,227,.25); }
body.pm-rebuilt .pmp-sub input[aria-invalid="true"] { border-color: #B42318; }
.pm-rebuilt .pmp-sub .pmp-btn { cursor: pointer; font-family: var(--pm-font); }
.pm-rebuilt .pmp-sub .pmp-btn[disabled] { opacity: .6; cursor: progress; }
.pm-rebuilt .pmp-sub-msg { flex: 1 1 100%; font-size: 14px; line-height: 1.5; color: var(--pm-slate); }
.pm-rebuilt .pmp-sub-msg.is-error { color: #B42318; }
.pm-rebuilt .pmp-sub-msg[hidden] { display: none; }

/* Navy band */
.pm-rebuilt .pmp-dark { border-radius: 32px; background: var(--pm-navy); color: var(--pm-white); }
.pm-rebuilt .pmp-dark :is(.pmp-h2, .pmp-h3, h3, h4) { color: var(--pm-white); }
.pm-rebuilt .pmp-dark-lead { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.84); }
.pm-rebuilt .pmp-dcard { border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 20px; }

@media (max-width: 1100px) {
	.pm-rebuilt .pmp-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.pm-rebuilt .pm-frame:has(.pmp-hero), .pm-rebuilt .pmp-hero { border-radius: 26px; }
	.pm-rebuilt .pmp-hero-in { padding: 112px 16px 48px; }
	.pm-rebuilt .pmp-h1 { font-size: 36px; line-height: 1.1; }
	.pm-rebuilt .pmp-hero-lead { font-size: 17px; }
	.pm-rebuilt .pmp-hero-fade { background: rgba(238,246,252,.86); }
	.pm-rebuilt .pmp-sec { padding: 64px 16px; }
	.pm-rebuilt .pmp-inset { padding: 0 12px; }
	.pm-rebuilt .pmp-frame-in { padding: 56px 16px; }
	.pm-rebuilt .pmp-split { gap: 32px; }
	.pm-rebuilt .pmp-g2, .pm-rebuilt .pmp-g3 { grid-template-columns: 1fr; }
	.pm-rebuilt .pmp-h2 { font-size: 30px; line-height: 1.15; }
	.pm-rebuilt .pmp-sub .pmp-btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.pm-rebuilt .pm-rise { animation: none !important; }
	.pm-rebuilt .pmp-glass:hover::after { animation: none; }
	.pm-rebuilt .pmp * { transition: none !important; }
}

/* About and Key opinion leaders person cards: bigger photos with a gradient ring, stronger hover lift */
.pm-rebuilt :is(.pma, .pmk) .pmp-person { padding: 28px; gap: 16px; }
.pm-rebuilt :is(.pma, .pmk) .pmp-photo {
	width: 140px; height: 140px; border: 4px solid var(--pm-white);
	box-shadow: 0 0 0 2px rgba(37,173,227,.0), 0 18px 36px -18px rgba(0,64,110,.55) !important;
	transition: transform .5s var(--pm-ease), box-shadow .4s ease;
}
.pm-rebuilt :is(.pma, .pmk) .pmp-person:hover { transform: translateY(-8px); box-shadow: 0 36px 64px -30px rgba(0,64,110,.38); border-color: rgba(37,173,227,.35); }
.pm-rebuilt :is(.pma, .pmk) .pmp-person:hover .pmp-photo { transform: scale(1.05); box-shadow: 0 0 0 3px rgba(37,173,227,.55), 0 22px 40px -18px rgba(0,64,110,.6) !important; }
@media (max-width: 640px) {
	.pm-rebuilt :is(.pma, .pmk) .pmp-photo { width: 112px; height: 112px; }
}

/* Glass frame around a photo or video (same treatment as the homepage video) */
.pm-rebuilt .pmp-glass {
	border-radius: 34px; padding: 14px; position: relative; isolation: isolate;
	background: linear-gradient(140deg, rgba(255,255,255,.66) 0%, rgba(255,255,255,.22) 48%, rgba(206,230,248,.45) 100%);
	backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.35), 0 40px 90px -36px rgba(0,64,110,.45), 0 0 0 1px rgba(0,64,110,.05);
	transition: transform .5s var(--pm-ease), box-shadow .5s ease;
}
/* Gradient rim: bright top-left fading to blue bottom-right */
.pm-rebuilt .pmp-glass::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px; pointer-events: none;
	background: linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.35) 40%, rgba(37,173,227,.55) 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Soft sheen that sweeps across on hover */
.pm-rebuilt .pmp-glass::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0;
	background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 66%) -120% 0 / 220% 100% no-repeat;
	transition: opacity .3s ease;
}
.pm-rebuilt .pmp-glass:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.35), 0 50px 100px -36px rgba(0,64,110,.55), 0 0 0 1px rgba(0,64,110,.07); }
.pm-rebuilt .pmp-glass:hover::after { opacity: 1; animation: pmp-sheen 1.1s var(--pm-ease) forwards; }
@keyframes pmp-sheen { to { background-position: 120% 0; } }
.pm-rebuilt .pmp-glass > img, .pm-rebuilt .pmp-glass > button { border-radius: 22px !important; box-shadow: 0 20px 40px -28px rgba(0,64,110,.5) !important; }

@media (max-width: 640px) {
	.pm-rebuilt .pmp-glass { padding: 10px; border-radius: 26px; }
	.pm-rebuilt .pmp-glass > img, .pm-rebuilt .pmp-glass > button { border-radius: 18px !important; }
}

/* Glow when an in-page link brings the reader to a [data-pm-spot] target (pages.js) */
.pm-rebuilt .is-spot { animation: pmp-spot 2.4s ease-out; }
@keyframes pmp-spot { 0% { box-shadow: 0 0 0 0 rgba(37,173,227,.0); } 20% { box-shadow: 0 0 0 6px rgba(37,173,227,.45), 0 30px 80px -30px rgba(0,64,110,.55); } 100% { box-shadow: 0 0 0 0 rgba(37,173,227,0), 0 40px 90px -36px rgba(0,64,110,.45); } }

/* Photo cards whose image zooms on hover (image sits in a clipping wrapper) */
.pm-rebuilt .pmp-zoom { overflow: hidden; background: var(--pm-line); }
.pm-rebuilt .pmp-zoom img { display: block; width: 100%; object-fit: cover; transition: transform .8s var(--pm-ease); }
.pm-rebuilt .pmp-card:hover .pmp-zoom img { transform: scale(1.07); }

/* Scroll reveal (pages.js adds .is-armed, then .is-in); children stagger by --i */
.pm-rebuilt [data-pm-reveal].is-armed > * { opacity: 0; transform: translateX(-28px); }
.pm-rebuilt [data-pm-reveal="up"].is-armed > * { transform: translateY(32px); }
.pm-rebuilt [data-pm-reveal].is-armed.is-in > * {
	opacity: 1; transform: none;
	transition: opacity .6s ease calc(var(--i, 0) * .14s), transform .7s var(--pm-ease) calc(var(--i, 0) * .14s), box-shadow .3s ease, border-color .3s ease;
}

/* Light-blue sections fade out to white toward the bottom (no hard bottom edge), so stacked
   sections and the footer never run together. */
.pm-rebuilt .pmp-frame {
	border-color: transparent;
	background: linear-gradient(180deg, var(--pm-tint) 0%, var(--pm-tint) 50%, rgba(238,246,252,0) 100%);
}
.pm-rebuilt main.pmp > .pmp-inset:last-child { margin-bottom: 40px; }
/* The page hero (light-blue frame under the menu) fades out the same way. */
.pm-rebuilt .pm-frame:not(.pm-frame--band) {
	background-color: transparent;
	background-image: linear-gradient(180deg, var(--pm-tint) 0%, var(--pm-tint) 60%, rgba(238,246,252,0) 100%);
}
/* Photo heroes (Proven science, Investors login): the photo and its veil fade out at the
   bottom too, into the fading light blue behind them. */
.pm-rebuilt .pmp-hero:has(.pmp-hero-img) { overflow: hidden; }
.pm-rebuilt .pmp-hero > :is(.pmp-hero-img, .pmp-hero-fade, .pmlg-veil) {
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 86%);
	mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 86%);
}
