/*
 * Home page, Mo's comments of 10 November 2026. Loaded after the design system stylesheet, on the
 * home page only. A plain stylesheet, so a theme deploy leaves it alone.
 */

/* The page never scrolls sideways. The hero, gallery and parallax photographs are zoomed a
   little and used to spill past the right edge, widening the page by up to 140 pixels. */
html,
body {
	overflow-x: clip;
}
.hero {
	overflow: hidden;
}

/* The chandelier photograph in the About section (Mo's own rule, 11 November; replaces 6 by 7). */
#about .pair .fig-b {
	grid-column: 1 / 6;
	grid-row: 2;
	aspect-ratio: 1 / 1;
	margin-top: clamp(120px, 22vw, 180px);
	margin-bottom: -12vw;
}
#about .fig-b img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The four statement paragraphs of About and Sourcing, one size. */
.vc #sourcing p.state,
.vc #sourcing p.state-next,
.vc #about p.state,
.vc #about p.state-next {
	font: 400 clamp(1.25rem, 1.6vw, 1.85rem) / 1.18 var(--serif) !important;
}

/* Client Access: as much space below as above (the section above sets clamp(120px,14vw,230px),
   the section below only clamp(96px,10vw,170px)). On phones the bottom already has more. */
@media (min-width: 901px) {
	#access.cloud {
		margin-bottom: clamp(120px, 14vw, 230px);
	}
}

/* The New York section's introduction was removed (its field is empty); no empty line is left. */
.lede:empty {
	display: none;
}

/* With no introduction, a row's label and its button share one line, so the photographs sit
   closer to the title (Mo, 10 Nov: New York, then Recent arrivals). Phones keep them stacked. */
@media (min-width: 901px) {
	#stock .row.set:not(:has(> .lede:not(:empty))) > .label {
		grid-column: 1 / 9;
		grid-row: 1;
		align-self: center;
		margin-bottom: 40px;
	}
	#stock .row.set:not(:has(> .lede:not(:empty))) > .all {
		grid-row: 1;
		align-self: center;
	}
}

/* The large gallery changes photograph with a simple crossfade instead of the wipe (Mo, 10 Nov).
   The incoming photograph fades in over the one it replaces, which stays put underneath. */
.gal,
.gal .g {
	overflow: hidden;   /* the wipe's clip used to keep the zoomed photograph inside its frame */
}
.gal .g {
	clip-path: none !important;
	opacity: 0;
	transition: none;
}
.gal .g.on {
	opacity: 1;
	z-index: 2;
	transition: opacity 1.2s ease;
}
.gal .g.was {
	opacity: 1;
	z-index: 1;
}
.gal .g img {
	transition: none;
}
@media (prefers-reduced-motion: reduce) {
	.gal .g.on {
		transition: none;
	}
}

/* With the GSAP hero (assets/js/home.js), the CSS crossfade and Ken Burns zoom stand aside. Without
   the script they still run as before. */
body .hero.hero-gsap .slide {
	transition: none !important;
}
body .hero.hero-gsap .slide img,
body .hero.hero-gsap .slide.on img {
	animation: none !important;
	will-change: transform;
}

/* A scrim behind the hero's words (Mo, 11 November): the photograph darkens towards the foot,
   where the title, introduction and Explore button sit, and a little at the top behind the bar.
   Replaces the lighter all over gradient of the design's original hero. The GSAP fade stacks the
   photographs at z-index 1 and 2, so the scrim sits at 3 and the words above it. */
.hero-orig .hero::after {
	z-index: 3;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(8, 10, 24, 0.4) 0%, rgba(8, 10, 24, 0.08) 20%, rgba(8, 10, 24, 0.04) 42%, rgba(8, 10, 24, 0.42) 66%, rgba(8, 10, 24, 0.8) 100%);
}

.hero-orig .hero .hero-in {
	z-index: 4;
}

/* The Stock section's heading row sits 85px lower (Mo, 11 November). */
#stock > .stock-head {
	padding-top: 85px;
}

/* Every home section has the same space above and below it: half the section space each side
   (85px on desktop, 48px under 900px, 36px under 640px), so two neighbouring sections sit one
   section space apart and nothing doubles (Mo, 13 November; replaces the 11 November top margin).
   Plain sections take it as padding. The hero, Client access and the visit photograph are full
   bands or hold absolutely placed photographs, where padding would only grow the band, so they
   take the same space as a margin outside. A section's first and last rows drop their own top
   and bottom spacing so it is never added twice (the Recent Arrivals row carried 170px). */
body.vc .cohane-section-space.cohane-section-space {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: calc(var(--cohane-section-space) / 2) !important;
	padding-bottom: calc(var(--cohane-section-space) / 2) !important;
}
body.vc .cohane-section-space.cohane-section-space > :first-child {
	margin-top: 0 !important;
	padding-top: 0 !important;
}
body.vc .cohane-section-space.cohane-section-space > :last-child {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}
/* The gold band sits flush under the hero (Mo, 13 November); the half section space goes below
   the band instead, so About still starts one section space under the gold line. */
body.vc .hero {
	margin-bottom: 0 !important;
}
body.vc .hero + .band {
	margin-bottom: calc(var(--cohane-section-space) / 2) !important;
}
body.vc section.cloud,
body.vc section.cover {
	margin-top: calc(var(--cohane-section-space) / 2) !important;
	margin-bottom: calc(var(--cohane-section-space) / 2) !important;
}
/* Two bands next to each other: their outer spaces would merge into one half, so the second
   takes the whole section space above it instead. */
body.vc section.cloud + section.cover {
	margin-top: var(--cohane-section-space) !important;
}
/* The visit photograph sits straight on the blue footer, as before: both are full bands. */
body.vc section.cover:last-of-type {
	margin-bottom: 0 !important;
}

/* The hero photograph fills the hero (Mo, 16 November; it was shown whole on black from
   11 November). The slow zoom stays off; the GSAP crossfade between photographs is unchanged. */
body.vc .hero .slide img,
body.vc .hero .slide.on img,
body.hero-orig .hero .slide img {
	object-fit: cover !important;
	object-position: center !important;
	transform: none !important;
	animation: none !important;
}

/* The large gallery has a little more space above it than the other joins (Mo, 13 November):
   the whole section space instead of half, so one and a half section spaces from the pieces
   above (about 128px on desktop). */
body.vc .cg-gallery.cohane-section-space.cohane-section-space {
	padding-top: var(--cohane-section-space) !important;
}

/* "By appointment" in the dark visit band in the H2 size, not the large statement size
   (Alexander's call, 13 November). */
body.vc section.cover h2.state {
	font: var(--t-h2) !important;
	letter-spacing: 0 !important;
}

/* Tablets and phones: the Client Access photographs stay in their rows (13 November). Their
   scroll drift pushed the lower row into the visit band once the section space was halved,
   and the upper row onto the Client access label. Desktop keeps the drift. */
@media (max-width: 900px) {
	body.vc section.cloud figure[data-float] {
		transform: none !important;
	}
}

/* About's second photograph used to hang out of its section on a negative bottom margin and lay
   over the Recent Arrivals heading. It now ends inside About, so the standard section space
   (85px on desktop) runs from the bottom of that photograph to Recent Arrivals (Mo, 13 November). */
body.vc #about .pair .fig-b {
	margin-bottom: 0 !important;
}

/* The visit band wraps its content with the section space above and below it (85px on desktop,
   48px and 36px on smaller screens), instead of filling the screen with the text pushed to the
   bottom (Mo, 13 November). The photograph still fills the whole band behind the text. */
body.vc section.cover {
	min-height: 0 !important;
	align-items: center !important;
	padding-top: var(--cohane-section-space) !important;
	padding-bottom: var(--cohane-section-space) !important;
}
body.vc section.cover > .row {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Phones (Mo, 16 November 2026) ------------------------------------------------------------ */
@media (max-width: 900px) {
	/* The whole hero photograph on the hero's black, centred; the zoom stays off. Desktop keeps
	   cover. */
	body.vc .hero .slide img,
	body.vc .hero .slide.on img,
	body.hero-orig .hero .slide img {
		object-fit: contain !important;
	}

	/* Hero Prev/Next, the large gallery's Prev/Next and the Recent arrivals arrows: a tap area at
	   least 44px square. The text buttons grow by padding and give the same space back in
	   negative margins, so the words stay where they were. */
	body.vc #heroNext,
	body.vc #heroPrev,
	body.vc #galPrev,
	body.vc #galNext {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		padding: 0 8px;
		margin: -7px -8px;
	}
	/* The arrows keep their 40px panel: the 44px button is transparent and draws the panel
	   with ::before, 2px in from each edge. The buttons sit edge to edge, so the panels are
	   still 4px apart. */
	body.vc .arrows {
		gap: 0;
	}
	body.vc .arrows button {
		position: relative;
		width: 44px;
		height: 44px;
		background: transparent;
	}
	body.vc .arrows button::before {
		content: "";
		position: absolute;
		inset: 2px;
		border-radius: var(--radius);
		background: var(--panel);
		transition: background-color 0.3s;
	}
	body.vc .arrows button:hover::before,
	body.vc .arrows button:focus-visible::before {
		background: var(--state);
	}
	body.vc .arrows button:hover,
	body.vc .arrows button:focus-visible {
		background: transparent;
	}
	body.vc .arrows svg {
		position: relative;
	}

	/* Client access: the third photograph (the busts) is square on desktop. On phones the three
	   in its row are portrait frames side by side, and the square one sat short at the top of
	   its frame with bare panel colour under it, so it read as empty. It takes the same frame as
	   the other two. */
	body.vc #access figure:nth-of-type(3) {
		aspect-ratio: 4 / 5;
	}
}
