/*
 * Home sections 1-4 (Plan 05-09).
 * Geometry: reference/layout/home-desktop.json (1440) and home-phone.json (320 layout x 1.21875 = 390).
 * One breakpoint, max-width 767px (D-06). Clipping happens inside sections only, never on html/body (MAIN-09).
 */

/* Shared */
.home-section {
	position: relative;
	margin: 0;
	padding: 0;
}

.home-section > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Zero specificity so per-element margin rules (e.g. .home-03__label, .home-split__p) win (review CR-02). */
:where(.home-section) :where(h1, h2, h6, p) {
	margin: 0;
}

/* Section 1: hero loop. Wix rect y=11 h=840, followed by a 10px white strip before section 2 (y=861). */
.home-01 {
	min-height: 851px;
	margin-bottom: 10px;
	overflow: clip;
	background: #fff;
}

.home-01 .wp-block-video.annatarian-hero {
	position: absolute;
	inset: 0;
	margin: 0;
}

.home-01 .wp-block-video.annatarian-hero video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

.home-01__text {
	position: absolute;
	top: 131px;
	left: 0;
	right: 0;
	z-index: 1;
	text-align: center;
	color: #000;
	pointer-events: none;
}

.home-01__title {
	font-size: 64px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.08em;
}

.home-01__sub {
	margin-top: 22px;
	font-size: 24px;
	line-height: 1.8;
	letter-spacing: 0.05em;
}

/* Section 2: fashion film on a black band. Wix rect y=861 h=660, player 979 x 554 at x=230 (centred). */
.home-02 {
	min-height: 660px;
	background: #000;
	padding-top: 48px;
	overflow: clip;
}

.home-02 .wp-block-video.fashion-film {
	width: min(979px, calc(100% - 44px)); /* Wix: a fixed 979px player, centred, at every desktop width */
	max-width: 979px;
	margin: 0 auto;
	aspect-ratio: 979 / 554;
	background: #000;
}

.home-02 .wp-block-video.fashion-film video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: 50% 50%;
}

@media (max-width: 767px) {
	/* Phone: 320-layout values x 1.21875. Section 2 starts at 579 x 1.21875 = 706, so the hero is 706 tall with no strip. */
	.home-01 {
		min-height: 706px;
		margin-bottom: 0;
	}

	.home-01__text {
		top: 135px;
	}

	.home-01__title {
		font-size: 32px;
	}

	.home-01__sub {
		margin-top: 12px;
		font-size: 17px;
		line-height: 1.8;
	}

	.home-02 {
		min-height: 241px;
		padding-top: 24px;
	}

	.home-02 .wp-block-video.fashion-film {
		width: 87.5%;
	}
}

/* Shared vertical rule motif (sections 3 and 4): 1px grey hairline plus a 3px bar that glides in (class contract with motion.js). */
.home-rule,
.home-03__bar,
.home-04__bar {
	position: absolute;
	margin: 0;
	padding: 0;
	width: 1px;
}

.home-rule {
	background: #808080;
}

/* Section 3: intro and OUR PROCESS on black, angel panel behind. Wix rect y=1510 h=1418. */
.home-03 {
	min-height: 1418px;
	background: #000;
	color: #fff;
	overflow: clip; /* the bg-slide panel moves +-8% and must never widen the page */
}

.home-03 .bg-slide {
	position: absolute;
	top: 0;
	left: 49.8%;
	width: 60%;
	height: 100%;
	margin: 0;
	z-index: 0;
}

.home-03 .bg-slide .wp-block-image {
	width: 100%;
	height: 100%;
	margin: 0;
}

.home-03 .bg-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

.home-03__rule {
	left: 9.1%;
	top: 256px;
	height: 700px;
	z-index: 1;
}

.home-03__bar {
	left: calc(9.1% - 1px);
	top: 986px;
	width: 3px;
	height: 148px;
	background: #fff;
	z-index: 1;
}

.home-03__text {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 23.6%;
	min-width: 0;
	margin-left: 13.19%;
	padding-top: 156px;
}

.home-03__intro {
	font-size: 21px;
	line-height: normal;
}

.home-03__label {
	margin-top: 176px;
	font-size: 14px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: 0.16em;
}

.home-03__list {
	margin: 10px 0 0;
	padding-left: 29px;
	font-size: 16px;
	line-height: normal;
	letter-spacing: 0.04em;
}

.home-03__list li {
	margin: 0 0 19px;
}

/* Section 4: TAILORED SERVICES / WE SERVE on white. Wix rect y=2928 h=561. */
.home-04 {
	min-height: 561px;
	padding-top: 135px;
	background: #fff;
	color: #000;
	overflow: clip;
}

.home-04__rule {
	left: 9.1%;
	top: 132px;
	height: 272px;
}

.home-04__bar {
	left: calc(9.1% - 1px);
	top: 196px;
	width: 3px;
	height: 204px;
	background: #000;
}

.home-04__left {
	width: 23.6%;
	min-width: 0;
	margin-left: 13.19%;
}

.home-04__label,
.home-04__serve {
	font-size: 14px;
	font-weight: 400;
	line-height: normal;
	letter-spacing: 0.16em;
}

.home-04__statement {
	margin-top: 44px;
	font-size: 24px;
	line-height: 1.8;
	letter-spacing: 0.08em;
}

.home-04__right {
	position: absolute;
	top: 135px;
	left: 58%;
	width: 29.4%;
	min-width: 0;
}

.home-04__list {
	margin: 25px 0 0;
	padding-left: 32px;
	font-size: 18px;
	line-height: 1.4;
}

@media (max-width: 767px) {
	/* Section 3: heading first on phone (Wix order), values x 1.21875.
	   Wix stacks the text block (469 x 1.21875) above the angel image (587 x 1.21875); the image is never behind
	   the text. The text block's height is content-driven (min-height only) and it has its own black background,
	   so text that wraps to more lines (WebKit, other phone widths) pushes the image down instead of overlapping it. */
	.home-03 {
		display: flex;
		flex-direction: column;
		min-height: 0;
		padding-bottom: 31px; /* Wix section 3 wrapper is 1321 tall: 34px of black after the image */
	}

	/* The image column reveals the angel as Wix does on phones (261118-ann): Wix shows the 648 x 1116 picture
	   at its original size on the 320px layout (x 100vw/320: 202.5vw x 348.75vw), centred on the viewport and
	   fixed there while the column is on screen. Here the picture is sticky at that centred spot inside a box
	   that starts one viewport before the column and ends after it; the column clips it, so it shows only
	   below the text and stays put while the page scrolls over it. */
	.home-03 .bg-slide {
		position: relative;
		order: 2;
		top: auto;
		left: 0;
		width: 100%;
		height: 715.4px;
		clip-path: inset(0);
		animation: none;
	}

	.home-03 .bg-slide .wp-block-image {
		position: absolute;
		top: calc(-50vh - 174.375vw);
		top: calc(-50lvh - 174.375vw);
		left: 0;
		height: calc(100% + 100vh + 348.75vw);
		height: calc(100% + 100lvh + 348.75vw);
	}

	.home-03 .bg-slide img {
		position: sticky;
		top: calc(50vh - 174.375vw);
		top: calc(50lvh - 174.375vw);
		width: 202.5vw;
		max-width: none;
		height: 348.75vw;
		margin-left: calc(50% - 101.25vw);
		object-fit: fill;
	}

	.home-03__rule {
		left: 6.25%;
		top: 16px;
		height: 419px;
	}

	.home-03__bar {
		left: calc(6.25% - 1px);
		top: 55px;
		height: 117px;
	}

	.home-03__text {
		order: 1;
		box-sizing: border-box;
		width: 75%;
		min-height: 571.6px;
		margin-left: 17.5%;
		padding-top: 18px;
		padding-bottom: 20.7px;
		background: #000;
	}

	.home-03__label {
		order: -1;
		margin-top: 0;
		font-size: 13px;
	}

	.home-03__intro {
		margin-top: 29px;
		font-size: 19.5px;
	}

	/* Wix list box is 249 wide against the 240 text column (320 layout); 15px lines, one blank line between items. */
	.home-03__list {
		margin-top: 18px;
		margin-right: -13.4px;
		padding-left: 24px;
		font-size: 14.6px;
		line-height: 18.28px;
		letter-spacing: normal;
	}

	.home-03__list li {
		margin-bottom: 18.28px;
	}

	.home-03__list li:last-child {
		margin-bottom: 0;
	}

	/* Section 4: stacked columns; the Wix phone page gives it 473 x 1.21875 of height once WE SERVE is included. */
	.home-04 {
		min-height: 577.2px;
		padding-top: 46px;
	}

	.home-04__rule {
		left: 6.25%;
		top: 40px;
		height: 156px;
	}

	.home-04__bar {
		left: calc(6.25% - 1px);
		top: 74px;
		height: 117px;
	}

	.home-04__left {
		width: 75%;
		margin-left: 17.5%;
	}

	.home-04__label,
	.home-04__serve {
		font-size: 13.4px;
	}

	.home-04__statement {
		margin-top: 26px;
		font-size: 22px;
		line-height: 1.8;
		letter-spacing: 0.08em;
	}

	.home-04__right {
		position: static;
		width: 87.5%;
		margin: 47px 0 0 6.25%;
	}

	.home-04__list {
		margin-top: 24px;
		padding-left: 31px;
		font-size: 17px;
	}
}

/* Desktop fidelity from reference/layout/home-{desktop,1280,1024}.json (quick 261118-fid). */
@media (min-width: 768px) {
	/* Wix section 3 is y=1510 h=1418: it overlaps the black section 2 by 11px, so everything after it starts 11px earlier. */
	.home-03 {
		margin-top: -11px;
	}
}

/* Sections 3 and 4 keep a fixed 340px text box anchored to the viewport (text x = 25vw - 170, hairline 25vw - 229,
   bar 25vw - 230, WE SERVE column 75vw - 245 and 424px wide), as on Wix at 1440, 1280 and 1024. */
@media (min-width: 1024px) {
	.home-03__rule,
	.home-04__rule {
		left: calc(25% - 229px);
	}

	.home-03__bar,
	.home-04__bar {
		left: calc(25% - 230px);
	}

	.home-03__text,
	.home-04__left {
		width: 340px;
		margin-left: calc(25% - 170px);
	}

	.home-04__right {
		left: calc(75% - 245px);
		width: 424px;
	}
}
