/* =====================================================================
   EXPERIENCE ITALY — EDITORIAL HOMEPAGE  (v4)
   ---------------------------------------------------------------------
   Loaded only for the "Home — Editorial" page template.

   v4 "quiet luxury" pass (client: cream/peach grounds didn't feel
   luxurious): light sections are true white or a barely-warm greige —
   no yellow-cream washes — and Services becomes the page's dark
   espresso chapter, echoing the hero and finale so the scroll reads
   dark–light–dark–light–dark. The peach pinstripe motif is replaced
   by a single offset terracotta keyline behind the Philosophy photo.
   Tokens come from the child theme (:root --ei-*).
   ===================================================================== */

.ei-home {
	--frame: min(1240px, calc(100vw - clamp(32px, 6vw, 96px)));
	--greige: #F7F5F2;             /* barely-warm alternate ground */
	--ivory-soft: #F5F1EA;         /* light text on espresso */
	--terracotta-lift: #C99271;    /* terracotta legible on espresso */
	--terracotta-lift-2: #E9C3A8;  /* hover state on espresso */
	--matte-shadow: 0 26px 60px -34px rgba(43, 36, 32, 0.35);
	background-color: #FFFFFF;
	color: #5C534B;
	font-family: var(--ei-sans);
	overflow-x: clip;
}

.ei-frame {
	width: var(--frame);
	margin-inline: auto;
}

/* ---- shared type -------------------------------------------------
   NOTE: kickers, scripts, and ledes are <p> elements, so their rules
   are prefixed with .ei-home — otherwise the `.ei-home p` baseline
   (higher specificity) silently overrides their font sizes.

   NOTE on !important: the heading !importants below are load-bearing —
   the brand layer (style.css §3) sets global h1–h6 rules with
   !important to win over Elementor pages, and only another !important
   can out-rank those here (e.g. hero title weight 400 vs global 500).
   Don't strip them without also rethinking style.css §3. */
.ei-home .ei-kicker {
	font-family: var(--ei-sans);
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--ei-terracotta);
	margin: 0 0 20px;
}

/* Short rule under a kicker — from the reference design */
.ei-kicker--ruled::after {
	content: "";
	display: block;
	width: 44px;
	height: 1px;
	background-color: rgba(161, 92, 56, 0.45);
	margin-top: 16px;
}

.ei-h2 {
	font-family: var(--ei-serif) !important;
	font-weight: 500 !important;
	font-size: clamp(34px, 4.2vw, 58px) !important;
	line-height: 1.14 !important;
	letter-spacing: 0.005em !important;
	color: var(--ei-ink);
	margin: 0 0 28px;
}

.ei-h2 em {
	font-style: italic;
	font-weight: 400;
	color: var(--ei-terracotta);
}

/* Stacked two-line heading: quiet first line, emphatic second */
.ei-h2--stack span,
.ei-h2--stack strong {
	display: block;
}

.ei-h2--stack span {
	font-weight: 400;
}

.ei-h2--stack strong {
	font-weight: 700;
	color: #201B17;
}

.ei-home .ei-script {
	font-family: var(--ei-script);
	font-weight: 400;
	font-size: clamp(48px, 5.5vw, 72px);
	line-height: 1.05;
	color: var(--ei-terracotta);
	margin: 0 0 12px;
}

/* Numbered medallion — shared by How It Works & What We Do Best */
.ei-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 1px solid rgba(161, 92, 56, 0.5);
	border-radius: 50%;
	font-family: var(--ei-serif);
	font-style: italic;
	font-size: 26px;
	line-height: 1;
	color: var(--ei-terracotta);
	background-color: transparent;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.ei-home p {
	line-height: 1.8;
	font-size: 17.5px;
	margin: 0 0 1.2em;
}

.ei-rule {
	border: 0;
	border-top: 1px solid rgba(107, 97, 88, 0.22);
	margin: 34px 0 30px;
}

/* ---- buttons ------------------------------------------------------ */
.ei-btn {
	display: inline-block;
	font-family: var(--ei-sans);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 20px 54px;
	border-radius: 2px;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
		transform 0.3s ease, box-shadow 0.3s ease;
}

/* Quiet lift on hover — confidence without noise */
.ei-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -14px rgba(24, 19, 16, 0.45);
}

@media (prefers-reduced-motion: reduce) {
	.ei-btn:hover {
		transform: none;
	}
}

.ei-btn--ghost {
	color: #FFFFFF;
	border: 1px solid rgba(255, 255, 255, 0.9);
	background-color: rgba(24, 19, 16, 0.18);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	text-shadow: 0 1px 12px rgba(20, 15, 12, 0.5);
}

.ei-btn--ghost:hover {
	background-color: var(--ei-ivory);
	border-color: var(--ei-ivory);
	color: var(--ei-espresso);
	text-shadow: none;
}

.ei-btn--solid {
	color: var(--ei-espresso);
	background-color: var(--ei-ivory);
	border: 1px solid var(--ei-ivory);
}

/* Dark variant for light grounds */
.ei-btn--dark {
	color: var(--ei-ivory);
	background-color: var(--ei-espresso);
	border: 1px solid var(--ei-espresso);
}

.ei-btn--dark:hover {
	background-color: var(--ei-terracotta);
	border-color: var(--ei-terracotta);
	color: var(--ei-ivory);
}

.ei-btn--solid:hover {
	background-color: var(--ei-terracotta);
	border-color: var(--ei-terracotta);
	color: var(--ei-ivory);
}

.ei-textlink {
	font-size: 14.5px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ei-terracotta);
	border-bottom: 1px solid rgba(161, 92, 56, 0.4);
	padding-bottom: 7px;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.ei-textlink::after {
	content: "\2192";
	margin-left: 12px;
}

.ei-textlink:hover {
	color: var(--ei-terracotta-deep);
	border-color: var(--ei-terracotta-deep);
}

/* Designed focus ring — brand terracotta, visible on light & dark grounds */
.ei-btn:focus-visible,
.ei-textlink:focus-visible,
.ei-dest__panel:focus-visible {
	outline: 2px solid var(--ei-terracotta);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---- reveal ------------------------------------------------------- */
.ei-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.ei-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* =====================================================================
   HERO — centered on every viewport, matching the approved mobile look
   ===================================================================== */
.ei-hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	isolation: isolate;
}

.ei-hero__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 45%;
	z-index: -2;
	/* Cinematic settle: one slow zoom-out on load, then still. */
	animation: ei-kenburns 16s ease-out both;
	transform-origin: center 60%;
	will-change: transform;
}

@keyframes ei-kenburns {
	from { transform: scale(1.07); }
	to { transform: scale(1); }
}

/* Video background: sits exactly where the photo sits (same z-index and
   framing), so the scrim above darkens it identically. The photo stays
   underneath as the poster/fallback until the video paints. */
.ei-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 45%;
	z-index: -2;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.ei-hero__video.is-playing {
	opacity: 1;
}

/* When a video is active the photo must not also zoom underneath it. */
.ei-hero.has-video .ei-hero__media {
	animation: none;
}

@media (prefers-reduced-motion: reduce) {
	.ei-hero__media {
		animation: none;
	}
}

/* Desktop gets its own crop of the same photo (ei-hero-desktop.jpg,
   cut from the 4032px original): rock walls framing sea and boats —
   the mobile composition, translated to landscape. !important beats
   the inline mobile image URL. */
@media (min-width: 768px) {
	.ei-hero__media {
		background-image: url("/wp-content/uploads/2026/01/ei-hero-desktop.jpg") !important;
		background-position: center 78%;
	}

	.ei-hero__video {
		object-position: center 78%;
	}
}

/* Symmetric scrim: darkened top for the header, a soft central
   vignette behind the text, weighted base. */
.ei-hero__scrim {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 55% at 50% 46%, rgba(24, 19, 16, 0.34), rgba(24, 19, 16, 0) 70%),
		linear-gradient(to bottom, rgba(24, 19, 16, 0.48), rgba(24, 19, 16, 0.12) 34%, rgba(24, 19, 16, 0.55) 94%);
	z-index: -1;
}

.ei-hero__inner {
	max-width: 820px;
	padding: 150px 24px 170px;
}

.ei-home .ei-kicker--hero {
	color: rgba(255, 255, 255, 0.95);
	font-size: clamp(14px, 1.5vw, 18px);
	letter-spacing: 0.4em;
	line-height: 1.9;
	text-shadow: 0 1px 12px rgba(20, 15, 12, 0.55);
	margin-bottom: clamp(28px, 4vw, 48px);
}

.ei-hero__title {
	font-family: var(--ei-serif) !important;
	font-weight: 400 !important;
	font-size: clamp(38px, 4.8vw, 68px) !important;
	line-height: 1.12 !important;
	letter-spacing: 0.01em !important;
	color: #FFFFFF;
	text-shadow: 0 2px 22px rgba(20, 15, 12, 0.55);
	margin: 0 0 26px;
}

.ei-hero__title em {
	font-style: italic;
	color: #EFD9CB;
}

.ei-home .ei-hero__lede {
	color: rgba(255, 255, 255, 0.95);
	font-size: clamp(18px, 1.8vw, 21px);
	font-weight: 300;
	letter-spacing: 0.02em;
	line-height: 1.7;
	text-shadow: 0 1px 14px rgba(20, 15, 12, 0.6);
	max-width: 560px;
	margin: 0 auto 46px;
}

.ei-hero__scrollcue {
	position: absolute;
	bottom: 38px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	text-shadow: 0 1px 10px rgba(20, 15, 12, 0.6);
}

.ei-hero__scrollcue i {
	display: block;
	width: 1.5px;
	height: 72px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
	animation: ei-cue 2.6s ease-in-out infinite;
}

@keyframes ei-cue {
	0%, 100% { transform: scaleY(1); opacity: 1; }
	50% { transform: scaleY(0.72); opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
	.ei-hero__scrollcue i { animation: none; }
}

/* =====================================================================
   OUR PHILOSOPHY — matte photo with a single offset keyline (gallery
   passe-partout gesture), clean white copy column
   ===================================================================== */
.ei-spread {
	/* A real greige ground (deeper than the coast section's whisper) so
	   the white matte frame reads as a framed print instead of
	   dissolving into a white page. Gray-beige, not cream. */
	background-color: #F0EBE4;
	padding: clamp(72px, 9vw, 118px) 0;
}

.ei-spread__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(44px, 6vw, 96px);
	align-items: center;
}

.ei-spread__figure {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 460px;
	margin: 0;
	justify-self: center;
}

/* The keyline sits behind the matte frame, shifted down-right */
.ei-spread__figure::before {
	content: "";
	position: absolute;
	inset: 0;
	transform: translate(clamp(12px, 1.8vw, 20px), clamp(12px, 1.8vw, 20px));
	border: 1px solid rgba(161, 92, 56, 0.35);
	z-index: -1;
	pointer-events: none;
}

.ei-spread__figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	padding: 14px 14px 18px;
	background-color: #FFFFFF;
	border: 1px solid rgba(107, 97, 88, 0.14);
	box-shadow: 0 34px 70px -34px rgba(43, 36, 32, 0.5);
	/* The Venice canal source is monochrome — warm it into a
	   champagne-toned duotone that sits inside the brand palette. */
	filter: sepia(0.42) saturate(0.85) brightness(1.04);
}

.ei-spread__copy p {
	color: #6E635A;
	font-size: 17px;
}

.ei-founder {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.ei-founder img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 50%;
}

.ei-founder strong {
	display: block;
	font-family: var(--ei-serif);
	font-size: 20px;
	font-weight: 500;
	color: var(--ei-ink);
}

.ei-founder span {
	display: block;
	font-size: 14px;
	letter-spacing: 0.04em;
	color: var(--ei-terracotta);
	margin: 4px 0 6px;
}

.ei-founder em {
	display: block;
	font-style: normal;
	font-size: 15px;
	color: #7A6F65;
}

/* =====================================================================
   PROCESS — three steps under enormous ghost numerals: the section's
   drama comes from scale, not decoration.
   ===================================================================== */
.ei-process {
	padding: clamp(68px, 8.5vw, 108px) 0 clamp(76px, 9vw, 120px);
}

.ei-process__head {
	text-align: center;
	margin-bottom: clamp(40px, 5vw, 64px);
}

.ei-process__list {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(36px, 4.5vw, 72px);
}

.ei-process__list li {
	position: relative;
	text-align: center;
	/* Copy begins inside the numeral's lower half — the overlap is
	   what makes it read as designed rather than decorated. */
	padding-top: clamp(84px, 9vw, 118px);
}

/* Enormous ghost numerals — Playfair italic at watermark opacity */
.ei-process__ghost {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--ei-serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(130px, 13vw, 190px);
	line-height: 1;
	color: rgba(161, 92, 56, 0.10);
	letter-spacing: -0.02em;
	z-index: 0;
	pointer-events: none;
	transition: color 0.5s ease;
}

.ei-process__list li:hover .ei-process__ghost {
	color: rgba(161, 92, 56, 0.18);
}

.ei-process__sub,
.ei-process__title,
.ei-process__list p {
	position: relative;
	z-index: 1;
}

.ei-process__sub {
	display: block;
	font-family: var(--ei-serif);
	font-style: italic;
	font-size: 17.5px;
	color: #9A8C80;
	margin-bottom: 8px;
}

.ei-process__title {
	font-family: var(--ei-serif) !important;
	font-size: clamp(26px, 2.4vw, 32px) !important;
	font-weight: 500 !important;
	letter-spacing: 0.01em !important;
	text-transform: none !important;
	line-height: 1.2 !important;
	color: var(--ei-ink);
	margin: 0 0 14px;
}

.ei-process__list p {
	font-size: 17px;
	margin: 0 auto;
	max-width: 320px;
}

.ei-process__cta {
	text-align: center;
	margin-top: clamp(44px, 5.5vw, 68px);
}

/* =====================================================================
   TRUST — a single centered client quote between Process and Services.
   Reuses .ei-stars (defined with Journeys below).
   ===================================================================== */
.ei-trust {
	background-color: #FFFFFF;
	border-top: 1px solid rgba(107, 97, 88, 0.16);
	padding: clamp(72px, 9vw, 116px) 0;
}

.ei-trust__inner {
	position: relative;
	max-width: 780px;
	text-align: center;
}

/* Enormous ghost quotation mark behind the quote */
.ei-trust__inner::before {
	content: "\201C";
	position: absolute;
	top: clamp(-48px, -4vw, -24px);
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--ei-serif);
	font-size: clamp(180px, 20vw, 280px);
	line-height: 1;
	color: rgba(161, 92, 56, 0.10);
	pointer-events: none;
}

.ei-trust .ei-stars {
	margin-bottom: 20px;
}

.ei-trust blockquote {
	/* Full reset — Blocksy's default blockquote adds a teal border-left,
	   background, and side padding that are wildly off-brand here. */
	border: 0;
	background: none;
	padding: 0;
	margin: 0 0 20px;
	font-family: var(--ei-serif);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(24px, 2.7vw, 36px);
	line-height: 1.45;
	color: var(--ei-ink);
}

.ei-trust cite {
	font-style: normal;
	font-size: 14.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9A8C80;
}

.ei-trust__cta {
	margin-top: clamp(30px, 4vw, 44px);
}

/* --- optional polaroid pair beside the quote ----------------------- */
.ei-trust__inner--photos {
	max-width: 1080px;
	display: grid;
	grid-template-columns: 375px minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
	text-align: center;
}

/* The ghost quote mark tracks the quote column, not the photos */
.ei-trust__inner--photos::before {
	left: auto;
	right: 26%;
}

.ei-trust__photos {
	position: relative;
	height: 340px;
}

.ei-trust__photos figure {
	position: absolute;
	width: 218px;
	margin: 0;
	padding: 11px 11px 32px;
	background: #FFFFFF;
	box-shadow: 0 18px 44px -20px rgba(43, 36, 32, 0.5);
	transition: transform 0.4s ease;
}

.ei-trust__photos figure:first-child {
	top: 0;
	left: -4px;
	transform: rotate(-6deg);
	z-index: 1;
}

.ei-trust__photos figure:last-child {
	top: 84px;
	left: 148px;
	transform: rotate(4.5deg);
	z-index: 2;
}

.ei-trust__photos figure:hover {
	transform: rotate(0deg) scale(1.03);
	z-index: 3;
}

.ei-trust__photos img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

@media (max-width: 860px) {
	.ei-trust__inner--photos {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ei-trust__inner--photos::before {
		left: 50%;
		right: auto;
	}

	.ei-trust__photos {
		height: 270px;
		width: 375px;
		margin: 0 auto 10px;
		transform: scale(0.74);
		transform-origin: top center;
	}
}

/* =====================================================================
   SERVICES — the page's dark chapter: espresso ground echoing the
   hero/finale, editorial intro column + medallion rows
   ===================================================================== */
.ei-services {
	background-color: var(--ei-espresso);
	padding: clamp(72px, 9vw, 118px) 0;
}

/* Terracotta needs a lift to stay legible on espresso */
.ei-home .ei-services .ei-kicker {
	color: var(--terracotta-lift);
}

.ei-services .ei-kicker--ruled::after {
	background-color: rgba(201, 146, 113, 0.5);
}

.ei-services .ei-h2 {
	color: var(--ivory-soft);
}

.ei-services .ei-h2 em {
	color: var(--terracotta-lift);
}

.ei-services .ei-textlink {
	color: var(--terracotta-lift);
	border-color: rgba(201, 146, 113, 0.45);
}

.ei-services .ei-textlink:hover {
	color: var(--terracotta-lift-2);
	border-color: var(--terracotta-lift-2);
}

.ei-services .ei-badge {
	border-color: rgba(201, 146, 113, 0.55);
	color: var(--terracotta-lift);
}

.ei-services__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(44px, 6vw, 96px);
	align-items: start;
}

/* The intro stays in view while the list scrolls past (desktop) */
.ei-services__intro {
	position: sticky;
	top: 120px;
}

.ei-services__intro p {
	color: rgba(245, 241, 234, 0.72);
	max-width: 40ch;
}

.ei-services__intro .ei-textlink {
	display: inline-block;
	margin-top: 10px;
}

.ei-services__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ei-services__list li {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: clamp(20px, 2.5vw, 30px);
	align-items: start;
	padding: 28px clamp(8px, 1.5vw, 22px);
	border-top: 1px solid rgba(250, 246, 239, 0.14);
	border-radius: 4px;
	transition: background-color 0.35s ease;
}

.ei-services__list li:hover {
	background-color: rgba(250, 246, 239, 0.05);
}

.ei-services__list li:hover .ei-badge {
	background-color: var(--ei-terracotta);
	border-color: var(--ei-terracotta);
	color: #FFFFFF;
}

.ei-services__list h3 {
	font-family: var(--ei-serif) !important;
	font-size: clamp(21px, 1.9vw, 25px) !important;
	font-weight: 500 !important;
	letter-spacing: 0.01em !important;
	line-height: 1.25 !important;
	color: var(--ivory-soft);
	margin: 4px 0 10px;
	transition: color 0.3s ease;
}

.ei-services__list li:hover h3 {
	color: var(--terracotta-lift-2);
}

.ei-services__list p {
	font-size: 16.5px;
	line-height: 1.75;
	margin: 0;
	color: rgba(245, 241, 234, 0.64);
}

/* =====================================================================
   DESTINATIONS — staggered panels
   ===================================================================== */
.ei-dest {
	background-color: #FFFFFF;
	padding: clamp(72px, 9vw, 118px) 0 0;
}

.ei-dest__head {
	margin-bottom: clamp(40px, 5vw, 60px);
}

.ei-dest__carousel {
	--dest-gap: clamp(10px, 1.2vw, 18px);
	--dest-panel: calc((min(1400px, 100vw - clamp(20px, 3vw, 48px)) - 3 * var(--dest-gap)) / 4);
	width: min(1400px, calc(100vw - clamp(20px, 3vw, 48px)));
	margin-inline: auto;
	padding-bottom: clamp(56px, 7vw, 96px);
}

/* Default: the classic 4-up grid (≤4 destinations, or JS unavailable) */
.ei-dest__strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--dest-gap);
}

/* >4 destinations on desktop: JS drift carousel — one endless row */
.ei-dest__carousel.is-carousel {
	overflow: hidden;
}

.ei-dest__carousel.is-carousel .ei-dest__strip {
	display: flex;
	width: max-content;
	will-change: transform;
}

.ei-dest__carousel.is-carousel .ei-dest__panel {
	width: var(--dest-panel);
	flex: none;
}

/* >4 with reduced motion: plain scrollable row with snap */
.ei-dest__carousel.is-scrollable {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.ei-dest__carousel.is-scrollable .ei-dest__strip {
	display: flex;
	width: max-content;
}

.ei-dest__carousel.is-scrollable .ei-dest__panel {
	width: var(--dest-panel);
	flex: none;
	scroll-snap-align: start;
}

.ei-dest__panel {
	position: relative;
	display: block;
	height: clamp(400px, 42vw, 560px);
	overflow: hidden;
	border-radius: 3px;
	text-decoration: none;
}

.ei-dest__panel--low {
	transform: translateY(clamp(24px, 3vw, 48px));
}

.ei-dest__img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ei-dest__panel::after {
	content: "";
	position: absolute;
	inset: 0;
	/* Bottom scrim for the label + a whisper of warm tone at the top so
	   the four photos (cool Venice, warm Rome, white-sky Siena, teal
	   Amalfi) read as one graded set. */
	background: linear-gradient(to top, rgba(24, 19, 16, 0.78), rgba(24, 19, 16, 0.10) 52%, rgba(88, 54, 32, 0.18));
}

.ei-dest__panel:hover .ei-dest__img {
	transform: scale(1.05);
}

/* Hover affordance: the panels are links — say so */
.ei-dest__label::after {
	content: "Explore \2192";
	display: block;
	margin-top: 12px;
	font-size: 12.5px;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.ei-dest__panel:hover .ei-dest__label::after,
.ei-dest__panel:focus-visible .ei-dest__label::after {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.ei-dest__label::after {
		transition: opacity 0.4s ease;
		transform: none;
	}
}

.ei-dest__label {
	position: absolute;
	left: 30px;
	right: 30px;
	bottom: 30px;
	z-index: 1;
}

.ei-dest__place {
	display: block;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.88);
	margin-bottom: 10px;
}

.ei-dest__name {
	display: block;
	font-family: var(--ei-serif);
	font-size: clamp(26px, 2.3vw, 34px);
	font-weight: 500;
	color: #FFFFFF;
	line-height: 1.15;
}

/* =====================================================================
   COAST TO COUNTRYSIDE — matte frames on a barely-warm greige ground
   ===================================================================== */
.ei-coast {
	background-color: var(--greige);
	padding: clamp(80px, 10vw, 130px) 0 clamp(96px, 11vw, 150px);
}

.ei-coast__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 4fr);
	gap: clamp(36px, 4.5vw, 72px);
	align-items: center;
}

.ei-coast__img {
	margin: 0;
	position: relative;
}

.ei-coast__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	padding: 12px;
	background-color: #FFFFFF;
	box-shadow: var(--matte-shadow);
}

.ei-coast__img figcaption {
	position: absolute;
	bottom: -34px;
	left: 4px;
	font-family: var(--ei-serif);
	font-style: italic;
	font-size: 15.5px;
	color: #8A7E73;
}

.ei-coast__img--tall img {
	aspect-ratio: 3 / 4;
}

.ei-coast__img--offset {
	transform: translateY(clamp(28px, 4vw, 64px));
}

.ei-coast__img--offset img {
	aspect-ratio: 4 / 5;
}

.ei-coast__copy .ei-textlink {
	display: inline-block;
	margin-top: 12px;
}

/* =====================================================================
   JOURNEYS (currently hidden from the template — styles kept for the
   future Trips Gallery page)
   ===================================================================== */
.ei-journeys {
	background: linear-gradient(180deg, #F6EDE1, var(--ei-ivory));
	padding: clamp(72px, 9vw, 118px) 0;
}

.ei-journeys__head {
	margin-bottom: clamp(40px, 5vw, 60px);
}

.ei-journeys__grid {
	display: grid;
	grid-template-columns: 3fr 2fr;
	grid-template-rows: 1fr 1fr;
	gap: clamp(18px, 2vw, 28px);
}

.ei-journey {
	position: relative;
	overflow: hidden;
	border-radius: 3px;
	min-height: 300px;
	display: flex;
	align-items: flex-end;
	isolation: isolate;
}

.ei-journey--feature {
	grid-row: span 2;
	min-height: 620px;
}

.ei-journey__img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: -1;
	transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ei-journey:hover .ei-journey__img {
	transform: scale(1.04);
}

.ei-journey::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(24, 19, 16, 0.8), rgba(24, 19, 16, 0.12) 58%, rgba(24, 19, 16, 0));
}

.ei-journey__body {
	padding: clamp(26px, 3.4vw, 44px);
}

.ei-stars {
	display: block;
	color: #E3B28F;
	font-size: 15px;
	letter-spacing: 0.34em;
	margin-bottom: 12px;
}

.ei-journey__body h3 {
	font-family: var(--ei-serif) !important;
	font-size: clamp(23px, 2.1vw, 29px) !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	color: #FFFFFF;
	margin: 0;
}

.ei-journey--feature .ei-journey__body h3 {
	font-size: clamp(28px, 2.8vw, 38px) !important;
	margin-bottom: 14px;
}

.ei-journey__body p {
	color: rgba(255, 255, 255, 0.92);
	font-size: 16.5px;
	line-height: 1.7;
	margin: 0;
	max-width: 54ch;
}

/* =====================================================================
   VIDEO (currently hidden from the template)
   ===================================================================== */
.ei-video {
	padding: clamp(72px, 9vw, 118px) 0;
}

.ei-video__inner {
	text-align: center;
	max-width: 940px;
	margin-inline: auto;
}

.ei-video__lede {
	max-width: 560px;
	margin: 0 auto 44px;
}

.ei-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	padding: 13px;
	background-color: #FFFFFF;
	box-shadow: var(--matte-shadow);
}

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

/* =====================================================================
   FINALE — Positano under a warm terracotta duotone
   ===================================================================== */
.ei-finale {
	position: relative;
	padding: clamp(120px, 15vw, 200px) 24px;
	text-align: center;
	isolation: isolate;
}

.ei-finale__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 30%;
	background-attachment: fixed;
	z-index: -2;
}

/* background-attachment:fixed is janky or ignored on Safari, iPads,
   and all touch devices — serve those the plain scroll version. */
@media (max-width: 1180px), (hover: none) {
	.ei-finale__media {
		background-attachment: scroll;
	}
}

.ei-finale__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(90, 46, 24, 0.55), rgba(43, 25, 15, 0.72));
	z-index: -1;
}

/* Same .ei-home prefix so this outranks the `.ei-home p` baseline */
.ei-home .ei-script--finale {
	font-size: clamp(84px, 10vw, 148px);
	line-height: 1.1;
	color: #E9CDBB;
	text-shadow: 0 3px 26px rgba(20, 15, 12, 0.4);
	margin: 0 0 10px;
	overflow: visible;
}

.ei-finale__title {
	font-family: var(--ei-serif) !important;
	font-weight: 500 !important;
	font-size: clamp(38px, 5vw, 62px) !important;
	line-height: 1.1 !important;
	color: #FFFFFF;
	margin: 0 0 20px;
}

/* .ei-home p out-specifies a bare class — anchor to .ei-home so the
   lede block truly centers on wide viewports. */
.ei-home .ei-finale__lede {
	color: rgba(255, 255, 255, 0.92);
	font-size: 19px;
	max-width: 500px;
	margin: 0 auto 46px;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
	.ei-services__grid {
		grid-template-columns: 1fr;
	}

	.ei-services__intro {
		position: static;
		max-width: 640px;
	}

	.ei-coast__grid {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}

	.ei-coast__copy {
		grid-column: 1 / -1;
		order: -1;
		max-width: 680px;
	}

	.ei-journeys__grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
	}

	.ei-journey--feature {
		grid-column: 1 / -1;
		grid-row: auto;
		min-height: 460px;
	}
}

@media (max-width: 767px) {
	/* Portrait viewport suits the portrait hero photo */
	.ei-hero__media {
		background-position: center 45%;
	}

	.ei-hero__inner {
		padding: 120px 20px 150px;
	}

	.ei-process__list {
		grid-template-columns: 1fr;
		gap: 56px;
	}

	.ei-spread__grid {
		grid-template-columns: 1fr;
	}

	.ei-spread__figure {
		margin-inline: auto;
	}

	/* Touch: swipe + snap, next panel peeking at the edge */
	.ei-dest__carousel {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.ei-dest__carousel::-webkit-scrollbar {
		display: none;
	}

	.ei-dest__strip {
		display: flex;
		width: max-content;
		gap: 12px;
	}

	.ei-dest__panel {
		width: 74vw;
		flex: none;
		height: 340px;
		scroll-snap-align: center;
	}

	.ei-dest__panel--low {
		transform: translateY(12px);
	}

	.ei-coast__grid {
		grid-template-columns: 1fr;
	}

	.ei-coast__img--offset {
		transform: none;
		max-width: 78%;
		margin: 28px 0 0 auto;
	}

	.ei-coast__img figcaption {
		position: static;
		margin-top: 12px;
	}

	.ei-journeys__grid {
		grid-template-columns: 1fr;
	}

	.ei-journey {
		min-height: 320px;
	}

	.ei-journey--feature {
		min-height: 420px;
	}

	.ei-video__frame {
		padding: 9px;
	}
}
