/* ==========================================================================
   JayTech theme styles — warm editorial B2B look
   ========================================================================== */

:root {
	--accent: #12b8d6;
	--accent-2: #f25ccf;
	--accent-3: #9a74ff;
	--dark: #16140f;
	--bg: #f2efe9;
	--surface: #f7f5f1;
	--text: rgba(22, 20, 15, .68);
	--muted: rgba(22, 20, 15, .55);
	--line: rgba(22, 20, 15, .14);
	--line-strong: rgba(22, 20, 15, .28);
	--grad: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
	--radius: 14px;
	--font: "Geist", "Aeonik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "Geist Mono", ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, monospace;
	--container: 1440px;
	--header-h: 69px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--text);
	background-color: var(--bg);
	background-image:
		radial-gradient(ellipse 60% 50% at 0% 10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
		radial-gradient(ellipse 55% 50% at 100% 15%, color-mix(in srgb, var(--accent-2) 8%, transparent), transparent 70%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dark); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { opacity: .7; }

h1, h2, h3, h4 {
	color: var(--dark);
	font-weight: 500;
	line-height: 1.06;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 3.2vw, 2.75rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 2.5vw, 2.15rem); line-height: 1.1; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.1; }
p { margin: 0 0 1em; }
strong { font-weight: 500; color: var(--dark); }

.grad-text {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.screen-reader-text,
.hp-field {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute; left: -999px; top: 8px; z-index: 1000;
	background: var(--dark); color: var(--bg); padding: 10px 16px;
}
.skip-link:focus { left: 8px; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 900px; }

.section { padding: 96px 0; }
.section-alt { background: transparent; }

/* Mono labels -------------------------------------------------------------- */
.eyebrow,
.mono {
	font-family: var(--mono);
	font-size: 11.5px;
	font-weight: 400;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.eyebrow {
	display: block;
	margin-bottom: 18px;
	color: var(--accent);
}

/* Auto-number section labels on the home page: "01 / WHAT WE DO". */
.home .site-main { counter-reset: jtsec; }
.home .section-head .eyebrow::before {
	counter-increment: jtsec;
	content: counter(jtsec, decimal-leading-zero) " / ";
}

/* Hero eyebrow with a gradient dash. */
.hero .eyebrow,
.page-hero .eyebrow { color: var(--muted); display: flex; align-items: center; gap: 14px; }
.hero .eyebrow::before,
.page-hero .eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--grad); flex-shrink: 0; }
.page-hero-center .eyebrow { justify-content: center; }

/* Section heading: title left, intro right ---------------------------------- */
.section-head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 64px;
	margin-bottom: 56px;
	text-align: left;
}
.section-head > .eyebrow,
.section-head > h2 { grid-column: 1; }
.section-head > h2 { margin: 0; max-width: 560px; }
.section-head > p {
	grid-column: 2; grid-row: 1 / span 2; align-self: end;
	margin: 0; font-size: 1.12rem; color: var(--text);
}
.section-head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head-split > div { max-width: 640px; }
.section-head-split p { margin: 14px 0 0; font-size: 1.1rem; }

.lead { font-size: 1.14rem; color: var(--text); max-width: 560px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	font-family: var(--mono); font-size: 12.5px; font-weight: 500;
	letter-spacing: .16em; text-transform: uppercase; line-height: 1;
	padding: 18px 26px; border: 1px solid var(--dark); border-radius: 0;
	cursor: pointer; transition: background .2s, color .2s, border-color .2s;
	text-align: center;
}
.btn .icon { width: 15px; height: 15px; transition: transform .2s; }
.btn:hover { opacity: 1; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--dark); color: var(--bg); }
.btn-primary:hover { background: transparent; color: var(--dark); }
.btn-outline { background: transparent; color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--bg); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-sm { padding: 15px 22px; }
.btn-lg { padding: 20px 28px; }
.btn-group { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.btn-group-center { justify-content: center; }

.text-link {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--mono); font-size: 12px; font-weight: 500;
	letter-spacing: .16em; text-transform: uppercase; color: var(--dark); white-space: nowrap;
}
.text-link .icon { width: 14px; height: 14px; transition: transform .2s; }
.text-link:hover .icon,
.card:hover .text-link .icon { transform: translateX(4px); }

/* Top bar ------------------------------------------------------------------ */
.topbar { background: var(--dark); color: rgba(255, 255, 255, .7); font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.topbar p { margin: 0; }
.topbar a { color: #fff; font-weight: 400; }
.topbar-contact { display: flex; gap: 24px; flex-shrink: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 7px; }
.topbar-contact .icon { width: 13px; height: 13px; }

/* Header ------------------------------------------------------------------- */
/*
 * Header: transparent at the top so the hero (photo + gradient) runs behind it,
 * solid + blurred once the page is scrolled. The negative margin lets the first
 * section slide underneath the sticky header; heroes add --header-h to their top padding.
 */
.site-header {
	position: sticky; top: 0; z-index: 100;
	margin-bottom: calc(-1 * var(--header-h));
	background: transparent;
	transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled,
.menu-open .site-header {
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
	box-shadow: 0 1px 0 var(--line);
}
.menu-open .site-header { background: var(--bg); }
/* Keep the header button readable while it sits over a (possibly dark) hero photo. */
.admin-bar .site-header { top: 32px; }
/* 3 columns: logo (left) | menu (exact centre) | button (right). */
.header-inner {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	gap: 24px; min-height: var(--header-h);
}

/* Header button: transparent with a thin ink border. */
.header-cta {
	background: transparent; color: var(--dark); border: 1px solid var(--dark);
	font-size: 12px; letter-spacing: .12em; padding: 14px 24px; height: 48px;
}
.header-cta .icon { width: 14px; height: 14px; }

.site-brand { flex-shrink: 0; justify-self: start; }
.site-brand .custom-logo { max-height: 36px; width: auto; }
.text-logo {
	display: inline-flex; align-items: center; gap: 9px;
	font-size: 1.45rem; font-weight: 500; color: var(--dark); letter-spacing: -0.03em;
}
.text-logo:hover { opacity: 1; }
.logo-mark {
	display: inline-grid; place-items: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--dark); color: var(--bg); font-size: .95rem; font-weight: 600;
	position: relative;
}
.logo-mark::after {
	content: ""; position: absolute; right: -3px; bottom: -1px; width: 10px; height: 10px;
	border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 2px var(--bg);
}

.main-nav { justify-self: center; }
.main-nav .nav-menu { justify-content: center; }
.nav-menu, .nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu { display: flex; align-items: center; gap: 36px; }
.nav-menu > li { position: relative; display: flex; align-items: center; }
.nav-menu a {
	display: block; padding: 12px 0;
	font-family: var(--mono); font-size: 11px; font-weight: 400; line-height: 1;
	letter-spacing: .18em; text-transform: uppercase; color: rgba(22, 20, 15, .62);
}
.nav-menu a:hover { opacity: 1; color: var(--dark); }
/* Current page is darker; the Home link and "#section" custom links stay muted (like the reference). */
.nav-menu .current-menu-item:not(.menu-item-home):not(.menu-item-type-custom) > a,
.nav-menu .current-menu-ancestor > a { color: var(--dark); }

.submenu-toggle {
	display: inline-grid; place-items: center;
	background: none; border: 0; padding: 4px 0 4px 6px; margin: 0; color: rgba(22, 20, 15, .62); cursor: pointer;
}
.submenu-toggle .icon { width: 9px; height: 9px; stroke-width: 2.5; transition: transform .2s; }

.nav-menu .sub-menu {
	position: absolute; top: calc(100% + 14px); left: 0; min-width: 300px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: 0 24px 60px rgba(22, 20, 15, .12); padding: 10px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-menu .sub-menu a {
	padding: 12px 14px; border-radius: 8px;
	font-family: var(--font); font-size: 1rem; letter-spacing: 0; text-transform: none; font-weight: 400;
}
.nav-menu .sub-menu a:hover { background: rgba(22, 20, 15, .05); opacity: 1; }
.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu > li:hover > .submenu-toggle .icon { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 12px; justify-self: end; }
.nav-cta-mobile { display: none; }

.menu-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 44px; height: 44px; padding: 11px;
	background: transparent; border: 1px solid var(--dark); border-radius: 0; cursor: pointer;
}
.menu-toggle .bar { display: block; height: 1.5px; background: var(--dark); transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle .bar:nth-child(2) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-toggle .bar:nth-child(3) { opacity: 0; }
.menu-open .menu-toggle .bar:nth-child(4) { transform: translateY(-6.5px) rotate(-45deg); }

/* Hero --------------------------------------------------------------------- */
.hero, .page-hero { padding: calc(var(--header-h) + 80px) 0 96px; position: relative; overflow: hidden; }
body { overflow-x: clip; }
.hero { padding: calc(var(--header-h) + 56px) 0 72px; min-height: calc(600px + var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.hero > .container { width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.hero .hero-content { max-width: 560px; }
.hero h1 { max-width: 540px; }
.hero h1, .page-hero h1 { margin-bottom: 24px; }
.hero-media img { width: 100%; border-radius: var(--radius); }

/* Home hero visual: bleeds to the right screen edge (illustration or uploaded photo). */
.hero-media.is-bleed {
	align-self: stretch;
	margin: calc(-1 * (var(--header-h) + 56px)) calc(-1 * max(32px, (100vw - var(--container)) / 2 + 32px)) -72px 0;
	display: flex; align-items: center; justify-content: flex-end;
}
.hero-media.is-bleed img { border-radius: 0; width: 100%; max-width: 760px; }

/* Uploaded hero photo: bleeds to the right screen edge and fades into the page on the left. */
.hero-media.is-photo {
	align-self: stretch;
	margin: calc(-1 * (var(--header-h) + 80px)) calc(-1 * max(32px, (100vw - var(--container)) / 2 + 32px)) -80px 0;
	position: relative;
}
/* Soft fade at the top of hero photos so the transparent header always sits on a light background. */
@media (min-width: 961px) {
	.hero-media.is-photo::before {
		content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1; pointer-events: none;
		height: calc(var(--header-h) + 160px);
		background: linear-gradient(180deg,
			var(--bg) 0%,
			color-mix(in srgb, var(--bg) 78%, transparent) calc(var(--header-h) * .6),
			color-mix(in srgb, var(--bg) 30%, transparent) 55%,
			transparent 100%);
	}
}

/* Home hero photo: pinned to the right half, from the very top (behind the transparent header) to the bottom. */
.hero .hero-media.is-photo { position: absolute; top: 0; right: 0; bottom: 0; left: 48%; margin: 0; display: block; }
.hero .hero-media.is-photo img { height: 100%; min-height: 0; }
.hero-media.is-photo img {
	max-width: none;
	width: 100%; height: 100%; min-height: 560px; object-fit: cover; border-radius: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 14px; align-items: baseline; font-size: .95rem; font-weight: 400; color: var(--dark); }
.check-list .icon { display: none; }
.check-list li::before {
	content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
	background: var(--accent-2); transform: translateY(-2px);
}
.check-list li:nth-child(3n+1)::before { background: var(--accent-3); }
.check-list li:nth-child(3n+2)::before { background: var(--accent-2); }
.check-list li:nth-child(3n)::before { background: var(--accent); }

.page-hero-center { text-align: center; padding: calc(var(--header-h) + 100px) 0 80px; }
.page-hero-center .lead { margin: 0 auto; }
.page-hero-split { padding: calc(var(--header-h) + 80px) 0 80px; }

/* Bordered grids (shared cell borders inside one rounded frame) ------------- */
.card-grid,
.results-grid,
.testimonial-grid,
.process-grid,
.stats-grid,
.mv-grid,
.related-grid,
.post-grid {
	display: grid;
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

/* Results ------------------------------------------------------------------ */
.results-grid { grid-template-columns: repeat(4, 1fr); }
.result-card { background: var(--surface); padding: 30px 28px 30px; display: flex; flex-direction: column; }
.result-number {
	display: block; font-size: clamp(2.4rem, 3.4vw, 2.9rem); font-weight: 400; line-height: 1;
	letter-spacing: -0.03em; margin: 34px 0 14px;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-card:nth-child(4n+1) .result-number { background-image: linear-gradient(90deg, var(--accent), var(--accent)); }
.result-card:nth-child(4n+2) .result-number { background-image: linear-gradient(90deg, var(--accent-2), var(--accent-2)); }
.result-card:nth-child(4n+3) .result-number { background-image: linear-gradient(90deg, var(--accent-3), var(--accent-3)); }
.result-card:nth-child(4n) .result-number { background-image: linear-gradient(90deg, var(--accent), var(--accent-3)); }
.result-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.result-card p { color: var(--text); font-size: .95rem; margin: 0; }

/* Logos -------------------------------------------------------------------- */
.logos-section { padding: 20px 0 40px; }
.logos-caption {
	order: -1; text-align: center; margin: 0 0 26px;
	font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.logos-section .container { display: flex; flex-direction: column; }
.logo-marquee {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logo-track { display: flex; width: max-content; animation: jt-marquee 45s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item { flex: 0 0 auto; display: grid; place-items: center; width: 200px; height: 64px; padding: 0 28px; }
.logo-item img { max-height: 34px; width: auto; filter: grayscale(1); opacity: .55; transition: opacity .2s, filter .2s; }
.logo-item:hover img { filter: none; opacity: 1; }
@keyframes jt-marquee { to { transform: translateX(-50%); } }

/* Cards -------------------------------------------------------------------- */
.card-grid { grid-template-columns: repeat(3, 1fr); }
.cards-4 .card-grid { grid-template-columns: repeat(4, 1fr); }
.card {
	position: relative; display: flex; flex-direction: column;
	background: var(--bg); padding: 30px 30px 32px; color: var(--text);
	transition: background .25s;
}
a.card:hover, .card:hover { background: var(--surface); opacity: 1; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text); margin-bottom: 0; font-size: .97rem; }
.card .text-link { margin-top: auto; padding-top: 28px; }
.card-icon {
	display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 40px;
	border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--dark);
}
.card-icon .icon { width: 18px; height: 18px; stroke-width: 1.6; }
.card-icon-sm { width: 40px; height: 40px; margin: 0; flex-shrink: 0; }
.card-number { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--muted); margin-bottom: 48px; }
.service-card h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }

/* "Why" section: heading + text on the left, 2-column card grid on the right. */
.why-section .container { display: grid; grid-template-columns: 1fr 2.05fr; gap: 64px; align-items: start; }
.why-section .section-head { display: block; margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.why-section .section-head > h2 { margin-bottom: 22px; }
.why-section .section-head > p { font-size: 1rem; }
.why-section .card-grid { grid-template-columns: repeat(2, 1fr); }
.why-section .card { padding-top: 28px; background: var(--surface); }
.why-section .card h3 { max-width: 300px; }
.why-section .card::after {
	content: ""; position: absolute; top: 26px; right: 28px; width: 34px; height: 34px;
	border: 1px solid var(--line); border-radius: 8px; background: #fff;
	-webkit-mask: none;
}
.why-section .card::before {
	content: ""; position: absolute; top: 38px; right: 40px; width: 10px; height: 10px; z-index: 1;
	border-radius: 50%; background: var(--grad);
}

/* Process ------------------------------------------------------------------ */
.process-grid {
	list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(4, 1fr);
	background: none; border: 0; border-radius: 0; overflow: visible; gap: 32px;
	border-top: 1px solid transparent;
	border-image: var(--grad) 1;
	padding-top: 34px;
}
.process-step { background: none; padding: 0; }
.step-number {
	display: block; margin-bottom: 18px;
	font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.process-step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.process-step p { color: var(--text); margin: 0; font-size: .97rem; }

/* Stats -------------------------------------------------------------------- */
.stats-grid { grid-template-columns: repeat(4, 1fr); background: none; border: 0; border-radius: 0; gap: 32px; }
.stat { text-align: left; }
.stat-number { display: block; font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 400; line-height: 1; letter-spacing: -0.04em; color: var(--dark); }
.stat-label { display: block; margin-top: 16px; color: var(--dark); font-weight: 400; font-size: .95rem; }
.stat-sub { display: block; margin-top: 14px; color: var(--muted); font-size: .92rem; }
.stats-dark { background: var(--dark); padding: 72px 0 96px; }
.stats-dark .section-head { margin-bottom: 52px; }
.stats-dark .section-head h2 { color: #fff; }
.stats-dark .section-head .eyebrow { color: rgba(255, 255, 255, .55); }
.stats-dark .stat-sub { color: rgba(255, 255, 255, .5); }
.stats-dark .stat:nth-child(4n+1) .stat-number { color: var(--accent); }
.stats-dark .stat:nth-child(4n+2) .stat-number { color: var(--accent-2); }
.stats-dark .stat:nth-child(4n+3) .stat-number { color: var(--accent-3); }
.stats-dark .stat:nth-child(4n) .stat-number {
	background: linear-gradient(90deg, var(--accent), var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats-dark .stat-label { color: rgba(255, 255, 255, .9); }

/* Testimonials ------------------------------------------------------------- */
.testimonial-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial { margin: 0; display: flex; flex-direction: column; background: var(--bg); padding: 34px 30px; }
.quote-icon { color: var(--accent-3); margin-bottom: 20px; }
.quote-icon .icon { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.testimonial blockquote { margin: 0 0 28px; }
.testimonial blockquote p { color: var(--dark); font-size: 1.08rem; font-weight: 400; margin: 0; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; color: var(--muted); font-size: .9rem; }
.testimonial figcaption strong { display: block; color: var(--dark); font-size: .98rem; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 500; flex-shrink: 0; }

/* CTA (full-width dark band) ------------------------------------------------ */
.cta-section { padding: 0; background: var(--dark); overflow: hidden; }
.cta-section .container { max-width: none; padding: 0; }
.cta-box { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 520px; position: relative; }
.cta-content {
	padding: 110px 48px 110px max(32px, calc((100vw - var(--container)) / 2 + 32px));
	display: flex; flex-direction: column; justify-content: center;
}
.cta-content h2 { color: #fff; max-width: 480px; }
.cta-content p { color: rgba(255, 255, 255, .62); font-size: 1.08rem; max-width: 560px; }
.cta-content .eyebrow { color: rgba(255, 255, 255, .45); }
.cta-content .eyebrow::before { content: "→ "; }
.cta-content .btn-primary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-content .btn-primary:hover { background: #fff; color: var(--dark); }
.cta-content .btn-outline-light { border-color: transparent; padding-left: 0; padding-right: 0; }
.cta-content .btn-outline-light:hover { background: none; color: #fff; opacity: .7; }
.cta-media { position: relative; }
.cta-media::before {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(90deg, var(--dark) 0%, transparent 35%);
}
.cta-media img { width: 100%; height: 100%; object-fit: cover; }

/* About -------------------------------------------------------------------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media img { border-radius: var(--radius); width: 100%; }
.prose p { color: var(--text); }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent-2); text-underline-offset: 3px; }
.mv-grid { grid-template-columns: 1fr 1fr; }
.mv-card { background: var(--bg); padding: 48px 44px; }
.mv-card h2 { font-size: 1.8rem; }
.mv-card p { margin: 0; font-size: 1.08rem; }

/* Service page ------------------------------------------------------------- */
.service-visual { position: relative; }
.service-visual img { width: 100%; border-radius: var(--radius); }
.service-visual-icon {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	display: grid; place-items: center; width: 116px; height: 116px; border-radius: 28px;
	background: #fff; color: var(--dark);
	box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .35);
}
.service-visual-icon::after {
	content: ""; position: absolute; right: 14px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--grad);
}
.service-visual-icon .icon { width: 48px; height: 48px; stroke-width: 1.5; }

.service-results { background: var(--dark); padding: 56px 0; }
.service-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-results .stat-number { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.service-results .stat:nth-child(3n+1) .stat-number { color: var(--accent); }
.service-results .stat:nth-child(3n+2) .stat-number { color: var(--accent-2); }
.service-results .stat:nth-child(3n) .stat-number { color: var(--accent-3); }
.service-results .stat-label { color: rgba(255, 255, 255, .85); }

.intro-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.intro-grid h2 { position: sticky; top: calc(var(--header-h) + 32px); }
.intro-grid .prose p { font-size: 1.12rem; }

.related-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.related-card {
	display: flex; align-items: center; gap: 14px; background: var(--bg);
	padding: 20px 22px; color: var(--dark); font-weight: 400; transition: background .2s;
}
.related-card > span:nth-child(2) { flex: 1; }
.related-card > .icon { width: 16px; height: 16px; }
.related-card:hover { background: var(--surface); opacity: 1; }

/* FAQ ---------------------------------------------------------------------- */
.faq-section .section-head { display: block; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 26px 0; cursor: pointer; list-style: none;
	font-weight: 400; color: var(--dark); font-size: 1.2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex-shrink: 0; width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(180deg); color: var(--accent-3); }
.faq-answer { padding: 0 0 26px; max-width: 760px; }
.faq-answer p { margin: 0; color: var(--text); }

/* Contact ------------------------------------------------------------------ */
.contact-grid {
	display: grid; grid-template-columns: 1.45fr 1fr; gap: 0;
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	padding: 0; width: calc(100% - 64px); max-width: calc(var(--container) - 64px);
}
.contact-form-wrap { background: var(--bg); padding: 48px; }
.contact-form-wrap h2 { font-size: 2rem; }
.form-note { color: var(--muted); font-size: .9rem; }
.contact-form { display: grid; gap: 20px; margin-top: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field label {
	display: block; margin-bottom: 8px; color: var(--dark);
	font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
	width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--dark);
	padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 0; background: rgba(255, 255, 255, .55);
	transition: border-color .2s, background .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--dark); background: #fff; }
.contact-form .btn { justify-self: start; }
.form-alert { padding: 14px 18px; font-weight: 400; margin-top: 18px; border-left: 3px solid; }
.form-alert-success { background: #e6f6ec; color: #135c2f; border-color: #1f9d55; }
.form-alert-error { background: #fbeaea; color: #8f1d1d; border-color: #d64545; }

.contact-info { background: var(--dark); color: rgba(255, 255, 255, .7); padding: 48px 40px; }
.contact-info h2 { color: #fff; font-size: 1.7rem; }
.info-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 24px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list strong {
	display: block; color: rgba(255, 255, 255, .5); margin-bottom: 4px;
	font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
}
.info-list a, .info-list span { color: #fff; }
.contact-info .card-icon { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.map-embed { margin-top: 32px; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 8px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }

/* Blog --------------------------------------------------------------------- */
.post-grid { grid-template-columns: repeat(3, 1fr); }
.post-card { background: var(--bg); }
.post-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-body { padding: 28px; }
.post-body h2 { font-size: 1.4rem; }
.post-date { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-featured { margin-bottom: 32px; }
.post-featured img { border-radius: var(--radius); }
.pagination { margin-top: 48px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 2px; border: 1px solid var(--line); color: var(--dark); font-family: var(--mono); font-size: 13px; }
.pagination .current { background: var(--dark); color: var(--bg); border-color: var(--dark); }

/* Footer (light) ----------------------------------------------------------- */
.site-footer { background: transparent; color: var(--text); padding-top: 96px; font-size: .97rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 56px; padding-bottom: 64px; }
.footer-brand p { margin: 22px 0 26px; max-width: 360px; }
.site-footer .custom-logo { max-height: 36px; width: auto; }
.text-logo-light, .text-logo-light:hover { color: var(--dark); }
.site-footer h3 {
	color: var(--muted); margin-bottom: 22px; font-weight: 400;
	font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--dark); opacity: 1; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--muted); }
.social-links { display: flex !important; gap: 18px !important; }
.social-links a { display: grid; place-items: center; color: var(--muted); }
.social-links a:hover { color: var(--dark); }
.social-links .icon { width: 18px; height: 18px; }
.footer-bottom { position: relative; padding: 26px 0 34px; }
.footer-bottom::before {
	content: ""; position: absolute; top: 0; height: 1px; background: var(--grad);
	left: max(32px, calc((100% - var(--container)) / 2 + 32px));
	right: max(32px, calc((100% - var(--container)) / 2 + 32px));
}
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p, .footer-bottom a {
	margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* Reveal animation --------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.logo-track { animation: none; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	* { transition-duration: 0s !important; }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1180px) {
	.nav-menu { gap: 22px; }
	.nav-menu a { letter-spacing: .14em; }
}

@media (max-width: 1080px) {
	.results-grid, .cards-4 .card-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	:root { --header-h: 64px; }
	.menu-toggle { display: flex; }
	.header-cta { display: none; }
	/* Absolute (relative to the sticky header) — backdrop-filter on the header breaks position:fixed children. */
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
		height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
		background: var(--bg); padding: 16px 24px 40px; overflow-y: auto;
		transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
	}
	.menu-open .main-nav { transform: none; visibility: visible; }
	.menu-open { overflow: hidden; }
	.nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav-menu > li > a { flex: 1; padding: 18px 2px; font-size: 13px; }
	.submenu-toggle { margin: 0; padding: 14px; }
	.nav-menu .sub-menu {
		position: static; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; background: none; padding: 0 0 14px; display: none;
	}
	.nav-menu .sub-menu::before { display: none; }
	.nav-menu .submenu-open > .sub-menu { display: block; }
	.nav-menu .submenu-open > .submenu-toggle .icon { transform: rotate(180deg); }
	.nav-menu > li:hover > .submenu-toggle .icon { transform: none; }
	.nav-menu .submenu-open:hover > .submenu-toggle .icon { transform: rotate(180deg); }
	.nav-cta-mobile { display: block; margin-top: 28px; }
	.nav-cta-mobile .btn { width: 100%; }

	.hero-grid, .split-grid, .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
	.contact-grid { gap: 0; }
	.intro-grid h2 { position: static; }
	.hero { min-height: 0; display: block; }
	.hero-media.is-bleed { margin: 0 -32px 0 0; justify-content: center; }
	.why-section .container { grid-template-columns: 1fr; gap: 40px; }
	.why-section .section-head { position: static; }
	.hero-media.is-photo { margin: 0 -32px -96px; }
	.hero .hero-media.is-photo { position: relative; top: auto; right: auto; bottom: auto; left: auto; margin: 32px -32px -72px; }
	.hero .hero-media.is-photo img { height: auto; min-height: 320px; }
	.hero-media.is-photo img { min-height: 320px; max-height: 440px; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%); mask-image: linear-gradient(180deg, transparent 0%, #000 20%); }
	.section-head { grid-template-columns: 1fr; }
	.section-head > p { grid-column: 1; grid-row: auto; margin-top: 18px; }
	.card-grid, .testimonial-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.cta-box { grid-template-columns: 1fr; min-height: 0; }
	.cta-content { padding: 80px 32px 40px; }
	.cta-media::before { background: linear-gradient(180deg, var(--dark) 0%, transparent 40%); }
	.cta-media img { max-height: 380px; }
	.topbar-contact { display: none; }
	.topbar-inner { justify-content: center; text-align: center; }
}

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

@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.contact-grid { width: calc(100% - 32px); }
	.hero-media.is-photo { margin: 0 -16px -68px; }
	.hero .hero-media.is-photo { margin: 28px -16px -68px; }
	.hero-media.is-bleed:not(.is-photo) { margin: 0 -16px; }
	.why-section .card-grid { grid-template-columns: 1fr; }
	.section { padding: 76px 0; }
	.hero, .page-hero, .page-hero-split { padding: calc(var(--header-h) + 40px) 0 68px; }
	.page-hero-center { padding: calc(var(--header-h) + 56px) 0 56px; }
	.section-head { margin-bottom: 40px; }
	.section-head-split { flex-direction: column; align-items: flex-start; }
	.results-grid, .card-grid, .cards-4 .card-grid, .process-grid, .testimonial-grid, .post-grid, .mv-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
	.service-results-grid { grid-template-columns: 1fr; gap: 26px; }
	.btn-group .btn-primary, .btn-group .btn-outline { flex: 1 1 100%; }
	.contact-form-wrap, .contact-info { padding: 32px 20px; }
	.cta-content { padding: 64px 16px 32px; }
	.mv-card { padding: 34px 24px; }
	.card { padding: 26px 22px 28px; }
	.card-icon { margin-bottom: 28px; }
	.service-visual-icon { width: 86px; height: 86px; border-radius: 22px; }
	.service-visual-icon .icon { width: 38px; height: 38px; }
	.footer-bottom::before { left: 16px; right: 16px; }
}
