/* Section "exp-pole" (sections/exp-pole.php, prefix ep-). Loaded in the <head> by hec_enqueue_section_styles(), or inline by hec_section_style() (functions.php). */
.ep-root {
	--ep-wm: clamp(20rem, 34vw, 30rem);
	--ep-hair: var(--c-lin-300);
	--ep-curve: 9rem;
	position: relative;
	isolation: isolate;
	overflow: clip;
	padding-block: clamp(4.5rem, 2.6rem + 7.6vw, 8rem);
	background: var(--c-lin-200);
	color: var(--c-cacao-900);
	font-family: var(--f-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	scroll-margin-top: calc(var(--header-h) + 4rem); /* below the header and the poles bar */
}
.ep-root::before { /* the logo's crescent in mustard, top right */
	content: "";
	position: absolute;
	top: calc(var(--ep-wm) * -0.1);
	right: calc(var(--ep-wm) * -0.18);
	z-index: -1;
	width: var(--ep-wm);
	aspect-ratio: 732 / 788;
	background: var(--c-ambre-500);
	-webkit-mask: url("../../img/watermark-arc-mask.svg") center / contain no-repeat;
	mask: url("../../img/watermark-arc-mask.svg") center / contain no-repeat;
	opacity: 0.16;
	transform: scaleX(-1);
	pointer-events: none;
}
.ep-root .ep-halo { top: 2rem; left: -12rem; width: min(42rem, 140vw); opacity: 0.75; }
.ep-root--flip::before { right: auto; left: calc(var(--ep-wm) * -0.18); transform: none; }
.ep-root--flip .ep-halo { left: auto; right: -12rem; }
.ep-root--dark { /* plain dark, as the home page's dark bands (client, 2026-11-26) */
	--ep-hair: color-mix(in srgb, var(--c-ivoire-100) 14%, transparent);
	background: var(--c-dark);
	color: var(--c-ivoire-100);
}
.ep-root--dark::before { opacity: 0.14; }
.ep-root--dark .ep-halo { opacity: 0.45; }
.ep-inner { position: relative; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-gutter); }

/* Head: photo, then index label, title, introduction and the services as pills */
.ep-head { display: grid; gap: var(--space-8); margin-bottom: clamp(3.5rem, 2rem + 4vw, 6rem); }
.ep-media {
	position: relative;
	isolation: isolate;
	justify-self: center;
	width: min(88%, 26rem);
	aspect-ratio: 1;
}
.ep-media::before { /* thin mustard frame, offset up and outwards */
	content: "";
	position: absolute;
	inset: calc(var(--space-4) * -1) var(--space-4) var(--space-4) calc(var(--space-4) * -1);
	z-index: -1;
	border: 1px solid var(--c-ambre-500);
	border-radius: var(--ep-curve) var(--radius-lg) var(--radius-lg) var(--radius-lg);
	pointer-events: none;
}
.ep-frame {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: var(--ep-curve) var(--radius-lg) var(--radius-lg) var(--radius-lg);
	box-shadow: var(--shadow-lg);
}
.ep-root--flip .ep-media::before {
	inset: calc(var(--space-4) * -1) calc(var(--space-4) * -1) var(--space-4) var(--space-4);
	border-radius: var(--radius-lg) var(--ep-curve) var(--radius-lg) var(--radius-lg);
}
.ep-root--flip .ep-frame { border-radius: var(--radius-lg) var(--ep-curve) var(--radius-lg) var(--radius-lg); }
.ep-root .ep-img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ep-copy { display: flex; flex-direction: column; min-width: 0; }
.ep-root .ep-title { /* canvas title style, as on the home page */
	max-width: 12em;
	margin: 0 0 var(--space-6);
	color: inherit;
	font-family: var(--f-serif);
	font-size: var(--fs-title);
	font-weight: var(--fw-title);
	font-variation-settings: "opsz" 144, "SOFT" 100;
	line-height: var(--lh-title);
	letter-spacing: var(--ls-title);
	text-wrap: balance;
}
.ep-title-em { color: var(--c-brun-500); font-style: italic; font-weight: 400; }
.ep-root--dark .ep-title-em { color: var(--c-ambre-500); }
.ep-intro { max-width: 36em; margin: 0; color: var(--c-cacao-700); }
.ep-root--dark .ep-intro { color: var(--c-on-dark-text); }
.ep-actions { margin: var(--space-5) 0 0; } /* the shared .hec-btn: links are buttons, never inside the text (client, 2026-11-27) */

/* Services as pills: a short table of contents of the pole */
.ep-root .ep-summary { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-7) 0 0; padding: 0; list-style: none; }
.ep-root .ep-summary a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	min-height: 2.75rem;
	padding: var(--space-2) var(--space-4);
	border: 1px solid var(--ep-hair);
	border-radius: var(--radius-pill);
	background: var(--c-ivoire-50);
	color: var(--c-cacao-900);
	font-size: var(--fs-body-sm);
	font-weight: 500;
	line-height: var(--lh-ui);
	text-decoration: none;
	transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.ep-root .ep-summary a::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--c-ambre-500); transition: background-color 0.25s; }
.ep-root .ep-summary a:hover { border-color: var(--c-ambre-500); background: var(--c-ambre-500); color: var(--c-on-accent); }
.ep-root .ep-summary a:hover::before { background: var(--c-on-accent); }
.ep-root--dark .ep-summary a { background: color-mix(in srgb, var(--c-ivoire-100) 8%, transparent); color: var(--c-ivoire-100); }
.ep-root .ep-summary a:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }

/* Services: editorial rows between hairlines */
.ep-root .ep-list { margin: 0; padding: 0; border-bottom: 1px solid var(--ep-hair); list-style: none; }
.ep-item {
	position: relative;
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr);
	gap: var(--space-4) var(--space-4);
	padding-block: var(--space-7);
	border-top: 1px solid var(--ep-hair);
	scroll-margin-top: calc(var(--header-h) + 5rem);
}
.ep-item::before { /* mustard line drawn over the hairline on hover */
	content: "";
	position: absolute;
	top: -1px;
	right: 0;
	left: 0;
	height: 2px;
	background: var(--c-ambre-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ep-item:hover::before { transform: scaleX(1); }
.ep-num { /* large outlined numeral, filled with mustard on hover */
	color: transparent;
	font-family: var(--f-serif);
	font-size: clamp(2.5rem, 1.9rem + 2.4vw, 4rem);
	font-style: italic;
	font-weight: 300;
	line-height: 0.9;
	-webkit-text-stroke: 1px var(--c-ambre-500);
	transition: color 0.4s;
}
.ep-item:hover .ep-num { color: var(--c-ambre-500); }
.ep-main { min-width: 0; }
.ep-root .ep-card-title {
	margin: 0 0 var(--space-3);
	color: inherit;
	font-family: var(--f-serif);
	font-size: var(--fs-citation);
	font-weight: 400;
	font-variation-settings: "opsz" 48, "SOFT" 100;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.ep-text { max-width: 36em; margin: 0; color: var(--c-cacao-700); }
.ep-detail { grid-column: 1 / -1; min-width: 0; }
.ep-root--dark .ep-text, .ep-root--dark .ep-row-text { color: var(--c-on-dark-text); }

/* Labelled rows */
.ep-root .ep-rows { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.ep-row { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--space-3); }
.ep-row::before { /* mustard chip */
	content: "";
	width: 0.75rem;
	height: 0.75rem;
	margin-top: 0.45em;
	border: 1.5px solid var(--c-ambre-500);
	border-radius: 50%;
	background: var(--c-ambre-50);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-ambre-500) 14%, transparent);
}
.ep-root--dark .ep-row::before { background: var(--c-dark); }
.ep-row-text { margin: 0; color: var(--c-cacao-700); }
.ep-root .ep-row-label { color: var(--c-cacao-900); font-weight: 600; }
.ep-root--dark .ep-row-label { color: var(--c-ivoire-100); }
.ep-root .ep-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.ep-chip { display: grid; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--c-ambre-500); color: var(--c-on-accent); font-size: var(--fs-body-sm); line-height: 1.3; }
.ep-chip strong { font-weight: 600; }

/* IVF steps */
.ep-root .ep-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.ep-step { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: var(--space-4); }
.ep-step-top { display: flex; flex-direction: column; align-items: center; }
.ep-step-num {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1.5px solid var(--c-ambre-500);
	border-radius: 50%;
	background: var(--c-dark);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-ambre-500) 16%, transparent);
	color: var(--c-ambre-500);
	font-size: var(--fs-body-sm);
	font-weight: 600;
	line-height: 1;
}
.ep-step-line { flex: 1; width: 1px; min-height: var(--space-3); margin-block: var(--space-2); background: color-mix(in srgb, var(--c-ambre-500) 70%, transparent); }
.ep-step:last-child .ep-step-line { visibility: hidden; }
.ep-step-body { padding: 0.3rem 0 var(--space-4); }
.ep-root .ep-step-label { margin: 0; color: var(--c-ivoire-100); font-weight: 600; line-height: var(--lh-ui); }
.ep-root .ep-step-text { margin: var(--space-1) 0 0; color: var(--c-on-dark-text); }

@media (min-width: 768px) {
	.ep-item { grid-template-columns: 5rem minmax(0, 1fr); column-gap: var(--space-6); }
	.ep-detail { grid-column: 2; }
}
@media (min-width: 1024px) {
	.ep-item { /* numeral | title and paragraph | details */
		grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.15fr);
		column-gap: var(--space-8);
		padding-block: var(--space-8);
	}
	.ep-detail { grid-column: 3; }
	.ep-item--steps .ep-detail { grid-column: 2 / -1; }
	.ep-item--steps .ep-steps { grid-template-columns: repeat(4, 1fr); }
	.ep-item--steps .ep-step { display: block; }
	.ep-item--steps .ep-step-top { flex-direction: row; }
	.ep-item--steps .ep-step-line { width: auto; height: 1px; min-height: 0; margin: 0 var(--space-3); }
	.ep-item--steps .ep-step-body { padding: var(--space-4) var(--space-5) 0 0; }
}
@media (min-width: 1200px) {
	.ep-head { /* photo and copy side by side, the same height */
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		grid-template-areas: "media copy";
		gap: var(--space-9);
	}
	.ep-root--flip .ep-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-areas: "copy media"; }
	.ep-media { grid-area: media; align-self: start; justify-self: start; width: min(100%, 28rem); }
	.ep-root--flip .ep-media { justify-self: end; }
	.ep-copy { grid-area: copy; align-self: stretch; }
	.ep-copy > nav { margin-top: auto; padding-top: var(--space-7); } /* pills on the photo's bottom line */
	.ep-copy > .ep-actions + nav { padding-top: var(--space-5); } /* with a button, the copy still fits the photo's height */
	.ep-root .ep-summary { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.ep-item::before, .ep-num, .ep-root .ep-summary a { transition: none; }
}
