/* Home hero: looping video panel + three notched image tiles. Loaded on the front page only. */

.enigma-hero { min-height: 52svh; }

.enigma-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: grid;
	place-items: center;
}
.enigma-hero__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.enigma-ph--hero { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 88%; text-align: center; }

.enigma-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(11, 11, 12, 0.85), rgba(11, 11, 12, 0) 58%);
	pointer-events: none;
}
.enigma-hero__copy {
	position: absolute;
	z-index: 2;
	left: var(--e-pad);
	right: var(--e-pad);
	bottom: 78px; /* clears the social buttons on small screens */
	display: grid;
	gap: 14px;
}
.enigma-hero__title {
	margin: 0;
	font-family: var(--e-title);
	font-weight: 400;
	font-size: clamp(2.8rem, 1rem + 6.4vw, 7rem);
	line-height: 0.98;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--e-cream);
}
.enigma-hero__title .line { display: block; }
.enigma-hero__title .line > span {
	display: block;
	animation: enigma-line 0.95s var(--e-ease) both;
	animation-delay: calc(0.2s + var(--i, 0) * 0.14s);
}

/* Socials, bottom-right of the hero */
.enigma-socials {
	position: absolute;
	z-index: 2;
	right: 16px;
	bottom: 16px;
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.enigma-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--e-line);
	border-radius: 50%;
	background: rgba(11, 11, 12, 0.55);
	color: var(--e-cream);
	transition: background-color var(--e-hover) var(--e-ease), color var(--e-hover) var(--e-ease);
}
.enigma-socials a:hover { background: var(--e-cream); color: var(--e-ink); }

/* ---------- Tiles ---------- */
.enigma-tiles {
	display: flex;
	gap: var(--e-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.enigma-tiles::-webkit-scrollbar { display: none; }
.enigma-tile {
	position: relative;
	flex: 0 0 74%;
	aspect-ratio: 4 / 3;
	scroll-snap-align: start;
	overflow: hidden;
	border-radius: var(--e-tile);
	background:
		radial-gradient(80% 70% at 70% 30%, rgba(254, 217, 109, 0.07), transparent 70%),
		linear-gradient(160deg, #1f1f21, #0e0e0f);
	text-decoration: none;
	color: var(--e-cream);
	isolation: isolate;
}
.enigma-tile__media {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
}
.enigma-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--e-ease);
}
.enigma-tile:hover .enigma-tile__media img { transform: scale(1.04); }

/* Notched label chip: same colour as the backdrop so it reads as a cut-out */
.enigma-tile__chip {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 18px;
	background: var(--e-ink);
	border-top-left-radius: 16px;
}
.enigma-tile__chip::before,
.enigma-tile__chip::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	border-bottom-right-radius: 16px;
	box-shadow: 8px 8px 0 8px var(--e-ink);
}
.enigma-tile__chip::before { right: 0; top: -16px; }
.enigma-tile__chip::after { left: -16px; bottom: 0; }
.enigma-tile__label {
	font-family: var(--e-title);
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.enigma-tile__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--e-line);
	border-radius: 50%;
	transition: transform var(--e-hover) var(--e-ease), background-color var(--e-hover) var(--e-ease), color var(--e-hover) var(--e-ease);
}
.enigma-tile:hover .enigma-tile__arrow,
.enigma-tile:focus-visible .enigma-tile__arrow {
	transform: translateX(3px);
	background: var(--e-gold);
	color: var(--e-ink);
}

@media (min-width: 640px) {
	.enigma-socials { bottom: auto; top: 14px; right: 14px; }
	.enigma-hero__copy { bottom: clamp(18px, 3vw, 40px); }
}

@media (min-width: 900px) {
	.enigma-shell--home { grid-template-columns: minmax(0, 1fr) clamp(220px, 26vw, 380px); }
	.enigma-hero { min-height: 0; }
	.enigma-tiles {
		display: grid;
		grid-template-rows: repeat(3, minmax(0, 1fr));
		overflow: visible;
		min-height: 0;
	}
	.enigma-tile { flex: none; aspect-ratio: auto; min-height: 0; }
}

/* ---------- Sections below the hero ---------- */
.enigma-home-more { display: grid; gap: var(--e-gap); margin-top: var(--e-gap); }
.enigma-home-more > section { margin: 0; }

/* The Enigma way: bento */
.enigma-story { display: grid; gap: var(--e-gap); grid-template-columns: 1fr; }
.enigma-story__text { display: flex; flex-direction: column; justify-content: center; }
.enigma-story__text p:not(.enigma-eyebrow) { max-width: 38rem; }
.enigma-story__photo { aspect-ratio: 4 / 3; }
.enigma-fact { display: grid; align-content: end; min-height: 150px; }
.enigma-card .enigma-fact__big {
	margin: 0 0 6px;
	color: var(--e-cream);
	font-family: var(--e-title);
	font-size: clamp(1.4rem, 0.9rem + 1.5vw, 2.2rem);
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}
.enigma-card .enigma-fact__label {
	margin: 0;
	color: var(--e-muted);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Throughout the day */
.enigma-day { padding: 0; overflow: hidden; }
.enigma-day__head { padding: clamp(24px, 3.4vw, 52px) clamp(24px, 3.4vw, 52px) 10px; }
.enigma-day__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.enigma-day__list li { display: flex; border-top: 1px solid var(--e-line); }
.enigma-day__list a {
	position: relative;
	display: grid;
	flex: 1;
	align-content: start;
	gap: 6px;
	padding: 26px clamp(24px, 3.4vw, 52px) 30px;
	color: var(--e-cream);
	text-decoration: none;
	transition: background-color var(--e-hover) var(--e-ease);
}
.enigma-day__list a:hover { background: var(--wp--preset--color--panel-raised); }
.enigma-day__num { color: var(--e-gold); font-size: 11px; letter-spacing: 0.14em; }
.enigma-day__title {
	font-family: var(--e-title);
	font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem);
	letter-spacing: 0.04em;
	line-height: 1.1;
	text-transform: uppercase;
}
.enigma-day__line { color: var(--e-muted); font-size: var(--wp--preset--font-size--small); max-width: 22rem; }
.enigma-day__arrow {
	position: absolute;
	top: 26px;
	right: clamp(24px, 3.4vw, 52px);
	display: inline-flex;
	transition: transform var(--e-hover) var(--e-ease), color var(--e-hover) var(--e-ease);
}
.enigma-day__list a:hover .enigma-day__arrow { transform: translateX(4px); color: var(--e-gold); }

/* Services */
.enigma-services { display: grid; gap: var(--e-gap); grid-template-columns: 1fr; }
.enigma-service { display: grid; gap: 26px; align-content: start; padding: clamp(14px, 1.6vw, 20px); }
.enigma-service .enigma-photo { border-radius: calc(var(--e-radius) - 6px); }
.enigma-service__body { padding: 4px clamp(10px, 1.6vw, 24px) clamp(10px, 1.6vw, 24px); }
.enigma-service__body p:not(.enigma-eyebrow) { max-width: 30rem; }

/* Visit */
.enigma-visit { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: end; }
.enigma-visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; margin: 26px 0 0 !important; }
.enigma-visit__details { margin: 0; display: grid; }
.enigma-visit__details > div {
	display: grid;
	grid-template-columns: 7rem 1fr;
	gap: 14px;
	padding: 16px 0;
	border-top: 1px solid var(--e-line);
}
.enigma-visit__details dt { color: var(--e-gold); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }
.enigma-visit__details dd { margin: 0; color: var(--e-cream); }
.enigma-visit__details a { color: var(--e-cream); text-decoration-color: var(--e-line); text-underline-offset: 4px; }
.enigma-visit__details a:hover { color: var(--e-gold); }

@media (min-width: 700px) {
	.enigma-services { grid-template-columns: 1fr 1fr; }
	.enigma-day__list { grid-template-columns: repeat(2, 1fr); }
	.enigma-day__list li:nth-child(even) { border-left: 1px solid var(--e-line); }
}
@media (min-width: 900px) {
	.enigma-story { grid-template-columns: repeat(9, minmax(0, 1fr)); }
	.enigma-story__text { grid-column: span 6; }
	.enigma-story__photo { grid-column: span 3; grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
	.enigma-fact { grid-column: span 2; }
	.enigma-visit { grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); }
}
@media (min-width: 1100px) {
	.enigma-day__list { grid-template-columns: repeat(4, 1fr); }
	.enigma-day__list li:nth-child(even) { border-left: 0; }
	.enigma-day__list li + li { border-left: 1px solid var(--e-line); }
}

/* Small screens: keep the video placeholder label clear of the headline */
@media (max-width: 639px) {
	.enigma-ph--hero { top: 104px; transform: translateX(-50%); }
}
