/**
 * Varallo Orthodontics — Phase B homepage.
 * Rebuilt 2026-09-18 against the 2026-08-31 Figma design (frame 4:2, PDF export).
 * Everything is scoped under .phase-b-home so no other template is affected.
 *
 * Do NOT set `color: inherit` on button classes here — the theme's filled
 * buttons are navy and would render navy-on-navy (see MR !47).
 */

.phase-b-home {
	--pb-navy: #2a4369;
	--pb-navy-dark: #22375a;
	--pb-cyan: #57c6ea;
	--pb-cyan-soft: #d9eaf2;
	--pb-cyan-pale: #f2fafc;
	--pb-pink: #ea579b;
	--pb-pink-pale: #fdecf3;
	--pb-cream: #fbeee6;
	--pb-text: #43536f;
	--pb-max: 1240px;

	font-family: "vinila", "Helvetica Neue", Arial, sans-serif;
	color: var(--pb-text);
	/* clip, not hidden: hidden would make this a scroll container and kill the
	   pinned Every Age section (position: sticky) inside it. */
	overflow-x: clip;
}

.phase-b-home h1,
.phase-b-home h2,
.phase-b-home h3 {
	font-family: "vinila", "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	color: var(--pb-navy);
	margin: 0;
	letter-spacing: 0;
	text-transform: none;
}

.phase-b-home p {
	margin: 0 0 18px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--pb-text);
}

.phase-b-home .pb-container {
	max-width: var(--pb-max);
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 2;
}

.phase-b-home .pb-pink { color: var(--pb-pink); }
.phase-b-home .pb-cyan { color: var(--pb-cyan); }

.phase-b-home p.pb-on-navy,
.phase-b-home h2.pb-on-navy,
.phase-b-home h3.pb-on-navy,
.phase-b-home .pb-on-navy p,
.phase-b-home .pb-lead.pb-on-navy { color: #fff; }
.phase-b-home .pb-on-navy .pb-pink { color: var(--pb-pink); }

.phase-b-home .pb-lead {
	font-size: 23px;
	line-height: 1.5;
	color: var(--pb-navy);
	font-weight: 300;
	margin-bottom: 24px;
}

.phase-b-home .pb-lead-center {
	text-align: center;
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
}

.phase-b-home .pb-heading-center { text-align: center; }

.phase-b-home h2 {
	font-size: 42px;
	line-height: 1.2;
	margin-bottom: 18px;
}

/* ---------- buttons ---------- */

.phase-b-home .pb-btn {
	display: inline-block;
	padding: 19px 34px;
	font-size: 14px;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	border: 0;
	transition: background-color .2s ease, color .2s ease;
}

.phase-b-home .pb-btn-navy { background: var(--pb-navy); color: #fff; }
.phase-b-home .pb-btn-navy:hover,
.phase-b-home .pb-btn-navy:focus { background: var(--pb-navy-dark); color: #fff; }

.phase-b-home .pb-btn-cyan { background: var(--pb-cyan); color: var(--pb-navy); }
.phase-b-home .pb-btn-cyan:hover,
.phase-b-home .pb-btn-cyan:focus { background: #43b6dd; color: var(--pb-navy); }

.phase-b-home .pb-arrow {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: var(--pb-cyan);
	cursor: pointer;
	position: relative;
	flex: 0 0 auto;
	padding: 0;
}

.phase-b-home .pb-arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 11px;
	border-top: 2px solid var(--pb-navy);
	border-right: 2px solid var(--pb-navy);
	transform: translate(-60%, -50%) rotate(45deg);
}

.phase-b-home .pb-arrow[data-pb-dir="prev"]::before {
	transform: translate(-40%, -50%) rotate(-135deg);
}

.phase-b-home .pb-arrow:hover { background: #43b6dd; }
.phase-b-home .pb-arrow:focus-visible { outline: 3px solid var(--pb-navy); outline-offset: 2px; }

/* decorative pink half circle (flat edge on top) */
.phase-b-home .pb-halfcircle {
	display: block;
	width: 104px;
	height: 52px;
	background: var(--pb-pink);
	border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.phase-b-home .pb-halfcircle-lg {
	width: 340px;
	height: 170px;
	border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* ---------- 1. hero ---------- */

.phase-b-home .pb-hero {
	background: var(--pb-cyan-soft);
	position: relative;
	overflow: hidden;
	padding: 130px 0 110px;
}

.phase-b-home .pb-hero::before {
	content: "";
	position: absolute;
	right: -170px;
	top: -140px;
	width: 1000px;
	height: 1000px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .32);
	z-index: 0;
}

.phase-b-home .pb-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 693fr) minmax(0, 747fr);
	align-items: center;
	gap: 0 94px;
	max-width: none;
	width: 100%;
	margin: 0;
}

.phase-b-home .pb-hero-media {
	position: relative;
	aspect-ratio: 693 / 555;
	overflow: hidden;
	background: var(--pb-navy);
}

.phase-b-home .pb-hero-media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.phase-b-home .pb-hero-copy { padding-right: 40px; }

.phase-b-home .pb-hero-copy h1 {
	font-size: 62px;
	line-height: 1.13;
	font-weight: 300;
	max-width: 560px;
	margin-bottom: 26px;
}

.phase-b-home .pb-hero-sub {
	font-size: 23px;
	line-height: 1.55;
	color: var(--pb-navy);
	font-weight: 300;
	max-width: 490px;
	margin-bottom: 38px;
}

.phase-b-home .pb-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* ---------- 2. trust bar ---------- */

.phase-b-home .pb-trust {
	background: var(--pb-navy);
	text-align: center;
	padding: 150px 0 54px;
	position: relative;
}

.phase-b-home .pb-trust .pb-halfcircle {
	position: absolute;
	top: 56px;
	left: 50%;
	transform: translateX(-50%);
}

.phase-b-home .pb-trust-claims {
	color: #fff;
	font-size: 15px;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.phase-b-home .pb-trust-claims strong { font-weight: 700; }

.phase-b-home .pb-trust-sub {
	color: #fff;
	font-size: 17px;
	margin: 0;
	opacity: .95;
}

/* ---------- 3. provider logos ---------- */

.phase-b-home .pb-logos { background: #fff; padding: 40px 0; }

.phase-b-home .pb-logos ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 30px 40px;
}

.phase-b-home .pb-logos li { margin: 0; }

.phase-b-home .pb-logos img {
	display: block;
	max-height: 62px;
	width: auto;
	height: auto;
}

/* the same partner logos sit in the footer template — one strip per page */
body.home .footer-logos { display: none; }

/* ---------- 4. professional care ---------- */

.phase-b-home .pb-care {
	background: var(--pb-cream);
	position: relative;
	padding: 145px 0 130px;
	overflow: hidden;
}

.phase-b-home .pb-care-navy {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 26%;
	background: var(--pb-navy);
	z-index: 0;
}

.phase-b-home .pb-care-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr);
	align-items: center;
	gap: 60px;
}

.phase-b-home .pb-care-copy h2 { margin-bottom: 22px; }

.phase-b-home .pb-care-copy p:last-child { max-width: 460px; margin-bottom: 0; }

.phase-b-home .pb-care-media {
	position: relative;
	margin-right: -30px;
}

.phase-b-home .pb-care-media img {
	display: block;
	width: 100%;
	height: auto;
	position: relative;
	z-index: 2;
}

.phase-b-home .pb-care-media .pb-halfcircle-lg {
	position: absolute;
	left: 50%;
	bottom: -104px;
	transform: translateX(-50%);
	z-index: 1;
}

/* ---------- 5. meet the doctor ---------- */

.phase-b-home .pb-doctor {
	background-color: var(--pb-navy);
	background-size: cover;
	background-position: center;
	position: relative;
	padding: 90px 0 0;
	margin-bottom: 230px;
}

.phase-b-home .pb-doctor::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(42, 67, 105, .88);
}

/* cream apron: carries the navy band into the cream Why section behind the card */
.phase-b-home .pb-doctor::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 120px;
	background: var(--pb-cream);
	z-index: 1;
}

.phase-b-home .pb-doctor h2 {
	position: relative;
	z-index: 3;
	font-size: 40px;
	margin: 0 auto 46px;
	max-width: 860px;
}

.phase-b-home .pb-doctor-card {
	position: relative;
	z-index: 3;
	background: #fff;
	display: grid;
	grid-template-columns: minmax(0, 570fr) minmax(0, 670fr);
	align-items: stretch;
	margin-bottom: -230px;
}

.phase-b-home .pb-doctor-photo { position: relative; min-height: 520px; }

.phase-b-home .pb-doctor-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.phase-b-home .pb-doctor-copy { padding: 78px 90px; }

.phase-b-home .pb-doctor-copy h3 { font-size: 27px; margin-bottom: 18px; }

.phase-b-home .pb-doctor-copy p { max-width: 470px; }

.phase-b-home .pb-doctor-copy .pb-btn { margin-top: 14px; }

/* ---------- 6. why families ---------- */

.phase-b-home .pb-why {
	overflow: hidden;
	background: var(--pb-cream);
	padding: 120px 0 130px;
}

.phase-b-home .pb-why h2 { margin-bottom: 46px; }

.phase-b-home .pb-why-grid {
	display: grid;
	grid-template-columns: minmax(0, 570fr) minmax(0, 630fr);
	gap: 40px;
	align-items: start;
}

.phase-b-home .pb-why-cards { position: relative; z-index: 2; }

.phase-b-home .pb-why-card {
	display: block;
	padding: 42px 44px;
	text-decoration: none;
	background: transparent;
	transition: background-color .22s ease, box-shadow .22s ease;
}

.phase-b-home .pb-why-card:hover,
.phase-b-home .pb-why-card:focus {
	background: #fff;
	box-shadow: 0 18px 40px rgba(42, 67, 105, .07);
}

.phase-b-home .pb-why-card h3 { font-size: 27px; margin-bottom: 14px; }

.phase-b-home .pb-why-card p { max-width: 460px; margin-bottom: 20px; }

.phase-b-home .pb-why-link {
	display: inline-block;
	font-size: 13px;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	color: var(--pb-navy);
	border-bottom: 2px solid var(--pb-navy);
	padding-bottom: 5px;
}

.phase-b-home .pb-why-media { position: relative; }

.phase-b-home .pb-why-dot {
	position: absolute;
	left: -86px;
	top: -30px;
	width: 172px;
	height: 86px;
	border-radius: 0 0 50% 50% / 0 0 100% 100%;
	background: var(--pb-navy);
	z-index: 0;
}

.phase-b-home .pb-why-media img {
	display: block;
	width: 100%;
	height: auto;
	position: relative;
	z-index: 1;
}

/* ---------- 7. every age ---------- */

.phase-b-home .pb-age {
	background: var(--pb-cyan-soft);
	padding: 130px 0 120px;
	position: relative;
}

.phase-b-home .pb-age-mark {
	position: absolute;
	top: -92px;
	left: 50%;
	transform: translateX(-50%);
	width: 184px;
	height: 184px;
	border-radius: 50%;
	background: var(--pb-cyan-soft);
	display: flex;
	align-items: center;
	justify-content: center;
}

.phase-b-home .pb-age-mark-inner {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: var(--pb-navy);
	position: relative;
}

.phase-b-home .pb-age-mark-inner::before {
	content: "";
	position: absolute;
	inset: 17px;
	border-radius: 50%;
	background: #fff;
	overflow: hidden;
}

.phase-b-home .pb-age-mark-inner::after {
	content: "";
	position: absolute;
	left: 17px;
	right: 17px;
	bottom: 17px;
	height: 43px;
	background: var(--pb-pink);
	border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.phase-b-home .pb-age h2 { font-size: 42px; margin-bottom: 16px; }

.phase-b-home .pb-age-scroller {
	position: relative;
	margin-top: 64px;
	height: 300vh;
}

.phase-b-home .pb-age-sticky {
	position: sticky;
	top: 0;
	height: 100vh;
	padding-top: 128px; /* clears the sticky site header */
	padding-bottom: 40px;
	display: flex;
	align-items: center;
}

.phase-b-home .pb-age-stage {
	position: relative;
	width: 100%;
	min-height: 520px;
}

.phase-b-home .pb-age-panel {
	display: grid;
	position: absolute;
	inset: 0;
	grid-template-columns: minmax(0, 548fr) minmax(0, 76fr) minmax(0, 616fr);
	align-items: start;
	gap: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s ease;
	pointer-events: none;
}

.phase-b-home .pb-age-panel.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.phase-b-home .pb-age-photo { position: relative; aspect-ratio: 548 / 490; }

.phase-b-home .pb-age-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.phase-b-home .pb-age-copy { padding: 90px 0 0 100px; grid-column: 3; }

.phase-b-home .pb-age-copy h3 { font-size: 32px; margin-bottom: 16px; }

.phase-b-home .pb-age-copy p { max-width: 500px; margin-bottom: 30px; }

.phase-b-home .pb-age-rail {
	position: absolute;
	left: calc(548 / 1240 * 100%);
	top: 0;
	width: 6px;
	height: 490px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transform: translateX(80px);
}

.phase-b-home .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	padding: 0;
	margin: -1px;
}
.phase-b-home .pb-age-rail-item {
	flex: 1 1 0;
	border: 0;
	padding: 0;
	background: #fff;
	cursor: pointer;
	width: 6px;
	border-radius: 3px;
}

.phase-b-home .pb-age-rail-item.is-active { background: var(--pb-pink); }
.phase-b-home .pb-age-rail-item:focus-visible { outline: 3px solid var(--pb-navy); outline-offset: 3px; }

/* ---------- 8. before & afters ---------- */

.phase-b-home .pb-ba {
	background: var(--pb-cyan-pale);
	padding: 110px 0 120px;
	position: relative;
	overflow: hidden;
}

.phase-b-home .pb-ba::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 1060px;
	height: 1400px;
	background: #fff;
	border-radius: 50% 50% 0 0 / 34% 34% 0 0;
	z-index: 0;
}

.phase-b-home .pb-ba h2 { font-size: 42px; margin-bottom: 16px; }

.phase-b-home .pb-ba-stage {
	position: relative;
	z-index: 2;
	margin: 56px auto 0;
	max-width: 720px;
	min-height: 240px;
}

.phase-b-home .pb-ba-band {
	position: absolute;
	left: -80px;
	right: -80px;
	bottom: -26px;
	height: 120px;
	background: var(--pb-pink-pale);
	z-index: 0;
}

.phase-b-home .pb-ba-case {
	display: none;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 22px;
	margin: 0;
	position: relative;
	z-index: 1;
}

.phase-b-home .pb-ba-case.is-active { display: grid; }

.phase-b-home .pb-ba-case img { display: block; width: 100%; height: auto; }

.phase-b-home .pb-ba-label {
	position: absolute;
	top: 50%;
	font-size: 12px;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--pb-navy);
	writing-mode: vertical-rl;
	z-index: 2;
}

.phase-b-home .pb-ba-label-before { left: -46px; transform: translateY(-50%) rotate(180deg); }
.phase-b-home .pb-ba-label-after { right: -46px; transform: translateY(-50%); }

.phase-b-home .pb-ba-actions {
	position: relative;
	z-index: 2;
	margin-top: 74px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 26px;
}

/* ---------- 9. trusted by families ---------- */

.phase-b-home .pb-trusted {
	overflow: hidden;
	background-color: var(--pb-navy);
	background-size: cover;
	background-position: center;
	position: relative;
	padding: 150px 0 160px;
	overflow: hidden;
}

.phase-b-home .pb-trusted::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(42, 67, 105, .9);
}

.phase-b-home .pb-trusted-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 80px;
	align-items: center;
}

.phase-b-home .pb-trusted-copy h2 { font-size: 42px; margin-bottom: 18px; }

.phase-b-home .pb-trusted-stage { position: relative; }

.phase-b-home .pb-quote {
	display: none;
	background: #fff;
	margin: 0;
	padding: 54px 62px 44px;
	text-align: center;
	position: relative;
	border: 0;
}

.phase-b-home .pb-quote.is-active { display: block; }

.phase-b-home .pb-quote::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -26px;
	transform: translateX(-50%);
	border-left: 26px solid transparent;
	border-right: 26px solid transparent;
	border-top: 26px solid #fff;
}

.phase-b-home .pb-stars {
	display: block;
	color: var(--pb-pink);
	font-size: 24px;
	letter-spacing: 10px;
	margin-bottom: 18px;
}

.phase-b-home .pb-quote h3 { font-size: 27px; line-height: 1.3; margin-bottom: 18px; }

.phase-b-home .pb-quote p { font-size: 16px; margin-bottom: 22px; }

.phase-b-home .pb-quote cite {
	font-style: normal;
	font-size: 13px;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--pb-navy);
}

.phase-b-home .pb-quote-arrows {
	position: absolute;
	right: -74px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* ---------- 10. patient testimonials ---------- */

.phase-b-home .pb-testimonials {
	background: var(--pb-cream);
	padding: 110px 0 120px;
	position: relative;
}

.phase-b-home .pb-testimonials h2 { font-size: 42px; margin-bottom: 12px; }

.phase-b-home .pb-stories-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
	margin-top: 44px;
}

.phase-b-home .pb-story { min-width: 0; }

.phase-b-home .pb-story-media { position: relative; aspect-ratio: 1 / 1; }

.phase-b-home .pb-story-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.phase-b-home .pb-play {
	position: absolute;
	left: 22px;
	bottom: 22px;
	width: 78px;
	height: 78px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .82);
	cursor: pointer;
	z-index: 2;
}

.phase-b-home .pb-play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-left: 24px solid var(--pb-pink);
	border-top: 15px solid transparent;
	border-bottom: 15px solid transparent;
}

.phase-b-home .pb-play:hover { background: #fff; }

.phase-b-home .pb-story h3 { font-size: 27px; margin: 26px 0 14px; }

.phase-b-home .pb-story p { font-size: 16px; margin: 0; }

.phase-b-home .pb-stories-footer { margin-top: 34px; }

/* ---------- 11. referring a friend ---------- */

.phase-b-home .pb-referral {
	background: var(--pb-cyan-soft);
	padding: 156px 0 0;
	position: relative;
	text-align: center;
}

.phase-b-home .pb-referral > .pb-halfcircle {
	position: absolute;
	top: 60px;
	left: 50%;
	transform: translateX(-50%);
}

.phase-b-home .pb-referral h2 { font-size: 42px; margin-bottom: 12px; }

.phase-b-home .pb-referral-accent {
	color: var(--pb-pink);
	font-size: 26px;
	font-weight: 300;
	margin-bottom: 20px;
}

.phase-b-home .pb-referral-body { max-width: 690px; margin: 0 auto 34px; }

.phase-b-home .pb-referral-ctas {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 66px;
}

.phase-b-home .pb-referral-strip {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	padding-bottom: 110px;
}

.phase-b-home .pb-referral-strip img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 3 / 2;
	position: relative;
}


/* ---------- 12. follow us ---------- */

.phase-b-home .pb-follow { background: var(--pb-cyan); padding: 34px 0 0; }

.phase-b-home .pb-follow-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 30px;
}

.phase-b-home .pb-follow-head h3 { font-size: 30px; margin: 0; }

.phase-b-home .pb-follow-social {
	list-style: none;
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 0;
}

.phase-b-home .pb-follow-social a { color: var(--pb-navy); font-size: 22px; }

.phase-b-home .pb-follow-strip {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.phase-b-home .pb-follow-strip img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
	.phase-b-home .pb-hero-copy h1 { font-size: 50px; }
	.phase-b-home h2,
	.phase-b-home .pb-age h2,
	.phase-b-home .pb-ba h2,
	.phase-b-home .pb-trusted-copy h2,
	.phase-b-home .pb-testimonials h2,
	.phase-b-home .pb-referral h2 { font-size: 34px; }
	.phase-b-home .pb-doctor-copy { padding: 54px 48px; }
	.phase-b-home .pb-age-copy { padding: 40px 0 0 56px; }
	.phase-b-home .pb-quote-arrows { right: 12px; }
	.phase-b-home .pb-story h3 { font-size: 23px; }
}

@media (max-width: 900px) {
	.phase-b-home .pb-age-scroller { height: auto; }
	.phase-b-home .pb-age-sticky { position: static; height: auto; display: block; }
	.phase-b-home .pb-age-stage { min-height: 0; }
	.phase-b-home .pb-age-panel {
		position: static;
		inset: auto;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		display: none;
	}
	.phase-b-home .pb-age-panel.is-active { display: grid; }
	.phase-b-home .pb-hero { padding: 60px 0 70px; }
	.phase-b-home .pb-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.phase-b-home .pb-hero-copy { padding: 0 24px; }
	.phase-b-home .pb-hero-copy h1 { font-size: 40px; }
	.phase-b-home .pb-hero-sub { font-size: 20px; }

	.phase-b-home .pb-care { padding: 80px 0; }
	.phase-b-home .pb-care-navy { display: none; }
	.phase-b-home .pb-care-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.phase-b-home .pb-care-media .pb-halfcircle-lg { display: none; }

	.phase-b-home .pb-doctor { margin-bottom: 0; padding-bottom: 70px; }
	.phase-b-home .pb-doctor-card { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
	.phase-b-home .pb-doctor-photo { min-height: 360px; }
	.phase-b-home .pb-doctor-copy { padding: 40px 30px; }

	.phase-b-home .pb-why { padding: 70px 0 80px; }
	.phase-b-home .pb-why-grid { grid-template-columns: minmax(0, 1fr); }
	.phase-b-home .pb-why-card { padding: 26px 0; background: #fff; padding: 26px; }
	.phase-b-home .pb-why-dot { display: none; }

	.phase-b-home .pb-age { padding: 90px 0 70px; }
	.phase-b-home .pb-age-mark { top: -62px; width: 124px; height: 124px; }
	.phase-b-home .pb-age-mark-inner { width: 100px; height: 100px; }
	.phase-b-home .pb-age-mark-inner::after { height: 28px; }
	.phase-b-home .pb-age-panel.is-active { grid-template-columns: minmax(0, 1fr); }
	.phase-b-home .pb-age-copy { grid-column: 1; padding: 28px 0 0; }
	.phase-b-home .pb-age-rail {
		position: static;
		flex-direction: row;
		width: auto;
		height: 6px;
		transform: none;
		margin-top: 28px;
	}
	.phase-b-home .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	padding: 0;
	margin: -1px;
}
.phase-b-home .pb-age-rail-item { width: auto; height: 6px; }

	.phase-b-home .pb-ba::before { width: 160%; }
	.phase-b-home .pb-ba-label { display: none; }

	.phase-b-home .pb-trusted { padding: 80px 0 90px; }
	.phase-b-home .pb-trusted-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	.phase-b-home .pb-quote { padding: 36px 28px 30px; }
	.phase-b-home .pb-quote-arrows {
		position: static;
		transform: none;
		flex-direction: row;
		justify-content: center;
		margin-top: 44px;
	}

	.phase-b-home .pb-story { flex: 0 0 100%; }
	.phase-b-home .pb-stories-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.phase-b-home .pb-follow-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.phase-b-home .pb-logos ul { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.phase-b-home .pb-age-panel { transition: none; }
	.phase-b-home .pb-hero-media video { display: none; }
}

/* --- 2026-09-18 round 3: before/after half circle + referral marquee --- */

/* The faint pink shape behind the before/afters is a half circle in the design
   (flat top, round bottom), not a rectangle. Percentage radii only - px radii
   larger than the element get halved by the browser. */
.phase-b-home .pb-ba-band {
	left: -134px;
	right: -134px;
	top: 104px;
	bottom: auto;
	height: 327px;
	border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* Referring a Friend photo strip: pink bar behind a continuous marquee. */
.phase-b-home .pb-referral-strip {
	display: block;
	padding: 0;
	background: var(--pb-pink);
	overflow: hidden;
}

.phase-b-home .pb-referral-marquee {
	display: flex;
	width: max-content;
	gap: 40px;
	padding-right: 40px;
	animation: pb-referral-scroll 70s linear infinite;
}

.phase-b-home .pb-referral-strip:hover .pb-referral-marquee,
.phase-b-home .pb-referral-strip:focus-within .pb-referral-marquee {
	animation-play-state: paused;
}

.phase-b-home .pb-referral-strip img {
	flex: 0 0 auto;
	width: 420px;
	height: 300px;
	aspect-ratio: auto;
	object-fit: cover;
}

@keyframes pb-referral-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.phase-b-home .pb-referral { padding-bottom: 110px; }

@media (max-width: 900px) {
	.phase-b-home .pb-referral-strip img { width: 280px; height: 200px; }
	.phase-b-home .pb-referral { padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
	.phase-b-home .pb-referral-marquee { animation: none; }
}

/* --- 2026-09-18 revision round: mobile stacking + before/after cleanup --- */

@media (max-width: 900px) {
	/* Every Age: stack all three groups so they are all visible without the pin */
	.phase-b-home .pb-age-panel,
	.phase-b-home .pb-age-panel.is-active {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		margin-bottom: 48px;
	}

	.phase-b-home .pb-age-panel:last-of-type { margin-bottom: 0; }

	.phase-b-home .pb-age-rail { display: none; }

	/* Before & Afters: keep the pair, band and controls inside the viewport */
	.phase-b-home .pb-ba-stage {
		max-width: 100%;
		min-height: 0;
		margin-top: 34px;
	}

	.phase-b-home .pb-ba-case { gap: 12px; }

	.phase-b-home .pb-ba-band {
		left: -24px;
		right: -24px;
		top: 62px;
		bottom: auto;
		height: 190px;
	}

	.phase-b-home .pb-ba-actions {
		flex-wrap: wrap;
		gap: 16px;
		justify-content: center;
	}

	.phase-b-home .pb-ba-actions .pb-btn { order: 3; flex: 0 0 100%; text-align: center; }
}

/* --- 2026-09-18 round 4: referral marquee sizing + pink band ------------- */

/* The design does not fill the strip with pink: it is a 180px band that only
   shows through the 40px gaps between photos. Pseudo-element, not background. */
.phase-b-home .pb-referral-strip {
	background: none;
	position: relative;
}

.phase-b-home .pb-referral-strip::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 172px;
	height: 180px;
	background: var(--pb-pink);
	z-index: 0;
}

.phase-b-home .pb-referral-marquee { position: relative; z-index: 1; }

/* Design height, and the 3:2 crop the section used before the marquee. */
.phase-b-home .pb-referral-strip img {
	width: auto;
	height: 485px;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

@media (max-width: 900px) {
	.phase-b-home .pb-referral-strip img { width: auto; height: 260px; }
	.phase-b-home .pb-referral-strip::before { top: 92px; height: 96px; }
}

/* =========================================================================
   2026-09-21 design-review round (TE/NC homepage PDF, 2026-09-18)
   ========================================================================= */

/* 1. Dr. Varallo photo: eyes in the upper third of the frame (photo team rule).
   2026-09-21: swapped to img/dr-varallo-headshot.jpg (1200x1629, eyes at 26% of
   the file). At the 548x520 desktop crop, 10% puts them at ~29% of the frame. */
.phase-b-home .pb-doctor-photo img { object-position: 50% 10%; }

/* 2. "Why Families Trust" media: slightly taller, and the photo swaps to a
   relevant one while a card is hovered. */
.phase-b-home .pb-why-media { aspect-ratio: 605 / 672; }

.phase-b-home .pb-why-media img,
.phase-b-home .pb-why-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.phase-b-home .pb-why-img-hover {
	opacity: 0;
	z-index: 2;
	transition: opacity .45s ease;
	pointer-events: none;
}

.phase-b-home .pb-why-media.is-why-0 .pb-why-img-hover[data-pb-why-img="0"],
.phase-b-home .pb-why-media.is-why-1 .pb-why-img-hover[data-pb-why-img="1"],
.phase-b-home .pb-why-media.is-why-2 .pb-why-img-hover[data-pb-why-img="2"] { opacity: 1; }

/* 3. Every Age: the lead paragraph sat 292px (desktop) / 192px (tablet) above
   the first photo. Top-align the pinned stage instead of centering it in the
   viewport, keeping 150px of clearance for the sticky 145px header. */
.phase-b-home .pb-age-scroller { margin-top: 24px; }

.phase-b-home .pb-age-sticky {
	padding-top: 150px;
	align-items: flex-start;
}

/* 3b. Smoother crossfade between age groups. */
.phase-b-home .pb-age-panel {
	transition: opacity .6s ease, transform .6s ease;
	transform: translateY(14px);
}

.phase-b-home .pb-age-panel.is-active { transform: none; }

/* 4. Before & Afters: the CTA was forced to 100% on small screens. */
@media (max-width: 900px) {
	.phase-b-home .pb-ba-actions .pb-btn { flex: 0 0 auto; max-width: 100%; }

	/* arrows + button sit closer to the pair */
	.phase-b-home .pb-ba-actions { margin-top: 26px; gap: 14px; }
}

/* 5. Tablet/mobile: video frame gets the same side padding as the copy. */
@media (max-width: 900px) {
	.phase-b-home .pb-hero-media { margin: 0 24px; }

	/* Dr. Varallo crop again at the wider/flatter mobile frame. The stacked frame
	   is full-width, so the portrait zooms hard: 460px tall + 20% keeps the eyes
	   at ~28% of the frame at 768. */
	.phase-b-home .pb-doctor-photo { min-height: 460px; }
	.phase-b-home .pb-doctor-photo img { object-position: 50% 20%; }

	/* wider text column under the doctor photo */
	.phase-b-home .pb-doctor-copy { padding: 40px 24px; }

	/* the age scroller is static here: drop the sticky-header allowance */
	.phase-b-home .pb-age-sticky { padding-top: 0; }
	.phase-b-home .pb-age-scroller { margin-top: 28px; }

	/* "What Families Are Saying" intro centered over the quote card */
	.phase-b-home .pb-trusted-copy { text-align: center; }
	.phase-b-home .pb-trusted-copy .pb-btn { margin-left: auto; margin-right: auto; }
}

/* Narrow phones: the frame is near square again, so no upward offset is needed
   (eyes land at ~28% of the frame at 375). */
@media (max-width: 620px) {
	.phase-b-home .pb-doctor-photo img { object-position: 50% 0%; }
}


/* --- 2026-09-28 website notes --- */

/* Trust bar: the reviews claim links to /testimonials/. */
.phase-b-home .pb-trust-claims a.pb-trust-link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .55);
	transition: border-color .2s ease;
}

.phase-b-home .pb-trust-claims a.pb-trust-link:hover,
.phase-b-home .pb-trust-claims a.pb-trust-link:focus-visible {
	color: inherit;
	border-bottom-color: #fff;
}


/* --- 2026-10-05 trust-bar subline links to /testimonials/ --- */
.phase-b-home .pb-trust-sub a.pb-trust-sub-link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .55);
	transition: border-color .2s ease;
}

.phase-b-home .pb-trust-sub a.pb-trust-sub-link:hover,
.phase-b-home .pb-trust-sub a.pb-trust-sub-link:focus-visible {
	color: inherit;
	border-bottom-color: #fff;
}
