/* ========================================================================
   Velorah theme — main stylesheet
   ====================================================================== */

:root {
	--background: 201 100% 13%;
	--foreground: 0 0% 100%;
	--muted-foreground: 240 4% 66%;
	--primary: 0 0% 100%;
	--primary-foreground: 0 0% 4%;
	--secondary: 0 0% 10%;
	--muted: 0 0% 10%;
	--accent: 0 0% 10%;
	--border: 0 0% 18%;
	--input: 0 0% 18%;

	--font-display: 'Instrument Serif', serif;
	--font-body: 'Inter', sans-serif;

	--max-w-7xl: 80rem;
	--max-w-5xl: 64rem;
	--max-w-4xl: 56rem;
	--max-w-2xl: 42rem;
	--max-w-xl: 36rem;
}

/* Reset + base ---------------------------------------------------------- */

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

html, body { height: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.5;
}

body.overflow-x-hidden { overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
img, svg { display: block; max-width: 100%; }

.display { font-family: var(--font-display); }

.ink-white  { color: hsl(var(--foreground)); }
.ink-muted  { color: hsl(var(--muted-foreground)); font-style: normal; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	background: #fff;
	color: #000;
	left: 8px;
	padding: 8px 12px;
	position: absolute;
	top: -40px;
	z-index: 100;
	transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* Liquid glass + CTA ---------------------------------------------------- */

.liquid-glass {
	background: rgba(255, 255, 255, 0.01);
	background-blend-mode: luminosity;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: none;
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
	position: relative;
	overflow: hidden;
	transition: transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms ease;
}
.liquid-glass::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1.4px;
	background: linear-gradient(
		180deg,
		rgba(255,255,255,0.45) 0%,
		rgba(255,255,255,0.15) 20%,
		rgba(255,255,255,0)    40%,
		rgba(255,255,255,0)    60%,
		rgba(255,255,255,0.15) 80%,
		rgba(255,255,255,0.45) 100%
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	        mask-composite: exclude;
	pointer-events: none;
}
.liquid-glass:hover { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18); }

.cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	border-radius: 9999px;
	color: hsl(var(--foreground));
	cursor: pointer;
	white-space: nowrap;
	font: inherit;
	text-align: center;
}
.cta:hover { transform: scale(1.03); }

.cta--sm { padding: .625rem 1.5rem; font-size: .875rem; }
.cta--lg {
	padding: 1.25rem 3.5rem;
	font-size: 1rem;
	margin-top: 3rem;
}
.cta--icon {
	width: 58px;
	height: 58px;
	padding: 0;
}
.cta--with-icon { padding: 1rem 2.5rem; }

/* Header / Nav ---------------------------------------------------------- */

.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
}
.site-nav {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	padding: 1.5rem 2rem;
	max-width: var(--max-w-7xl);
	margin: 0 auto;
}

/* Hero ------------------------------------------------------------------ */

.hero {
	position: relative;
	min-height: 100vh;
	width: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.hero__media--image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hero__vignette {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.25) 0%,
		rgba(0, 0, 0, 0)    30%,
		rgba(0, 0, 0, 0)    70%,
		rgba(0, 0, 0, 0.55) 100%
	);
}

.hero__inner {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1rem 1.5rem 12rem;
	margin-top: auto;
	margin-bottom: auto;
}

.hero__heading {
	font-size: clamp(2.75rem, 8vw, 8rem);
	line-height: 0.95;
	letter-spacing: -2.46px;
	max-width: var(--max-w-7xl);
	font-weight: 400;
	color: hsl(var(--muted-foreground));
	margin: 0;
}
.hero__heading-name {
	font-style: normal;
	color: hsl(var(--foreground));
}

.hero__subtext {
	color: hsl(var(--muted-foreground));
	font-size: 1rem;
	max-width: var(--max-w-2xl);
	margin: 2rem auto 0;
	line-height: 1.6;
}
@media (min-width: 640px) {
	.hero__subtext { font-size: 1.25rem; }
}

/* About ----------------------------------------------------------------- */

.about {
	position: relative;
	background-color: hsl(var(--background));
	padding: 8rem 1.5rem;
}
@media (min-width: 768px) {
	.about { padding: 8rem 1.5rem; }
}

.about__inner {
	max-width: var(--max-w-5xl);
	margin: 0 auto;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: 0.32em;
	color: hsl(var(--muted-foreground));
	margin-bottom: 2rem;
}
.eyebrow--centered {
	display: flex;
	justify-content: center;
}
.eyebrow__rule {
	display: inline-block;
	width: 2rem;
	height: 1px;
	background-color: hsl(var(--muted-foreground) / 0.6);
	margin-right: .75rem;
}
.eyebrow--centered .eyebrow__rule:last-child {
	margin-right: 0;
	margin-left: .75rem;
}

.about__heading {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	line-height: 1.05;
	letter-spacing: -1.4px;
	font-weight: 400;
	max-width: var(--max-w-4xl);
	color: hsl(var(--foreground));
}

.about__body {
	margin-top: 3.5rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem 3rem;
	color: hsl(var(--muted-foreground));
	font-size: 1rem;
	line-height: 1.6;
	max-width: var(--max-w-4xl);
}
@media (min-width: 768px) {
	.about__body {
/* 		grid-template-columns: 1fr 1fr; */
		font-size: 1.25rem;
	}
}

.about__meta {
	margin: 4rem 0 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	max-width: var(--max-w-4xl);
}
@media (min-width: 640px) {
	.about__meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.about__meta-item {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}
.about__meta dt {
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: hsl(var(--muted-foreground) / 0.7);
}
.about__meta dd {
	margin: 0;
	font-size: .875rem;
	color: hsl(var(--foreground));
}

/* Stats ----------------------------------------------------------------- */

.stats {
	position: relative;
	background-color: hsl(var(--background));
	padding: 6rem 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
	.stats { padding: 8rem 1.5rem; }
}

.stats__inner {
	max-width: var(--max-w-5xl);
	margin: 0 auto;
}

.stats__grid {
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem 3rem;
}
@media (min-width: 640px) {
	.stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
	.stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stats__item {
	display: flex;
	flex-direction: column;
	gap: .875rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stats__figure {
	font-size: clamp(3rem, 6vw, 4.75rem);
	line-height: 1;
	letter-spacing: -2.4px;
	color: hsl(var(--foreground));
	font-weight: 400;
}

.stats__label {
	font-size: .875rem;
	line-height: 1.5;
	color: hsl(var(--muted-foreground));
	max-width: 18rem;
}

/* Case studies --------------------------------------------------------- */

.case-studies {
	position: relative;
	background-color: hsl(var(--background));
	padding: 6rem 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
	.case-studies { padding: 8rem 1.5rem; }
}

.case-studies__inner {
	max-width: var(--max-w-5xl);
	margin: 0 auto;
}

.case-studies__heading {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	line-height: 1.05;
	letter-spacing: -1.4px;
	font-weight: 400;
	max-width: var(--max-w-4xl);
	color: hsl(var(--foreground));
}
.case-studies__heading-em {
	font-style: italic;
	color: hsl(var(--muted-foreground));
}

.case-studies__list {
	list-style: none;
	margin: 4rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.case-studies__item {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem 3rem;
	padding: 3rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.case-studies__item:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 768px) {
	.case-studies__item {
		grid-template-columns: 1fr 2fr;
		padding: 4rem 0;
	}
}

.case-studies__meta {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: baseline;
	gap: .75rem;
}
@media (min-width: 768px) {
	.case-studies__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: .75rem;
	}
}
.case-studies__tag {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.28em;
	color: hsl(var(--muted-foreground));
}
.case-studies__index {
	font-size: 11px;
	letter-spacing: 0.2em;
	color: hsl(var(--muted-foreground) / 0.6);
	font-variant-numeric: tabular-nums;
}

.case-studies__content {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-width: var(--max-w-2xl);
}

.case-studies__title {
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	line-height: 1.1;
	letter-spacing: -0.6px;
	font-weight: 400;
	color: hsl(var(--foreground));
	margin: 0;
}

.case-studies__description {
	color: hsl(var(--muted-foreground));
	font-size: 1rem;
	line-height: 1.6;
}
@media (min-width: 640px) {
	.case-studies__description { font-size: 1.125rem; }
}

.case-studies__outcome {
	margin-top: .5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.10);
	display: flex;
	flex-direction: column;
	gap: .5rem;
}
.case-studies__outcome-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.34em;
	color: hsl(var(--muted-foreground));
}
.case-studies__outcome-text {
	color: hsl(var(--foreground));
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

/* Contact --------------------------------------------------------------- */

.contact {
	position: relative;
	background-color: hsl(var(--background));
	padding: 8rem 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
	.contact { padding: 8rem 1.5rem; }
}

.contact__inner {
	max-width: var(--max-w-4xl);
	margin: 0 auto;
	text-align: center;
}

.contact__heading {
	font-size: clamp(2.25rem, 6vw, 4.5rem);
	line-height: 1.02;
	letter-spacing: -1.6px;
	font-weight: 400;
}
.contact__heading em { font-style: normal; }

.contact__subtext {
	color: hsl(var(--muted-foreground));
	font-size: 1rem;
	max-width: var(--max-w-xl);
	margin: 2rem auto 0;
	line-height: 1.6;
}
@media (min-width: 640px) {
	.contact__subtext { font-size: 1.25rem; }
}

.contact__actions {
	margin-top: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	flex-wrap: wrap;
}

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

.site-footer {
	background-color: hsl(var(--background));
	text-align: center;
	padding: 3rem 1.5rem 6rem;
}
.site-footer__copy {
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: 0.28em;
	color: hsl(var(--muted-foreground) / 0.7);
	margin: 0;
}

/* Inner page (index.php) ----------------------------------------------- */

.site-main--inner { padding-top: 8rem; }
.page__inner {
	max-width: var(--max-w-4xl);
	margin: 0 auto;
	padding: 0 1.5rem 6rem;
}
.post-entry { margin-bottom: 4rem; }
.post-entry__title {
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: -1px;
	margin-bottom: 1rem;
}
.post-entry__content { color: hsl(var(--muted-foreground)); }
.post-entry__content a { color: hsl(var(--foreground)); text-decoration: underline; }

/* Animations ------------------------------------------------------------ */

@keyframes fade-rise {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes nav-fade {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-rise         { animation: fade-rise 0.8s ease-out both; }
.animate-fade-rise-delay   { animation: fade-rise 0.8s ease-out 0.2s both; }
.animate-fade-rise-delay-2 { animation: fade-rise 0.8s ease-out 0.4s both; }
.animate-nav-fade          { animation: nav-fade 0.7s ease-out both; }

@media (prefers-reduced-motion: reduce) {
	.animate-fade-rise,
	.animate-fade-rise-delay,
	.animate-fade-rise-delay-2,
	.animate-nav-fade {
		animation: none;
	}
	.cta:hover { transform: none; }
}

/* WP admin bar room ----------------------------------------------------- */

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
