/* ============ HERO ============ */
section#hero {
	position: relative;
	height: 100svh;
	min-height: 560px;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	color: #fff;
}

section#hero .hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

section#hero video,
section#hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

section#hero .hero-slides {
	position: absolute;
	inset: 0;
}

section#hero .hero-slide {
	position: absolute;
	inset: 0;
	object-position: 50% 40%;
	opacity: 0;
	transition: opacity 1.8s ease-in-out;
	animation: herokenburns 9s ease-in-out infinite;
}

section#hero .hero-slide.is-active {
	opacity: 1;
	z-index: 1;
}

@keyframes herokenburns {
	0% { transform: scale(1) translate(0, 0); }
	50% { transform: scale(1.15) translate(-1%, -1.5%); }
	100% { transform: scale(1) translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
	section#hero .hero-slide {
		animation: none;
	}
}

section#hero .hero-wash {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(10,9,7,.3);
}

section#hero .hero-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(10,9,7,.4) 0%, rgba(10,9,7,.2) 40%, rgba(10,9,7,.7) 100%);
}

section#hero .hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 0 clamp(20px, 4vw, 56px) 90px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

section#hero .eyebrow {
	color: #f0dcc9;
}

section#hero h1 {
	font-size: clamp(40px, 7vw, 88px);
	font-weight: 400;
	max-width: 16ch;
}

section#hero p.lede {
	font-family: var(--font-body);
	font-size: 16px;
	max-width: 46ch;
	color: rgba(255,255,255,.85);
}

.scroll-cue {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: rgba(255,255,255,.8);
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	text-decoration: none;
}

.scroll-cue .line {
	width: 1px;
	height: 34px;
	background: rgba(255,255,255,.6);
	animation: scrollcue 1.8s ease-in-out infinite;
}

@keyframes scrollcue {
	0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
	40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
	60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
	100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============ CATEGORIES ============ */
section#popular-categories {
	padding: 120px clamp(20px, 4vw, 56px);
	max-width: 1400px;
	margin: 0 auto;
}

.categories-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 30px;
	margin-bottom: 64px;
	flex-wrap: wrap;
}

.categories-heading p {
	max-width: 40ch;
	color: var(--ink-soft);
}

.category-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	background: var(--line);
}

.category-card {
	flex: 0 1 calc((100% - 2px * 2) / 3);
	min-width: 0;
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	background: var(--ink);
}

.category-card:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

.category-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 900ms cubic-bezier(.2,.7,.2,1), filter 500ms ease;
	filter: grayscale(35%) brightness(.82);
}

.category-card:hover img,
.category-card:focus-visible img {
	transform: scale(1.08);
	filter: grayscale(0%) brightness(.9);
}

.category-card--text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 32px 30px;
	transition: background 300ms ease;
}

.category-card--text .eyebrow {
	color: #f0dcc9;
}

.category-card--text h3 {
	font-size: 24px;
}

.category-card--text p {
	color: rgba(255,255,255,.75);
	font-size: 14px;
	max-width: 32ch;
}

.category-card--text > span:last-child {
	font-family: var(--font-body);
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.75);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.category-card--text:hover,
.category-card--text:focus-visible {
	background: #232019;
}

.category-card .scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10,9,7,0) 40%, rgba(10,9,7,.75) 100%);
}

.category-card .card-label {
	position: absolute;
	left: 26px;
	right: 26px;
	bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.category-card .card-label h3 {
	font-size: 24px;
	font-weight: 500;
}

.category-card .card-label span {
	font-family: var(--font-body);
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.75);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 300ms ease, transform 300ms ease;
}

.category-card:hover .card-label span,
.category-card:focus-visible .card-label span {
	opacity: 1;
	transform: translateY(0);
}

/* ============ ABOUT ============ */
section#about-us {
	background: var(--paper-soft);
	padding: 130px clamp(20px, 4vw, 56px);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.about-wrapper {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	gap: 80px;
	align-items: center;
}

.about-copy {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.about-copy h2 {
	font-size: clamp(30px, 3.6vw, 44px);
}

.about-copy p {
	color: var(--ink-soft);
	font-size: 16px;
	max-width: 46ch;
}

.about-frame {
	flex: 1 1 0;
	min-width: 0;
	position: relative;
	border: 2px solid var(--accent);
	padding: 5px;
	background-color: var(--paper-soft);;
}

.about-frame img {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
}

@media (max-width: 900px) {
	.category-card {
		flex-basis: calc((100% - 2px) / 2);
	}
	.about-wrapper {
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
	}
	.about-copy,
	.about-frame {
		flex: none;
	}
	.about-frame {
		order: -1;
	}
	section#about-us {
		padding: 80px 20px;
	}
	section#popular-categories {
		padding: 80px 20px;
	}
}

@media (max-width: 560px) {
	.category-card {
		flex-basis: 100%;
	}
	section#hero .hero-content {
		padding-bottom: 70px;
	}
}
