/* ============================================================
   Forrest Jones — design system
   ============================================================ */

:root {
	--bg:            #0b0f14;
	--bg-alt:        #0f151d;
	--surface:       #131b25;
	--surface-2:     #18222e;
	--line:          #24313f;
	--line-soft:     #1b2530;

	--text:          #e8eef5;
	--text-muted:    #9aabbd;
	--text-dim:      #6f8296;

	--accent:        #00d3a7;
	--accent-glow:   rgba(0, 211, 167, 0.16);
	--accent-2:      #4c8dff;

	--radius:        14px;
	--radius-lg:     20px;
	--maxw:          1180px;

	--font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
	--font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

	--shadow:    0 10px 30px rgba(0, 0, 0, 0.35);
	--shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.15;
	margin: 0;
	letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }

img, video {
	max-width: 100%;
	display: block;
}

ul { margin: 0; padding: 0; list-style: none; }

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

.container {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding-inline: 24px;
}

.muted { color: var(--text-dim); font-size: 0.9rem; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 2000;
	background: var(--accent);
	color: #04211b;
	padding: 12px 20px;
	font-weight: 600;
	border-radius: 0 0 8px 0;
}
.skip-link:focus {
	left: 0;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
		color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary {
	background-color: var(--accent);
	color: #04211b;
	box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover {
	background-color: #24e9c0;
	color: #04211b;
	transform: translateY(-2px);
}

.btn-ghost {
	background-color: transparent;
	color: var(--text);
	border-color: var(--line);
}
.btn-ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

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

#header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 1000;
	background-color: rgba(11, 15, 20, 0.55);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
#header.scrolled {
	background-color: rgba(11, 15, 20, 0.92);
	border-bottom-color: var(--line-soft);
}

.header-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--text);
}
.brand-mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: linear-gradient(140deg, var(--accent) 0%, var(--accent-2) 140%);
	color: #04211b;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: -0.03em;
}
.brand-name {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.brand-name span { color: var(--accent); }

.nav ul {
	display: flex;
	align-items: center;
	gap: 6px;
}
.nav ul a {
	display: block;
	padding: 10px 14px;
	border-radius: 999px;
	color: var(--text-muted);
	font-size: 0.92rem;
	font-weight: 500;
	transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav ul a:hover,
.nav ul a.active {
	color: var(--text);
	background-color: rgba(255, 255, 255, 0.05);
}
.nav ul a.nav-cta {
	background-color: var(--accent);
	color: #04211b;
	font-weight: 600;
	margin-left: 6px;
}
.nav ul a.nav-cta:hover { background-color: #24e9c0; color: #04211b; }

.hamburger {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background-color: transparent;
	cursor: pointer;
	position: relative;
	z-index: 1200;
}
.hamburger .bar,
.hamburger .bar::before,
.hamburger .bar::after {
	position: absolute;
	left: 50%;
	width: 20px;
	height: 2px;
	background-color: var(--text);
	border-radius: 2px;
	transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.hamburger .bar {
	top: 50%;
	transform: translate(-50%, -50%);
}
.hamburger .bar::before,
.hamburger .bar::after {
	content: '';
	left: 0;
}
.hamburger .bar::before { top: -7px; }
.hamburger .bar::after  { top: 7px; }

.hamburger[aria-expanded='true'] .bar { background-color: transparent; }
.hamburger[aria-expanded='true'] .bar::before { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded='true'] .bar::after  { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
	height: 2px;
	width: 0%;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	transition: width 0.1s linear;
}

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

#hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: 140px 0 110px;
	overflow: hidden;
}
.hero-bg {
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(900px 500px at 12% 10%, rgba(0, 211, 167, 0.14), transparent 60%),
		radial-gradient(800px 480px at 88% 30%, rgba(76, 141, 255, 0.12), transparent 60%),
		linear-gradient(180deg, rgba(11, 15, 20, 0.82) 0%, rgba(11, 15, 20, 0.96) 70%, var(--bg) 100%),
		url('./img/hero-bg.png');
	background-size: cover;
	background-position: center;
	z-index: 0;
}
.hero { position: relative; z-index: 1; }

.eyebrow {
	font-family: var(--font-display);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 18px;
}

#hero h1 {
	font-size: clamp(2.5rem, 7vw, 4.6rem);
	font-weight: 700;
	max-width: 17ch;
	margin-bottom: 20px;
}
#hero h1 .accent {
	background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-roles {
	font-family: var(--font-display);
	font-size: clamp(1rem, 2.4vw, 1.25rem);
	color: var(--text-muted);
	margin-bottom: 22px;
	min-height: 1.8em;
}
.role-static { color: var(--text-dim); margin-right: 6px; }
.role { color: var(--text); font-weight: 600; }
.caret {
	display: inline-block;
	width: 2px;
	height: 1.05em;
	margin-left: 3px;
	background-color: var(--accent);
	vertical-align: text-bottom;
	animation: blink 1.05s steps(2, start) infinite;
}

.lede {
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	color: var(--text-muted);
	max-width: 60ch;
	margin-bottom: 36px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 56px;
}

.stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	background-color: var(--line-soft);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	overflow: hidden;
	max-width: 720px;
}
.stat {
	background-color: rgba(19, 27, 37, 0.72);
	padding: 20px 22px;
}
.stat dt {
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-bottom: 6px;
}
.stat dd {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--text);
}

.scroll-hint {
	position: absolute;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	width: 26px;
	height: 42px;
	border: 2px solid var(--line);
	border-radius: 999px;
	z-index: 2;
}
.scroll-hint span {
	position: absolute;
	left: 50%;
	top: 9px;
	width: 4px;
	height: 7px;
	margin-left: -2px;
	border-radius: 2px;
	background-color: var(--accent);
	animation: scroll_hint 1.8s var(--ease) infinite;
}

/* ---------- Section shell ---------- */

.section { padding: 110px 0; }
.section-alt {
	background-color: var(--bg-alt);
	border-block: 1px solid var(--line-soft);
}

.section-head {
	max-width: 62ch;
	margin: 0 auto 56px;
	text-align: center;
}
.section-head-left {
	margin-inline: 0;
	text-align: left;
}

.section-title {
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 700;
	margin-bottom: 16px;
}
.section-title span { color: var(--accent); }

.section-sub {
	color: var(--text-muted);
	font-size: 1.02rem;
}

/* ---------- Now ---------- */

.now-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
.now-card {
	position: relative;
	background-color: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	padding: 32px 28px;
	transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
		box-shadow 0.35s var(--ease);
}
.now-card:hover {
	transform: translateY(-4px);
	border-color: var(--line);
	box-shadow: var(--shadow);
}
.now-tag {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--accent);
	margin-bottom: 14px;
}
.now-card h3 {
	font-size: 1.3rem;
	margin-bottom: 12px;
}
.now-card p { color: var(--text-muted); }

.stack {
	margin-top: 56px;
	padding: 28px;
	background-color: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
}
.stack-label {
	font-family: var(--font-display);
	font-size: 0.74rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-bottom: 16px;
}
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}
.chips li {
	padding: 7px 15px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.85rem;
	color: var(--text-muted);
	background-color: var(--surface-2);
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chips li:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Portfolio (current CFO seats) ---------- */

.portfolio-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}
.portfolio-card {
	background-color: var(--surface);
	border: 1px solid var(--line-soft);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
	padding: 24px 22px;
	transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
		box-shadow 0.3s var(--ease);
}
.portfolio-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}
.portfolio-card.accent-card {
	border-left-color: var(--accent-2);
	background-color: var(--surface-2);
}
.portfolio-card h3 {
	font-size: 1.15rem;
	margin-bottom: 6px;
}
.portfolio-role {
	color: var(--accent);
	font-size: 0.88rem;
	font-weight: 600;
	margin-bottom: 2px;
}
.portfolio-meta {
	color: var(--text-dim);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	margin-bottom: 10px;
}
.portfolio-card p:last-child {
	color: var(--text-muted);
	font-size: 0.93rem;
	margin: 0;
}
.portfolio-card strong { color: var(--text); }
.portfolio-card p.portfolio-link {
	margin-top: 12px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--accent);
}
.portfolio-link a:hover { color: var(--text); }
.timeline-org a { color: inherit; }
.timeline-org a:hover { color: var(--accent); }

.portfolio-note {
	margin: 22px 0 0;
	padding: 18px 22px;
	border: 1px solid var(--line-soft);
	border-left: 3px solid var(--accent-2);
	border-radius: var(--radius);
	background-color: var(--surface-2);
	color: var(--text-muted);
	font-size: 0.95rem;
}
.portfolio-note strong { color: var(--text); }

.now-strip {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: 44px;
	padding: 30px 26px;
	background-color: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
}
.now-strip-item h3 {
	font-size: 1.05rem;
	margin-bottom: 8px;
	color: var(--accent);
}
.now-strip-item p {
	color: var(--text-muted);
	font-size: 0.94rem;
	margin: 0;
}

/* ---------- Timeline ---------- */

.timeline {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0 0 0 26px;
	counter-reset: none;
}
.timeline::before {
	content: '';
	position: absolute;
	left: 5px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
}
.timeline-item {
	position: relative;
	padding: 0 0 36px 0;
}
.timeline-item::before {
	content: '';
	position: absolute;
	left: -26px;
	top: 7px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: var(--bg);
	border: 2px solid var(--accent);
}
.timeline-date {
	font-family: var(--font-display);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 6px;
}
.timeline-item h3 {
	font-size: 1.2rem;
	margin-bottom: 4px;
}
.timeline-org {
	color: var(--text-muted);
	font-size: 0.97rem;
	font-weight: 500;
	margin-bottom: 12px;
}
.timeline-item ul {
	display: grid;
	gap: 8px;
}
.timeline-item ul li {
	position: relative;
	padding-left: 18px;
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}
.timeline-item ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 6px;
	height: 2px;
	background-color: var(--accent);
}
.timeline-item ul li strong { color: var(--text); font-weight: 600; }

/* ---------- Credentials ---------- */

.credentials {
	margin-top: 20px;
	padding: 34px 28px;
	background-color: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
}
.credentials-title {
	font-size: 1.2rem;
	margin-bottom: 24px;
	text-align: center;
}
.credential-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
}
.credential-name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1rem;
	color: var(--text);
	margin-bottom: 3px;
}
.credential-org {
	color: var(--accent);
	font-size: 0.85rem;
	margin-bottom: 7px;
}
.credential p:last-child {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin: 0;
}
.credentials-cta {
	margin: 30px 0 0;
	text-align: center;
}

.stack-label-2 { margin-top: 26px; }

/* ---------- Services ---------- */

.service-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
.service-card {
	background-color: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	padding: 32px 28px;
	transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
		box-shadow 0.35s var(--ease);
}
.service-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent);
	box-shadow: var(--shadow);
}
.service-icon {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	margin-bottom: 20px;
	border-radius: 13px;
	background-color: rgba(0, 211, 167, 0.1);
	border: 1px solid rgba(0, 211, 167, 0.22);
	color: var(--accent);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 {
	font-size: 1.22rem;
	margin-bottom: 12px;
}
.service-card p {
	color: var(--text-muted);
	font-size: 0.97rem;
}

/* ---------- Projects ---------- */

.project-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
}
.project-card {
	display: flex;
	flex-direction: column;
	background-color: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
		box-shadow 0.35s var(--ease);
}
.project-card:hover {
	transform: translateY(-5px);
	border-color: var(--line);
	box-shadow: var(--shadow-lg);
}
.project-media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	/* Placeholder shown until the lazy-loaded media arrives. */
	background-color: var(--surface-2);
	background-image:
		radial-gradient(420px 220px at 25% 20%, rgba(0, 211, 167, 0.16), transparent 70%),
		radial-gradient(420px 220px at 80% 80%, rgba(76, 141, 255, 0.14), transparent 70%);
}
.project-media img,
.project-media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}
.project-card:hover .project-media img,
.project-card:hover .project-media video {
	transform: scale(1.05);
}
.project-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 15, 20, 0.1) 0%, rgba(11, 15, 20, 0.55) 100%);
	pointer-events: none;
}
.project-body { padding: 28px; }
.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}
.project-tags li {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	background-color: rgba(0, 211, 167, 0.08);
	border: 1px solid rgba(0, 211, 167, 0.2);
	border-radius: 999px;
	padding: 4px 11px;
}
.project-body h3 {
	font-size: 1.55rem;
	margin-bottom: 6px;
}
.project-kicker {
	color: var(--accent);
	font-size: 0.95rem;
	font-weight: 500;
	margin-bottom: 12px;
}
.project-body > p:not(.project-kicker) {
	color: var(--text-muted);
	font-size: 0.97rem;
}
.project-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	/* Padding keeps this a comfortable touch target on phones. */
	padding: 11px 0;
	min-height: 44px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.92rem;
}
.project-link span { transition: transform 0.25s var(--ease); display: inline-block; }
.project-link:hover span { transform: translateX(5px); }

.project-more {
	margin-top: 44px;
	text-align: center;
}

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

.about {
	display: grid;
	grid-template-columns: 1fr;
	gap: 44px;
	align-items: start;
}
.about-media {
	position: relative;
	width: min(280px, 70%);
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--line);
}
.about-media::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: var(--radius-lg);
	box-shadow: inset 0 0 0 1px rgba(0, 211, 167, 0.25);
	pointer-events: none;
}
.about-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.about-body p { color: var(--text-muted); }
.about-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

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

.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
.contact-card {
	background-color: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	padding: 30px 26px;
	transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-card:hover {
	border-color: var(--accent);
	transform: translateY(-3px);
}
.contact-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 18px;
	border-radius: 12px;
	background-color: rgba(76, 141, 255, 0.1);
	border: 1px solid rgba(76, 141, 255, 0.24);
	color: var(--accent-2);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-card h3 {
	font-size: 1.15rem;
	margin-bottom: 12px;
}
.contact-card p {
	margin-bottom: 6px;
	font-size: 0.95rem;
	word-break: break-word;
}
.contact-card a {
	display: inline-block;
	padding: 6px 0;
	min-height: 32px;
	color: var(--text);
}
.contact-card a:hover { color: var(--accent); }
.contact-card .btn { min-height: 44px; padding-block: 12px; }

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}
.copy-btn.copied {
	border-color: var(--accent);
	color: var(--accent);
}

.contact-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 44px;
}
.social-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text-muted);
	font-size: 0.92rem;
	font-weight: 500;
	transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
		transform 0.25s var(--ease);
}
.social-link svg { width: 19px; height: 19px; }
.social-link:hover {
	color: var(--accent);
	border-color: var(--accent);
	transform: translateY(-2px);
}

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

#footer {
	background-color: var(--bg-alt);
	border-top: 1px solid var(--line-soft);
	padding: 56px 0 40px;
}
.footer-inner {
	display: flex;
	flex-direction: column;
	gap: 26px;
	align-items: center;
	text-align: center;
}
.footer-brand {
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 6px;
}
.footer-brand span { color: var(--accent); }
.footer-entity {
	color: var(--text-dim);
	font-size: 0.82rem;
	margin: 6px 0 0;
}

.footer-tag {
	color: var(--text-dim);
	font-size: 0.92rem;
	margin: 0;
}
.footer-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
}
.footer-nav a {
	display: inline-block;
	padding: 6px 0;
	color: var(--text-muted);
	font-size: 0.92rem;
}
.footer-nav a:hover { color: var(--accent); }
.footer-legal {
	color: var(--text-dim);
	font-size: 0.85rem;
	margin: 0;
}

/* ---------- Back to top ---------- */

.to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 900;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background-color: rgba(19, 27, 37, 0.9);
	backdrop-filter: blur(8px);
	color: var(--text);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
		visibility 0.3s var(--ease), border-color 0.25s var(--ease);
}
.to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
	will-change: opacity, transform;
}
.js .reveal.in-view {
	opacity: 1;
	transform: none;
	will-change: auto;
}

/* ---------- Keyframes ---------- */

@keyframes blink {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0; }
}
@keyframes scroll_hint {
	0%       { transform: translateY(0);    opacity: 1; }
	70%      { transform: translateY(16px); opacity: 0; }
	100%     { transform: translateY(16px); opacity: 0; }
}

/* ---------- Responsive ---------- */

/* ---------- Results / case studies ---------- */

.results-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
}
.result-card {
	background-color: var(--surface);
	border: 1px solid var(--line-soft);
	border-top: 3px solid var(--accent);
	border-radius: var(--radius-lg);
	padding: 30px 28px;
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.result-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}
.result-meta {
	color: var(--text-dim);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 10px;
}
.result-card h3 {
	font-size: 1.3rem;
	margin-bottom: 18px;
}
.result-body {
	margin: 0;
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 10px 18px;
}
.result-body dt {
	color: var(--accent);
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding-top: 2px;
}
.result-body dd {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.94rem;
}
.result-body strong { color: var(--text); }
.result-link {
	margin: 18px 0 0;
	font-size: 0.9rem;
	font-weight: 600;
}
.result-link a:hover { color: var(--text); }
.results-note {
	margin: 28px 0 0;
	text-align: center;
	color: var(--text-dim);
	font-size: 0.85rem;
}

/* ---------- Testimonials ---------- */

.testimonial-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
}
.testimonial {
	margin: 0;
	background-color: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
	padding: 30px 28px;
}
.testimonial blockquote {
	margin: 0 0 18px;
	position: relative;
	padding-left: 22px;
	border-left: 3px solid var(--accent);
}
.testimonial blockquote p {
	margin: 0;
	font-size: 1.02rem;
	color: var(--text);
}
.testimonial figcaption {
	font-size: 0.9rem;
	color: var(--text-muted);
}
.testimonial figcaption strong {
	display: block;
	color: var(--text);
	font-family: var(--font-display);
}

/* ---------- Contact: booking + form ---------- */

.contact-book {
	margin: 22px 0 0;
}
.contact-form {
	margin-top: 26px;
	padding: 34px 28px;
	background-color: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-lg);
}
.contact-form-title {
	font-size: 1.2rem;
	margin-bottom: 22px;
}
.form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
.field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.field span {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 0.95rem;
	color: var(--text);
	background-color: var(--bg);
	border: 1px solid var(--line);
	border-radius: 10px;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aabbd' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-glow);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
	border-color: #ff6b6b;
}
.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 22px;
}
.form-status {
	margin: 0;
	font-size: 0.9rem;
	color: var(--text-muted);
}
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff6b6b; }

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

.footer-disclaimer {
	margin: 36px auto 0;
	max-width: 86ch;
	padding-top: 24px;
	border-top: 1px solid var(--line-soft);
	color: var(--text-dim);
	font-size: 0.78rem;
	line-height: 1.6;
	text-align: center;
}

@media (max-width: 900px) {
	.hamburger { display: block; }

	.nav ul {
		position: fixed;
		inset: 0;
		flex-direction: column;
		justify-content: center;
		gap: 10px;
		background-color: rgba(11, 15, 20, 0.98);
		backdrop-filter: blur(10px);
		transform: translateX(100%);
		transition: transform 0.4s var(--ease);
		z-index: 1100;
	}
	.nav ul.open { transform: translateX(0); }
	.nav ul a {
		font-family: var(--font-display);
		font-size: 1.5rem;
		padding: 14px 28px;
	}
	body.nav-open { overflow: hidden; }
}

@media (min-width: 620px) {
	.now-grid,
	.service-grid,
	.project-grid,
	.contact-grid,
	.portfolio-grid,
	.now-strip,
	.credential-grid,
	.results-grid,
	.form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.field-wide { grid-column: 1 / -1; }
	.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-inner {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
		flex-wrap: wrap;
	}
}

@media (min-width: 960px) {
	.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	/* Flex rather than grid so an incomplete final row centres instead of
	   stranding a lone card against the left edge. */
	.portfolio-grid {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	.portfolio-grid > .portfolio-card {
		flex: 0 1 calc((100% - 2 * 18px) / 3);
	}
	.now-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.testimonial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.timeline { padding-left: 34px; }
	.about {
		grid-template-columns: 320px 1fr;
		gap: 60px;
		align-items: center;
	}
	.about-media { width: 100%; margin: 0; }
}

/* ---------- Motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	.js .reveal { opacity: 1; transform: none; }
}

@media print {
	#header, .to-top, .scroll-hint, .hero-bg, .project-media, .contact-form, .contact-book { display: none !important; }
	body { background: #fff; color: #000; }
	/* Never print a half-revealed page. */
	.js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Footer stamp: flips to the original artwork ---------- */

.footer-stamp {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 48px;
}

.stamp {
	width: 128px;
	height: 128px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	perspective: 900px;
	border-radius: 10px;
}
.stamp-inner {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.9s var(--ease);
}
.stamp[aria-pressed='true'] .stamp-inner {
	transform: rotateY(180deg);
}
.stamp-face {
	position: absolute;
	inset: 0;
	display: block;
	padding: 5px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background-color: var(--surface);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	overflow: hidden;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.stamp-face img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 5px;
}
.stamp-back {
	transform: rotateY(180deg);
	border-color: rgba(0, 211, 167, 0.5);
	box-shadow: 0 0 26px var(--accent-glow);
}
.stamp:hover .stamp-face,
.stamp:focus-visible .stamp-face {
	border-color: var(--accent);
	box-shadow: 0 0 24px var(--accent-glow);
}

/* The reveal flash */
.stamp.flashing .stamp-inner::after {
	content: '';
	position: absolute;
	inset: -12px;
	border-radius: 14px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, var(--accent-glow) 45%, transparent 72%);
	animation: stamp_flash 0.85s var(--ease) forwards;
	pointer-events: none;
	z-index: 3;
}

.stamp-caption {
	color: var(--text-dim);
	font-size: 0.82rem;
	letter-spacing: 0.05em;
	margin: 0;
	text-align: center;
}
.stamp-caption span { color: var(--accent); }

.stamp-zoom {
	padding: 9px 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background-color: transparent;
	color: var(--text-muted);
	font-family: var(--font-body);
	font-size: 0.82rem;
	cursor: pointer;
	transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.stamp-zoom:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Lightbox ---------- */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background-color: rgba(6, 9, 12, 0.94);
	backdrop-filter: blur(6px);
	animation: fade_in 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
	margin: 0;
	max-width: min(760px, 100%);
	text-align: center;
	animation: lightbox_in 0.45s var(--ease);
}
.lightbox-figure img {
	width: 100%;
	height: auto;
	max-height: 78vh;
	object-fit: contain;
	border-radius: var(--radius);
	border: 1px solid var(--line);
}
.lightbox-figure figcaption {
	margin-top: 16px;
	color: var(--text-muted);
	font-size: 0.92rem;
	font-style: italic;
}
.lightbox-close {
	position: absolute;
	top: 18px;
	right: 20px;
	width: 46px;
	height: 46px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background-color: var(--surface);
	color: var(--text);
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

@keyframes stamp_flash {
	0%   { opacity: 0; transform: scale(0.7); }
	35%  { opacity: 1; transform: scale(1.05); }
	100% { opacity: 0; transform: scale(1.35); }
}
@keyframes fade_in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightbox_in {
	from { opacity: 0; transform: scale(0.94) translateY(10px); }
	to   { opacity: 1; transform: none; }
}
