/**
 * PetEssentials About page.
 */

.pe-about-page .site-content,
.pe-about-page #content {
	max-width: none;
	padding-block: 0;
}

.pe-about {
	--pe-about-ink: #392816;
	--pe-about-cream: #fbf8ee;
	--pe-about-card: #f3eedf;
	--pe-about-yellow: #f6bf3d;
	--pe-about-green: #789d45;
	--pe-about-rust: #b65f39;
	background: var(--pe-about-cream);
	color: var(--pe-about-ink);
	overflow: hidden;
}

.pe-about *,
.pe-about *::before,
.pe-about *::after {
	box-sizing: border-box;
}

.pe-about img {
	display: block;
	max-width: 100%;
}

.pe-about-eyebrow {
	margin: 0 0 14px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
}

/* Hero */
.pe-about-hero {
	position: relative;
	display: grid;
	min-height: clamp(620px, 78svh, 820px);
	margin: clamp(12px, 1.4vw, 24px);
	border-radius: clamp(24px, 2.5vw, 44px);
	isolation: isolate;
	overflow: hidden;
}

.pe-about-hero__media,
.pe-about-hero__veil {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.pe-about-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.015);
}

.pe-about-hero__veil {
	z-index: -1;
	background:
		linear-gradient(180deg, rgb(25 20 15 / 18%) 0%, rgb(25 20 15 / 5%) 36%, rgb(25 20 15 / 62%) 100%),
		linear-gradient(90deg, rgb(26 20 15 / 30%), transparent 45%, rgb(26 20 15 / 12%));
}

.pe-about-hero__inner {
	display: flex;
	max-width: 1220px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(110px, 15vw, 190px) 24px clamp(130px, 15vw, 185px);
	color: #fff;
	text-align: center;
}

.pe-about-hero .pe-about-eyebrow {
	margin-bottom: 22px;
	color: #fff7df;
}

.pe-about-hero h1 {
	max-width: 1050px;
	margin: 0;
	color: #fff;
	font-family: var(--pe-heading-font);
	font-size: clamp(3.2rem, 6vw, 6.9rem);
	font-weight: 800;
	line-height: .94;
	letter-spacing: -.055em;
	text-wrap: balance;
}

.pe-about-hero__intro {
	max-width: 660px;
	margin: 28px 0 0;
	font-size: clamp(1rem, 1.35vw, 1.3rem);
	font-weight: 600;
	line-height: 1.55;
	text-wrap: balance;
}

.pe-about-hero__ticker {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 46%;
	padding: 25px 0;
	border-radius: 40px 0 0;
	background: var(--pe-about-cream);
	color: var(--pe-about-ink);
	overflow: hidden;
}

.pe-about-hero__ticker-track {
	display: flex;
	width: max-content;
	align-items: center;
	gap: 24px;
	padding-left: 32px;
	animation: pe-about-ticker 24s linear infinite;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	white-space: nowrap;
}

.pe-about-hero__ticker-track i {
	color: var(--pe-about-rust);
	font-size: 16px;
	font-style: normal;
}

@keyframes pe-about-ticker {
	to { transform: translateX(-50%); }
}

/* Numbers */
.pe-about-stats {
	padding: clamp(74px, 8vw, 126px) 0;
}

.pe-about-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 1.7vw, 28px);
}

.pe-about-stat {
	min-height: 330px;
	padding: clamp(34px, 3vw, 54px) clamp(24px, 2.5vw, 42px);
	border: 1px solid rgb(57 40 22 / 5%);
	border-radius: 30px;
	background: var(--pe-about-card);
	text-align: center;
	transition: transform .35s ease, background-color .35s ease;
}

.pe-about-stat:hover {
	background: #efe7d2;
	transform: translateY(-6px);
}

.pe-about-stat strong {
	display: block;
	margin-bottom: 22px;
	color: var(--pe-about-ink);
	font-size: clamp(3.4rem, 5vw, 5.8rem);
	font-weight: 900;
	line-height: .85;
	letter-spacing: -.07em;
}

.pe-about-stat h2 {
	margin: 0;
	color: var(--pe-about-ink);
	font-size: clamp(1rem, 1.35vw, 1.28rem);
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.pe-about-stat p {
	margin: 24px auto 0;
	color: #6e5d4c;
	font-size: .97rem;
	line-height: 1.58;
}

/* Four editorial story cards */
.pe-about-stories {
	padding: clamp(64px, 7vw, 108px) 0;
	background: var(--pe-about-cream);
}

.pe-about-section-heading {
	display: grid;
	grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr);
	gap: 28px;
	align-items: end;
	margin-bottom: clamp(28px, 3.25vw, 48px);
}

.pe-about-section-heading .pe-about-eyebrow {
	color: var(--pe-about-green);
}

.pe-about-section-heading h2 {
	max-width: 680px;
	margin: 0;
	color: var(--pe-about-ink);
	font-family: var(--pe-heading-font);
	font-size: clamp(2.6rem, 4.35vw, 4.25rem);
	font-weight: 800;
	line-height: .98;
	letter-spacing: -.055em;
	text-wrap: balance;
}

.pe-about-stories__grid {
	position: relative;
	aspect-ratio: 1.1;
}

.pe-about-story-card {
	position: absolute;
	min-width: 0;
	border: 1px solid rgb(57 40 22 / 6%);
	border-radius: clamp(20px, 2vw, 30px);
	box-shadow: 0 16px 42px rgb(57 40 22 / 7%);
	overflow: hidden;
	transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}

.pe-about-story-card:hover {
	box-shadow: 0 22px 54px rgb(57 40 22 / 11%);
	transform: translateY(-5px);
}

.pe-about-story-card__media {
	width: 100%;
	height: 100%;
	margin: 0;
	background: #ded8ca;
	overflow: hidden;
}

.pe-about-story-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.pe-about-story-card:hover .pe-about-story-card__media img {
	transform: scale(1.035);
}

.pe-about-story-card__content {
	display: flex;
	width: 100%;
	height: 100%;
	flex-direction: column;
	justify-content: center;
	padding: clamp(28px, 3.3vw, 52px);
	background: var(--pe-about-yellow);
}

.pe-about-story-card .pe-about-eyebrow {
	color: rgb(57 40 22 / 68%);
}

.pe-about-story-card h3 {
	max-width: 540px;
	margin: 0;
	color: var(--pe-about-ink);
	font-family: var(--pe-heading-font);
	font-size: clamp(1.7rem, 2.4vw, 2.7rem);
	font-weight: 850;
	line-height: 1.03;
	letter-spacing: -.04em;
	text-wrap: balance;
}

.pe-about-story-card__copy {
	max-width: 640px;
	margin-top: clamp(18px, 2vw, 26px);
	color: #574633;
	font-size: clamp(.9rem, .9vw, 1rem);
	line-height: 1.58;
}

.pe-about-story-card__copy p {
	margin: 0 0 1em;
}

.pe-about-story-card__copy p:last-child {
	margin-bottom: 0;
}

.pe-about-story-card--1 .pe-about-story-card__media img {
	object-position: center 36%;
}

.pe-about-story-card--4 .pe-about-story-card__media img {
	object-position: center;
}

.pe-about-story-card--1 {
	top: 0;
	left: 0;
	width: 49%;
	height: 57%;
}

.pe-about-story-card--2 {
	top: 0;
	right: 0;
	width: 49%;
	height: 43%;
}

.pe-about-story-card--3 {
	bottom: 0;
	left: 0;
	width: 49%;
	height: 41%;
}

.pe-about-story-card--4 {
	right: 0;
	bottom: 0;
	width: 49%;
	height: 55%;
}

/* Mission */
.pe-about-mission {
	position: relative;
	padding: clamp(100px, 13vw, 210px) 0;
	background: var(--pe-about-cream);
	isolation: isolate;
	overflow: hidden;
}

.pe-about-mission__inner {
	position: relative;
	z-index: 1;
	max-width: 1300px;
	text-align: center;
}

.pe-about-mission .pe-about-eyebrow {
	color: var(--pe-about-green);
}

.pe-about-mission h2 {
	max-width: 1190px;
	margin: 0 auto;
	color: var(--pe-about-ink);
	font-family: var(--pe-heading-font);
	font-size: clamp(2.5rem, 4.8vw, 5.35rem);
	font-weight: 850;
	line-height: 1.07;
	letter-spacing: -.052em;
	text-wrap: balance;
}

.pe-about-mission__paw {
	position: absolute;
	width: 110px;
	height: 110px;
	border-radius: 55% 45% 55% 45%;
	background: #dbe7cd;
	color: transparent;
	opacity: .7;
	transform: rotate(25deg);
}

.pe-about-mission__paw--one {
	top: 24%;
	left: 4%;
}

.pe-about-mission__paw--two {
	right: 6%;
	bottom: 20%;
	width: 76px;
	height: 76px;
	background: #f3cfc0;
	transform: rotate(-18deg);
}

/* Instagram collage */
.pe-about-instagram {
	padding: clamp(34px, 2.4vw, 46px) 0 clamp(38px, 2.8vw, 54px);
	background: var(--pe-about-cream);
	overflow: hidden;
	isolation: isolate;
}

.pe-about-instagram__rail {
	display: grid;
	width: 100%;
	margin: 0;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	align-items: center;
}

.pe-about-instagram__tile,
.pe-about-instagram__follow {
	position: relative;
	height: auto;
	aspect-ratio: .59;
	border-radius: clamp(22px, 1.7vw, 30px);
	box-shadow: 0 20px 48px rgb(57 40 22 / 12%);
	overflow: hidden;
	transform-origin: 50% 50%;
	will-change: transform;
}

.pe-about .pe-about-instagram .pe-about-instagram__rail .pe-about-instagram__tile {
	display: block;
	background: #e6dfd1;
	transform: translateY(var(--pe-insta-y)) rotate(var(--pe-insta-angle)) !important;
	transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease, filter .5s ease;
}

.pe-about .pe-about-instagram .pe-about-instagram__tile:hover,
.pe-about .pe-about-instagram .pe-about-instagram__tile:focus-visible {
	z-index: 10;
	box-shadow: 0 34px 76px rgb(57 40 22 / 24%);
	filter: saturate(1.03);
	transform: translateY(calc(var(--pe-insta-y) - 18px)) rotate(var(--pe-insta-hover-angle)) scale(1.035) !important;
}

.pe-about .pe-about-instagram .pe-about-instagram__tile:focus-visible {
	outline: 4px solid var(--pe-about-green);
	outline-offset: 5px;
}

.pe-about-instagram__tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s cubic-bezier(.2, .75, .2, 1), filter .5s ease;
}

.pe-about-instagram__tile:hover img,
.pe-about-instagram__tile:focus-visible img {
	filter: saturate(1.05) contrast(1.02);
	transform: scale(1.045);
}

.pe-about-instagram__tile::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgb(32 23 14 / 58%) 100%);
	content: '';
	opacity: 0;
	transition: opacity .35s ease;
}

.pe-about-instagram__tile:hover::after,
.pe-about-instagram__tile:focus-visible::after {
	opacity: 1;
}

.pe-about-instagram__tile-action {
	position: absolute;
	right: 24px;
	bottom: 22px;
	left: 24px;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 12px;
	font-weight: 850;
	letter-spacing: .08em;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .35s ease, transform .35s ease;
	text-transform: uppercase;
}

.pe-about-instagram__tile-action svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.8;
}

.pe-about-instagram__tile-action b {
	margin-left: auto;
	font-size: 18px;
	font-weight: 700;
}

.pe-about-instagram__tile:hover .pe-about-instagram__tile-action,
.pe-about-instagram__tile:focus-visible .pe-about-instagram__tile-action {
	opacity: 1;
	transform: translateY(0);
}

.pe-about-instagram__tile--1 {
	--pe-insta-angle: 10deg;
	--pe-insta-hover-angle: 2deg;
	--pe-insta-y: -8px;
	z-index: 1;
}

.pe-about-instagram__tile--2 {
	--pe-insta-angle: 2deg;
	--pe-insta-hover-angle: .5deg;
	--pe-insta-y: 10px;
	z-index: 2;
}

.pe-about-instagram__tile--3 {
	--pe-insta-angle: -6deg;
	--pe-insta-hover-angle: -1deg;
	--pe-insta-y: -2px;
	z-index: 4;
}

.pe-about-instagram__tile--4 {
	--pe-insta-angle: 10deg;
	--pe-insta-hover-angle: 2deg;
	--pe-insta-y: 8px;
	z-index: 1;
}

.pe-about .pe-about-instagram .pe-about-instagram__rail .pe-about-instagram__tile:hover,
.pe-about .pe-about-instagram .pe-about-instagram__rail .pe-about-instagram__tile:focus-visible {
	transform: translateY(calc(var(--pe-insta-y) - 18px)) rotate(var(--pe-insta-hover-angle)) scale(1.035) !important;
}

.pe-about-instagram__tile--1 img { object-position: 50% 42%; }
.pe-about-instagram__tile--2 img { object-position: 52% center; }
.pe-about-instagram__tile--3 img { object-position: 70% center; }
.pe-about-instagram__tile--4 img { object-position: 45% center; }

.pe-about .pe-about-instagram .pe-about-instagram__rail .pe-about-instagram__follow {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: clamp(24px, 2vw, 36px);
	border: 1px solid rgb(57 40 22 / 4%);
	background: #f2eddd;
	text-align: center;
	z-index: 3;
	transform: translateY(4px) rotate(-5deg) !important;
	transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}

.pe-about .pe-about-instagram .pe-about-instagram__follow:hover,
.pe-about .pe-about-instagram .pe-about-instagram__follow:focus-within {
	box-shadow: 0 30px 72px rgb(57 40 22 / 17%);
	z-index: 10;
	transform: translateY(-14px) rotate(-1deg) scale(1.035) !important;
}

.pe-about-instagram__follow svg {
	position: relative;
	top: 9px;
	width: clamp(42px, 3.4vw, 62px);
	height: clamp(42px, 3.4vw, 62px);
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.7;
}

.pe-about-instagram__follow p {
	position: relative;
	top: 9px;
	max-width: 100%;
	margin: clamp(30px, 2.8vw, 50px) 0 clamp(34px, 2.8vw, 50px);
	font-family: var(--pe-heading-font);
	font-size: clamp(1.05rem, 1.35vw, 1.55rem);
	font-weight: 900;
	line-height: 1.06;
	letter-spacing: -.025em;
	text-transform: uppercase;
	white-space: nowrap;
}

.pe-about-instagram__follow a {
	position: relative;
	top: 9px;
	display: inline-flex;
	min-height: clamp(52px, 4.35vw, 78px);
	align-items: center;
	gap: 12px;
	justify-content: center;
	padding: 0 clamp(30px, 2.7vw, 48px);
	border-radius: 18px;
	background: #f0522d;
	color: #fff;
	font-size: clamp(12px, .95vw, 16px);
	font-weight: 800;
	letter-spacing: .04em;
	box-shadow: 0 12px 26px rgb(240 82 45 / 18%);
	text-transform: uppercase;
	transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}

.pe-about-instagram__follow a:hover,
.pe-about-instagram__follow a:focus-visible {
	background: #934728;
	color: #fff;
	box-shadow: 0 16px 32px rgb(147 71 40 / 24%);
	transform: translateY(-3px);
}

.pe-about-instagram__follow a span {
	font-size: 18px;
}

@media (max-width: 1199px) {
	.pe-about-instagram {
		padding: 0;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-padding-left: 7vw;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		touch-action: pan-x;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
	}

	.pe-about-instagram::-webkit-scrollbar { display: none; }

	.pe-about-instagram__rail {
		display: flex;
		width: max-content;
		margin: 0;
		gap: 0;
		padding: 62px 7vw 70px;
	}

	.pe-about-instagram__rail > * {
		flex: 0 0 clamp(280px, 32vw, 340px);
	}

	.pe-about-instagram__rail > * + * {
		margin-left: clamp(-34px, -3vw, -22px);
	}

	.pe-about-instagram__tile,
	.pe-about-instagram__follow {
		height: auto;
		aspect-ratio: .59;
		scroll-snap-align: center;
	}

	.pe-about-instagram__follow p {
		font-size: 1.22rem;
		white-space: normal;
	}
}

@media (max-width: 1100px) {
	.pe-about-hero__ticker { left: 30%; }

	.pe-about-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.pe-about-stat { min-height: 285px; }

}

@media (max-width: 900px) {
	.pe-about-stories__grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: 16px;
		aspect-ratio: auto;
	}

	.pe-about-story-card,
	.pe-about-story-card--1,
	.pe-about-story-card--2,
	.pe-about-story-card--3,
	.pe-about-story-card--4 {
		position: relative;
		inset: auto;
		width: 100%;
		height: auto;
	}

	.pe-about-story-card--image { aspect-ratio: 1.12; }

	.pe-about-story-card__content { min-height: clamp(260px, 48vw, 380px); }
}

@media (max-width: 780px) {
	.pe-about-hero {
		min-height: 650px;
		margin: 10px;
		border-radius: 24px;
	}

	.pe-about-hero__media img { object-position: 63% center; }

	.pe-about-hero__inner {
		justify-content: flex-end;
		padding: 130px 18px 150px;
	}

	.pe-about-hero__ticker {
		left: 8%;
		padding-block: 20px;
		border-radius: 28px 0 0;
	}

	.pe-about-section-heading {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.pe-about-story-card__content { min-height: 0; }

	.pe-about-mission__paw { opacity: .38; }
}

@media (max-width: 520px) {
	.pe-about-hero { min-height: 610px; }

	.pe-about-hero h1 {
		font-size: clamp(2.7rem, 13vw, 4.2rem);
		line-height: .97;
	}

	.pe-about-hero__intro {
		margin-top: 20px;
		font-size: .96rem;
	}

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

	.pe-about-stat {
		min-height: 0;
		padding: 40px 28px;
		border-radius: 24px;
	}

	.pe-about-stat strong { font-size: 4.2rem; }

	.pe-about-story-card { border-radius: 22px; }

	.pe-about-story-card__media { min-height: 0; }

	.pe-about-story-card__content { padding: 34px 26px 40px; }

	.pe-about-story-card h3 { font-size: 2.3rem; }

	.pe-about-mission h2 { font-size: clamp(2.3rem, 11vw, 3.5rem); }

	.pe-about-instagram__rail {
		padding: 52px 18vw 60px;
	}

	.pe-about-instagram__rail > * { flex-basis: 74vw; }

	.pe-about-instagram__rail > * + * { margin-left: -12vw; }

	.pe-about-instagram__tile,
	.pe-about-instagram__follow {
		height: auto;
		max-height: none;
		aspect-ratio: .59;
		border-radius: 22px;
	}

	.pe-about-instagram__tile {
		--pe-insta-y: 0px;
	}

	.pe-about-instagram__tile--1 {
		--pe-insta-angle: 7deg;
		--pe-insta-hover-angle: 1deg;
		--pe-insta-y: -4px;
	}

	.pe-about-instagram__tile--3 {
		--pe-insta-angle: -5deg;
		--pe-insta-hover-angle: -1deg;
	}

	.pe-about-instagram__tile--4 {
		--pe-insta-angle: 7deg;
		--pe-insta-hover-angle: 1deg;
		--pe-insta-y: 4px;
	}

	.pe-about .pe-about-instagram .pe-about-instagram__rail .pe-about-instagram__follow {
		transform: translateY(4px) rotate(-4deg) !important;
	}

	.pe-about .pe-about-instagram .pe-about-instagram__rail .pe-about-instagram__follow:hover,
	.pe-about .pe-about-instagram .pe-about-instagram__rail .pe-about-instagram__follow:focus-within {
		transform: translateY(-10px) rotate(-1deg) scale(1.025) !important;
	}

	.pe-about-instagram__tile-action {
		right: 20px;
		bottom: 18px;
		left: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pe-about *,
	.pe-about *::before,
	.pe-about *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
