/* ============================================================
   Homepage hero: headline left; a circle photo slider right, in two
   fine gold rings, with two small circles and the price badge.
   Stacked below 761px. (prototype: .hero, .stage, .mini, .price, .dots)
   ============================================================ */

.hero {
	overflow: hidden;
	background: var(--color-surface-light);
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	row-gap: 56px;
	padding-block: 12px var(--space-section);
}

.hero__copy {
	display: grid;
	max-width: 560px;
}

.hero__title {
	font-size: var(--size-h1);
	line-height: 1.05;
}

.hero__loc {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
	color: var(--color-accent);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hero__loc .icon {
	flex: none;
}

.hero__lead {
	max-width: 550px;
	margin-top: 24px;
	font-size: 15px;
	line-height: 1.65;
}

.hero__btn {
	justify-self: start;
	margin-top: 30px;
}

.hero__media {
	display: grid;
	justify-self: center;
	justify-items: center;
	gap: 36px;
}

.hero__stage {
	position: relative;
	width: min(480px, calc((100vw - 40px) * 0.95));
	aspect-ratio: 1;
}

/* Two fine gold rings, a quiet echo of the logo's round badge (Miles
   2026-11-24 chose option A of four, replacing the prototype's dotted
   ring). With a mouse the rings lean towards the cursor (the "magnet"),
   barely (1.5 / 2.5px), and the price badge leans away from it, more (8px),
   so the two layers part like depth (Miles 2026-11-24: "much less moving"
   than the first 4 / 9 / 13px; the badge the opposite way, a little more,
   unhurried). Each has its
   own strength here and its own follow speed in assets/js/hero.js, which
   sets --pull-{inner,outer,price}-{x,y} from -1 to 1, so they never move as
   one piece. `translate`, not `transform`, so hover effects keep their own
   transform. */
.hero__stage::before,
.hero__stage::after {
	content: "";
	position: absolute;
	border: 1px solid var(--color-accent);
	border-radius: 50%;
	pointer-events: none;
}

.hero__stage::before {
	inset: 0.3%;
	translate: calc(var(--pull-inner-x, 0) * 1.5px) calc(var(--pull-inner-y, 0) * 1.5px);
}

.hero__stage::after {
	inset: -1.3%;
	opacity: 0.5;
	translate: calc(var(--pull-outer-x, 0) * 2.5px) calc(var(--pull-outer-y, 0) * 2.5px);
}

.hero__circle {
	position: absolute;
	inset: 2.5%;
	z-index: 1;
	isolation: isolate;
	overflow: hidden;
	border-radius: 50%;
	background: var(--color-placeholder);
}

/* The photos. Only the first shows at first; each change lays a copy of the
   chosen photo on top (.hero__layer) that plays the same short crisp fade
   every time (assets/js/hero.js, Miles 2026-11-24, replacing the
   prototype's circle wipe). */
.hero__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
}

.hero__slide.is-shown {
	opacity: 1;
}

.hero__mini {
	position: absolute;
	z-index: 2;
	aspect-ratio: 1;
	overflow: hidden;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--color-placeholder);
	cursor: pointer;
	transition: transform 0.6s var(--ease);
}

.hero__mini img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.5s var(--ease); /* in step with the main photo's change */
}

.hero__mini img.is-on {
	opacity: 1;
}

.hero__mini--a {
	top: 57.8%;
	left: 74.1%;
	width: 28.7%;
}

.hero__mini--b {
	top: 82.8%;
	left: 61.7%;
	width: 17.7%;
}

.hero__mini:focus-visible {
	transform: scale(1.05);
}

@media (hover: hover) {
	.hero__mini:hover {
		transform: scale(1.05);
	}
}

/* The price tag: small capitals "FROM", the price large in the script,
   small capitals "A NIGHT", centred with room to breathe. Sized from the
   badge itself (container units), so it keeps its proportions at every
   width. */
.hero__price {
	position: absolute;
	top: 6.8%;
	left: 77.6%;
	z-index: 3;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 0.06em;
	width: 25%;
	aspect-ratio: 1;
	margin: 0;
	border-radius: 50%;
	background: var(--color-accent);
	color: var(--color-on-dark);
	container-type: inline-size;
	text-align: center;
	translate: calc(var(--pull-price-x, 0) * -8px) calc(var(--pull-price-y, 0) * -8px); /* the strongest, and away from the cursor */
	will-change: translate; /* its own layer: the words glide instead of being redrawn at every step */
}

.hero__price-amount {
	font-family: var(--font-display);
	font-size: 34cqw;
	font-variant-ligatures: common-ligatures;
	line-height: 1;
}

.hero__price-label {
	font-family: var(--font-body);
	font-size: max(8px, 7.5cqw);
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hero__dots {
	display: flex;
	gap: 2px;
}

.hero__dots button {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.hero__dots button::before {
	content: "";
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--color-dot-idle);
	transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.hero__dots button[aria-current="true"]::before {
	background: var(--color-accent);
}

@media (hover: hover) {
	.hero__dots button:hover::before {
		transform: scale(1.15);
	}
}

@media (min-width: 481px) {
	.hero__loc {
		font-size: 15px;
		letter-spacing: 0.14em;
	}
}

/* Two columns from 761px. */
@media (min-width: 761px) {
	.hero__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 32px;
		padding-top: 16px;
	}

	.hero__media {
		justify-self: stretch;
	}

	.hero__stage {
		width: min(520px, 45vw);
	}

	.hero__price {
		font-size: clamp(17px, 1.9vw, 27px);
	}
}

@media (min-width: 1181px) {
	.hero__inner {
		gap: 40px;
		padding-top: 20px;
	}

	.hero__loc {
		margin-top: 24px;
		font-size: 18px;
	}

	.hero__lead {
		margin-top: 32px;
		font-size: 16px;
	}

	.hero__btn {
		margin-top: 36px;
	}

	.hero__media {
		gap: 46px;
		margin-right: clamp(0px, 1.6vw, 24px);
	}

	.hero__stage {
		width: min(634px, 44vw);
	}
}

@media (min-width: 1281px) {
	.hero__inner {
		gap: 48px;
	}

	.hero__lead {
		margin-top: 42px;
	}

	.hero__btn {
		margin-top: 46px;
	}
}
