/* ============================================================
 * Coming soon — self-contained styles.
 *
 * Replicates lowickhedry.com/ (June 2026 holding page). Only loaded
 * on pages using page-templates/template-coming-soon.php.
 * ========================================================== */

html:has(body.lh-coming-soon),
body.lh-coming-soon {
	height: auto;
	min-height: 100%;
	margin: 0;
}
body.lh-coming-soon {
	background: #111E30;
	color: var(--whisper-20, #ECF2F8);
	font-family: var(--font-sans, "Rethink Sans", system-ui, sans-serif);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
body.lh-coming-soon *,
body.lh-coming-soon *::before,
body.lh-coming-soon *::after {
	box-sizing: border-box;
}
body.lh-coming-soon::selection { background: var(--signal, #D84011); color: #fff; }

/* ----- Animated ellipsis after the headline ----- */
.lh-coming-soon .reddot {
	color: var(--signal, #D84011);
	display: inline-flex;
	gap: 0.02em;
	padding-left: 4px;
}
.lh-coming-soon .reddot span {
	animation: csEllipsisFade 2.4s var(--ease-inout, cubic-bezier(.45,0,.2,1)) infinite;
	opacity: 0;
}
.lh-coming-soon .reddot span:nth-child(2) { animation-delay: 0.28s; }
.lh-coming-soon .reddot span:nth-child(3) { animation-delay: 0.56s; }
@keyframes csEllipsisFade {
	0%, 72%, 100% { opacity: 0; }
	18%, 48%      { opacity: 1; }
}

/* ----- Reusable entrance animations ----- */
.lh-coming-soon .anim-fade-up,
.lh-coming-soon .anim-fade-down,
.lh-coming-soon .anim-soft-pop {
	animation-duration: 900ms;
	animation-fill-mode: both;
	animation-timing-function: var(--ease-out, cubic-bezier(.2,.7,.1,1));
	opacity: 0;
	will-change: opacity, transform;
}
.lh-coming-soon .anim-fade-up    { animation-name: csFadeUp;   }
.lh-coming-soon .anim-fade-down  { animation-name: csFadeDown; }
.lh-coming-soon .anim-soft-pop   { animation-name: csSoftPop;  }
.lh-coming-soon .anim-delay-1 { animation-delay: 120ms; }
.lh-coming-soon .anim-delay-2 { animation-delay: 220ms; }
.lh-coming-soon .anim-delay-3 { animation-delay: 340ms; }
.lh-coming-soon .anim-delay-4 { animation-delay: 480ms; }
.lh-coming-soon .anim-delay-5 { animation-delay: 620ms; }
.lh-coming-soon .anim-delay-6 { animation-delay: 780ms; }

@keyframes csFadeUp {
	from { opacity: 0; transform: translate3d(0, 18px, 0); }
	to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes csFadeDown {
	from { opacity: 0; transform: translate3d(0, -14px, 0); }
	to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes csSoftPop {
	from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.985); }
	to   { opacity: 1; transform: translate3d(0, 0, 0)   scale(1); }
}

/* ----- Layout: full-viewport stack that always fits ----- */
.cs-page {
	position: relative;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: clamp(24px, 4vh, 48px);
	padding: clamp(20px, 4vh, 56px) clamp(20px, 5vw, 88px);
}

/* When the WordPress admin bar takes 32 / 46 px from the viewport, the
   min-height has to shrink to match — otherwise the page becomes taller
   than what is actually visible and the footer falls below the fold. */
body.admin-bar .cs-page {
	min-height: calc(100vh - 32px);
	min-height: calc(100dvh - 32px);
}
@media screen and (max-width: 782px) {
	body.admin-bar .cs-page {
		min-height: calc(100vh - 46px);
		min-height: calc(100dvh - 46px);
	}
}

/* Official Lowick Hedry dark gradient — rendered in CSS so the page
   works without any asset file. */
.cs-page::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 86% 54% at 92% 14%, rgba(54, 121, 210, 0.98) 0%, rgba(53, 122, 212, 0.82) 26%, rgba(31, 65, 109, 0.28) 52%, transparent 72%),
		radial-gradient(ellipse 78% 44% at 2% 94%,  rgba(52, 117, 204, 0.92) 0%, rgba(52, 119, 208, 0.62) 34%, rgba(33, 71, 122, 0.24) 58%, transparent 78%),
		radial-gradient(ellipse 72% 58% at 12% 50%, rgba(33, 71, 122, 0.58) 0%, rgba(25, 51, 87, 0.36) 46%, transparent 72%),
		radial-gradient(ellipse 78% 64% at 90% 84%, rgba(19, 33, 51, 0.96) 0%, rgba(19, 37, 60, 0.74) 46%, transparent 74%),
		linear-gradient(158deg, #111E30 0%, #152640 22%, #193357 45%, #13253C 69%, #111E30 100%);
	z-index: 0;
	pointer-events: none;
}
.cs-page::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 120% 50% at 50% 0%, rgba(17, 30, 48, 0.38) 0%, rgba(17, 30, 48, 0) 64%),
		linear-gradient(180deg, rgba(17, 30, 48, 0.08) 0%, rgba(17, 30, 48, 0) 34%, rgba(17, 30, 48, 0.44) 100%);
	z-index: 0;
	pointer-events: none;
}
.cs-page > * { position: relative; z-index: 1; }

/* ----- Header ----- */
.cs-topbar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
}
.cs-wordmark {
	display: block;
	grid-column: 2;
	width: clamp(110px, 12vw, 140px);
	height: auto;
}

/* ----- Companies (Lowick · Hedry) ----- */
.cs-companies {
	display: inline-flex;
	justify-self: center;
	align-items: center;
	gap: 16px;
	font-family: var(--font-sans, "Rethink Sans", system-ui, sans-serif);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.cs-companies a {
	color: var(--whisper, #C8D8EC);
	text-decoration: underline;
	text-decoration-color: color-mix(in oklab, var(--whisper, #C8D8EC) 35%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	transition: color 200ms var(--ease-out, cubic-bezier(.2,.7,.1,1)),
	            text-decoration-color 200ms var(--ease-out, cubic-bezier(.2,.7,.1,1));
}
.cs-companies a:hover {
	color: var(--off-white, #FAFAFA);
	text-decoration-color: var(--signal, #D84011);
}
.cs-companies-dot {
	width: 5px;
	height: 5px;
	border-radius: 999px;
	background: var(--signal, #D84011);
}

/* ----- Hero ----- */
.cs-hero {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	align-items: center;
	justify-content: center;
	gap: clamp(20px, 3vh, 44px);
	padding: clamp(8px, 2vh, 24px) 0;
	text-align: center;
}
.cs-hero-copy {
	display: flex;
	justify-content: center;
	width: 100%;
}
.cs-headline {
	font-family: var(--font-display, "Fraunces", "Georgia", serif);
	font-weight: 500;
	font-size: clamp(32px, 5.6vw, 84px);
	line-height: 1.05;
	letter-spacing: -0.028em;
	color: var(--off-white, #FAFAFA);
	font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
	margin: 0;
	text-wrap: balance;
	max-width: 16ch;
}
.cs-headline em {
	font-style: italic;
	font-weight: 400;
	color: var(--whisper, #C8D8EC);
}

/* ----- Footer ----- */
.cs-footer {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding-top: clamp(12px, 2vh, 20px);
	border-top: 1px solid var(--whisper-60, #DCE6F3);
	font-family: var(--font-sans, "Rethink Sans", system-ui, sans-serif);
	font-size: 13px;
	color: var(--whisper, #C8D8EC);
}
.cs-tagline {
	font-family: var(--font-sans, "Rethink Sans", system-ui, sans-serif);
	font-weight: 600;
	font-size: clamp(14px, 1.4vw, 18px);
	letter-spacing: -0.005em;
	color: var(--whisper-60, #DCE6F3);
	margin: 0;
}
.cs-footer-copy {
	display: flex;
	align-items: center;
	gap: 24px;
}
.cs-footer .cs-copy { letter-spacing: 0.02em; }
.cs-footer a {
	color: var(--off-white, #FAFAFA);
	text-decoration: underline;
	text-decoration-color: color-mix(in oklab, var(--off-white, #FAFAFA) 35%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 200ms var(--ease-out, cubic-bezier(.2,.7,.1,1)),
	            text-decoration-color 200ms var(--ease-out, cubic-bezier(.2,.7,.1,1));
}
.cs-footer a:hover {
	color: var(--whisper-20, #ECF2F8);
	text-decoration-color: var(--signal, #D84011);
}

/* ----- Responsive ----- */
@media (max-width: 920px) {
	.cs-page { padding: 28px 22px 24px; }
	.cs-hero { padding: 8px 0 0; }
	.cs-headline { font-size: clamp(32px, 8vw, 52px); max-width: 18ch; }
	.cs-footer {
		flex-direction: column;
		align-items: center;
		gap: 6px;
		text-align: center;
	}
	.cs-footer-copy { flex-direction: column; gap: 6px; }
}
@media (max-width: 480px) {
	.cs-topbar {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 12px;
	}
	.cs-wordmark { grid-column: 1; width: 90px; }
}
/* Compact-height phones / split panes — shrink the headline aggressively
   so wordmark + headline + companies + footer all fit on one screen. */
@media (max-height: 720px) {
	.cs-headline { font-size: clamp(28px, 4.6vw, 56px); }
	.cs-page { gap: clamp(16px, 3vh, 32px); }
	.cs-hero { gap: clamp(14px, 2vh, 24px); }
}
@media (max-height: 540px) {
	.cs-headline { font-size: clamp(22px, 3.8vw, 40px); line-height: 1.08; }
	.cs-wordmark { width: clamp(80px, 8vw, 110px); }
	.cs-page { padding: 14px clamp(20px, 5vw, 88px); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.lh-coming-soon .reddot span { animation: none; opacity: 1; }
	.lh-coming-soon .anim-fade-up,
	.lh-coming-soon .anim-fade-down,
	.lh-coming-soon .anim-soft-pop {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* When the coming-soon is the front page, hide the site sticky header
   (just in case some module tries to render anything global). */
body.lh-coming-soon .site-header,
body.lh-coming-soon .site-footer { display: none !important; }
