/* ==========================================================================
   Rafayet Hossain — Portfolio
   Design system: Deep Lavender & Sand
   Handcrafted. No framework. GitHub Pages safe.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	/* Color */
	--lav-900: #2A2237;
	--lav-800: #412F6B;
	--lav-700: #574A93;
	--lav-500: #8D7FCF;
	--ink: #1E1934;
	--ink-soft: #3A3252;
	--muted: #6E6790;
	--sand: #F4EFE4;
	--sand-deep: #EAE1CF;
	--paper: #FBF8F1;
	--white: #FFFFFF;
	--copper: #9B5828;
	--copper-soft: #C98A52;
	--line: rgba(27, 22, 48, 0.12);
	--line-light: rgba(255, 255, 255, 0.16);

	/* Type */
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

	/* Layout */
	--container: 1240px;
	--gutter: clamp(1.25rem, 4vw, 4rem);
	--section-y: clamp(5rem, 12vh, 9.5rem);

	/* Motion */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
	--ease-spring: cubic-bezier(0.16, 1.25, 0.32, 1);
}

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

* { margin: 0; }

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	font-family: var(--sans);
	font-weight: 400;
	line-height: 1.6;
	font-kerning: normal;
	color: var(--ink);
	background: var(--sand);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--lav-800); color: var(--paper); }

/* ---------- Accessibility helpers ---------- */
.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--lav-800);
	color: var(--paper);
	padding: 0.75rem 1.25rem;
	z-index: 1000;
	border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
	outline: 2px solid var(--copper);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- Layout ---------- */
.container {
	width: min(100% - (var(--gutter) * 2), var(--container));
	margin-inline: auto;
}

.section {
	padding-block: var(--section-y);
	position: relative;
}
/* anchor targets clear the fixed header */
section[id],
main [id] { scroll-margin-top: 96px; }
/* anchor targets receive programmatic focus; the section is not interactive */
section[id]:focus,
section[id]:focus-visible,
main [id]:focus,
main [id]:focus-visible { outline: none; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--lav-700);
	font-weight: 500;
}
.eyebrow__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--copper);
	display: inline-block;
	flex: none;
}
.eyebrow__num {
	font-family: var(--mono);
	font-size: 0.68rem;
	letter-spacing: 0.02em;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.82); }
.eyebrow--light .eyebrow__num { color: rgba(255, 255, 255, 0.7); }

.display {
	font-family: var(--serif);
	font-weight: 400;
	font-optical-sizing: auto;
	font-size: clamp(1.9rem, 3.8vw, 3.05rem);
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--ink);
	text-wrap: balance;
}
.display em {
	font-style: italic;
	color: var(--lav-700);
	font-weight: 400;
}

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head .display { margin-top: 1.1rem; }
.section__sub {
	max-width: 42ch;
	margin-top: 1.25rem;
	color: var(--ink-soft);
	font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.95rem 1.6rem;
	border-radius: 100px;
	font-weight: 600;
	font-size: 0.95rem;
	position: relative;
	overflow: hidden;
	transition: transform 0.4s var(--ease), background 0.35s var(--ease-soft),
		color 0.35s var(--ease-soft), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease-soft);
	will-change: transform;
	isolation: isolate;
}
.btn svg { transition: transform 0.4s var(--ease); position: relative; z-index: 1; }
.btn span { position: relative; z-index: 1; }
/* sheen sweep (fine pointers only) */
.btn::after {
	content: "";
	position: absolute;
	top: -120%;
	bottom: -120%;
	left: -30%;
	width: 36%;
	z-index: 0;
	background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.32) 45%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.32) 55%, transparent 100%);
	transform: translateX(-140%) skewX(-18deg);
	pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
	.btn:hover::after { transform: translateX(520%) skewX(-18deg); transition: transform 0.7s var(--ease); }
}
.btn--primary {
	background: var(--lav-800);
	color: var(--paper);
	box-shadow: 0 10px 30px -12px rgba(65, 47, 107, 0.5);
}
.btn--primary:hover { background: var(--lav-700); box-shadow: 0 16px 44px -14px rgba(65, 47, 107, 0.6); transform: translateY(-1px); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost {
	border: 1px solid var(--line);
	color: var(--ink);
}
.btn--ghost:hover { border-color: var(--lav-700); color: var(--lav-700); background: rgba(87, 74, 147, 0.06); }

/* ---------- Preloader ---------- */
.preloader {
	position: fixed;
	inset: 0;
	background: var(--lav-900);
	display: grid;
	place-items: center;
	z-index: 9999;
	transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { text-align: center; }
.preloader__name {
	font-family: var(--serif);
	color: var(--paper);
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	letter-spacing: -0.01em;
	display: block;
	opacity: 0;
	animation: preName 0.9s var(--ease) 0.1s forwards;
}
.preloader__bar {
	display: block;
	width: 160px;
	height: 2px;
	background: rgba(255, 255, 255, 0.15);
	margin: 1.4rem auto 0;
	overflow: hidden;
	border-radius: 2px;
}
.preloader__fill {
	display: block;
	height: 100%;
	width: 0;
	background: var(--copper-soft);
	animation: preBar 1.4s var(--ease-soft) forwards;
}
@keyframes preName { to { opacity: 1; transform: translateY(0); } }
@keyframes preBar { to { width: 100%; } }

/* ---------- Custom cursor ---------- */
.cursor,
.cursor-dot {
	position: fixed;
	top: 0;
	left: 0;
	border-radius: 50%;
	pointer-events: none;
	z-index: 9998;
	transform: translate(-50%, -50%);
	mix-blend-mode: difference;
}
.cursor {
	width: 34px;
	height: 34px;
	border: 1.5px solid #fff;
	transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
	opacity: 0;
}
.cursor-dot {
	width: 5px;
	height: 5px;
	background: #fff;
	opacity: 0;
}
.cursor.is-hover { width: 60px; height: 60px; }
body.cursor-ready .cursor,
body.cursor-ready .cursor-dot { opacity: 1; }

@media (hover: none), (pointer: coarse) {
	.cursor, .cursor-dot { display: none; }
}

/* ---------- Scroll progress ---------- */
.progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	z-index: 9997;
	background: transparent;
}
.progress span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--lav-500), var(--copper));
}

/* ---------- Navigation ---------- */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 900;
	padding-block: 1.5rem;
	transition: padding 0.4s var(--ease), background 0.4s var(--ease-soft),
		box-shadow 0.4s var(--ease-soft);
}
.nav.is-scrolled {
	background: rgba(244, 239, 228, 0.85);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 var(--line);
	padding-block: 0.9rem;
}
.nav__inner {
	width: min(100% - (var(--gutter) * 2), var(--container));
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.nav__brand {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	color: var(--ink);
	display: inline-flex;
	align-items: baseline;
}
.nav__dot { color: var(--copper); }
.nav__mono { font-family: var(--mono); font-weight: 500; }

.nav__links {
	display: flex;
	gap: 2rem;
}
.nav__links a {
	font-size: 0.92rem;
	color: var(--ink-soft);
	position: relative;
	padding-block: 0.25rem;
	transition: color 0.3s var(--ease-soft);
}
.nav__links a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 1.5px;
	background: var(--copper);
	transition: width 0.35s var(--ease);
}
.nav__links a:hover { color: var(--lav-800); }
.nav__links a:hover::after { width: 100%; }
.nav__links a[aria-current="true"] { color: var(--lav-800); }
.nav__links a[aria-current="true"]::after { width: 100%; }

.nav__cta {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--paper);
	background: var(--lav-800);
	padding: 0.6rem 1.3rem;
	border-radius: 100px;
	transition: background 0.3s var(--ease-soft);
}
.nav__cta:hover { background: var(--lav-700); }

.nav__burger {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	position: relative;
}
.nav__burger span {
	position: absolute;
	left: 50%;
	width: 18px;
	height: 1.5px;
	background: var(--ink);
	transform: translateX(-50%);
	transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 24px; }
.nav__burger.is-open span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobilemenu {
	position: fixed;
	inset: 0;
	background: var(--lav-900);
	color: var(--paper);
	z-index: 850;
	padding: 6rem var(--gutter) 2.5rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	clip-path: circle(0% at calc(100% - 44px) 44px);
	visibility: hidden;
	transition: clip-path 0.6s var(--ease), visibility 0s linear 0.6s;
	pointer-events: none;
}
.mobilemenu.is-open {
	clip-path: circle(150% at calc(100% - 44px) 44px);
	visibility: visible;
	transition: clip-path 0.6s var(--ease);
	pointer-events: auto;
}
.mobilemenu__links { display: flex; flex-direction: column; gap: 0.5rem; }
.mobilemenu__links a {
	font-family: var(--serif);
	font-size: clamp(2rem, 9vw, 3rem);
	line-height: 1.15;
	display: flex;
	align-items: baseline;
	gap: 1rem;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.mobilemenu.is-open .mobilemenu__links a { opacity: 1; transform: none; }
.mobilemenu.is-open .mobilemenu__links a:nth-child(1) { transition-delay: 0.15s; }
.mobilemenu.is-open .mobilemenu__links a:nth-child(2) { transition-delay: 0.21s; }
.mobilemenu.is-open .mobilemenu__links a:nth-child(3) { transition-delay: 0.27s; }
.mobilemenu.is-open .mobilemenu__links a:nth-child(4) { transition-delay: 0.33s; }
.mobilemenu.is-open .mobilemenu__links a:nth-child(5) { transition-delay: 0.39s; }
.mobilemenu.is-open .mobilemenu__links a:nth-child(6) { transition-delay: 0.45s; }
.mobilemenu__links a span {
	font-family: var(--mono);
	font-size: 0.8rem;
	color: var(--copper-soft);
	letter-spacing: 0.1em;
}
.mobilemenu__links a:hover { color: var(--copper-soft); }
.mobilemenu__links a[aria-current="true"] { color: var(--copper-soft); }
.mobilemenu__foot {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	font-family: var(--mono);
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.7);
	border-top: 1px solid var(--line-light);
	padding-top: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding-top: clamp(7rem, 16vh, 11rem);
	padding-bottom: 3rem;
	overflow: hidden;
}
/* WebGL constellation layer, sits behind the content */
.hero__canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
	opacity: 0.8;
	/* fade the left third so the headline stays clean */
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 14%, #000 46%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 14%, #000 46%);
}
.hero__grid,
.hero__foot { position: relative; z-index: 1; }
.hero__grid {
	width: min(100% - (var(--gutter) * 2), var(--container));
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}
.hero__content .eyebrow { margin-bottom: 1.6rem; }
/* Availability pill — shown at the decision point, in the contact section */
.availability {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--lav-800);
	background: rgba(251, 248, 241, 0.94);
	border: 1px solid rgba(251, 248, 241, 0.35);
	border-radius: 100px;
	padding: 0.42rem 0.95rem 0.42rem 0.7rem;
	margin: 0 0 2rem;
	width: max-content;
	max-width: 100%;
}
.availability-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--copper);
	flex: none;
	animation: availabilityPulse 2.2s ease-in-out infinite;
}
@keyframes availabilityPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(155, 88, 40, 0.45); }
	50% { box-shadow: 0 0 0 5px rgba(155, 88, 40, 0); }
}
.hero__title {
	font-family: var(--serif);
	font-weight: 400;
	font-optical-sizing: auto;
	font-size: clamp(2.35rem, 4.9vw, 4.05rem);
	line-height: 1.04;
	letter-spacing: -0.025em;
	color: var(--ink);
	text-wrap: balance;
	margin-bottom: 1.8rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { font-style: italic; color: var(--lav-700); }
.hero__lead {
	max-width: 46ch;
	color: var(--ink-soft);
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	line-height: 1.65;
	margin-bottom: 2.2rem;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2.2rem;
}
.hero__socials {
	display: flex;
 gap: 0.7rem;
	font-family: var(--mono);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}
.hero__socials a { transition: color 0.3s; }
.hero__socials a:hover { color: var(--copper); }
.hero__socials span { color: var(--line); }

.hero__visual { position: relative; }
.hero__portrait { position: relative; }
/* <picture> is only a format wrapper: let the img keep the layout box */
.hero__portrait picture,
.case__media picture,
.about__frame picture { display: contents; }
.hero__panel {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, var(--sand-deep), var(--sand));
	border-radius: 220px 220px 24px 24px;
	transform: translate(18px, 18px);
	z-index: 0;
}
.hero__img {
	position: relative;
	z-index: 1;
	width: 100%;
	border-radius: 220px 220px 24px 24px;
	object-fit: cover;
	filter: saturate(0.78) brightness(0.94) contrast(1.02);
	transition: transform 0.8s var(--ease), filter 0.6s var(--ease-soft);
	-webkit-mask-image: radial-gradient(120% 120% at 50% 30%, #000 60%, transparent 100%);
	mask-image: radial-gradient(120% 120% at 50% 30%, #000 60%, transparent 100%);
}
@media (hover: hover) and (pointer: fine) {
	.hero__portrait:hover .hero__img {
		transform: scale(1.04);
		filter: saturate(1.2) brightness(1.03) contrast(1.06);
	}
}
.hero__badge {
	position: absolute;
	z-index: 2;
	bottom: 1.5rem;
	left: -1.5rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 1rem 1.3rem;
	display: flex;
	align-items: center;
	gap: 0.9rem;
	box-shadow: 0 20px 40px -24px rgba(27, 22, 48, 0.5);
	animation: floatBadge 5.5s ease-in-out infinite alternate;
}
@keyframes floatBadge {
	from { transform: translateY(0); }
	to { transform: translateY(-10px); }
}
.hero__badge-num {
	font-family: var(--serif);
	font-size: 2.2rem;
	line-height: 1;
	color: var(--lav-800);
}
.hero__badge-label {
	font-size: 0.78rem;
	line-height: 1.3;
	color: var(--ink-soft);
}

.hero__foot {
	width: min(100% - (var(--gutter) * 2), var(--container));
	margin: 3.5rem auto 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}
.hero__scroll {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.hero__scroll-line {
	width: 46px;
	height: 1px;
	background: var(--ink);
	position: relative;
	overflow: hidden;
}
.hero__scroll-line::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--copper);
	transform: translateX(-100%);
	animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
	0% { transform: translateX(-100%); }
	50%, 100% { transform: translateX(100%); }
}
.hero__loc {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}

/* ---------- Marquee ---------- */
.marquee {
	border-block: 1px solid var(--line);
	padding-block: 1.15rem;
	overflow: hidden;
	background: var(--paper);
}
.marquee__track {
	display: flex;
	align-items: center;
	gap: 2rem;
	white-space: nowrap;
	width: max-content;
	animation: marquee 32s linear infinite;
}
.marquee__track span {
	font-family: var(--serif);
	font-size: clamp(1.3rem, 2.6vw, 2rem);
	color: var(--lav-800);
	letter-spacing: -0.01em;
}
.marquee__track i { color: var(--copper); font-style: normal; font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Problem ---------- */
.problem { background: var(--paper); }
.problem__statement { margin: 1.4rem 0 2rem; }

/* Handoff network — Three.js canvas, text labels kept as real content on top */
.handoff {
	position: relative;
	margin-bottom: 2.5rem;
	border-radius: 20px;
	background:
		radial-gradient(120% 140% at 50% 50%, rgba(87, 74, 147, 0.08), transparent 72%),
		var(--sand);
	border: 1px solid var(--line);
	overflow: hidden;
}
.handoff__canvas {
	display: block;
	width: 100%;
	height: clamp(230px, 30vh, 320px);
}
.handoff__labels {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
	padding: clamp(1rem, 3vw, 2rem) clamp(1.1rem, 3.5vw, 2.4rem);
	pointer-events: none;
}
.handoff__label { display: flex; flex-direction: column; gap: 0.2rem; max-width: 18ch; }
.handoff__label--right { text-align: right; align-items: flex-end; margin-left: auto; }
.handoff__label--you {
	grid-column: 2;
	align-self: end;
	justify-self: center;
	text-align: center;
	align-items: center;
	max-width: 16ch;
	padding-bottom: 0.1rem;
}
.handoff__kicker {
	font-family: var(--mono);
	font-size: 0.6rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
}
.handoff__kicker--accent { color: var(--copper); }
.handoff__title {
	font-family: var(--serif);
	font-size: clamp(0.95rem, 1.5vw, 1.2rem);
	color: var(--ink);
	line-height: 1.15;
}
.handoff__label--you .handoff__title { color: var(--lav-800); font-style: italic; }
.handoff__text { font-size: 0.76rem; line-height: 1.35; color: var(--muted); }

/* Below ~1100px the labels would sit on top of the node columns,
   so they move under the canvas as a three-column caption row. */
@media (max-width: 1100px) {
	.handoff__canvas { height: clamp(190px, 26vw, 250px); }
	.handoff__labels {
		position: static;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: start;
		gap: 0.85rem;
		padding: 0.9rem clamp(0.9rem, 3vw, 1.4rem) 1.05rem;
		border-top: 1px solid var(--line);
		background: rgba(251, 248, 241, 0.55);
	}
	.handoff__label,
	.handoff__label--right,
	.handoff__label--you {
		max-width: none;
		margin: 0;
		padding: 0;
		align-self: start;
		justify-self: start;
		text-align: left;
		align-items: flex-start;
	}
	.handoff__label--right { text-align: right; align-items: flex-end; justify-self: end; }
	.handoff__label--you { grid-column: auto; justify-self: center; text-align: center; align-items: center; }
}

/* WebGL unavailable: the labels become the diagram, same caption row */
.handoff.is-static .handoff__canvas { display: none; }
.handoff.is-static .handoff__labels {
	position: static;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: 0.85rem;
	padding: 1rem clamp(1rem, 3vw, 1.4rem) 1.1rem;
}
.handoff.is-static .handoff__label,
.handoff.is-static .handoff__label--right,
.handoff.is-static .handoff__label--you {
	max-width: none;
	margin: 0;
	padding: 0;
	align-self: start;
	justify-self: start;
	text-align: left;
	align-items: flex-start;
}
.handoff.is-static .handoff__label--right { text-align: right; align-items: flex-end; justify-self: end; }
.handoff.is-static .handoff__label--you { grid-column: auto; justify-self: center; text-align: center; align-items: center; }

@media (max-width: 560px) {
	.handoff__kicker { font-size: 0.52rem; letter-spacing: 0.12em; }
	.handoff__title { font-size: 0.82rem; }
	.handoff__text { display: none; }
}

/* ---------- Work ---------- */
.problem__lead {
	font-size: clamp(1.12rem, 1.7vw, 1.35rem);
	color: var(--ink);
	line-height: 1.55;
	max-width: 58ch;
	margin-bottom: 1rem;
}
.problem__sign {
	font-family: var(--serif);
	font-style: italic;
	color: var(--lav-700) !important;
	font-size: 1.15rem !important;
	padding-left: 1.2rem;
	border-left: 2px solid var(--copper);
	max-width: 60ch;
	line-height: 1.5;
}
.work { background: var(--sand); }

.case {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}
.case--feature {
	background: var(--paper);
	border-radius: 24px;
	padding: clamp(1.5rem, 4vw, 3rem);
	box-shadow: 0 30px 70px -50px rgba(27, 22, 48, 0.5);
	margin-bottom: clamp(2rem, 4vw, 3rem);
}
.case__media {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: var(--sand-deep);
	aspect-ratio: 4 / 3;
}
.case__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease);
}
.case:hover .case__media img { transform: scale(1.05); }
.case__media--solid {
	display: grid;
	place-items: center;
	background: linear-gradient(150deg, var(--lav-800), var(--lav-700));
}
.case__monogram {
	font-family: var(--serif);
	font-size: clamp(3rem, 7vw, 5rem);
	color: rgba(255, 255, 255, 0.85);
	letter-spacing: -0.03em;
}
.case__tag {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: var(--copper);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.4rem 0.8rem;
	border-radius: 100px;
}
.case__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.2rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--copper);
	margin-bottom: 0.9rem;
}
.case__meta span { position: relative; }
.case__meta span + span::before {
	content: "";
	position: absolute;
	left: -0.65rem;
	top: 50%;
	width: 3px;
	height: 3px;
	background: currentColor;
	border-radius: 50%;
	transform: translateY(-50%);
}
.case__title {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin-bottom: 1rem;
}
.case__desc {
	color: var(--ink-soft);
	line-height: 1.65;
	max-width: 56ch;
	margin-bottom: 1.4rem;
}
.case__points {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2rem;
	padding-block: 1.4rem;
	border-block: 1px solid var(--line);
	margin-bottom: 1.2rem;
}
.case__point {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	max-width: 16ch;
}
.case__point-num {
	font-family: var(--serif);
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	line-height: 1;
	color: var(--lav-800);
}
.case__point span:last-child { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.case__note { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.case__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.5rem;
	margin-top: 1.3rem;
}
.case__more {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding-bottom: 0.3rem;
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lav-800);
	border-bottom: 1px solid rgba(87, 74, 147, 0.4);
	transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}
.case__more span { transition: transform 0.3s var(--ease); }
.case__more:hover { color: var(--copper); border-color: var(--copper); }
.case__more:hover span { transform: translateX(3px); }
.case__more::before {
	content: "";
	position: absolute;
	inset: -0.6rem -0.5rem;
}

/* Vista.Q video trigger */
.case__video {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	margin-top: 0.25rem;
	padding: 0.55rem 1.1rem 0.55rem 0.55rem;
	border: 1px solid var(--line);
	border-radius: 100px;
	background: var(--paper);
	cursor: pointer;
	transition: border-color 0.3s var(--ease-soft), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
	will-change: transform;
	font-family: var(--sans);
}
.case__video:hover {
	border-color: var(--lav-700);
	box-shadow: 0 14px 34px -18px rgba(65, 47, 107, 0.5);
}
.case__video-play {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--lav-800);
	color: #fff;
	display: grid;
	place-items: center;
	flex: none;
	transition: background 0.3s var(--ease-soft), transform 0.3s var(--ease);
}
.case__video-play svg { width: 18px; height: 18px; margin-left: 2px; }
.case__video:hover .case__video-play { background: var(--lav-700); transform: scale(1.08); }
.case__video-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; }
.case__video-text strong { font-size: 0.9rem; color: var(--ink); font-weight: 600; }
.case__video-text em { font-style: normal; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.case__video-dur { margin-left: 0.4rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--copper); border: 1px solid rgba(155, 88, 40, 0.35); padding: 0.2rem 0.5rem; border-radius: 6px; }

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 9996;
	display: grid;
	place-items: center;
	padding: 1.5rem;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
}
.lightbox.is-open {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.35s var(--ease), visibility 0s;
}
.lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(22, 16, 35, 0.78);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.lightbox__panel {
	position: relative;
	width: min(100%, 960px);
	background: var(--ink);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7);
	transform: translateY(18px) scale(0.96);
	transition: transform 0.4s var(--ease);
}
.lightbox.is-open .lightbox__panel { transform: none; }
.lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 1.1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lightbox__title {
	font-family: var(--mono);
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}
.lightbox__close {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #fff;
	transition: background 0.25s var(--ease-soft), transform 0.25s var(--ease);
}
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.12); transform: rotate(90deg); }
.lightbox__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.lightbox__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
@media (max-width: 560px) {
	.case__video-dur { display: none; }
	.case__video-text strong { font-size: 0.82rem; }
}
.case__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--lav-700);
}
.case__link span { transition: transform 0.3s var(--ease); }
.case__link:hover span { transform: translate(2px, -2px); }

.work__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(1.5rem, 3vw, 2.5rem);
}
.work__foot {
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: var(--muted);
	margin-top: 2rem;
	border-top: 1px solid var(--line);
	padding-top: 1.5rem;
}
.work__grid .case {
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border-radius: 20px;
	padding: 1.4rem;
	border: 1px solid var(--line);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.work__grid .case:hover {
	transform: translateY(-6px);
	box-shadow: 0 30px 60px -40px rgba(27, 22, 48, 0.5);
}
.work__grid .case__media { margin-bottom: 1.4rem; }
.work__grid .case__title { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 0.7rem; }
.work__grid .case__desc { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about__grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}
.about__visual { position: relative; }
.about__frame {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	box-shadow: 0 40px 80px -50px rgba(27, 22, 48, 0.6);
	transition: box-shadow 0.7s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
	.about__frame:hover {
		box-shadow: 0 50px 100px -46px rgba(65, 47, 107, 0.55), 0 0 0 1px rgba(65, 47, 107, 0.12);
	}
}
.about__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.8) brightness(0.94) contrast(1.02);
	transition: transform 0.8s var(--ease), filter 0.6s var(--ease-soft);
}
@media (hover: hover) and (pointer: fine) {
	.about__frame:hover .about__img {
		transform: scale(1.06);
		filter: saturate(1.2) brightness(1.03) contrast(1.06);
	}
	.about__frame:hover .about__frame-corner {
		border-color: rgba(255, 255, 255, 0.85);
		box-shadow: inset 0 0 70px rgba(255, 255, 255, 0.18);
	}
}
.about__frame-corner {
	position: absolute;
	inset: 1.1rem;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 10px;
	pointer-events: none;
	transition: border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
/* Fraunces-italic margin note — a human voice next to the framed portrait */
.about__caption {
	font-family: var(--serif);
	font-style: italic;
	font-size: 0.95rem;
	color: var(--muted);
	margin-top: 2.6rem;
	padding-left: 0.1rem;
}
/* Signature card — dark lavender, white ink, reads like a real signed note */
.about__sigcard {
	position: absolute;
	right: -1.5rem;
	bottom: -2rem;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
	background: linear-gradient(160deg, var(--lav-800), var(--lav-900));
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 16px;
	padding: 1.05rem 1.4rem 0.8rem;
	transform: rotate(-3.5deg);
	box-shadow: 0 34px 70px -34px rgba(20, 16, 32, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.04);
	transition: transform 0.55s var(--ease-spring), box-shadow 0.55s var(--ease);
}
.about__visual:hover .about__sigcard,
.about__sigcard:hover {
	transform: rotate(-0.5deg) translateY(-6px);
	box-shadow: 0 44px 90px -36px rgba(20, 16, 32, 0.7), 0 0 0 1px rgba(141, 127, 207, 0.35);
}
.about__sig {
	width: 148px;
	height: auto;
	/* white strokes on dark lavender — no invert filter needed */
}
.about__sigcard-rule {
	width: 44px;
	height: 2px;
	background: var(--copper-soft);
	border-radius: 1px;
}
.about__sigcard-caption {
	font-family: var(--mono);
	font-size: 0.58rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
	white-space: nowrap;
}
.about__content .eyebrow { margin-bottom: 1.3rem; }
.about__content .display { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin-bottom: 1.8rem; }
.about__text p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.1rem; max-width: 58ch; }
.about__text { margin-bottom: 2rem; }

/* ---------- Numbers ---------- */
.numbers {
	background: var(--lav-900);
	color: var(--paper);
	padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.numbers__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
}
.stat { display: flex; flex-direction: column; gap: 0.5rem; }
.stat + .stat { border-left: 1px solid var(--line-light); padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.stat__num {
	font-family: var(--serif);
	font-size: clamp(2.8rem, 6vw, 4.5rem);
	line-height: 1;
	color: var(--paper);
	letter-spacing: -0.02em;
}
.stat__label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); max-width: 20ch; line-height: 1.4; }

/* ---------- Services ---------- */
.services { background: var(--sand); }
.services__list { border-top: 1px solid var(--line); }
.service {
	display: grid;
	grid-template-columns: 5rem 1.4fr 1fr;
	gap: clamp(1rem, 3vw, 2.5rem);
	padding-block: clamp(1.6rem, 3vw, 2.4rem);
	border-bottom: 1px solid var(--line);
	align-items: start;
	position: relative;
	transition: padding-left 0.4s var(--ease);
}
.service::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--copper);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.4s var(--ease);
}
.service:hover { padding-left: 1.4rem; }
.service:hover::before { transform: scaleY(1); }
.service__num {
	font-family: var(--mono);
	font-size: 0.9rem;
	color: var(--copper);
	letter-spacing: 0.08em;
	padding-top: 0.4rem;
}
.service__title {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	letter-spacing: -0.01em;
	margin-bottom: 0.6rem;
}
.service__desc { color: var(--ink-soft); line-height: 1.65; max-width: 44ch; }
.service__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-content: start;
	padding-top: 0.3rem;
}
.service__tags li {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.02em;
	color: var(--lav-700);
	background: rgba(87, 74, 147, 0.08);
	border: 1px solid rgba(87, 74, 147, 0.18);
	padding: 0.35rem 0.7rem;
	border-radius: 100px;
	white-space: nowrap;
}

/* ---------- Process / Timeline ---------- */
.process { background: var(--paper); }
.timeline {
	position: relative;
	padding-left: clamp(1.5rem, 4vw, 3rem);
}
.timeline::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5rem;
	bottom: 0.5rem;
	width: 1.5px;
	background: linear-gradient(var(--copper), var(--line));
}
.timeline__item {
	position: relative;
	display: grid;
	grid-template-columns: 6rem 1fr;
	gap: clamp(1rem, 3vw, 2.5rem);
	padding-bottom: clamp(1.8rem, 4vw, 2.8rem);
	align-items: start;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__num {
	font-family: var(--serif);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	color: var(--lav-700);
	line-height: 1;
	position: relative;
	transition: color 0.35s var(--ease-soft);
}
.timeline__item:hover .timeline__num { color: var(--copper); }
.timeline__num::before {
	content: "";
	position: absolute;
	left: calc(clamp(1.5rem, 4vw, 3rem) * -1 - 3.25px);
	top: 0.55rem;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--copper);
	box-shadow: 0 0 0 4px var(--paper);
	transition: box-shadow 0.35s var(--ease);
}
.timeline__item:hover .timeline__num::before { box-shadow: 0 0 0 4px var(--paper), 0 0 0 8px rgba(155, 88, 40, 0.35); }
.timeline__body h3 {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(1.3rem, 2.2vw, 1.6rem);
	letter-spacing: -0.01em;
	margin-bottom: 0.5rem;
}
.timeline__body p { color: var(--ink-soft); line-height: 1.65; max-width: 58ch; }

/* ---------- Credentials ---------- */
.credentials { background: var(--sand); }
.credentials__grid {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: start;
}
.credentials__intro { position: sticky; top: 8rem; }
.credentials__intro .eyebrow { margin-bottom: 1.2rem; }
.credentials__list { display: flex; flex-direction: column; }
.cred {
	display: grid;
	grid-template-columns: 8rem 1fr;
	gap: clamp(1rem, 3vw, 2rem);
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--line);
	align-items: baseline;
}
.cred:first-child { border-top: 1px solid var(--line); }
.cred__year {
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	color: var(--copper);
	text-transform: uppercase;
}
.cred h3 {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
	margin-bottom: 0.25rem;
}
.cred p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* ---------- Insights ---------- */
.insights { background: var(--paper); }
.insights__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(1.2rem, 3vw, 1.8rem);
}
.insight {
	position: relative;
	background: var(--sand);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: clamp(1.5rem, 3vw, 2.2rem);
	display: flex;
	flex-direction: column;
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.4s;
	overflow: hidden;
}
.insight::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(150deg, var(--lav-800), var(--lav-700));
	opacity: 0;
	transition: opacity 0.45s var(--ease);
	z-index: 0;
}
.insight:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -40px rgba(27, 22, 48, 0.55); }
.insight:hover::after { opacity: 1; }
.insight > * { position: relative; z-index: 1; }
.insight__meta {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--copper);
	margin-bottom: 1rem;
	transition: color 0.4s;
}
.insight__title {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(1.3rem, 2.2vw, 1.7rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin-bottom: 0.8rem;
	transition: color 0.4s;
}
.insight__desc { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; transition: color 0.4s; }
.insight__arrow {
	position: absolute;
	top: clamp(1.5rem, 3vw, 2.2rem);
	right: clamp(1.5rem, 3vw, 2.2rem);
	color: var(--muted);
	transition: transform 0.4s var(--ease), color 0.4s;
}
.insight:hover .insight__meta { color: var(--copper-soft); }
.insight:hover .insight__title { color: var(--paper); }
.insight:hover .insight__desc { color: rgba(255, 255, 255, 0.75); }
.insight:hover .insight__arrow { color: var(--paper); transform: translate(6px, -6px) rotate(0deg); }
.insights__foot {
	margin-top: clamp(1.6rem, 3vw, 2.2rem);
	max-width: 64ch;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--muted);
}
.insights__foot a {
	color: var(--lav-700);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(87, 74, 147, 0.35);
	transition: color 0.3s var(--ease-soft), text-decoration-color 0.3s var(--ease-soft);
}
.insights__foot a:hover { color: var(--copper); text-decoration-color: var(--copper); }

/* ---------- Contact ---------- */
.contact {
	background: var(--lav-900);
	color: var(--paper);
	overflow: hidden;
	position: relative;
}
.contact::before {
	content: "";
	position: absolute;
	top: -20%;
	right: -10%;
	width: 520px;
	height: 520px;
	background: radial-gradient(circle, rgba(141, 127, 207, 0.38), transparent 70%);
	pointer-events: none;
}
.contact__inner { position: relative; z-index: 1; }
.contact .eyebrow { margin-bottom: 1.6rem; }
.contact__title {
	font-family: var(--serif);
	font-weight: 400;
	font-optical-sizing: auto;
	font-size: clamp(2rem, 4.5vw, 3.35rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	max-width: 19ch;
	text-wrap: balance;
	margin-bottom: 1.5rem;
}
.contact__title em { font-style: italic; color: var(--copper-soft); }
.contact__lead {
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	color: rgba(255, 255, 255, 0.8);
	max-width: 48ch;
	margin-bottom: 3rem;
}
.contact__email {
	display: inline-flex;
	flex-direction: column;
	gap: 0.3rem;
	margin-bottom: 3rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--line-light);
	transition: border-color 0.4s;
}
.contact__email:hover { border-color: var(--copper-soft); }
.contact__email-label {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.68);
}
.contact__email-value {
	font-family: var(--serif);
	font-size: clamp(1.4rem, 3vw, 2.4rem);
	color: var(--paper);
	letter-spacing: -0.01em;
}
.contact__details {
	display: flex;
	flex-wrap: wrap;
	gap: 2.5rem 4rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line-light);
}
.contact__detail { display: flex; flex-direction: column; gap: 0.5rem; }
.contact__detail-label {
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.68);
}
.contact__detail a { font-size: 1.15rem; color: var(--paper); transition: color 0.3s; }
.contact__detail a:hover { color: var(--copper-soft); }
.contact__detail .contact__detail-alt {
	align-self: flex-start;
	padding-bottom: 0.12rem;
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.76);
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}
.contact__detail .contact__detail-alt:hover { color: var(--copper-soft); border-color: var(--copper-soft); }
.contact__socials { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.contact__socials a { font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer {
	background: var(--lav-900);
	color: var(--paper);
	border-top: 1px solid var(--line-light);
	padding-block: 2rem;
}
.footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}
.footer__brand {
	font-family: var(--serif);
	font-weight: 600;
	font-size: 1.4rem;
}
.footer__copy { font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.footer__updated {
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.68);
}
.footer__top {
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.3s;
}
.footer__top:hover { color: var(--copper-soft); }

/* Comfortable hit areas for small text links (WCAG 2.2 target size) */
.nav__links a::before,
.footer__top::before,
.hero__scroll::before,
.case__link::before {
	content: "";
	position: absolute;
	inset: -0.55rem -0.4rem;
}
.footer__top,
.hero__scroll,
.case__link { position: relative; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(34px) scale(0.965);
	filter: blur(6px);
	transition: opacity 0.9s var(--ease), transform 1.1s var(--ease-spring), filter 0.8s var(--ease-soft);
}
[data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* Fraunces optical sizing everywhere it appears */
.display, .hero__title, .contact__title, .case__title, .service__title,
.timeline__body h3, .insight__title, .cred h3,
.case__point-num, .stat__num, .hero__badge-num, .marquee__track span,
.nav__brand, .footer__brand, .preloader__name {
	font-optical-sizing: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.nav__links { gap: 1.25rem; font-size: 0.88rem; }
	.hero__title { font-size: clamp(2.1rem, 4.1vw, 3rem); }
	.case__points { gap: 1.1rem 1.5rem; }
}

@media (max-width: 1024px) {
	.nav__links { gap: 1.1rem; }
	.case { grid-template-columns: 1fr; }
	.case--feature .case__media { aspect-ratio: 16 / 10; }
	.about__grid,
	.credentials__grid { grid-template-columns: 1fr; }
	.credentials__intro { position: static; }
	.about__sig { width: 140px; right: 0.25rem; bottom: -1rem; }
}

@media (max-width: 820px) {
	.nav__links { display: none; }
	.nav__cta { margin-left: auto; margin-right: 0.75rem; }
	.nav__burger { display: block; }
	.hero { padding-top: 6.5rem; }
	.hero__canvas { display: none; }
	.hero__grid { grid-template-columns: 1fr; }
	.hero__visual { order: -1; max-width: min(300px, 70vw); margin-inline: auto; }
	.hero__badge { left: -0.5rem; bottom: -0.75rem; }
	.hero__lead { max-width: 60ch; }
	.hero__foot { margin-top: 2rem; }
	.numbers__grid { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { border-left: none; padding-left: 0; }
	.stat:nth-child(n + 3) { padding-top: 1.5rem; }
	.service { grid-template-columns: 2.6rem 1fr; gap: clamp(0.75rem, 2.5vw, 1.5rem); }
	.service__tags { grid-column: 1 / -1; padding-top: 0.5rem; }
	.work__grid { grid-template-columns: 1fr; }
	.insights__grid { grid-template-columns: 1fr; }
	.problem__body { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.timeline__item { grid-template-columns: 1fr; gap: 0.35rem; padding-bottom: 1.4rem; }
	.timeline__num::before { display: none; }
	.cred { grid-template-columns: 1fr; gap: 0.3rem; padding-block: 1.1rem; }
	/* Phones: message and actions first, the portrait follows */
	.hero { padding-top: 5.75rem; }
	.hero__visual { order: 0; }
	.hero__content .eyebrow { margin-bottom: 1.1rem; }
	.hero__title { font-size: clamp(2.2rem, 10.4vw, 3.1rem); letter-spacing: -0.02em; margin-bottom: 1.4rem; }
	.hero__lead { margin-bottom: 1.8rem; }
	.hero__actions { gap: 0.75rem; margin-bottom: 1.8rem; }
	.hero__actions .btn { flex: 1 1 auto; justify-content: center; }
	.hero__foot { margin-top: 1.75rem; }
	.hero__socials { gap: 0.5rem; }
	.contact__details { flex-direction: column; gap: 1.6rem; }
	.contact__email-value { font-size: clamp(1.2rem, 5.6vw, 1.6rem); }
	.hero__loc { display: none; }
	.case__points { gap: 1rem 1.1rem; padding-block: 1rem; }
	.case__point-num { font-size: 1.6rem; }
	.case__video { width: 100%; justify-content: flex-start; padding-right: 0.75rem; }
	.case__video-dur { margin-left: auto; }
	.stat__num { font-size: clamp(2.2rem, 10vw, 3rem); }
	.numbers__grid { gap: 1.25rem 0.75rem; }
	.section__sub { font-size: 0.98rem; }
	.footer__inner { justify-content: center; text-align: center; }
	.about__sigcard { right: 0.25rem; bottom: -1.6rem; padding: 0.85rem 1.1rem 0.65rem; }
	.about__sig { width: 120px; }
	.about__sigcard-caption { font-size: 0.5rem; }
}

@media (max-width: 400px) {
	.hero__badge { padding: 0.7rem 0.9rem; gap: 0.55rem; }
	.hero__badge-num { font-size: 1.7rem; }
	.hero__badge-label { font-size: 0.68rem; }
	.btn { padding: 0.8rem 1.2rem; font-size: 0.88rem; }
	.eyebrow { font-size: 0.68rem; letter-spacing: 0.12em; }
	.nav__cta { padding: 0.5rem 1rem; font-size: 0.85rem; }
}

/* ---------- Case study page ---------- */
.cs-hero {
	padding-top: clamp(8rem, 18vh, 11rem);
	padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.cs-back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	transition: color 0.3s var(--ease-soft);
}
.cs-back:hover { color: var(--copper); }
.cs-title {
	font-family: var(--serif);
	font-weight: 400;
	font-optical-sizing: auto;
	font-size: clamp(3rem, 9vw, 6.2rem);
	line-height: 0.92;
	letter-spacing: -0.035em;
	color: var(--ink);
	margin: 0.6rem 0 1.2rem;
}
.cs-sub {
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	line-height: 1.55;
	color: var(--ink-soft);
	max-width: 58ch;
}
.cs-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 1.4rem 2rem;
	margin-top: clamp(2rem, 4vw, 2.8rem);
	padding-block: 1.3rem;
	border-block: 1px solid var(--line);
}
.cs-meta div { display: flex; flex-direction: column; gap: 0.35rem; }
.cs-meta dt {
	font-family: var(--mono);
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.cs-meta dd { font-size: 0.94rem; line-height: 1.45; color: var(--ink); }
.cs-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1.5rem;
	margin-top: clamp(1.6rem, 3vw, 2.2rem);
}

.cs-visual {
	margin: clamp(2rem, 5vw, 3.2rem) 0 0;
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
	background:
		radial-gradient(120% 140% at 50% 45%, rgba(87, 74, 147, 0.1), transparent 72%),
		var(--sand);
}
.cs-visual__canvas {
	display: block;
	width: 100%;
	height: clamp(250px, 36vh, 370px);
}
.cs-visual.is-static .cs-visual__canvas { display: none; }
.cs-visual__cap {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	padding: 0.85rem clamp(1rem, 3vw, 1.4rem);
	border-top: 1px solid var(--line);
	background: rgba(251, 248, 241, 0.6);
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.cs-section {
	padding-block: clamp(2.6rem, 6vw, 4.5rem);
	border-top: 1px solid var(--line);
}
.cs-section:first-of-type { border-top: none; }
.cs-prose { max-width: 66ch; }
.cs-prose p:not(.eyebrow) {
	line-height: 1.72;
	color: var(--ink-soft);
	margin-top: 1.1rem;
	max-width: 62ch;
}
.cs-h2 {
	font-family: var(--serif);
	font-weight: 400;
	font-optical-sizing: auto;
	font-size: clamp(1.65rem, 3.4vw, 2.5rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin-top: 0.7rem;
	max-width: 26ch;
}
.cs-lede {
	margin-top: 1.1rem;
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--ink-soft);
	max-width: 58ch;
}

.cs-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 1.6rem);
	margin-top: clamp(1.8rem, 4vw, 2.6rem);
}
.cs-card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: clamp(1.3rem, 2.6vw, 1.8rem);
}
.cs-card__num {
	display: block;
	font-family: var(--mono);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	color: var(--copper);
	margin-bottom: 0.9rem;
}
.cs-card h3 {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 1.2rem;
	line-height: 1.2;
	margin-bottom: 0.6rem;
}
.cs-card p { font-size: 0.92rem; line-height: 1.6; color: var(--muted); }

.cs-split {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}
.cs-figures {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 1.5rem;
	border-top: 1px solid var(--line);
}
.cs-figures li {
	padding-block: 1.15rem;
	border-bottom: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.cs-figure {
	font-family: var(--serif);
	font-size: clamp(1.8rem, 3.4vw, 2.3rem);
	line-height: 1;
	color: var(--lav-800);
	font-variant-numeric: tabular-nums;
}
.cs-figure__label {
	font-size: 0.78rem;
	line-height: 1.35;
	color: var(--muted);
	max-width: 18ch;
}

.cs-modules {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 1.5rem);
	margin-top: clamp(1.8rem, 4vw, 2.6rem);
}
.cs-module {
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: clamp(1.2rem, 2.6vw, 1.7rem);
	background: var(--paper);
}
.cs-module__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding-bottom: 0.8rem;
	margin-bottom: 0.85rem;
	border-bottom: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--copper);
}
.cs-module__head span:last-child { color: var(--muted); }
.cs-module ul { display: flex; flex-direction: column; gap: 0.4rem; }
.cs-module li {
	position: relative;
	padding-left: 1rem;
	font-size: 0.93rem;
	line-height: 1.45;
	color: var(--ink-soft);
}
.cs-module li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--lav-500);
}

.cs-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 1.6rem);
	margin-top: clamp(1.8rem, 4vw, 2.6rem);
}
.cs-kpi {
	padding-top: 1.1rem;
	border-top: 2px solid var(--copper);
}
.cs-kpi__num {
	display: block;
	font-family: var(--serif);
	font-size: clamp(1.9rem, 3.6vw, 2.6rem);
	line-height: 1;
	color: var(--lav-800);
	font-variant-numeric: tabular-nums;
}
.cs-kpi__label {
	display: block;
	margin-top: 0.45rem;
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--muted);
	max-width: 20ch;
}
.cs-note {
	margin-top: clamp(1.6rem, 3vw, 2.2rem);
	padding: 0.9rem 0 0.9rem 1.1rem;
	border-left: 2px solid var(--copper);
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--muted);
	max-width: 62ch;
}

.cs-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 1.8rem;
}

@media (max-width: 1024px) {
	.cs-split { grid-template-columns: 1fr; }
	.cs-cards { grid-template-columns: 1fr; }
	.cs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
	.cs-hero { padding-top: 7.5rem; }
	.cs-modules { grid-template-columns: 1fr; }
	.cs-visual__canvas { height: clamp(220px, 30vh, 290px); }
}

@media (max-width: 560px) {
	.cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; }
	.cs-cta__actions .btn { flex: 1 1 auto; justify-content: center; }
	.cs-actions .case__video { width: 100%; }
	.cs-figures { gap: 0 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	[data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
	.preloader { display: none; }
	.marquee__track { animation: none; }
	.cursor, .cursor-dot { display: none; }
}