/* OnlyTopReviews homepage: hero, "what we review", category sections. */

/* Hero. Text blocks are placed in fractions of the hero width so they stay on the empty parts of the photo. */

.otr-hero {
	position: relative;
	display: flex;
	align-items: center;
	height: min(56.25vw, 100vh);
	min-height: 620px;
	overflow: hidden;
	background: var(--otr-night);
	color: var(--otr-white);
}

/* The hero only slides under the header when the header can turn transparent, which needs JS. */
.js .otr-hero {
	margin-top: calc(-1 * var(--otr-header-h));
}

.otr-hero__media,
.otr-hero__media video,
.otr-hero__shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.otr-hero__media video {
	object-fit: cover;
	object-position: 50% 50%;
}

.otr-hero__shade {
	background:
		linear-gradient(180deg, rgba(43, 15, 11, .7) 0, rgba(43, 15, 11, 0) 24%),
		linear-gradient(90deg, rgba(43, 15, 11, .88) 0, rgba(43, 15, 11, .7) 26%, rgba(43, 15, 11, 0) 52%),
		linear-gradient(270deg, rgba(43, 15, 11, .55) 0, rgba(43, 15, 11, 0) 20%);
}

.otr-hero__copy {
	position: relative;
	z-index: 1;
	width: min(520px, 30vw);
	margin-left: var(--otr-gutter);
	padding-top: calc(var(--otr-header-h) * .6);
	text-align: center;
}

.otr-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 clamp(10px, 1.6vw, 24px);
	padding: 8px 16px 8px 12px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: var(--otr-blush);
	font-size: 14px;
	font-weight: 500;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	animation: otr-up .7s var(--otr-ease) .1s both;
}

.otr-hero__eyebrow .otr-icon {
	color: var(--otr-blue);
}

.otr-hero__title {
	margin: 0;
	line-height: 1;
}

.otr-write {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	font-family: var(--otr-display);
	font-size: 100px;
	font-weight: 500;
	letter-spacing: -.01em;
}

.otr-write__l {
	fill: var(--otr-white);
	fill-opacity: 0;
	stroke: var(--otr-white);
	stroke-width: 1;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 480;
	stroke-dashoffset: 480;
	animation:
		otr-draw 1.3s cubic-bezier(.6, .1, .3, 1) forwards,
		otr-ink .6s ease forwards;
	animation-delay:
		calc(var(--i) * .11s + .35s),
		calc(var(--i) * .11s + 1.05s);
}

.otr-write__line {
	fill: none;
	stroke: var(--otr-blue);
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-dasharray: 260;
	stroke-dashoffset: 260;
	animation: otr-draw .7s var(--otr-ease) 2.7s forwards;
}

.otr-hero__lead {
	max-width: 30em;
	margin: clamp(14px, 1.8vw, 26px) auto clamp(18px, 2.2vw, 32px);
	color: rgba(255, 255, 255, .86);
	font-size: clamp(15px, 1.2vw, 18.5px);
	line-height: 1.6;
	animation: otr-up .8s var(--otr-ease) 1.5s both;
}

.otr-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	animation: otr-up .8s var(--otr-ease) 1.8s both;
}

/* Right-hand wall: category shortcuts. */

.otr-hero__cats {
	position: absolute;
	z-index: 1;
	top: 16%;
	left: 86.6%;
	right: 1.4%;
}

.otr-hero__cats p {
	margin: 0 0 12px;
	color: var(--otr-dust);
	font-family: var(--otr-head);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	animation: otr-up .7s var(--otr-ease) 2s both;
}

.otr-hero__cats ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.otr-hero__cats li {
	animation: otr-in-right .8s var(--otr-ease) both;
	animation-delay: calc(var(--i) * .12s + 2.1s);
}

.otr-hero__cats a,
.otr-hero__cats a:visited {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 12px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 12px;
	background: rgba(255, 255, 255, .07);
	color: var(--otr-white);
	font-size: clamp(12.5px, .95vw, 14.5px);
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: background-color .25s, border-color .25s, transform .25s var(--otr-ease);
}

.otr-hero__cats .otr-icon {
	width: 18px;
	height: 18px;
	color: var(--otr-dust);
	transition: color .25s;
}

.otr-hero__cats a:hover,
.otr-hero__cats a:focus {
	border-color: var(--otr-blue);
	background: rgba(66, 133, 244, .28);
	color: var(--otr-white);
	transform: translateX(-6px);
}

.otr-hero__cats a:hover .otr-icon {
	color: var(--otr-white);
}

/* Floor, bottom right. */

.otr-hero__note {
	position: absolute;
	z-index: 1;
	right: 2.2%;
	bottom: 4.5%;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: rgba(255, 255, 255, .92);
	font-size: clamp(13px, 1vw, 15.5px);
	font-weight: 500;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
	animation: otr-up .8s var(--otr-ease) 2.9s both;
}

.otr-stars {
	display: inline-flex;
	gap: 2px;
	color: #FFC857;
}

.otr-stars .otr-icon {
	width: 17px;
	height: 17px;
	animation: otr-pop .5s var(--otr-ease) both;
}

.otr-stars .otr-icon:nth-child(1) { animation-delay: 3s; }
.otr-stars .otr-icon:nth-child(2) { animation-delay: 3.1s; }
.otr-stars .otr-icon:nth-child(3) { animation-delay: 3.2s; }
.otr-stars .otr-icon:nth-child(4) { animation-delay: 3.3s; }
.otr-stars .otr-icon:nth-child(5) { animation-delay: 3.4s; }

@keyframes otr-draw {
	to { stroke-dashoffset: 0; }
}

@keyframes otr-ink {
	to { fill-opacity: 1; stroke-width: 0; }
}

@keyframes otr-up {
	from { opacity: 0; transform: translateY(18px); }
}

@keyframes otr-in-right {
	from { opacity: 0; transform: translateX(28px); }
}

@keyframes otr-pop {
	from { opacity: 0; transform: scale(.3) rotate(-30deg); }
}

@media (max-width: 1199px) {
	.otr-hero__cats,
	.otr-hero__note {
		display: none;
	}

	.otr-hero__copy {
		width: min(520px, 27vw);
	}
}

@media (max-width: 960px) {
	.otr-hero {
		align-items: flex-end;
		height: auto;
		min-height: min(760px, 100svh);
	}

	.otr-hero__shade {
		background: linear-gradient(180deg, rgba(43, 15, 11, .6) 0, rgba(43, 15, 11, .15) 26%, rgba(43, 15, 11, .78) 58%, rgba(43, 15, 11, .96) 100%);
	}

	.otr-hero__copy {
		width: 100%;
		max-width: 560px;
		margin: 0 auto;
		padding: 300px 20px 44px;
		text-align: center;
	}

	.otr-hero__copy {
		width: 100%;
	}

	.otr-write {
		width: min(100%, 380px);
		margin-inline: auto;
	}

	.otr-hero__lead {
		margin-inline: auto;
		font-size: 16px;
	}

	.otr-hero__actions {
		justify-content: center;
	}

	.otr-hero__note {
		display: none;
	}
}

@media (max-width: 767px) {
	.otr-hero__shade {
		background: linear-gradient(180deg, rgba(43, 15, 11, .65) 0, rgba(43, 15, 11, .2) 22%, rgba(43, 15, 11, .8) 46%, rgba(43, 15, 11, .96) 70%);
	}

	.otr-hero__copy {
		padding-top: 320px;
	}
}

/* What we review */

.otr-about {
	padding-bottom: clamp(56px, 7vw, 96px);
}

/* The video keeps its products on the right, so the text sits on the empty left side. */
.otr-about__stage {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(560px, 48vw, 780px);
	overflow: hidden;
	background: #EFE4D6;
}

.otr-about__media,
.otr-about__media video,
.otr-about__shade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.otr-about__media video {
	object-fit: cover;
	object-position: 100% 50%;
}

.otr-about__shade {
	background: linear-gradient(90deg, rgba(251, 243, 241, .92) 0, rgba(251, 243, 241, .86) 38%, rgba(251, 243, 241, 0) 62%);
}

.otr-about__stage > .otr-container {
	position: relative;
	z-index: 1;
	padding-block: clamp(48px, 6vw, 88px);
}

.otr-about__text {
	max-width: min(560px, 50%);
}

.otr-about h2 {
	margin: 0 0 20px;
	font-size: clamp(30px, 3.6vw, 46px);
}

.otr-about__text p {
	margin: 0 0 16px;
}

.otr-about__points {
	display: grid;
	gap: 10px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	color: var(--otr-ink);
	font-weight: 500;
}

.otr-about__points li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.otr-about__points .otr-icon {
	width: 24px;
	height: 24px;
	padding: 5px;
	border-radius: 50%;
	background: var(--otr-blue);
	color: var(--otr-white);
	stroke-width: 3;
}

.otr-about__cats {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: clamp(-64px, -5vw, -36px) 0 0;
	padding: 0;
	list-style: none;
	position: relative;
	z-index: 2;
}

.otr-about__cats li:not(:first-child) .otr-tile {
	grid-template-columns: 1fr;
	align-content: start;
	gap: 4px;
	padding: 20px;
	box-shadow: 0 18px 36px -30px rgba(92, 32, 24, .55);
}

.otr-about__cats li:not(:first-child) .otr-tile__icon {
	grid-row: auto;
	margin-bottom: 10px;
}

.otr-about__cats li:not(:first-child) .otr-tile__go {
	top: 34px;
}

.otr-tile,
.otr-tile:visited {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 16px;
	align-items: center;
	height: 100%;
	padding: 20px 52px 20px 20px;
	border: 1px solid var(--otr-line);
	border-radius: var(--otr-radius);
	background: var(--otr-white);
	color: var(--otr-body);
	text-decoration: none;
	transition: transform .3s var(--otr-ease), box-shadow .3s, border-color .3s, background-color .3s;
}

.otr-tile:hover,
.otr-tile:focus {
	border-color: var(--otr-dust);
	background: var(--otr-tint);
	color: var(--otr-body);
	box-shadow: 0 22px 40px -28px rgba(92, 32, 24, .6);
	transform: translateY(-4px);
}

.otr-tile__icon {
	display: grid;
	grid-row: span 2;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--otr-blush);
	color: var(--otr-rose);
	transition: background-color .3s, color .3s;
}

.otr-tile:hover .otr-tile__icon {
	background: var(--otr-rose);
	color: var(--otr-white);
}

.otr-tile__icon .otr-icon {
	width: 24px;
	height: 24px;
}

.otr-tile__name {
	align-self: end;
	color: var(--otr-ink);
	font-family: var(--otr-head);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.otr-tile__desc {
	align-self: start;
	font-size: 14.5px;
	line-height: 1.5;
}

.otr-tile__go {
	position: absolute;
	top: 50%;
	right: 18px;
	color: var(--otr-dust);
	line-height: 0;
	transform: translateY(-50%);
	transition: color .3s, transform .3s var(--otr-ease);
}

.otr-tile:hover .otr-tile__go {
	color: var(--otr-blue);
	transform: translate(4px, -50%);
}

.otr-tile--lead,
.otr-tile--lead:visited {
	padding-block: 26px;
	border-color: transparent;
	background: var(--otr-maroon);
	color: var(--otr-blush);
}

.otr-tile--lead:hover,
.otr-tile--lead:focus {
	border-color: transparent;
	background: #6B271D;
	color: var(--otr-blush);
}

.otr-tile--lead .otr-tile__icon {
	grid-row: span 3;
	width: 64px;
	height: 64px;
	background: rgba(255, 255, 255, .1);
	color: var(--otr-dust);
}

.otr-tile--lead .otr-tile__name {
	color: var(--otr-white);
	font-size: 22px;
}

.otr-tile__badge {
	justify-self: start;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--otr-rose);
	color: var(--otr-white);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

@media (max-width: 1100px) {
	.otr-about__cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.otr-about__cats li:first-child {
		grid-column: 1 / -1;
	}
}

/* Phones and small tablets: video on top, text underneath, so neither covers the other. */
@media (max-width: 860px) {
	.otr-about__stage {
		display: block;
		min-height: 0;
		background: var(--otr-tint);
	}

	.otr-about__media {
		position: relative;
		height: auto;
		aspect-ratio: 16 / 11;
	}

	.otr-about__media video {
		object-position: 88% 50%;
	}

	.otr-about__shade {
		display: none;
	}

	.otr-about__text {
		max-width: none;
	}

	.otr-about__cats {
		margin-top: 0;
	}
}

@media (max-width: 520px) {
	.otr-about__cats {
		grid-template-columns: 1fr;
	}
}

/* Category sections */

.otr-cat {
	padding: clamp(56px, 7vw, 92px) 0;
}

.otr-cat--tint {
	background: var(--otr-tint);
}

.otr-cat__head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 36px;
}

.otr-cat__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: var(--otr-maroon);
	color: var(--otr-blush);
}

.otr-cat__icon .otr-icon {
	width: 26px;
	height: 26px;
}

.otr-cat__titles {
	flex: 1;
	min-width: 0;
}

.otr-cat__titles h2 {
	margin: 0 0 4px;
	font-size: clamp(26px, 2.8vw, 34px);
}

.otr-cat__titles p {
	margin: 0;
	font-size: 16px;
}

.otr-cat__empty {
	margin: 0;
	padding: 36px 24px;
	border: 1.5px dashed var(--otr-dust);
	border-radius: var(--otr-radius);
	text-align: center;
}

@media (max-width: 760px) {
	.otr-cat__head {
		flex-wrap: wrap;
	}

	.otr-cat__titles {
		flex-basis: calc(100% - 74px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.otr-hero * {
		animation: none !important;
	}

	.otr-write__l {
		fill-opacity: 1;
		stroke-dashoffset: 0;
		stroke-width: 0;
	}

	.otr-write__line {
		stroke-dashoffset: 0;
	}
}
