/*
 * leadership-single.css
 *
 * Used by the Team Member CPT single template at /about/leadership/{slug}/.
 * The profile masthead is intentionally distinct from the site's photographic
 * background heroes while remaining inside the Quantum Infrastructure system.
 */

body.qpa-team-profile{background:#fff}

body.qpa-team-profile .qpa-profile-hero{position:relative;isolation:isolate;display:flex;min-height:440px;align-items:stretch;overflow:hidden!important;background:radial-gradient(720px 520px at 28% 72%,#17a3981b,transparent 68%),linear-gradient(148deg,#061a20 0%,var(--ink) 62%,var(--ink-3) 100%);color:#fff}

body.qpa-team-profile .qpa-profile-hero:before{content:"";position:absolute;inset:0;z-index:0;background:url("https://quantumpower.com.sg/wp-content/uploads/2026/08/abstract-geometric-color-gradient.webp") center/cover no-repeat;opacity:.22;pointer-events:none}

body.qpa-team-profile .qpa-profile-hero-shell{position:relative;z-index:2;display:grid;width:calc(100% - max(24px,calc((100vw - 1320px)/2)));min-height:440px;margin-left:max(24px,calc((100vw - 1320px)/2));grid-template-columns:1fr}

body.qpa-team-profile .qpa-profile-hero-copy{display:flex;min-width:0;flex-direction:column;justify-content:flex-end;padding:clamp(140px,16vh,180px) clamp(48px,6vw,96px) 56px 0}

body.qpa-team-profile .qpa-profile-back{display:inline-flex;width:max-content;align-items:center;gap:12px;margin-bottom:auto;color:#d9e3e4;font:500 14px/1 var(--display);transition:color .28s,transform .28s}

body.qpa-team-profile .qpa-profile-back-icon{width:24px;height:24px;flex:none;color:var(--teal-lite)}

body.qpa-team-profile .qpa-profile-back:hover{color:var(--teal-lite);transform:translateX(-3px)}

body.qpa-team-profile .qpa-profile-back:focus-visible{outline:2px solid var(--teal-lite);outline-offset:5px}

body.qpa-team-profile .qpa-profile-flag{width:max-content;margin:0 0 24px;padding:7px 10px;border:1px solid #ffffff2b;border-radius:3px;color:#e9f0f1;font:500 11px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase}

body.qpa-team-profile .qpa-profile-hero h1{max-width:11ch;margin:32px 0 0;color:#fff;font-size:clamp(52px,5.2vw,78px);font-weight:500;line-height:1.01;letter-spacing:-.034em;text-wrap:balance}

body.qpa-team-profile .qpa-profile-role{max-width:52ch;margin:28px 0 0;color:var(--teal-lite);font:500 13px/1.5 var(--mono);letter-spacing:.12em;text-transform:uppercase}

body.qpa-team-profile .qpa-profile-hook{max-width:55ch;margin:26px 0 0;color:#d9e3e4;font-size:19px;line-height:1.65;text-wrap:pretty}

body.qpa-team-profile .qpa-profile-content{background:#fff}

body.qpa-team-profile .qpa-profile-content-grid{display:grid;grid-template-columns:minmax(0,1.28fr) minmax(320px,.72fr);gap:clamp(56px,8vw,128px);align-items:start}

body.qpa-team-profile .qpa-profile-biography{min-width:0}

body.qpa-team-profile .qpa-profile-biography h2{max-width:none;margin:0;font-size:clamp(38px,4vw,58px);line-height:1.04;letter-spacing:-.028em}

body.qpa-team-profile .qpa-profile-prose{max-width:70ch;margin-top:42px}

body.qpa-team-profile .qpa-profile-prose p{margin:0;color:var(--text);font-size:18px;line-height:1.76;text-wrap:pretty}

body.qpa-team-profile .qpa-profile-prose p+p{margin-top:26px}

body.qpa-team-profile .qpa-profile-linkedin{margin-top:36px}

body.qpa-team-profile .qpa-profile-sidebar{min-width:0}

body.qpa-team-profile .qpa-profile-portrait{position:relative;display:block;margin:0 0 24px;padding:0;overflow:hidden;border:0;border-radius:var(--r-card);background:var(--ink-3);aspect-ratio:4/5}

body.qpa-team-profile .qpa-profile-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;filter:saturate(.9) contrast(1.02)}

body.qpa-team-profile .qpa-profile-facts{position:sticky;top:132px;overflow:hidden;border:1px solid #ffffff17;border-radius:var(--r-card);background:radial-gradient(420px 300px at 100% 0%,#17a39820,transparent 70%),var(--ink-2);box-shadow:0 20px 46px #0f2e381a}

body.qpa-team-profile .qpa-profile-facts-label{margin:0;padding:28px 30px;color:var(--teal-lite);font:500 12px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase}

body.qpa-team-profile .qpa-profile-facts-list{border-top:1px solid #ffffff17}

body.qpa-team-profile .qpa-profile-fact{padding:28px 30px;border-bottom:1px solid transparent;border-image:var(--divider-h-dark)}

body.qpa-team-profile .qpa-profile-fact:last-child{border-bottom:0}

body.qpa-team-profile .qpa-profile-fact-value{margin:0;color:#fff;font:500 clamp(24px,2.1vw,31px)/1.12 var(--display);letter-spacing:-.025em;text-wrap:balance}

body.qpa-team-profile .qpa-profile-fact-value.qpa-profile-fact-value-long{font-size:clamp(18px,1.55vw,22px);line-height:1.35;letter-spacing:-.012em}

body.qpa-team-profile .qpa-profile-fact-label{margin:12px 0 0;color:#b6c4c7;font:500 12px/1.55 var(--mono);letter-spacing:.08em;text-transform:uppercase}

@media(max-width:980px){
body.qpa-team-profile .qpa-profile-hero{min-height:380px}
body.qpa-team-profile .qpa-profile-hero-shell{width:100%;min-height:380px;margin-left:0;grid-template-columns:1fr}
body.qpa-team-profile .qpa-profile-hero-copy{padding:130px 32px 48px}
body.qpa-team-profile .qpa-profile-content-grid{grid-template-columns:1fr;gap:64px}
body.qpa-team-profile .qpa-profile-facts{position:relative;top:auto;max-width:680px}
}

@media(max-width:800px){
body.qpa-team-profile .qpa-profile-hero{min-height:340px}
body.qpa-team-profile .qpa-profile-hero-copy{padding:120px 24px 44px}
body.qpa-team-profile .qpa-profile-hero h1{max-width:none;font-size:clamp(42px,11vw,58px)}
body.qpa-team-profile .qpa-profile-hook{font-size:17px}
body.qpa-team-profile .qpa-profile-prose{margin-top:34px}
body.qpa-team-profile .qpa-profile-prose p{font-size:17px;line-height:1.72}
}

@media(max-width:520px){
body.qpa-team-profile .qpa-profile-hero{min-height:300px}
body.qpa-team-profile .qpa-profile-hero-copy{padding:110px 16px 40px}
body.qpa-team-profile .qpa-profile-hero h1{font-size:42px}
body.qpa-team-profile .qpa-profile-role{font-size:11px}
body.qpa-team-profile .qpa-profile-biography h2{font-size:34px}
body.qpa-team-profile .qpa-profile-facts-label,body.qpa-team-profile .qpa-profile-fact{padding-right:24px;padding-left:24px}
}

@media(prefers-reduced-motion:reduce){
body.qpa-team-profile .qpa-profile-back{transition:none}
}
