/* =============================================================================
   The Cause Effect: static holding page
   =============================================================================

   A standalone copy of the WordPress home page (patterns/home-holding.php),
   with no WordPress, PHP or build step needed. Upload the whole holding-page/
   folder to any web server.

   Values mirror the theme: theme.json, _tokens.scss, _typography.scss,
   _buttons.scss, _grain.scss, _site-nav.scss, _site-footer.scss and
   _patterns/_home-holding.scss. Mobile-first, like the theme.
   If the brand tokens change, update them here too. */

/* -----------------------------------------------------------------------------
   Fonts (self-hosted)
   -------------------------------------------------------------------------- */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inconsolata"; src: url("../fonts/inconsolata-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* -----------------------------------------------------------------------------
   Tokens (mirrors theme.json / _tokens.scss)
   -------------------------------------------------------------------------- */

:root {
	--color-yellow: #ffbb24;
	--color-yellow-hover: #ffca55;
	--color-ink: #2a2b2a;
	--color-paper: #f8f6f4;
	--color-paper-warm: #f3f0ec;
	--color-graphite: #5c5c5c;
	--color-white: #fff;

	--font-primary: "Poppins", system-ui, sans-serif;
	--font-accent: "Inconsolata", ui-monospace, monospace;

	--size-xs: 0.8125rem;
	--size-sm: clamp(0.875rem, 0.823rem + 0.221vw, 1rem);
	--size-base: clamp(1rem, 0.974rem + 0.11vw, 1.0625rem);
	--size-lg: clamp(1.125rem, 1.047rem + 0.331vw, 1.3125rem);
	--size-display: clamp(3rem, 2.171rem + 3.536vw, 5rem);

	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4rem;
	--space-9: 6rem;
	--space-10: 8rem;

	--container-wide: 1280px;

	--btn-shadow: 0 4px 12px rgba(42, 43, 42, 0.22), 0 1px 3px rgba(42, 43, 42, 0.14);
	--btn-shadow-active: 0 1px 4px rgba(42, 43, 42, 0.18);

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--duration-fast: 150ms;
}

/* -----------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: var(--font-primary);
	font-size: var(--size-base);
	line-height: 1.6;
	color: var(--color-ink);
	background: var(--color-paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	/* Keep the footer at the bottom on tall screens. */
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	color: inherit;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

p {
	margin: 0 0 var(--space-4);
}

:focus-visible {
	outline: 2px solid var(--color-ink);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--space-4);
	z-index: 1000;
	padding: var(--space-3) var(--space-4);
	background: var(--color-ink);
	color: var(--color-paper);
	border-radius: 0.5rem;
}

.skip-link:focus {
	top: var(--space-4);
}

/* -----------------------------------------------------------------------------
   Paper grain
   -------------------------------------------------------------------------- */

.has-grain {
	position: relative;
	isolation: isolate;
}

.has-grain::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter><rect width='320' height='320' filter='url(%23n)'/></svg>");
	background-size: 320px 320px;
	mix-blend-mode: multiply;
	opacity: 0.08;
}

.has-grain > * {
	position: relative;
	z-index: 1;
}

/* -----------------------------------------------------------------------------
   Button
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	font-family: var(--font-primary);
	font-size: var(--size-base);
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	border: 2px solid transparent;
	padding: 0.85em 1.9em;
	border-radius: 9999px;
	box-shadow: var(--btn-shadow);
	transition:
		background var(--duration-fast) var(--ease-out),
		border-color var(--duration-fast) var(--ease-out),
		box-shadow var(--duration-fast) var(--ease-out),
		transform var(--duration-fast) var(--ease-out);
	white-space: nowrap;
	cursor: pointer;
}

.btn:focus-visible {
	outline: 2px solid var(--color-ink);
	outline-offset: 3px;
}

.btn:active {
	transform: translateY(1px);
	box-shadow: var(--btn-shadow-active);
}

.btn--primary {
	background: var(--color-yellow);
	color: var(--color-white);
	border-color: var(--color-yellow);
}

.btn--primary:hover {
	background: var(--color-yellow-hover);
	border-color: var(--color-yellow-hover);
}

/* -----------------------------------------------------------------------------
   Header: logo only (the holding page has nowhere else to link to yet)
   -------------------------------------------------------------------------- */

.site-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(248, 246, 244, 0.92);
	backdrop-filter: saturate(160%) blur(8px);
	-webkit-backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid rgba(42, 43, 42, 0.06);
}

.site-nav__inner {
	max-width: var(--container-wide);
	margin: 0 auto;
	padding: var(--space-3) var(--space-4);
	display: flex;
	align-items: center;
}

.site-nav__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.site-nav__logo img {
	height: 36px;
	width: auto;
}

@media (min-width: 640px) {
	.site-nav__inner { padding: var(--space-3) var(--space-5); }
	.site-nav__logo img { height: 44px; }
}

@media (min-width: 821px) {
	.site-nav__inner { padding: var(--space-4) var(--space-6); }
	.site-nav__logo img { height: 56px; }
}

/* -----------------------------------------------------------------------------
   Holding section
   -------------------------------------------------------------------------- */

.holding {
	position: relative;
	flex: 1 0 auto;
	overflow: hidden; /* clips the illustration where it bleeds off the right */
	background: var(--color-paper-warm);
	padding: var(--space-8) 0 var(--space-7);
}

.holding__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--container-wide);
	margin: 0 auto;
	padding: 0 var(--space-5);
}

.holding__content {
	max-width: 44rem;
}

/* Phones: the illustration stacks above the text. */
.holding__visual {
	display: flex;
	justify-content: center;
	margin-bottom: var(--space-7);
}

.holding__illus {
	margin: 0;
	width: min(90vw, 520px);
}

.holding__illus img {
	width: 100%;
	height: auto;
}

.holding__eyebrow {
	display: block;
	font-family: var(--font-accent);
	font-size: var(--size-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-graphite);
	margin: 0 0 var(--space-5);
}

.holding h1 {
	font-family: var(--font-primary);
	font-size: var(--size-display);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--color-ink);
	margin: 0 0 var(--space-6);
}

.holding h1 em {
	font-style: italic;
	font-weight: 400;
}

/* Phones drop the designed two-line break so the headline wraps naturally. */
.holding h1 br {
	display: none;
}

.holding__lead {
	font-size: var(--size-lg);
	font-weight: 300;
	line-height: 1.6;
	max-width: 44ch;
	margin: 0 0 var(--space-5);
}

.holding__note {
	font-size: var(--size-base);
	line-height: 1.7;
	max-width: 44ch;
	margin: 0 0 var(--space-7);
}

.holding__note strong {
	font-weight: 600;
}

.holding__contact {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3) var(--space-6);
	align-items: center;
	padding-top: var(--space-6);
	border-top: 1px solid rgba(42, 43, 42, 0.12);
	width: 100%;
	max-width: 30rem;
}

@media (min-width: 640px) {
	.holding {
		/* Extra room top and bottom to clear the bleeding illustration. */
		padding: calc(var(--space-10) + 80px) 0 calc(var(--space-9) + 200px);
	}

	.holding__inner {
		padding: 0 var(--space-6);
	}
}

/* Shown only when JavaScript is off (the button can't build its link then). */
.holding__noscript {
	font-size: var(--size-sm);
	color: var(--color-graphite);
	margin: var(--space-4) 0 0;
}

/* From 760px the illustration sits to the right at 750px and bleeds off the
   right edge as the window narrows. The left-edge floor tracks the centred
   text column, so it never sits under the headline. */
@media (min-width: 760px) {
	.holding__content {
		position: relative;
		z-index: 2;
		max-width: 46rem;
	}

	.holding h1 br {
		display: inline;
	}

	.holding__visual {
		position: absolute;
		z-index: 1;
		margin: 0;
		display: block;
		top: 50%;
		transform: translateY(-50%);
		width: 750px;
		left: max(calc(max(0px, (100vw - var(--container-wide)) / 2) + 700px), calc(100vw - 750px - var(--space-6)));
	}

	.holding__illus {
		width: 100%;
		max-width: none;
	}
}

/* -----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	flex-shrink: 0;
	background: var(--color-paper);
	padding: var(--space-7) 0;
	border-top: 1px solid rgba(42, 43, 42, 0.08);
}

.site-footer__inner {
	max-width: var(--container-wide);
	margin-inline: auto;
	padding-inline: var(--space-4);
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.site-footer__tagline {
	font-family: var(--font-accent);
	font-size: var(--size-sm);
	letter-spacing: 0.05em;
	color: var(--color-graphite);
	margin: 0;
}

.site-footer__copyright {
	font-size: var(--size-xs);
	color: var(--color-graphite);
	margin: 0;
}

@media (min-width: 640px) {
	.site-footer__inner {
		padding-inline: var(--space-5);
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: baseline;
		gap: var(--space-3);
	}
}

@media (min-width: 821px) {
	.site-footer__inner { padding-inline: var(--space-6); }
}

/* -----------------------------------------------------------------------------
   On-load intro (CSS-only stand-in for the theme's GSAP intro)

   The text rises in one line at a time; the illustration slides in from the
   right and fades in more slowly. Skipped entirely for reduced motion.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	.holding__content > * {
		animation: tce-rise 1.1s var(--ease-out) both;
	}

	.holding__content > :nth-child(1) { animation-delay: 0.1s; }
	.holding__content > :nth-child(2) { animation-delay: 0.24s; }
	.holding__content > :nth-child(3) { animation-delay: 0.38s; }
	.holding__content > :nth-child(4) { animation-delay: 0.52s; }
	.holding__content > :nth-child(5) { animation-delay: 0.66s; }

	.holding__illus {
		animation: tce-drift-in 3.5s var(--ease-out) both;
	}
}

@keyframes tce-rise {
	from {
		opacity: 0;
		transform: translateY(40px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes tce-drift-in {
	from {
		opacity: 0;
		transform: translateX(60px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}
