/* =====================================================================
   EDS Core – Profile popup (founders + team)
   Native <dialog> in the top layer. Scope ":not(#eds)" = ID specificity so
   Hello's reset.css (pink buttons) never leaks in.
   ===================================================================== */

/* ---------- Trigger button ---------- */
.eds-pf-btn:not(#eds){
	--ink:var(--e-global-color-secondary,#111);
	display:inline-flex;align-items:center;gap:10px;margin:0;padding:0 0 3px;border:0;border-radius:0;
	background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;
	color:var(--ink);font:inherit;font-size:.9375rem;font-weight:700;line-height:1.3;cursor:pointer;
	transition:background-size .45s cubic-bezier(.2,.7,.2,1);
}
.eds-pf-btn:not(#eds):is(:hover,:focus-visible){background-color:transparent;color:var(--ink);background-size:100% 1px}
.eds-pf-btn:not(#eds):focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.eds-pf-btn:not(#eds) i{position:relative;flex:none;width:11px;height:11px}
.eds-pf-btn:not(#eds) i::before,.eds-pf-btn:not(#eds) i::after{content:"";position:absolute;left:0;top:50%;width:11px;height:1.5px;margin-top:-.75px;background:currentColor;transition:transform .45s cubic-bezier(.7,0,.12,1)}
.eds-pf-btn:not(#eds) i::after{transform:rotate(90deg)}
.eds-pf-btn:not(#eds):is(:hover,:focus-visible) i::before{transform:rotate(90deg)}
.eds-pf-btn:not(#eds):is(:hover,:focus-visible) i::after{transform:rotate(180deg)}
.eds-pf-btn--pill:not(#eds){padding:12px 20px;border:1px solid rgba(0,0,0,.16);border-radius:999px;background:none;transition:border-color .3s,background-color .3s}
.eds-pf-btn--pill:not(#eds):is(:hover,:focus-visible){border-color:var(--ink)}

/* ---------- Dialog ----------
   Motion is done in profile.js with the Web Animations API (explicit keyframes,
   compositor-only: transform + opacity). The CSS below is only the resting,
   fully-open state, so nothing depends on transition timing or style flushes. */
html.eds-pf-lock{overflow:hidden;padding-right:var(--eds-pf-sb,0px)}
/* The fixed header would widen by the scrollbar while locked and jump back on close. */
html.eds-pf-lock .eds-hdr-root:not(#eds) .eds-hdr{right:var(--eds-pf-sb,0px)}
.eds-pf:not(#eds){
	--ink:var(--e-global-color-secondary,#111);
	--body:var(--e-global-color-text,#5c5c5c);
	--muted:var(--e-global-color-eds_g600,#737373);
	--rule:var(--e-global-color-46313f9,#e5e5e5);
	position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:24px;
	display:none;align-items:center;justify-content:center;
	border:0;background:transparent;color:var(--body);overflow:hidden;
	overscroll-behavior:contain;touch-action:none;-webkit-tap-highlight-color:transparent;
}
.eds-pf[open]:not(#eds){display:flex}
/* The native backdrop stays invisible: the scrim below is a real element we can animate. */
.eds-pf:not(#eds)::backdrop{background:transparent}
.eds-pf:not(#eds) .eds-pf__scrim{
	position:fixed;inset:0;z-index:0;background:rgba(0,0,0,.7);
	cursor:pointer;
}
.eds-pf:not(#eds) .eds-pf__panel,.eds-pf:not(#eds) .eds-pf__body{touch-action:pan-y}
.eds-pf:not(#eds) .eds-pf__panel:focus{outline:none}

.eds-pf:not(#eds) .eds-pf__panel{
	position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);
	width:min(1080px,100%);max-height:min(860px,calc(100vh - 48px));max-height:min(860px,calc(100svh - 48px));
	border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 40px 120px rgba(0,0,0,.28);
	backface-visibility:hidden;
}

.eds-pf:not(#eds) .eds-pf__media{position:relative;min-height:100%;background:var(--e-global-color-4b5c478,#f5f5f5);overflow:hidden}
.eds-pf:not(#eds) .eds-pf__img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;border-radius:0}

.eds-pf:not(#eds) .eds-pf__body{
	display:flex;flex-direction:column;gap:28px;padding:56px 56px 48px;overflow-y:auto;overscroll-behavior:contain;
	/* The grid row would grow with the text and get clipped: cap the column so it scrolls. */
	max-height:min(860px,calc(100vh - 48px));max-height:min(860px,calc(100svh - 48px));
	scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.2) transparent;
}

.eds-pf:not(#eds) :is(p,h2,h3,ul,blockquote){margin:0;padding:0}
.eds-pf:not(#eds) .eds-pf__head{display:flex;flex-direction:column;gap:10px;padding-right:48px}
.eds-pf:not(#eds) .eds-pf__role{color:var(--ink);font-size:.8125rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;line-height:1.4}
.eds-pf:not(#eds) .eds-pf__name{color:var(--ink);font-family:var(--e-global-typography-primary-font-family,inherit),sans-serif;font-size:clamp(1.875rem,3vw,2.5rem);font-weight:400;line-height:1.1;letter-spacing:-.015em}
.eds-pf:not(#eds) .eds-pf__spec{color:var(--muted);font-size:.9375rem;line-height:1.5}
.eds-pf:not(#eds) .eds-pf__quote{padding-left:20px;border-left:1px solid var(--ink);color:var(--ink);font-size:1.1875rem;line-height:1.5}
.eds-pf:not(#eds) .eds-pf__about{display:flex;flex-direction:column;gap:14px;font-size:1rem;line-height:1.7}
.eds-pf:not(#eds) .eds-pf__about p{margin:0}
.eds-pf:not(#eds) .eds-pf__sec{display:flex;flex-direction:column;gap:14px;padding-top:24px;border-top:1px solid var(--rule)}
.eds-pf:not(#eds) .eds-pf__sec h3{color:var(--muted);font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;line-height:1.4}
.eds-pf:not(#eds) .eds-pf__sec ul{list-style:none;display:flex;flex-direction:column;gap:12px}
.eds-pf:not(#eds) .eds-pf__sec li{display:grid;grid-template-columns:120px 1fr;gap:16px;color:var(--ink);font-size:.9375rem;line-height:1.5}
.eds-pf:not(#eds) .eds-pf__sec li > span:only-child{grid-column:1 / -1}
.eds-pf:not(#eds) .eds-pf__when{color:var(--muted);font-variant-numeric:tabular-nums}
.eds-pf:not(#eds) .eds-pf__sec > p{color:var(--ink);font-size:.9375rem}
.eds-pf:not(#eds) .eds-pf__cta{padding-top:8px}

.eds-pf:not(#eds) .eds-pf__close{
	position:absolute;top:20px;right:20px;z-index:2;display:grid;place-items:center;width:48px;height:48px;margin:0;padding:0;
	border:1px solid rgba(0,0,0,.12);border-radius:50%;background:rgba(255,255,255,.92);color:var(--ink);cursor:pointer;
	transition:transform .45s cubic-bezier(.7,0,.12,1),background-color .3s,border-color .3s;
}
.eds-pf:not(#eds) .eds-pf__close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.eds-pf:not(#eds) .eds-pf__close:focus-visible{background:var(--ink);border-color:var(--ink);color:#fff}
@media (hover:hover){.eds-pf:not(#eds) .eds-pf__close:hover{background:var(--ink);border-color:var(--ink);color:#fff;transform:rotate(90deg)}}
.eds-pf:not(#eds) .eds-pf__close:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* ---------- Tablet / phone: bottom sheet ---------- */
@media (max-width:1024px){
	.eds-pf:not(#eds) .eds-pf__body{padding:44px 40px 40px}
	.eds-pf:not(#eds) .eds-pf__panel{grid-template-columns:minmax(0,4fr) minmax(0,6fr)}
}
@media (max-width:767px){
	.eds-pf:not(#eds){padding:0;align-items:flex-end}
	/* Phones: no blur (expensive on a moving layer). */
	.eds-pf:not(#eds) .eds-pf__scrim{background:rgba(0,0,0,.6);-webkit-backdrop-filter:none;backdrop-filter:none}
	.eds-pf:not(#eds) .eds-pf__panel{
		display:block;width:100%;
		max-height:calc(100vh - 40px);max-height:calc(100svh - 40px);
		border-radius:24px 24px 0 0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
		box-shadow:0 -12px 40px rgba(0,0,0,.18);
	}
	.eds-pf:not(#eds) .eds-pf__media{height:auto;aspect-ratio:4/3.4;min-height:0}
	.eds-pf:not(#eds) .eds-pf__img{object-position:50% 20%}
	.eds-pf:not(#eds) .eds-pf__body{padding:28px 20px calc(36px + env(safe-area-inset-bottom,0px));overflow:visible;gap:22px;max-height:none}
	.eds-pf:not(#eds) .eds-pf__head{padding-right:0}
	/* Close button stays on screen while the sheet scrolls. */
	.eds-pf:not(#eds) .eds-pf__close{position:sticky;top:16px;right:auto;display:grid;width:44px;height:44px;margin:16px 16px -60px auto}
	.eds-pf:not(#eds) .eds-pf__sec li{grid-template-columns:1fr;gap:2px}
}
@media (prefers-reduced-motion:reduce){
	.eds-pf:not(#eds) *{transition-duration:.01ms !important}
}
