/*
 * Crystal Clear theme: front page only (loaded after main.css on the front page).
 * Matches the mockup of 6 Dec 2026, rebuild/reference/mockup-2026-12-06/.
 * Sections in page order: hero and figures, urgent strip, credentials, shared section and
 * card styles, about and education, research, expertise, awards, practice, blogs,
 * reviews, appointment band.
 */

/* Hero ------------------------------------------------------------------------- */

.cc-hh {
	overflow: hidden;
	background: var(--wash);
	color: var(--ink);
}

.cc-hh__grid { display: grid; }

.cc-hh__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: 3rem;
}

.cc-hh__kicker {
	margin-bottom: 1.25rem;
	color: var(--teal-dark);
	font-size: var(--text-lg);
	font-weight: 500;
	line-height: 1.75rem;
}

.cc-hh__title {
	max-width: 48rem;
	font-size: 2.75rem;
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -0.05em;
	text-wrap: balance;
}

.cc-hh__quals {
	margin-top: 1.25rem;
	color: var(--teal-dark);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.625;
	text-transform: uppercase;
}

.cc-hh__intro {
	max-width: 36rem;
	margin-top: 1.5rem;
	color: var(--muted);
	font-size: var(--text-lg);
	line-height: 1.625;
}

.cc-hh__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	margin-top: 2rem;
}

.cc-hh__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-top: 2rem;
	color: var(--muted);
	font-size: var(--text-sm);
	line-height: 1.25rem;
}

.cc-hh__meta-item { display: inline-flex; align-items: center; gap: 0.5rem; }
a.cc-hh__meta-item { min-height: 44px; }

.cc-hh__media {
	position: relative;
	min-height: 440px;
	background: var(--gold-soft);
}

.cc-hh__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: bottom;
}

.cc-hh__badge {
	position: absolute;
	bottom: 1.25rem;
	left: 1.25rem;
	padding: 0.75rem 1rem;
	background: var(--paper);
}

.cc-hh__badge-num,
.cc-hh__figure-num {
	font-size: var(--text-xl);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.75rem;
}

.cc-hh__badge-label { color: var(--muted); font-size: var(--text-xs); line-height: 1rem; }

.cc-hh__figures { border-top: 1px solid var(--line); }

.cc-hh__figures-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cc-hh__figure { padding: 1.5rem 1rem 1.5rem 0; }
.cc-hh__figure:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.cc-hh__figure:nth-child(n + 3) { border-top: 1px solid var(--line); }

.cc-hh__figure-label {
	margin-top: 0.25rem;
	color: var(--muted);
	font-size: var(--text-xs);
	line-height: 1.625;
}

@media (min-width: 640px) {
	.cc-hh__actions { flex-direction: row; align-items: center; }
}

@media (min-width: 768px) {
	.cc-hh__text { padding-block: 5rem; }
	.cc-hh__title { font-size: 3.75rem; line-height: 1; }
	.cc-hh__media { min-height: 520px; }
	.cc-hh__badge { bottom: 2rem; left: 2rem; }
	.cc-hh__figure { padding-block: 1.75rem; }
	.cc-hh__figure-num { font-size: var(--text-2xl); line-height: 2rem; }
	.cc-hh__figure-label { font-size: var(--text-sm); line-height: 1.25rem; }
}

@media (min-width: 1024px) {
	.cc-hh__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
	.cc-hh__text { padding-block: 6rem; padding-right: 3rem; }
	.cc-hh__title { font-size: 4.6rem; }
	.cc-hh__media { min-height: 620px; }
	.cc-hh__figures-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.cc-hh__figure:nth-child(n) { padding-left: 2rem; border-top: 0; border-left: 1px solid var(--line); }
	.cc-hh__figure:first-child { padding-left: 0; border-left: 0; }
}

/* Urgent strip ------------------------------------------------------------------- */

.cc-hurgent { background: var(--urgent); color: var(--urgent-ink); }

.cc-hurgent__inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-block: 1.25rem;
}

.cc-hurgent__text { display: flex; align-items: flex-start; gap: 0.75rem; font-size: var(--text-sm); line-height: 1.625; }
.cc-hurgent__text .cc-icon { margin-top: 0.15rem; }

.cc-hurgent__link {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (min-width: 768px) {
	.cc-hurgent__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Credentials ------------------------------------------------------------------- */

.cc-hcred { padding-block: 2.5rem; }

.cc-hcred__list {
	display: grid;
	gap: 0.75rem;
	margin-block: 0;
	list-style: none;
}

.cc-hcred__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 4rem;
	padding-block: 0.75rem;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: 1.25rem;
	text-decoration: none;
}

.cc-hcred__link .cc-icon { transition: transform 0.18s ease-out; }
.cc-hcred__link:hover .cc-icon { transform: translateX(4px); }
.cc-hcred__link:hover span { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 640px) {
	.cc-hcred__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
	.cc-hcred { padding-block: 3.5rem; }
}

@media (min-width: 1024px) {
	.cc-hcred__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Shared: sections, heads and cards --------------------------------------------- */

.cc-hsec { padding-block: 4rem; }
.cc-hsec :is(h2, h3) { text-wrap: wrap; }
.cc-hsec--tint { background: var(--section); }
.cc-hsec--short { padding-block: 3rem; }

.cc-hsec__head { margin-bottom: 2.5rem; }
.cc-hsec__icon { display: block; margin-bottom: 1.25rem; color: var(--teal-dark); }

.cc-hsec__head--link {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.cc-hsec__intro {
	max-width: 42rem;
	margin-top: 1rem;
	color: var(--muted);
	font-size: var(--text-lg);
	line-height: 1.75rem;
}

.cc-hcards {
	display: grid;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-hcard {
	padding: 1.25rem;
	border-top: 2px solid var(--gold);
	background: var(--section);
}

.cc-hcard--paper { background: var(--paper); }
.cc-hcard--sky { background: var(--sky); }
.cc-hcard--plain { border-top: 0; }

.cc-hcard__label {
	display: block;
	color: var(--teal-dark);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1rem;
	text-transform: uppercase;
}

.cc-hcard__title {
	font-size: var(--text-xl);
	line-height: 1.375;
	letter-spacing: normal;
}

.cc-hcard__label + .cc-hcard__title { margin-top: 1rem; }

.cc-hcard__text {
	margin-top: 0.75rem;
	color: var(--muted);
	font-size: var(--text-sm);
	line-height: 1.625;
}

.cc-hcareer { margin-top: 3.5rem; }
.cc-hcareer .cc-hcard__label { display: inline; letter-spacing: 0; text-transform: none; }

@media (min-width: 640px) {
	.cc-hcards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
	.cc-hsec { padding-block: 6rem; }
	.cc-hsec--short { padding-block: 4rem; }
	.cc-hsec__head--link { flex-direction: row; align-items: flex-end; justify-content: space-between; }
	.cc-hcards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
	.cc-hcards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.cc-hcards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* About and education ----------------------------------------------------------- */

.cc-habout__grid { display: grid; gap: 2.5rem; }

.cc-habout__body {
	margin-top: 1.5rem;
	color: var(--muted);
	line-height: 1.625;
}

.cc-habout__body p + p { margin-top: 1rem; }

.cc-habout__media { align-self: start; padding: 1.25rem; background: var(--sky); }

.cc-habout__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 0%; /* keep the face: crop from the bottom, never the head */
}

.cc-hedu { display: grid; gap: 2rem; margin-top: 3.5rem; }

.cc-hedu__toggle {
	display: inline-flex;
	margin-top: 1.25rem;
	padding: 0.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
}

.cc-hedu__toggle[hidden] { display: none; }

.cc-hedu__btn {
	min-height: 44px;
	padding-inline: 1rem;
	border: 0;
	padding-block: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--ink);
	font-size: var(--text-xs);
	font-weight: 600;
	line-height: 1rem;
}

.cc-hedu__btn[aria-pressed="true"] { background: var(--teal-dark); color: var(--on-dark); }

.cc-hedu__list { margin: 0; padding: 0; list-style: none; }

.cc-hedu__item {
	display: grid;
	gap: 0.5rem;
	padding-block: 1.25rem;
	border-top: 1px solid var(--line);
}

.cc-hedu__year {
	color: var(--teal-dark);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 600;
	line-height: 1rem;
}

.cc-hedu__title { font-size: var(--text-lg); letter-spacing: normal; line-height: 1.75rem; }
.cc-hedu__place { margin-top: 0.25rem; color: var(--muted); font-size: var(--text-sm); line-height: 1.25rem; }
.cc-hedu__list.is-compact .cc-hedu__place { display: none; }

@media (min-width: 768px) {
	.cc-habout__body { font-size: var(--text-lg); line-height: 1.75rem; }
	.cc-habout__media { padding: 1.5rem; }
	.cc-hedu__item { grid-template-columns: 130px minmax(0, 1fr); }
}

@media (min-width: 1024px) {
	.cc-habout__grid,
	.cc-hedu { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.cc-habout__grid > :first-child { grid-column: span 7; }
	.cc-habout__grid > :last-child { grid-column: span 5; }
	.cc-hedu > :first-child { grid-column: span 4; }
	.cc-hedu > :last-child { grid-column: span 8; }
}

/* Research ------------------------------------------------------------------------ */

.cc-hresearch__head { display: grid; gap: 1.5rem; margin-bottom: 2.5rem; }
.cc-hresearch__head .cc-hsec__intro { max-width: none; }

.cc-hresearch__img {
	display: block;
	width: 10rem;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 0%; /* keep the face: crop from the bottom, never the head */
}

.cc-hpubs { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }

.cc-hpub {
	position: relative;
	display: grid;
	gap: 0.5rem 0.75rem;
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--line);
}

.cc-hpub__icon { margin-top: 0.25rem; }
.cc-hpub__title { font-size: var(--text-lg); line-height: 1.375; letter-spacing: normal; }

.cc-hpub__link { color: inherit; text-decoration: none; }
.cc-hpub__link::after { content: ""; position: absolute; inset: 0; }
.cc-hpub__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.cc-hpub__link:focus-visible { outline: none; }
.cc-hpub:has(.cc-hpub__link:focus-visible) { outline: 3px solid var(--teal); outline-offset: 4px; }

.cc-hpub__meta {
	color: var(--teal-dark);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1rem;
	text-transform: uppercase;
}

.cc-hacademic { display: grid; gap: 2rem; margin-top: 3rem; }
.cc-hacademic__title { font-size: var(--text-2xl); letter-spacing: normal; line-height: 2rem; }

.cc-hacademic__list,
.cc-hacademic__text {
	margin-top: 1.25rem;
	color: var(--muted);
	font-size: var(--text-sm);
	line-height: 1.625;
}

.cc-hacademic__list { margin-bottom: 0; padding: 0; list-style: none; }
.cc-hacademic__list li + li { margin-top: 1rem; }

@media (min-width: 768px) {
	.cc-hresearch__head { grid-template-columns: 180px minmax(0, 1fr); align-items: end; }
	.cc-hpub { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.cc-hpub__title, .cc-hpub__meta { grid-column: 1 / span 10; }
	.cc-hpub__icon { grid-column: 11 / span 2; grid-row: 1; justify-self: end; margin-top: 0; }
}

@media (min-width: 1024px) {
	.cc-hacademic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Expertise cards ----------------------------------------------------------------- */

.cc-xcard {
	position: relative;
	display: flex;
	min-height: 290px;
	flex-direction: column;
	padding: 1.25rem;
	border: 1px solid var(--line);
	background: var(--paper);
	transition: transform 0.18s ease-out;
}

.cc-xcard--link:hover { transform: translateY(-4px); }

.cc-xcard__title { font-size: var(--text-2xl); line-height: 1.25; letter-spacing: -0.025em; }

.cc-xcard__link { color: inherit; text-decoration: none; }
.cc-xcard__link::after { content: ""; position: absolute; inset: 0; }
.cc-xcard__link:focus-visible { outline: none; }
.cc-xcard:has(.cc-xcard__link:focus-visible) { outline: 3px solid var(--teal); outline-offset: 4px; }

.cc-xcard__text {
	flex: 1;
	margin-top: 0.75rem;
	color: var(--muted);
	font-size: var(--text-sm);
	line-height: 1.625;
}

#expertise .cc-hcards { gap: 1rem; }

.cc-xcard__more,
.cc-hpost__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 0.5rem;
	margin-top: 1.25rem;
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: 1.25rem;
}

.cc-xcard__more { min-height: 44px; padding-inline: 1rem; background: var(--gold); color: var(--ink); }

.cc-hexpert__note-text { margin-top: 1rem; font-size: var(--text-lg); font-weight: 600; line-height: 1.375; }
.cc-hexpert__note .cc-hcard__label { letter-spacing: 0.12em; }

/* Awards and memberships ------------------------------------------------------------ */

.cc-hchecks {
	margin: 1rem 0 0;
	padding: 0;
	color: var(--muted);
	font-size: var(--text-sm);
	line-height: 1.25rem;
	list-style: none;
}

.cc-hchecks li { display: flex; align-items: flex-start; gap: 0.5rem; }
.cc-hchecks li + li { margin-top: 0.75rem; }
.cc-hchecks .cc-icon { margin-top: 0.1rem; }

/* Practice ------------------------------------------------------------------------- */

.cc-hpractice__img {
	display: block;
	width: 100%;
	margin-bottom: 2.5rem;
	aspect-ratio: 4 / 3;
	/* The photo is a cut-out on a transparent background: show all of it (a cover crop of the
	   wide box cut the head off, in the mockup too). */
	object-fit: contain;
	object-position: 50% 100%;
}

.cc-hplaces { gap: 1.5rem; }
.cc-hplace { padding: 1.5rem; }
.cc-hplace__name { font-size: var(--text-2xl); letter-spacing: normal; line-height: 2rem; }
.cc-hplace__area { margin-top: 0.25rem; color: var(--teal-dark); font-weight: 500; }
.cc-hplace__text { margin-top: 1rem; color: var(--muted); line-height: 1.625; }
.cc-hplace__hours { margin-top: 1rem; color: var(--muted); font-size: var(--text-sm); line-height: 1.25rem; }
.cc-hplace > .cc-arrow-link { margin-top: 1.25rem; }

.cc-hplace__links {
	display: grid;
	justify-items: start;
	gap: 0.5rem;
	margin-top: 1.25rem;
	font-size: var(--text-sm);
	line-height: 1.25rem;
}

.cc-hplace__phone { font-weight: 600; }
.cc-hplace__links .cc-arrow-link { font-size: var(--text-sm); }

@media (min-width: 768px) {
	.cc-hpractice__img { aspect-ratio: 16 / 7; }
	.cc-hplace { padding: 2rem; }
}

/* Latest blogs ---------------------------------------------------------------------- */

.cc-hpost {
	position: relative;
	display: flex;
	min-height: 240px;
	flex-direction: column;
}

.cc-hpost__date {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
	color: var(--muted);
	font-size: var(--text-xs);
	line-height: 1rem;
}

.cc-hpost__title {
	flex: 1;
	margin-top: 1rem;
	font-size: var(--text-xl);
	line-height: 1.375;
	letter-spacing: -0.02em;
}

.cc-hpost__link { color: inherit; text-decoration: none; }
.cc-hpost__link::after { content: ""; position: absolute; inset: 0; }
.cc-hpost:hover .cc-hpost__link { text-decoration: underline; text-underline-offset: 4px; }
.cc-hpost__link:focus-visible { outline: none; }
.cc-hpost:has(.cc-hpost__link:focus-visible) { outline: 3px solid var(--teal); outline-offset: 4px; }

.cc-hpost__more .cc-icon { transition: transform 0.18s ease-out; }
.cc-hpost:hover .cc-hpost__more .cc-icon { transform: translateX(4px); }

/* Reviews and videos ------------------------------------------------------------------ */

.cc-hreviews__grid { display: grid; gap: 1.5rem; }
.cc-hreviews .cc-eyebrow { margin-bottom: 0.75rem; letter-spacing: 0.12em; }
.cc-hreviews .cc-h2 { font-size: 1.875rem; line-height: 2.25rem; }
.cc-hreviews .cc-arrow-link { margin-top: 1rem; }

@media (min-width: 768px) {
	.cc-hreviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Appointment band and footnote ---------------------------------------------------------- */

.cc-hcta { background: var(--sky); color: var(--ink); }

.cc-hcta__grid { display: grid; gap: 2rem; padding-block: 3rem; }
.cc-hcta__eyebrow { color: var(--muted); }

.cc-hcta__title {
	max-width: 48rem;
	font-size: 1.875rem;
	line-height: 1.25;
	letter-spacing: -0.035em;
}

.cc-hcta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.cc-hcta__phone { font-size: var(--text-sm); line-height: 1.25rem; }

.cc-hnote {
	padding: 0.75rem 1.25rem;
	background: var(--wash);
	color: var(--muted);
	font-size: var(--text-xs);
	text-align: center;
}

@media (min-width: 768px) {
	.cc-hcta__grid { padding-block: 4rem; }
	.cc-hcta__title { font-size: 3rem; line-height: 1; }
}

@media (min-width: 1024px) {
	.cc-hcta__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
	.cc-hcta__grid > :first-child { grid-column: span 8; }
	.cc-hcta__grid > :last-child { grid-column: span 4; }
	.cc-hcta__actions { align-items: flex-end; }
}

/* Motion -------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.cc-xcard--link:hover,
	.cc-hcred__link:hover .cc-icon,
	.cc-hpost:hover .cc-hpost__more .cc-icon { transform: none; }
}
