/* Home — design/pages/Main.dc.html. */

/* ---------- Hero ---------- */
.r-hero {
	position: relative;
	min-height: 600px;
	overflow: hidden;
	background: var(--c-accent); /* sage behind the photo while it loads; the phone text band */
	display: flex;
	flex-direction: column;
}

.r-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 30%;
}

.r-hero__scrim {
	position: absolute;
	inset: 0;
	/* Nearly solid under the text column (at least 500px, so narrow desktops keep the text readable),
	   then the same fade as the design (sage since 2026-10-15). */
	background: linear-gradient(90deg, rgb(var(--c-hero-scrim) / .97) 0%, rgb(var(--c-hero-scrim) / .93) max(34%, 500px), rgb(var(--c-hero-scrim) / .3) max(52%, 640px), rgb(var(--c-hero-scrim) / 0) max(64%, 740px));
}

.r-hero__content {
	position: relative;
	flex: 1;
	width: 100%;
	max-width: var(--max-w);
	margin: 0 auto;
	box-sizing: border-box;
	padding: 96px var(--gutter) 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
	color: var(--c-white);
}

.r-hero__eyebrow {
	font-size: 13px;
	letter-spacing: .28em;
	text-transform: uppercase;
}

.r-hero__title {
	margin: 0;
	max-width: 560px;
	font-family: var(--f-display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(48px, 6vw, 84px);
	line-height: 1.02;
}

.r-hero__text {
	margin: 0;
	max-width: 420px;
	font-size: 17px;
	font-weight: 300;
	color: var(--c-white); /* was --c-hero-text: too low on the sage shade */
}

.r-hero__cta {
	margin-top: 12px;
}

.r-hero__strip-wrap {
	position: relative;
	width: 100%;
	max-width: var(--max-w);
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 var(--gutter) 28px;
}

.r-hero__strip {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	background: var(--c-strip);
	padding: 14px 22px;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-ink);
}

.r-hero__sizes {
	display: flex;
	gap: 6px;
}

.r-hero__sizes span {
	width: 26px;
	height: 26px;
	border: 1px solid var(--c-ink);
	display: grid;
	place-items: center;
	letter-spacing: 0;
}

.r-hero__divider {
	width: 1px;
	height: 26px;
	background: var(--c-line-3);
}

.r-hero__colors {
	display: flex;
	gap: 8px;
}

/* ---------- Collections ---------- */
.r-collections {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 80px var(--gutter) 88px;
}

.r-collections__accent {
	width: 40px;
	height: 1px;
	background: var(--c-rule);
	margin: 0 auto 48px;
}

.r-collections__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 48px 40px;
}

/* Equal columns, so every photo is the same size; the divider sits in the middle of the gap. */
.r-col {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.r-col + .r-col::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -20px;
	border-left: 1px solid var(--c-line);
}

/* Portrait (client's photos), instead of the design's 5:4. */
.r-col__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.r-col__title {
	margin: 8px 0 0;
	font-family: var(--f-display);
	font-weight: 600;
	font-size: 20px;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.r-col__tagline {
	margin: -6px 0 0;
	color: var(--c-muted-2);
}

.r-col__price {
	font-size: 17px;
	font-weight: 500;
}

.r-col .r-card__opts {
	margin-top: 0;
}

.r-col .r-card__opt {
	gap: 8px;
}

.r-col__label {
	font-size: 11px;
	letter-spacing: .14em;
	font-weight: 500;
	text-transform: uppercase;
}

.r-col__sizes span {
	width: 30px;
	height: 30px;
}

.r-col__btn {
	display: block;
	margin-top: 10px;
	padding: 14px;
	letter-spacing: .24em;
}

.r-play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 84px;
	height: 84px;
	border-radius: 50%;
	border: 1.5px solid rgb(255 255 255 / .9);
	background: rgb(255 255 255 / .12);
	color: var(--c-white);
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
}

.r-play:hover {
	background: rgb(255 255 255 / .22);
}

/* Position dots under the swipeable collections row (phones only). */
.r-dots {
	display: none;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
}

.r-dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c-line-2);
	transition: background .2s, transform .2s;
}

.r-dots span.is-active {
	background: var(--c-accent);
	transform: scale(1.2);
}

/* ---------- Video dialog ---------- */
.r-video {
	width: min(960px, 92vw);
	max-width: none;
	padding: 0;
	border: 0;
	background: #000;
	overflow: visible;
}

.r-video::backdrop {
	background: rgb(0 0 0 / .8);
}

.r-video__frame {
	aspect-ratio: 16 / 9;
}

.r-video__frame iframe,
.r-video__frame video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.r-video__close {
	position: absolute;
	top: -52px;
	right: -6px;
	color: var(--c-white);
}

/* ---------- Phones ----------
 * Compact mobile layout (client request 2026-10-14): collections become a swipeable row,
 * bands and hero are tightened. Desktop is unchanged. */
@media (max-width: 860px) {
	/* Hero: the photo is very wide (≈3.3:1), so a tall phone hero only showed a narrow slice.
	   On phones the photo becomes a 2:1 band (anchored right, where the people are) with the
	   text on the same dark ground below it; the sizes/colors strip is hidden. Desktop unchanged. */
	.r-hero {
		min-height: 0;
	}

	.r-hero__img {
		position: static;
		display: block;
		height: auto;
		aspect-ratio: 2 / 1;
		object-position: 100% 50%;
	}

	.r-hero__scrim,
	.r-hero__strip-wrap {
		display: none;
	}

	.r-hero__content {
		justify-content: flex-start;
		gap: 14px;
		padding: 28px var(--gutter) 36px;
	}

	.r-hero__eyebrow {
		font-size: 11px;
		letter-spacing: .26em;
	}

	.r-hero__title {
		font-size: 40px;
	}

	.r-hero__text {
		font-size: 15px;
	}

	.r-hero__cta {
		margin-top: 6px;
	}

	/* Collections: swipeable row, next card peeking in */
	.r-collections {
		padding: 52px 0 56px;
	}

	.r-section-title {
		padding: 0 var(--gutter);
	}

	.r-section-title h2 {
		font-size: 24px;
		letter-spacing: .14em;
		line-height: 1.3;
		text-wrap: balance;
	}

	.r-collections__accent {
		margin-bottom: 28px;
	}

	.r-collections__grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: min(78%, 320px);
		gap: 16px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		padding: 0 var(--gutter) 6px;
		scrollbar-width: none;
		/* Without this, Chrome counts the off-screen cards toward the page width and phones
		   zoom the whole page out (layout viewport 780px instead of 390px). */
		contain: paint;
	}

	.r-collections__grid::-webkit-scrollbar {
		display: none;
	}

	.r-dots {
		display: flex;
	}

	.r-col {
		scroll-snap-align: start;
		gap: 8px;
	}

	.r-col + .r-col::before {
		content: none;
	}

	.r-col__title {
		margin-top: 6px;
		font-size: 15px;
		letter-spacing: .12em;
	}

	.r-col__tagline {
		margin-top: -4px;
		font-size: 14px;
		line-height: 1.4;
	}

	.r-col__price {
		font-size: 15px;
	}

	.r-col__label {
		display: none;
	}

	.r-col .r-card__swatches > span {
		width: 16px !important;
		height: 16px !important;
	}

	.r-col__sizes span {
		width: auto;
		height: auto;
	}

	.r-col__btn {
		margin-top: 6px;
		padding: 12px;
		font-size: 12px;
	}

	/* Video + About bands */
	.r-split__media,
	.r-split--video .r-split__media {
		min-height: 260px;
	}

	.r-split--about .r-split__media {
		min-height: 320px;
	}

	.r-split__text,
	.r-split--video .r-split__text {
		padding: 36px var(--gutter) 44px;
		gap: 14px;
	}

	.r-split__eyebrow {
		font-size: 11px;
	}

	.r-split__title {
		font-size: 34px;
	}

	.r-split__body {
		font-size: 15px;
	}

	.r-signature__name {
		font-size: 36px;
	}

	.r-signature__tagline {
		font-size: 10px;
		padding-left: 22px;
	}
}
