/**
 * Homepage — cinematic scroll composition.
 *
 * Full-viewport scenes with snap scroll, overlay nav, and staggered reveals.
 * Colors/fonts map to design tokens; layout/motion follow the approved reference.
 *
 * @package Fashion_Brand_Theme
 */

/* -------------------------------------------------------------------------
   Front-page shell
   ------------------------------------------------------------------------- */

html:has(body.home) {
	height: 100%;
}

body.home {
	height: 100%;
	overflow-x: hidden;
}

body.home #page,
body.home .site-content {
	height: 100%;
}

.home .site-content {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
}

.home .site-footer,
.home .announcement-bar {
	display: none;
}

.site-main--cinematic {
	position: relative;
	height: 100%;
	min-height: 100vh;
	overflow: hidden;
}

/* -------------------------------------------------------------------------
   Fixed chrome — brand mark, utilities, counter, menu
   ------------------------------------------------------------------------- */

.cinematic-brand-mark {
	position: fixed;
	top: 36px;
	left: 32px;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--color-background);
	transition: color 0.25s ease;
}

.cinematic-brand-mark:hover,
.cinematic-brand-mark:focus-visible {
	color: var(--color-accent-light);
}

.cinematic-brand-mark:focus-visible {
	outline: 2px solid var(--color-accent-light);
	outline-offset: 4px;
}

.cinematic-brand-mark__glyph {
	display: block;
	width: auto;
	height: 30px;
	object-fit: contain;
}

.cinematic-brand-mark__wordmark {
	font-family: var(--font-family-display);
	font-size: 14px;
	font-weight: var(--font-weight-regular);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
}

.cinematic-utility {
	position: fixed;
	top: 36px;
	right: 32px;
	z-index: 70;
	display: flex;
	align-items: center;
	gap: 20px;
}

.cinematic-utility__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--color-background);
	text-decoration: none;
	transition: color 0.25s ease;
}

.cinematic-utility__link:hover,
.cinematic-utility__link:focus-visible {
	color: var(--color-accent-light);
}

.cinematic-utility__link:focus-visible {
	outline: 2px solid var(--color-accent-light);
	outline-offset: 3px;
}

.cinematic-utility__icon {
	display: block;
	width: 19px;
	height: 19px;
}

.cinematic-cart-count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 15px;
	height: 15px;
	padding: 0 3px;
	border-radius: 50%;
	background: var(--color-accent-light);
	color: var(--color-ink);
	font-family: var(--font-family-base);
	font-size: 10px;
	font-weight: var(--font-weight-semibold);
	line-height: 15px;
	text-align: center;
}

.cinematic-cart-count.is-empty,
.cinematic-cart-count[hidden] {
	display: none;
}

.cinematic-counter {
	position: fixed;
	bottom: 32px;
	right: 32px;
	z-index: 60;
	font-family: var(--font-family-base);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-background);
	text-align: right;
	line-height: 1.6;
	pointer-events: none;
}

.cinematic-counter b {
	font-family: var(--font-family-display);
	font-size: 15px;
	font-weight: var(--font-weight-regular);
}

.cinematic-menu-btn {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
}

.cinematic-menu-btn:focus-visible {
	outline: 2px solid var(--color-accent-light);
	outline-offset: 3px;
}

.cinematic-menu-btn span {
	display: block;
	width: 26px;
	height: 1px;
	background: var(--color-background);
	transition: background 0.25s ease;
}

.cinematic-menu-btn:hover span,
.cinematic-menu-btn:focus-visible span {
	background: var(--color-accent-light);
}

.cinematic-menu-btn span:nth-child(2) {
	width: 18px;
}

/* -------------------------------------------------------------------------
   Fullscreen overlay nav
   ------------------------------------------------------------------------- */

.cinematic-overlay-nav {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 0 64px;
	background: var(--color-ink);
	transform: translateY(-100%);
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	visibility: hidden;
}

.cinematic-overlay-nav.is-open {
	transform: translateY(0);
	visibility: visible;
}

.cinematic-overlay-nav a {
	display: block;
	font-family: var(--font-family-display);
	font-weight: 300;
	font-size: clamp(38px, 7vw, 86px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--color-background);
	text-decoration: none;
	opacity: 0.55;
	transition:
		opacity 0.3s ease,
		padding-left 0.3s ease,
		color 0.3s ease;
}

.cinematic-overlay-nav a:hover,
.cinematic-overlay-nav a:focus-visible {
	padding-left: 14px;
	opacity: 1;
	color: var(--color-accent-light);
}

.cinematic-overlay-close {
	position: absolute;
	top: 40px;
	right: 32px;
	padding: 0;
	background: none;
	border: none;
	font-family: var(--font-family-base);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-background);
	cursor: pointer;
	transition: color 0.25s ease;
}

.cinematic-overlay-close:hover,
.cinematic-overlay-close:focus-visible {
	color: var(--color-accent-light);
}

.cinematic-overlay-close:focus-visible {
	outline: 2px solid var(--color-accent-light);
	outline-offset: 3px;
}

.cinematic-overlay-foot {
	position: absolute;
	bottom: 48px;
	left: 64px;
	margin: 0;
	font-family: var(--font-family-base);
	font-size: 12px;
	letter-spacing: 0.06em;
	color: color-mix(in srgb, var(--color-text-inverse) 45%, transparent);
}

.cinematic-overlay-preview {
	position: absolute;
	top: 50%;
	right: 80px;
	width: 320px;
	transform: translateY(-50%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cinematic-overlay-preview.is-active {
	opacity: 1;
	visibility: visible;
}

.cinematic-overlay-preview img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.cinematic-overlay-preview__caption {
	margin: 14px 0 0;
	font-family: var(--font-family-base);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--color-text-inverse) 70%, transparent);
}

@media (max-width: 1100px) {
	.cinematic-overlay-preview {
		display: none;
	}
}

/* -------------------------------------------------------------------------
   Shared cinematic CTA link
   ------------------------------------------------------------------------- */

.cinematic-link {
	display: inline-block;
	padding-bottom: 5px;
	font-family: var(--font-family-base);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-background);
	border-bottom: 1px solid currentColor;
	transition:
		color 0.25s ease,
		border-color 0.25s ease,
		opacity 0.25s ease;
}

.cinematic-link:hover,
.cinematic-link:focus-visible {
	color: var(--color-accent-light);
	border-color: var(--color-accent-light);
	opacity: 1;
}

.cinematic-link:focus-visible {
	outline: 2px solid var(--color-accent-light);
	outline-offset: 4px;
}

/* -------------------------------------------------------------------------
   Scroll container + scenes
   ------------------------------------------------------------------------- */

.scroll-wrap {
	position: relative;
	height: 100vh;
	overflow: hidden;
}

.scene-track {
	height: 100vh;
}

.scene {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 100vh;
	overflow: hidden;
}

@media (pointer: fine) {
	.scene-track {
		transition: transform 1.05s cubic-bezier(0.65, 0, 0.35, 1);
		will-change: transform;
	}
}

@media (pointer: coarse) {
	.scroll-wrap {
		overflow-y: auto;
		scroll-snap-type: y proximity;
	}

	.scene-track {
		transition: none;
	}

	.scene {
		scroll-snap-align: start;
	}
}

.scene-img {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	will-change: transform;
	transform: scale(1.08);
}

.scene-scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.scene-top-scrim {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1;
	height: 220px;
	background: linear-gradient(
		180deg,
		color-mix(in srgb, var(--color-ink) 60%, transparent) 0%,
		transparent 100%
	);
	pointer-events: none;
}

.scrim-bottom {
	background: linear-gradient(
		0deg,
		color-mix(in srgb, var(--color-ink) 72%, transparent) 0%,
		color-mix(in srgb, var(--color-ink) 10%, transparent) 45%,
		transparent 70%
	);
}

.scrim-side {
	background: linear-gradient(
		100deg,
		color-mix(in srgb, var(--color-ink) 55%, transparent) 0%,
		color-mix(in srgb, var(--color-ink) 5%, transparent) 50%,
		transparent 100%
	);
}

.scrim-full {
	background: color-mix(in srgb, var(--color-ink) 28%, transparent);
}

.scene-copy {
	position: relative;
	z-index: 2;
	max-width: 760px;
	padding: 0 64px 90px;
}

.scene-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	font-family: var(--font-family-base);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-text-inverse);
	opacity: 0.7;
}

.scene-eyebrow::before {
	content: "";
	width: 36px;
	height: 1px;
	background: var(--color-text-inverse);
	opacity: 0.6;
}

.scene-headline {
	margin: 0 0 26px;
	font-family: var(--font-family-display);
	font-weight: 300;
	font-size: clamp(44px, 8.5vw, 128px);
	line-height: 0.98;
	letter-spacing: -0.015em;
	color: var(--color-text-inverse);
}

.scene-headline--guides {
	font-size: clamp(32px, 5.5vw, 72px);
	line-height: 1.05;
}

.scene-sub {
	max-width: 420px;
	margin: 0 0 32px;
	font-family: var(--font-family-base);
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text-inverse);
	opacity: 0.82;
}

.scene-copy > * {
	opacity: 0;
	transform: translateY(34px);
	transition:
		opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene.active .scene-copy > * {
	opacity: 1;
	transform: translateY(0);
}

.scene-copy > *:nth-child(1) {
	transition-delay: 0.05s;
}

.scene-copy > *:nth-child(2) {
	transition-delay: 0.15s;
}

.scene-copy > *:nth-child(3) {
	transition-delay: 0.25s;
}

.scene-copy > *:nth-child(4) {
	transition-delay: 0.35s;
}

.scene-copy > *:nth-child(5) {
	transition-delay: 0.4s;
}

.scene-copy > *:nth-child(6) {
	transition-delay: 0.45s;
}

/* -------------------------------------------------------------------------
   Categories scene — typographic index
   ------------------------------------------------------------------------- */

.cat-scene .scene-copy {
	width: 100%;
	max-width: none;
	padding: 0 64px 80px;
}

.cat-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 48px;
	row-gap: 0;
}

.cat-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 14px 0;
	color: var(--color-text-inverse);
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--color-text-inverse) 25%, transparent);
	cursor: pointer;
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.6s ease,
		transform 0.6s ease,
		padding-left 0.3s ease;
}

.cat-item:hover,
.cat-item:focus-visible {
	padding-left: 16px;
	opacity: 1 !important;
	color: var(--color-accent-light);
}

.cat-item:focus-visible {
	outline: 2px solid var(--color-accent-light);
	outline-offset: 4px;
}

.scene.active .cat-item {
	opacity: 1;
	transform: translateY(0);
}

.cat-name {
	font-family: var(--font-family-display);
	font-weight: 300;
	font-size: clamp(20px, 3vw, 36px);
}

.cat-arrow {
	font-size: 12px;
	opacity: 0.6;
}

.cat-item:nth-child(1) {
	transition-delay: 0.05s;
}

.cat-item:nth-child(2) {
	transition-delay: 0.12s;
}

.cat-item:nth-child(3) {
	transition-delay: 0.19s;
}

.cat-item:nth-child(4) {
	transition-delay: 0.26s;
}

.cat-item:nth-child(5) {
	transition-delay: 0.33s;
}

.cat-item:nth-child(6) {
	transition-delay: 0.4s;
}

@media (max-width: 860px) {
	.cat-list {
		grid-template-columns: 1fr;
	}

	.cat-name {
		font-size: clamp(17px, 5.2vw, 22px);
	}
}

/* -------------------------------------------------------------------------
   Guides scene
   ------------------------------------------------------------------------- */

.guide-entry {
	display: block;
	max-width: 520px;
	padding: 16px 0;
	color: inherit;
	text-decoration: none;
	border-top: 1px solid color-mix(in srgb, var(--color-text-inverse) 25%, transparent);
}

.guide-entry:last-of-type {
	border-bottom: 1px solid color-mix(in srgb, var(--color-text-inverse) 25%, transparent);
}

.guide-entry:hover .guide-title,
.guide-entry:focus-visible .guide-title {
	color: var(--color-accent-light);
}

.guide-entry:focus-visible {
	outline: 2px solid var(--color-accent-light);
	outline-offset: 4px;
}

.guide-title {
	display: block;
	margin-bottom: 5px;
	font-family: var(--font-family-display);
	font-weight: 300;
	font-size: 24px;
	color: var(--color-text-inverse);
	transition: color 0.25s ease;
}

.guide-desc {
	display: block;
	font-family: var(--font-family-base);
	font-size: 13px;
	color: var(--color-text-inverse);
	opacity: 0.7;
}

.closing-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: center;
}

/* -------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.scene-track {
		transition: none !important;
	}

	.scene-copy > *,
	.cat-item,
	.scene.active .scene-copy > *,
	.scene.active .cat-item {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.scene-img {
		object-position: top;
		transform: scale(1.08) !important;
		will-change: auto;
	}

	.cinematic-overlay-nav,
	.cinematic-menu-btn span,
	.cinematic-overlay-nav a,
	.cinematic-overlay-preview,
	.cinematic-link {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}

	.cursor-dot {
		transition: background 0.25s ease, width 0.25s ease, height 0.25s ease;
	}
}

/* -------------------------------------------------------------------------
   Custom cursor — fine pointer only
   ------------------------------------------------------------------------- */

.cursor-dot {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	display: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--color-background);
	pointer-events: none;
	transform: translate(-50%, -50%);
	transition:
		width 0.25s ease,
		height 0.25s ease,
		background 0.25s ease;
}

.cursor-dot.hover {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	background: var(--color-accent-light);
}

.cursor-dot .cursor-label {
	font-family: var(--font-family-base);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-ink);
	opacity: 0;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.cursor-dot.hover .cursor-label {
	opacity: 1;
}

@media (pointer: fine) {
	.home {
		cursor: none;
	}

	.home a,
	.home button,
	.home .cat-item,
	.home .guide-entry {
		cursor: none;
	}

	.cursor-dot {
		display: block;
	}

	.cursor-dot.hover {
		display: flex;
	}
}

/* -------------------------------------------------------------------------
   Narrow viewports
   ------------------------------------------------------------------------- */

@media (max-width: 860px) {
	.scene-copy,
	.cat-scene .scene-copy {
		padding: 0 28px 70px;
	}

	.cinematic-brand-mark {
		top: 22px;
		left: 20px;
		gap: 8px;
	}

	.cinematic-brand-mark__glyph {
		height: 24px;
	}

	.cinematic-brand-mark__wordmark {
		font-size: 12px;
		letter-spacing: 0.12em;
	}

	.cinematic-utility {
		top: 20px;
		right: 20px;
		gap: 14px;
	}

	.cinematic-utility__link {
		width: 28px;
		height: 28px;
	}

	.cinematic-menu-btn {
		padding: 6px;
	}

	.scene-top-scrim {
		height: 180px;
	}

	.cinematic-overlay-nav {
		padding: 0 28px;
	}

	.cinematic-overlay-foot {
		left: 28px;
		bottom: 32px;
	}

	.cinematic-counter {
		right: 20px;
		bottom: 22px;
	}

	.cat-item:nth-child(n) {
		margin-left: 0 !important;
	}

	.guide-title {
		font-size: 20px;
	}
}
