/* Stonebriar Smile Design — About page */

:where(.about-hero, .about-intro, .about-principles, .about-welcome, .about-office, .about-care, .about-cta) figure,
:where(.about-hero, .about-intro, .about-principles, .about-welcome, .about-office, .about-care, .about-cta) p {
	margin-top: 0;
}

:where(.about-hero, .about-intro, .about-principles, .about-welcome, .about-office, .about-care, .about-cta) .button {
	font-size: 0.8rem;
	white-space: normal;
}

:where(.about-hero, .about-intro, .about-principles, .about-welcome, .about-office, .about-care, .about-cta) .eyebrow {
	font-size: 0.8rem;
}

.about-hero {
	display: grid;
	min-height: min(780px, calc(100svh - 42px));
	grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
	color: var(--white);
	background: var(--navy-deep);
}

.about-hero__content {
	display: flex;
	min-width: 0;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	padding: clamp(128px, 12vw, 176px) clamp(40px, 6vw, 112px) clamp(56px, 5vw, 80px);
}

.about-hero .eyebrow {
	color: var(--gold-light);
}

.about-hero .heading {
	width: 100%;
	max-width: 680px;
	margin: 0 0 30px;
	color: var(--white);
	font-size: clamp(3.75rem, 4vw, 6rem);
	letter-spacing: -0.055em;
	line-height: 0.98;
}

.about-hero .heading span {
	display: block;
}

.about-hero .heading em {
	display: block;
	margin-top: 0.08em;
	color: var(--gold-light);
	font-family: var(--script);
	font-size: 0.72em;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.08;
}

.about-hero__lead {
	max-width: 620px;
	margin-bottom: 18px;
	color: var(--white);
	font-size: clamp(1.2rem, 1.7vw, 1.05rem);
	line-height: 1.5;
}

.about-hero__content > p:not(.eyebrow, .about-hero__lead) {
	max-width: 650px;
	margin-bottom: 32px;
	color: rgba(255, 255, 255, 0.78);
}

.about-hero__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px 30px;
}

.about-text-link {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	gap: 18px;
	color: var(--navy);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-decoration: none;
	text-transform: uppercase;
}

.about-hero .about-text-link,
.about-hero .about-text-link span {
	color: var(--white);
}

.about-text-link span {
	color: var(--navy);
	font-size: 1.1rem;
	transition: transform 0.3s ease;
}

.about-text-link:hover span,
.about-text-link:focus-visible span {
	transform: translate(3px, -3px);
}

.about-hero__media {
	position: relative;
	min-height: 680px;
	margin: 0;
	overflow: hidden;
}

.about-hero__media::after {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(17, 24, 49, 0.38), transparent 42%),
		linear-gradient(0deg, rgba(17, 24, 49, 0.34), transparent 45%);
	content: "";
	pointer-events: none;
}

.about-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-hero__media figcaption {
	position: absolute;
	z-index: 1;
	right: clamp(24px, 4vw, 64px);
	bottom: clamp(24px, 4vw, 56px);
	max-width: 270px;
	padding: 16px 20px;
	border-left: 2px solid var(--gold-light);
	color: var(--white);
	background: rgba(17, 24, 49, 0.84);
	box-shadow: 0 14px 34px rgba(5, 10, 27, 0.24);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	font-family: var(--display);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	line-height: 1.6;
	text-transform: uppercase;
}

.about-intro {
	background: var(--ivory);
}

.about-intro__grid {
	display: grid;
	align-items: start;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(48px, 9vw, 130px);
}

.about-intro__copy {
	padding-top: 34px;
}

.about-intro__copy .heading.lead {
	margin: 0 0 20px;
	font-family: var(--body);
	font-weight: 400;
}

.about-intro__copy p:last-child {
	margin-bottom: 0;
}

.about-principles {
	background: var(--white);
}

.about-principles__heading {
	display: grid;
	align-items: end;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
	gap: 30px 80px;
	margin-bottom: 58px;
}

.about-principles__heading .eyebrow {
	grid-column: 1 / -1;
	margin-bottom: -12px;
}

.about-principles__heading .heading,
.about-principles__heading > p:last-child {
	margin-bottom: 0;
}

.about-principles__heading > p:last-child {
	color: var(--muted);
}

.about-principles__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.about-principle {
	position: relative;
	display: grid;
	min-height: 440px;
	align-content: start;
	padding: clamp(34px, 5vw, 62px);
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--white);
	transition:
		background-color 0.45s ease,
		box-shadow 0.45s ease,
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-principle:hover {
	z-index: 1;
	background: var(--blue-soft);
	box-shadow: 0 18px 44px rgba(17, 24, 49, 0.09);
	transform: translateY(-3px);
}

.about-principle__number {
	position: absolute;
	top: 25px;
	right: 28px;
	color: var(--muted);
	font-family: var(--display);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
}

.about-principle__icon {
	display: grid;
	width: 76px;
	height: 76px;
	margin-bottom: 34px;
	place-items: center;
	border-radius: 22px;
	color: var(--navy);
	background: #f5eddf;
}

.about-principle__icon svg {
	width: 42px;
	height: 42px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.75;
}

.about-principle .heading {
	max-width: 420px;
	margin: 0 0 17px;
	font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.about-principle p {
	max-width: 500px;
	margin-bottom: 28px;
	color: var(--muted);
}

.about-principle > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: auto;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--navy);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.about-principle > a span {
	color: var(--navy);
	font-size: 1.05rem;
}

.about-welcome {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	color: var(--white);
	background: var(--navy);
}

.about-welcome__media {
	position: relative;
	display: block;
	width: 100%;
	min-height: 620px;
	padding: 0;
	overflow: hidden;
	border: 0;
	color: var(--white);
	background: var(--navy-deep);
	cursor: pointer;
	text-align: left;
}

.about-welcome__media::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 55%, rgba(32, 41, 85, 0.25));
	content: "";
	pointer-events: none;
	transition: background-color 0.4s ease;
}

.about-welcome__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-welcome__media:hover img,
.about-welcome__media:focus-visible img {
	transform: scale(1.025);
}

.about-welcome__media:focus-visible {
	z-index: 1;
	outline: 3px solid var(--gold-light);
	outline-offset: -7px;
}

.about-welcome__play {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 14px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transform: translate(-50%, -50%);
}

.about-welcome__play svg {
	width: 88px;
	height: 88px;
	padding: 26px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 50%;
	fill: currentColor;
	background: rgba(17, 24, 49, 0.62);
	box-shadow: 0 16px 46px rgba(17, 24, 49, 0.28);
	transition:
		background-color 0.35s ease,
		border-color 0.35s ease,
		transform 0.35s ease;
}

.about-welcome__media:hover .about-welcome__play svg,
.about-welcome__media:focus-visible .about-welcome__play svg {
	border-color: var(--gold-light);
	background: var(--navy);
	transform: scale(1.06);
}

.about-video-modal {
	width: min(1100px, calc(100% - 40px));
	max-width: none;
	max-height: calc(100dvh - 40px);
	padding: 0;
	overflow: visible;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: var(--white);
	background: var(--navy-deep);
	box-shadow: 0 30px 90px rgba(4, 10, 30, 0.52);
}

.about-video-modal::backdrop {
	background: rgba(5, 10, 27, 0.88);
	backdrop-filter: blur(8px);
}

.about-video-modal__panel {
	padding: clamp(16px, 2.5vw, 28px);
}

.about-video-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}

.about-video-modal__header .heading {
	margin: 0;
	color: var(--white);
	font-size: clamp(1.1rem, 2vw, 1.55rem);
	letter-spacing: 0.03em;
}

.about-video-modal__close {
	display: grid;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
	color: var(--white);
	background: transparent;
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.about-video-modal__close:hover,
.about-video-modal__close:focus-visible {
	border-color: var(--gold-light);
	background: rgba(255, 255, 255, 0.1);
}

.about-video-modal__close:focus-visible {
	outline: 3px solid var(--gold-light);
	outline-offset: 3px;
}

.about-video-modal__close svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
}

.about-video-modal__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #050a1b;
}

.about-video-modal__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

body.video-modal-open {
	overflow: hidden;
}

.about-welcome__content {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	padding: clamp(70px, 8vw, 130px);
}

.about-welcome__content .eyebrow,
.about-welcome__content .heading em {
	color: var(--gold-light);
}

.about-welcome__content .heading {
	color: var(--white);
}

.about-welcome__content p {
	max-width: 570px;
	color: rgba(255, 255, 255, 0.78);
}

.about-welcome__content .lead {
	color: var(--white);
}

.about-welcome__content .button {
	margin-top: 18px;
}

.about-office {
	background: var(--ivory);
}

.about-office__grid {
	display: grid;
	align-items: center;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	gap: clamp(50px, 9vw, 130px);
}

.about-office__content p:not(.eyebrow, .lead) {
	color: var(--muted);
}

.about-office__content .button {
	margin-top: 18px;
}

.about-office__media {
	position: relative;
	margin: 0;
}

.about-office__media::before {
	position: absolute;
	z-index: 1;
	top: -24px;
	right: -24px;
	width: 44%;
	height: 44%;
	border-top: 1px solid var(--gold);
	border-right: 1px solid var(--gold);
	content: "";
	pointer-events: none;
}

.about-office__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.about-office__media figcaption {
	position: absolute;
	right: 0;
	bottom: 0;
	max-width: 280px;
	padding: 22px 26px;
	color: var(--white);
	background: rgba(17, 24, 49, 0.9);
	box-shadow: 0 14px 34px rgba(5, 10, 27, 0.22);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	font-size: 0.85rem;
}

.about-office__media figcaption span {
	display: block;
	margin-bottom: 4px;
	color: var(--gold-light);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.about-care {
	background: var(--blue-soft);
}

.about-care .section-heading > p:last-child {
	max-width: 720px;
	margin-inline: auto;
	color: var(--muted);
}

.about-care__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
}

.about-care__item {
	display: flex;
	min-height: 390px;
	flex-direction: column;
	padding: 34px 26px 28px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	background: var(--white);
	text-decoration: none;
	transition:
		color 0.4s ease,
		background-color 0.4s ease,
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-care__item:hover,
.about-care__item:focus-visible {
	z-index: 1;
	color: var(--white);
	background: var(--navy);
	transform: translateY(-3px);
}

.about-care__item > span {
	margin-bottom: 56px;
	color: var(--gold-text);
	font-family: var(--display);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
}

.about-care__item .heading {
	margin: 0 0 16px;
	color: var(--navy);
	font-size: clamp(1.25rem, 1.7vw, 1.65rem);
	transition: color 0.4s ease;
}

.about-care__item p {
	margin-bottom: 28px;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.65;
	transition: color 0.4s ease;
}

.about-care__item strong {
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	line-height: 1.55;
	text-transform: uppercase;
}

.about-care__item:hover .heading,
.about-care__item:hover p,
.about-care__item:focus-visible .heading,
.about-care__item:focus-visible p {
	color: var(--white);
}

.about-care__item:hover > span,
.about-care__item:focus-visible > span {
	color: var(--gold-light);
}

.about-care__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px 32px;
	margin-top: 46px;
}

.about-care__footer p {
	margin-bottom: 0;
	color: var(--muted);
}

.about-cta {
	position: relative;
	overflow: hidden;
	padding: clamp(100px, 12vw, 170px) 0;
	color: var(--white);
	background: var(--navy-deep);
	text-align: center;
}

.about-cta__mark {
	position: absolute;
	top: 43%;
	left: 50%;
	width: clamp(420px, 40vw, 760px);
	aspect-ratio: 1;
	opacity: 0.05;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.about-cta__mark img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.about-cta .container {
	position: relative;
}

.about-cta .eyebrow,
.about-cta .heading em {
	color: var(--gold-light);
}

.about-cta .heading {
	max-width: 930px;
	margin: 0 auto 24px;
	color: var(--white);
	font-size: clamp(2.8rem, 6vw, 4.5rem);
}

.about-cta p:not(.eyebrow) {
	max-width: 680px;
	margin: 0 auto 36px;
	color: rgba(255, 255, 255, 0.72);
}

/* .about-cta .button {
	border-radius: 999px;
} */

@media (max-width: 1100px) {
	.about-hero {
		grid-template-columns: 1fr 1fr;
	}

	.about-hero__content {
		padding: 128px 40px 64px;
	}

	.about-hero .heading {
		font-size: clamp(3.4rem, 6vw, 4.15rem);
	}

	.about-care__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.about-care__item:nth-child(4),
	.about-care__item:nth-child(5) {
		min-height: 340px;
	}
}

@media (max-width: 960px) {
	.about-hero,
	.about-welcome,
	.about-office__grid {
		grid-template-columns: 1fr;
	}

	.about-hero {
		min-height: 0;
	}

	.about-hero__content {
		padding: 90px max(32px, calc((100vw - 720px) / 2));
	}

	.about-hero .heading {
		max-width: 720px;
		font-size: clamp(4rem, 10vw, 5.4rem);
	}

	.about-hero__media {
		min-height: 620px;
	}

	.about-intro__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.about-intro__copy {
		max-width: 720px;
		padding-top: 0;
	}

	.about-principles__heading {
		grid-template-columns: 1fr;
	}

	.about-principles__heading .eyebrow {
		margin-bottom: 0;
	}

	.about-welcome__media {
		min-height: 560px;
	}

	.about-welcome__content {
		padding: 80px max(32px, calc((100vw - 720px) / 2));
	}

	.about-office__grid {
		gap: 64px;
	}

	.about-office__content {
		max-width: 720px;
	}

}

@media (max-width: 680px) {
	:where(.about-hero, .about-intro, .about-principles, .about-welcome, .about-office, .about-care, .about-cta) .eyebrow {
		font-size: 0.8rem;
	}

	.about-hero__content {
		padding: 72px 24px;
	}

	.about-hero .heading {
		font-size: clamp(2.85rem, 14vw, 4.4rem);
	}

	.about-hero__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.about-hero__actions .button {
		width: 100%;
	}

	.about-hero__media {
		min-height: 460px;
	}

	.about-principles__grid,
	.about-care__grid {
		grid-template-columns: 1fr;
	}

	.about-principle {
		min-height: 0;
		padding: 38px 28px;
	}

	.about-principle__icon {
		width: 68px;
		height: 68px;
	}

	.about-welcome__media {
		min-height: 380px;
	}

	.about-welcome__play svg {
		width: 72px;
		height: 72px;
		padding: 21px;
	}

	.about-video-modal {
		width: calc(100% - 24px);
	}

	.about-video-modal__header {
		align-items: flex-start;
	}

	.about-welcome__content {
		padding: 70px 24px;
	}

	.about-office__media::before {
		top: -12px;
		right: -12px;
	}

	.about-office__media figcaption {
		position: relative;
		max-width: none;
	}

	.about-care__item,
	.about-care__item:nth-child(4),
	.about-care__item:nth-child(5) {
		min-height: 320px;
	}

	.about-care__item > span {
		margin-bottom: 34px;
	}

}

@media (prefers-reduced-motion: reduce) {
	:where(.about-hero, .about-intro, .about-principles, .about-welcome, .about-office, .about-care, .about-cta) *,
	:where(.about-hero, .about-intro, .about-principles, .about-welcome, .about-office, .about-care, .about-cta) *::before,
	:where(.about-hero, .about-intro, .about-principles, .about-welcome, .about-office, .about-care, .about-cta) *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
