/*
Theme Name: ETHREAL CHIC
Template: hello-elementor
Version: 1.3.5
Description: Child theme of Hello Elementor. Layout, colours and type live in Elementor (global variables ec-* and classes ec-text, ec-label, ec-small, ec-link). This theme only serves the SVG logos in assets/.
*/

body {
	background: #f7f4ef; /* ec-cream, so the page never flashes white before Elementor CSS loads */
}

/* Motion (assets/ec-motion.js). html.ec-js is set by a head script only when animations will run. */
html.ec-js .ec-reveal,
html.ec-js .ec-stagger > *,
html.ec-js .ec-hero > * {
	opacity: 0;
}

.ec-loader {
	display: none;
}

html.ec-loading body {
	overflow: hidden;
}

/* Loader = Figma "Thumbnail" (1:450): linen monogram + wordmark on espresso.
   Intro is CSS so it plays from first paint, before any script arrives; Motion only lifts it away. */
html.ec-loading .ec-loader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(28px, 3.4vw, 64px);
	padding: 24px;
	background: #352923;
}

.ec-loader svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.ec-loader__mark {
	width: clamp(110px, 15vw, 286px);
}

.ec-loader__word {
	width: clamp(240px, 35vw, 674px);
}

/* Frame outlines draw on (pathLength="1" set in functions.php), outer then inner. */
.ec-loader__mark path[stroke] {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: ec-draw 1.6s cubic-bezier(0.23, 1, 0.32, 1) forwards; /* ease-out: the line is visible from the first frame */
}

.ec-loader__mark path[stroke] + path[stroke] {
	animation-delay: 0.15s;
}

/* The "EC" letters, then the wordmark letter by letter. */
.ec-loader__mark path:not([stroke]),
.ec-loader__word path {
	opacity: 0;
	animation: ec-rise 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.ec-loader__mark path:not([stroke]) {
	animation-delay: 0.7s;
}

.ec-loader__word path {
	animation-delay: calc(0.9s + var(--i, 0) * 40ms);
}

@keyframes ec-draw {
	to { stroke-dashoffset: 0; }
}

@keyframes ec-rise {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

/* Footer panther (ec-motion.js): poster <img> underneath, idle + look videos fade in over it. */
.ec-panther-live {
	position: relative;
	line-height: 0;
	/* Feather the frame edge so any shade drift in the AI video melts into the footer. */
	/* Fades stay inside the empty margin: the panther spans ~10–87% across and ~16–84% down. */
	-webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
	mask-composite: intersect;
}

.ec-panther-live video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.ec-panther-live video.is-on {
	opacity: 1;
}

/* Elementor's style tool can't target ::placeholder; ec-sand from Figma. */
.e-form-base input::placeholder {
	color: #b6a798;
	opacity: 1;
}
