  /* ==========================================================================
   性视界 - Homepage Hero Carousel
   Fully scoped to .cc-homehero to avoid conflicts with existing carousel CSS.
   ========================================================================== */

.cc-homehero,
.cc-homehero *,
.cc-homehero *::before,
.cc-homehero *::after {
	box-sizing: border-box;
}

.cc-homehero {
	--cc-homehero-red: #990000;
	--cc-homehero-black: #000000;
	--cc-homehero-white: #ffffff;
	--cc-homehero-focus: #ffffff;

	position: relative;

	width: 100%;

	margin: 0;
	padding: 0;

	background: var(--cc-homehero-black);
	color: var(--cc-homehero-white);

	overflow: hidden;
	isolation: isolate;
}

/* ==========================================================================
   Desktop Header Alignment

   The 54px offset is only needed when the full desktop navigation/header
   layout is active.

   At 1024px and below, the carousel stays flush with the responsive header.
   ========================================================================== */

@media (min-width: 1025px) {

	.cc-homehero {
		margin-top: 54px;
	}

}


/* ==========================================================================
   Decorative Pattern

   The existing homepage pattern overlaps the carousel and controls at
   1024px and below. Because the pattern is decorative, remove it at those
   responsive widths.
   ========================================================================== */

@media (max-width: 1024px) {

	.pattern-block {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}

}


/* ==========================================================================
   Slides
   ========================================================================== */

.cc-homehero__slides {
	position: relative;

	width: 100%;

	margin: 0;
	padding: 0;
}

.cc-homehero__slide {
	position: relative;

	width: 100%;

	margin: 0;
	padding: 0;
}

.cc-homehero__slide[hidden] {
	display: none !important;
}


/* ==========================================================================
   Image
   ========================================================================== */

.cc-homehero__media {
	position: relative;

	width: 100%;

	margin: 0;
	padding: 0;

	/*
	 * 1920 x 640 = 3:1.
	 * Preserving the source ratio prevents layout movement and cropping.
	 */
	aspect-ratio: 3 / 1;

	background: #000;

	overflow: hidden;
}

.cc-homehero__image {
	display: block;

	width: 100%;
	height: 100%;

	margin: 0;
	padding: 0;

	/*
	 * Keep the entire 1920 x 640 image visible.
	 * Do not change this to object-fit: cover.
	 */
	object-fit: contain;
	object-position: center center;
}


/* ==========================================================================
   Content Overlay - Desktop
   ========================================================================== */

.cc-homehero__content {
	position: absolute;
	z-index: 2;

	top: 65%;
	left: clamp(1.5rem, 6vw, 7rem);

	width: min(38rem, 46vw);

	padding: clamp(1.1rem, 2.2vw, 2rem);

	color: #fff;

	background: rgba(0, 0, 0, 0.72);

	transform: translateY(-50%);
}


/* ==========================================================================
   Eyebrow
   ========================================================================== */

.cc-homehero__eyebrow {
	margin: 0 0 0.25rem;

	font-size: clamp(1rem, 1.35vw, 1.4rem);
	font-weight: 600;
	line-height: 1.25;
}


/* ==========================================================================
   Heading
   ========================================================================== */

.cc-homehero__heading {
	margin: 0;

	font-family: 'Anton', sans-serif;
	font-size: clamp(2rem, 4vw, 4.75rem);
	font-weight: 400;
	line-height: 1;

	color: #fff !important;

	text-transform: uppercase;
}


/* ==========================================================================
   WYSIWYG Description
   ========================================================================== */

.cc-homehero__description {
	margin-top: 0.85rem;
}

.cc-homehero__description > *:first-child {
	margin-top: 0;
}

.cc-homehero__description > *:last-child {
	margin-bottom: 0;
}

.cc-homehero__description p {
	margin: 0 0 0.65rem;
}

.cc-homehero__description a {
	color: inherit;
}

.cc-homehero__content p:last-of-type {
	margin-bottom: 0;
}


/* ==========================================================================
   Calls to Action

   Button appearance and hover behavior come from the existing 性视界
   homepage button classes applied in XSL:

   class="btn home-btn"

   No component-specific button styling is defined here.
   ========================================================================== */

.cc-homehero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;

	gap: 0.75rem 1.25rem;

	margin-top: 1.25rem;
}



/* ==========================================================================
   Carousel Controls

   Visual order:
   Previous | Play/Pause | Next

   The Play/Pause control remains first in the DOM for accessibility.
   ========================================================================== */

.cc-homehero__controls {
	position: absolute;
	z-index: 10;

	right: clamp(1rem, 3vw, 3rem);
	bottom: 1rem;

	display: flex;
	align-items: center;
	justify-content: center;

	gap: 0.35rem;
}

.cc-homehero__control {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;

	margin: 0;
	padding: 0;

	border: 2px solid #fff;
	border-radius: 50%;

	background: rgba(0, 0, 0, 0.82);
	color: #fff;

	font: inherit;
	font-size: 2rem;
	font-weight: 400;
	line-height: 1;

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;

	transition:
		background-color 160ms ease,
		color 160ms ease,
		border-color 160ms ease;
}

.cc-homehero__control:hover {
	background: var(--cc-homehero-red);
	color: #fff;
}

.cc-homehero__control:focus-visible {
	outline: 3px solid var(--cc-homehero-focus);
	outline-offset: 3px;
}

.cc-homehero__control--previous {
	order: 1;
}

.cc-homehero__control--toggle {
	order: 2;

	font-size: 1rem;
}

.cc-homehero__control--next {
	order: 3;
}

.cc-homehero__control--previous span,
.cc-homehero__control--next span {
	display: block;

	margin-top: -0.1em;

	line-height: 1;
}


/* ==========================================================================
   CSS Play/Pause Icons

   These icons do not depend on Font Awesome or another icon font.
   ========================================================================== */

.cc-homehero__pause-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 4px;

	width: 16px;
	height: 18px;
}

.cc-homehero__pause-icon::before,
.cc-homehero__pause-icon::after {
	content: "";

	display: block;

	width: 4px;
	height: 16px;

	background: currentColor;

	border-radius: 1px;
}

.cc-homehero__play-icon {
	display: inline-block;

	width: 0;
	height: 0;

	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 12px solid currentColor;

	transform: translateX(1px);
}

.cc-homehero__play-icon[hidden],
.cc-homehero__pause-icon[hidden] {
	display: none !important;
}


/* ==========================================================================
   Screen Reader Status
   ========================================================================== */

.cc-homehero__status {
	position: absolute !important;

	width: 1px !important;
	height: 1px !important;

	padding: 0 !important;
	margin: -1px !important;

	overflow: hidden !important;

	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;

	white-space: nowrap !important;

	border: 0 !important;
}


/* ==========================================================================
   Intermediate Desktop

   At widths close to tablet size, the 3:1 hero becomes shallower.
   Tightening the overlay keeps headings, 2-3 description lines, and
   buttons inside the image while retaining top: 65%.
   ========================================================================== */

@media (min-width: 901px) and (max-width: 1100px) {

	.cc-homehero__content {
		left: clamp(1.25rem, 4vw, 3rem);

		width: min(34rem, 52vw);

		padding: 1rem 1.25rem;
	}

	.cc-homehero__heading {
		font-size: clamp(1.8rem, 3.6vw, 2.75rem);
	}

	.cc-homehero__description {
		margin-top: 0.6rem;

		font-size: 0.95rem;
		line-height: 1.4;
	}

	.cc-homehero__description p {
		margin-bottom: 0.45rem;
	}

	.cc-homehero__actions {
		margin-top: 0.75rem;

		gap: 0.5rem 0.75rem;
	}

}


/* ==========================================================================
   Tablet / Mobile

   The full 3:1 image stays visible.

   Content moves below the image rather than remaining over a very shallow
   mobile image.
   ========================================================================== */

@media (max-width: 900px) {

	.cc-homehero {
		overflow: visible;
	}

	.cc-homehero__content {
		position: static;

		width: 100%;

		padding: 1.5rem;

		background: #000;

		transform: none;
	}

	.cc-homehero__heading {
		font-size: clamp(1.8rem, 7vw, 3rem);
		line-height: 1.05;
	}

	.cc-homehero__controls {
		position: static;

		width: 100%;

		padding: 0.75rem 1rem 1rem;

		background: #000;
	}
	.cc-homehero__control {
		width: 24px;
		height: 24px;
		min-width: 24px;
		min-height: 24px;
		font-size: .7rem;
	}
	.cc-homehero__pause-icon {
		width: 8px;
		height: 10px;
	}
	.cc-homehero__play-icon {
		border-top: 4px solid transparent;
		border-bottom: 4px solid transparent;
		border-left: 8px solid currentColor;
	}
}


/* ==========================================================================
   Small Mobile
   ========================================================================== */

@media (max-width: 480px) {

	.cc-homehero__content {
		padding: 1.25rem 1rem;
	}

	.cc-homehero__eyebrow {
		font-size: 1rem;
	}

	.cc-homehero__heading {
		font-size: clamp(1.75rem, 8vw, 2.35rem);
	}

	.cc-homehero__actions {
		align-items: stretch;
		flex-direction: column;
	}

}


/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	.cc-homehero *,
	.cc-homehero *::before,
	.cc-homehero *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

}


/* ==========================================================================
   Windows High Contrast / Forced Colors
   ========================================================================== */

@media (forced-colors: active) {

	.cc-homehero__control {
		border: 2px solid ButtonText;
	}

	.cc-homehero__control:focus-visible {
		outline: 3px solid Highlight;
	}

	.cc-homehero__pause-icon::before,
	.cc-homehero__pause-icon::after {
		background: ButtonText;
	}

	.cc-homehero__play-icon {
		border-left-color: ButtonText;
	}

}

/* ==========================================================================
   Homepage Carousel CTA Button

   Default:
   性视界 pink/red #e20d39

   Hover:
   Black layer expands from right to left while button text remains above it.
   ========================================================================== */

.cc-homehero .cc-homehero__actions .cc-homehero__btn {
	position: relative;
	z-index: 0;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	overflow: hidden;
	isolation: isolate;

	background: #e20d39 !important;
	background-color: #e20d39 !important;
	background-image: none !important;

	border-color: #e20d39 !important;

	color: #fff !important;

	text-decoration: none !important;
}


/* --------------------------------------------------------------------------
   Black wipe layer

   Starts collapsed against the RIGHT edge.
   -------------------------------------------------------------------------- */

.cc-homehero .cc-homehero__actions .cc-homehero__btn::before {
	content: "" !important;

	position: absolute !important;
	z-index: 0 !important;

	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;

	width: 100% !important;
	height: 100% !important;

	margin: 0 !important;
	padding: 0 !important;

	background: #000 !important;

	border: 0 !important;

	transform: scaleX(0) !important;
	transform-origin: right center !important;

	transition: transform 0.35s ease !important;

	pointer-events: none !important;
}


/*
 * Prevent another inherited .home-btn pseudo-element from interfering
 * with this component's wipe effect.
 */

.cc-homehero .cc-homehero__actions .cc-homehero__btn::after {
	content: none !important;
	display: none !important;
}


/* --------------------------------------------------------------------------
   Button label

   Must remain above the animated black layer.
   -------------------------------------------------------------------------- */

.cc-homehero .cc-homehero__actions .cc-homehero__btn-label {
	position: relative;
	z-index: 2;

	color: inherit;
}


/* --------------------------------------------------------------------------
   Hover / Keyboard Focus

   Because transform-origin is RIGHT, increasing scaleX from 0 to 1 causes
   the black layer to grow from RIGHT to LEFT.
   -------------------------------------------------------------------------- */

.cc-homehero .cc-homehero__actions .cc-homehero__btn:hover::before,
.cc-homehero .cc-homehero__actions .cc-homehero__btn:focus::before,
.cc-homehero .cc-homehero__actions .cc-homehero__btn:focus-visible::before {
	transform: scaleX(1) !important;
}


/* Keep text white throughout the animation */

.cc-homehero .cc-homehero__actions .cc-homehero__btn:hover,
.cc-homehero .cc-homehero__actions .cc-homehero__btn:focus,
.cc-homehero .cc-homehero__actions .cc-homehero__btn:focus-visible {
	background: #e20d39 !important;
	background-color: #e20d39 !important;

	border-color: #000 !important;

	color: #fff !important;

	text-decoration: none !important;
}


/* Accessible keyboard focus indicator */

.cc-homehero .cc-homehero__actions .cc-homehero__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}