/* ==========================================================================
   D3 Nova — inner-page section library
   Loaded on pages rebuilt with inc/pages/*.php. Uses the same tokens and
   components as the homepage.
   ========================================================================== */

/* ------------------------------------------------------------ PAGE HERO -- */
.page-hero--rich {
	position: relative;
	background: var(--night);
	color: var(--night-fg);
	overflow: hidden;
	padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5rem);
}
.page-hero--rich .hero__bg { position: absolute; inset: -10% 0; pointer-events: none; z-index: 0; overflow: hidden; }
.page-hero--rich .hero__bg .aurora-blob { opacity: .55; }
.page-hero--rich .hero__bg .aurora-grid { color: rgba(255, 255, 255, .08); }

.page-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.25fr .75fr;
	align-items: center;
	gap: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.page-hero--rich .page-hero__title {
	font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem);
	color: #fff;
	max-width: 20ch;
	margin-bottom: var(--sp-4);
	line-height: 1.06;
}
.page-hero__lead {
	font-size: var(--fs-lead);
	color: var(--night-muted);
	max-width: 56ch;
	margin-bottom: var(--sp-5);
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-6);
	margin-top: var(--sp-6);
	padding-top: var(--sp-5);
	border-top: 1px solid var(--night-border);
}
.hero-stats b {
	display: block;
	font-family: var(--font-display);
	font-size: 1.65rem;
	line-height: 1;
	letter-spacing: -.03em;
	background: var(--grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero-stats i {
	font-style: normal;
	font-size: var(--fs-xs);
	color: var(--night-muted);
	display: block;
	margin-top: .3rem;
	max-width: 16ch;
}

.page-hero__panel {
	padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
	border-radius: var(--r-xl);
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--night-border);
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 1);
}
.page-hero__panel-title {
	margin: 0 0 var(--sp-4);
	font-family: var(--font-display);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--blue-200);
}
.page-hero__panel ul { display: grid; gap: .8rem; }
.page-hero__panel li {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	font-size: var(--fs-sm);
	color: var(--night-fg);
	line-height: 1.5;
}
.page-hero__panel .tick {
	display: grid;
	place-items: center;
	width: 22px; height: 22px;
	flex: none;
	margin-top: 1px;
	border-radius: 50%;
	background: rgba(37, 99, 235, .3);
	border: 1px solid rgba(147, 197, 253, .35);
	color: #BFDBFE;
}

/* --------------------------------------------------------------- STEPS --- */
.steps {
	display: grid;
	gap: 0;
	max-width: 860px;
	margin-inline: auto;
	counter-reset: d3step;
}
.step {
	position: relative;
	display: grid;
	grid-template-columns: 66px 1fr;
	gap: var(--sp-5);
	padding-bottom: var(--sp-6);
}
.step:last-child { padding-bottom: 0; }

/* Connector rail between the numbers. */
.step::before {
	content: "";
	position: absolute;
	left: 32px;
	top: 66px;
	bottom: 0;
	width: 2px;
	background: linear-gradient(180deg, rgba(37, 99, 235, .45), rgba(37, 99, 235, .06));
}
.step:last-child::before { display: none; }

.step__num {
	display: grid;
	place-items: center;
	width: 66px; height: 66px;
	border-radius: 20px;
	background: var(--grad-brand-soft);
	border: 1px solid rgba(37, 99, 235, .22);
	color: var(--blue-700);
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -.02em;
	transition: transform var(--t-mid) var(--e-spring), background var(--t-mid) var(--e-out), color var(--t-mid) var(--e-out);
}
.step:hover .step__num { transform: translateY(-3px); background: var(--blue-600); color: #fff; }

.step__body { padding-top: .5rem; }
.step__body h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step__body p { color: var(--muted-fg); font-size: var(--fs-sm); margin: 0; line-height: 1.7; }

.section--night .step__num {
	background: rgba(96, 165, 250, .16);
	border-color: rgba(147, 197, 253, .3);
	color: var(--blue-200);
}
.section--night .step__body p { color: var(--night-muted); }
.section--night .step::before { background: linear-gradient(180deg, rgba(147, 197, 253, .4), rgba(147, 197, 253, .05)); }

/* ---------------------------------------------------- STATS ON LIGHT ----- */
.stat-row--light li + li::before { background: var(--border); }
.section:not(.section--night) .stat-row--light .stat-label { color: var(--muted-fg); }

/* --------------------------------------------------- LIGHT LOGO STRIP ---- */
.client-strip--light { background: var(--bg-alt); }
.client-strip--light .client-strip__label { color: var(--muted-fg); }
.client-strip--light .client-logo img { filter: grayscale(1); opacity: .55; }
.client-strip--light .client-logo:hover img { filter: none; opacity: 1; }

/* ---------------------------------------------------------- RESPONSIVE --- */
@media (max-width: 991px) {
	.page-hero__grid { grid-template-columns: 1fr; }
	.page-hero--rich .page-hero__title { max-width: none; }
	.hero-stats { gap: var(--sp-5); }
}

@media (max-width: 640px) {
	.step { grid-template-columns: 52px 1fr; gap: var(--sp-4); }
	.step__num { width: 52px; height: 52px; font-size: 1.05rem; border-radius: 16px; }
	.step::before { left: 25px; top: 52px; }
	.hero-stats { width: 100%; justify-content: space-between; }
	.hero-stats b { font-size: 1.35rem; }
}

/* ------------------------------------------------------ SERVICE DIRECTORY -- */
.dir-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: var(--sp-4);
}
.dir-card {
	padding: var(--sp-5);
	border-radius: var(--r-lg);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--sh-1);
	transition: transform var(--t-mid) var(--e-out), border-color var(--t-mid) var(--e-out), box-shadow var(--t-mid) var(--e-out);
}
.dir-card:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235, .35); box-shadow: var(--sh-2); }
.dir-card h3 {
	font-size: 1rem;
	margin-bottom: var(--sp-3);
	padding-bottom: var(--sp-3);
	border-bottom: 1px solid var(--border);
}
.dir-card h3 a { display: inline-flex; align-items: center; gap: .35rem; color: var(--blue-700); }
.dir-card h3 a:hover { color: var(--violet); }
.dir-go { opacity: .7; }
.dir-list { display: grid; gap: .4rem; }
.dir-list li {
	position: relative;
	padding-left: 1rem;
	font-size: var(--fs-sm);
	color: var(--muted-fg);
	line-height: 1.5;
}
.dir-list li::before {
	content: "";
	position: absolute;
	left: 0; top: .6em;
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--blue-400);
}
.section--night .dir-card {
	background: rgba(255, 255, 255, .055);
	border-color: var(--night-border);
	backdrop-filter: blur(12px);
}
.section--night .dir-card h3 { border-bottom-color: var(--night-border); }
.section--night .dir-card h3 a { color: var(--blue-200); }
.section--night .dir-list li { color: var(--night-muted); }

/* ------------------------------------------- PROSE ON A NIGHT SECTION ----- */
/* .prose sets dark text for light backgrounds; on a night section that is
   effectively invisible, so the whole block is re-coloured here. */
.section--night .prose { color: var(--night-muted); }
.section--night .prose h2,
.section--night .prose h3,
.section--night .prose h4 { color: #fff; }
.section--night .prose strong { color: #fff; }
.section--night .prose a { color: var(--blue-200); }
.section--night .prose blockquote {
	background: rgba(255, 255, 255, .06);
	border-left-color: var(--blue-400);
	color: var(--night-fg);
}
.section--night .prose code { background: rgba(255, 255, 255, .1); color: var(--night-fg); }

/* ------------------------------------------------------- CONTACT BLOCK --- */
.contact-block {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	align-items: start;
}
.contact-ways { display: grid; gap: .8rem; margin-top: var(--sp-5); }
.contact-way {
	display: flex;
	align-items: center;
	gap: .9rem;
	padding: .95rem 1.15rem;
	border-radius: var(--r-md);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--sh-1);
	color: var(--fg);
	transition: transform var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out);
}
.contact-way:hover { transform: translateY(-3px); border-color: rgba(37, 99, 235, .4); box-shadow: var(--sh-2); color: var(--fg); }
.contact-way__ico {
	display: grid; place-items: center;
	width: 44px; height: 44px;
	flex: none;
	border-radius: 13px;
	background: var(--grad-brand-soft);
	border: 1px solid rgba(37, 99, 235, .2);
	color: var(--blue-700);
}
.contact-way b { display: block; font-family: var(--font-display); font-size: var(--fs-sm); }
.contact-way i { font-style: normal; font-size: var(--fs-xs); color: var(--muted-fg); }

.contact-way--wa .contact-way__ico { background: rgba(37, 211, 102, .14); border-color: rgba(37, 211, 102, .35); color: #128C7E; }

.section--night .contact-way {
	background: rgba(255, 255, 255, .055);
	border-color: var(--night-border);
	color: var(--night-fg);
}
.section--night .contact-way i { color: var(--night-muted); }
.section--night .contact-way__ico { background: rgba(96, 165, 250, .16); border-color: rgba(147, 197, 253, .3); color: var(--blue-200); }
.section--night .contact-way--wa .contact-way__ico { background: rgba(37, 211, 102, .18); border-color: rgba(37, 211, 102, .4); color: #25D366; }

.contact-form-card {
	padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
	border-radius: var(--r-xl);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--sh-2);
}
.section--night .contact-form-card {
	background: rgba(255, 255, 255, .06);
	border-color: var(--night-border);
	backdrop-filter: blur(16px);
}
.contact-form-card .cf7-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.contact-form-card label { display: block; margin-bottom: .3rem; }
.contact-form-card p { margin-bottom: .85rem; }
.section--night .contact-form-card label { color: var(--night-fg); }
.section--night .contact-form-card input,
.section--night .contact-form-card textarea,
.section--night .contact-form-card select {
	background: rgba(255, 255, 255, .07);
	border-color: var(--night-border);
	color: #fff;
}
.section--night .contact-form-card input::placeholder,
.section--night .contact-form-card textarea::placeholder { color: var(--night-muted); }

@media (max-width: 860px) {
	.contact-block { grid-template-columns: 1fr; }
	.contact-form-card .cf7-row { grid-template-columns: 1fr; }
}

/* The CF7 textarea ships with rows="10" (~293px), which makes the form card
   dominate the section. Capped to a comfortable size; still resizable. */
.contact-form-card textarea {
	min-height: 110px;
	height: 110px;
	resize: vertical;
}
.contact-form-card .wpcf7-form p:last-of-type { margin-bottom: 0; }
.contact-form-card h3 { margin-bottom: var(--sp-4); }
.section--night .contact-form-card h3 { color: #fff; }

/* ------------------------------------------ CARD TEXT ON NIGHT SECTIONS --- */
/*
 * .svc-card p sets the light-theme muted colour and, being later in the
 * cascade than .card--glass p, it won on dark sections too - 2.8:1, below the
 * 4.5:1 minimum. This restores the night colour for every card variant used
 * inside a night section.
 */
.section--night .svc-card p,
.section--night .case-card p,
.section--night .cap-card p,
.section--night .card p,
.section--night .dir-list li,
.section--night .link-more { color: var(--night-muted); }

.section--night .svc-card h3,
.section--night .case-card h3,
.section--night .cap-card h4,
.section--night .card h3,
.section--night .card h4 { color: #fff; }

.section--night .link-more { color: var(--blue-200); }
.section--night .svc-card__num { color: rgba(255, 255, 255, .08); }
.section--night a.svc-card:hover .svc-card__num { color: rgba(147, 197, 253, .2); }

/* The eyebrow badge defaults to the light-theme blue. The page hero and CTA
   band are dark but are not .section--night, so they need it explicitly. */
.page-hero .eyebrow,
.cta-band .eyebrow,
.hero .eyebrow {
	background: rgba(255, 255, 255, .07);
	border-color: var(--night-border);
	color: var(--blue-200);
}
.page-hero .eyebrow-dot,
.cta-band .eyebrow-dot,
.hero .eyebrow-dot { background: var(--blue-400); box-shadow: 0 0 0 4px rgba(96, 165, 250, .18); }

/* ------------------------------------------- ALTERNATING IMAGE PANELS ----- */
/* Matches the live Shopify page's industry section format. */
.panels { display: grid; gap: var(--sp-5); }

.panel {
	position: relative;
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	align-items: center;
	gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border-radius: var(--r-xl);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: 0 24px 60px -34px rgba(15, 23, 42, .2);
	overflow: hidden;
	transition: transform var(--t-mid) var(--e-out), box-shadow var(--t-mid) var(--e-out), border-color var(--t-mid) var(--e-out);
}
.panel:hover {
	transform: translateY(-4px);
	border-color: rgba(37, 99, 235, .3);
	box-shadow: 0 34px 70px -34px rgba(37, 99, 235, .35);
}
.panel:nth-child(even) { background: var(--bg-alt); }
.panel--flip .panel__shots { order: 2; }

/* Soft brand glow behind the mockups */
.panel__shots {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: .6rem;
	min-height: 260px;
}
.panel__shots::before {
	content: "";
	position: absolute;
	inset: 8% 4%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(37, 99, 235, .18), transparent 68%);
	filter: blur(28px);
}
.panel__shot {
	position: relative;
	width: 31%;
	max-width: 132px;
	height: auto;
	border-radius: 14px;
	border: 1px solid var(--border);
	box-shadow: 0 18px 40px -20px rgba(15, 23, 42, .4);
	background: #fff;
	transition: transform var(--t-mid) var(--e-out);
}
.panel__shot--1 { transform: translateY(10px) rotate(-3deg); z-index: 1; }
.panel__shot--2 { transform: translateY(-6px); z-index: 3; width: 34%; }
.panel__shot--3 { transform: translateY(10px) rotate(3deg); z-index: 1; }
.panel:hover .panel__shot--1 { transform: translateY(4px) rotate(-5deg); }
.panel:hover .panel__shot--2 { transform: translateY(-12px); }
.panel:hover .panel__shot--3 { transform: translateY(4px) rotate(5deg); }

.panel__num {
	display: inline-block;
	margin-bottom: .6rem;
	font-family: var(--font-display);
	font-size: 2.1rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.04em;
	background: var(--grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.panel__copy h3 {
	font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem);
	margin-bottom: .6rem;
	color: var(--fg);
}
.panel__copy p { color: var(--muted-fg); font-size: var(--fs-sm); line-height: 1.75; margin-bottom: var(--sp-4); }
.panel__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

@media (max-width: 860px) {
	.panel { grid-template-columns: 1fr; }
	.panel--flip .panel__shots { order: 0; }
	.panel__shots { min-height: 210px; }
	.panel__shot { max-width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
	.panel:hover { transform: none; }
	.panel:hover .panel__shot--1,
	.panel:hover .panel__shot--2,
	.panel:hover .panel__shot--3 { transform: none; }
}

/* ------------------------------------------------ CENTRED HERO VARIANT ---- */
/* The live Shopify hero is centred with the accent on its own line. */
.page-hero--center .page-hero__grid { grid-template-columns: 1fr; text-align: center; }
.page-hero--center .page-hero__copy { max-width: 46rem; margin-inline: auto; }
.page-hero--center .page-hero__title { max-width: none; margin-inline: auto; }
.page-hero--center .page-hero__lead { margin-inline: auto; }
.page-hero--center .crumbs,
.page-hero--center .eyebrow,
.page-hero--center .hero__actions,
.page-hero--center .hero-stats { justify-content: center; }
.page-hero--center .hero-stats { border-top: 1px solid var(--night-border); }
.page-hero--center .hero-stats i { margin-inline: auto; text-align: center; }

/* ------------------------------------------------- HERO: BLUE VARIANT ----- */
/* The live Shopify hero sits on a blue gradient rather than near-black. */
.page-hero--blue {
	background:
		radial-gradient(1200px 600px at 50% -20%, rgba(96, 165, 250, .38), transparent 62%),
		linear-gradient(160deg, #0B2D6B 0%, var(--blue-700) 45%, var(--blue-600) 100%) !important;
}
.page-hero--blue .hero__bg .aurora-blob { opacity: .3; }
.page-hero--blue .hero__bg .aurora-grid { color: rgba(255, 255, 255, .12); }
.page-hero--blue .page-hero__lead { color: rgba(255, 255, 255, .82); }
.page-hero--blue .crumbs { color: rgba(255, 255, 255, .7); }
.page-hero--blue .crumbs a { color: #fff; }
.page-hero--blue .eyebrow { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .26); color: #fff; }
.page-hero--blue .hero-stats { border-top-color: rgba(255, 255, 255, .2); }
.page-hero--blue .hero-stats b { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.page-hero--blue .hero-stats i { color: rgba(255, 255, 255, .78); }
.page-hero--blue .btn--light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); }
.page-hero--blue .btn--light:hover { background: rgba(255, 255, 255, .24); }

/* ------------------------------------------------------- ASK-AI PILLS ---- */
.ask-ai {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .4rem;
	margin-top: var(--sp-5);
	padding: .4rem .5rem .4rem 1rem;
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
	backdrop-filter: blur(12px);
}
.ask-ai__label {
	font-family: var(--font-display);
	font-size: var(--fs-xs);
	font-weight: 600;
	color: rgba(255, 255, 255, .8);
	margin-right: .2rem;
}
.ask-ai__pill {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	min-height: 38px;
	padding: .4rem .85rem;
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .2);
	color: #fff;
	font-family: var(--font-display);
	font-size: var(--fs-xs);
	font-weight: 600;
	transition: background var(--t-fast) var(--e-out), transform var(--t-fast) var(--e-spring);
}
.ask-ai__pill:hover { background: rgba(255, 255, 255, .28); color: #fff; transform: translateY(-2px); }

/* --------------------------------------------------------- CLIENT BAND --- */
.client-band { background: var(--night); padding-block: var(--sp-6); overflow: hidden; }
.client-band__label {
	margin: 0 0 var(--sp-5);
	text-align: center;
	font-family: var(--font-display);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--night-muted);
}
.client-band__item {
	display: grid;
	place-items: center;
	flex: none;
	min-width: 170px;
	height: 64px;
	padding-inline: 1.6rem;
}
.client-band__item img {
	max-height: 40px;
	width: auto;
	object-fit: contain;
	opacity: .72;
	transition: opacity var(--t-fast) var(--e-out);
}
.client-band__item:hover img { opacity: 1; }
.client-band__word {
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
	font-style: italic;
	letter-spacing: -.02em;
	color: rgba(255, 255, 255, .8);
	white-space: nowrap;
	transition: color var(--t-fast) var(--e-out);
}
.client-band__item:hover .client-band__word { color: #fff; }

/* ---------------------------------------------------- CASE SHOWCASE ------ */
.showcases { display: grid; gap: var(--sp-5); }
.showcase {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	align-items: center;
	gap: clamp(1.5rem, 1rem + 3vw, 3rem);
	padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	border-radius: var(--r-xl);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: 0 24px 60px -34px rgba(15, 23, 42, .2);
	transition: transform var(--t-mid) var(--e-out), box-shadow var(--t-mid) var(--e-out), border-color var(--t-mid) var(--e-out);
}
.showcase:hover { transform: translateY(-4px); border-color: rgba(37, 99, 235, .3); box-shadow: 0 34px 70px -34px rgba(37, 99, 235, .32); }
.showcase--flip .showcase__shot { order: -1; }

.showcase__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--sp-4); }
.chip--solid { background: var(--blue-700); border-color: transparent; color: #fff; font-weight: 600; }

.showcase__title { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.85rem); margin-bottom: .6rem; color: var(--fg); }
.showcase__summary { color: var(--muted-fg); font-size: var(--fs-sm); line-height: 1.7; margin-bottom: var(--sp-4); }
.showcase__label {
	margin: 0 0 .6rem;
	font-family: var(--font-display);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--fg-soft);
}
.showcase__results { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: var(--sp-5); }
.result {
	flex: 1 1 140px;
	padding: .9rem 1.1rem;
	border-radius: var(--r-md);
	background: var(--bg-alt);
	border: 1px solid var(--border);
}
.result b {
	display: block;
	font-family: var(--font-display);
	font-size: 1.6rem;
	line-height: 1;
	letter-spacing: -.03em;
	background: var(--grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.result i { font-style: normal; display: block; margin-top: .3rem; font-size: var(--fs-xs); color: var(--muted-fg); }

/* Laptop frame around the screenshot */
.laptop { position: relative; }
.laptop__screen {
	border-radius: 12px 12px 4px 4px;
	overflow: hidden;
	background: #0F172A;
	border: 8px solid #0F172A;
	box-shadow: 0 24px 50px -26px rgba(15, 23, 42, .5);
}
.laptop__screen img { width: 100%; height: auto; display: block; }
.laptop__base {
	display: block;
	height: 12px;
	margin: 0 -6%;
	border-radius: 0 0 14px 14px;
	background: linear-gradient(180deg, #1E293B, #0F172A);
	box-shadow: 0 10px 20px -8px rgba(15, 23, 42, .5);
}

/* Slider mode: one story per slide, all with the same orientation so the
   laptop never jumps sides while swiping. */
.showcase-rail {
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	gap: var(--sp-4);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: .25rem;
}
.showcase-rail::-webkit-scrollbar { display: none; }
.showcase-rail > .showcase { scroll-snap-align: start; margin-inline: 1px; }
.showcase-rail:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 6px; border-radius: var(--r-xl); }
/* Lift on hover would clip inside a scroll container. */
.showcase-rail > .showcase:hover { transform: none; }

@media (max-width: 860px) {
	.showcase { grid-template-columns: 1fr; }
	.showcase--flip .showcase__shot { order: 0; }
}

/* ------------------------------------------------------- MEDIA SPLIT ----- */
.media-split {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	align-items: center;
	gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}
.media-split--flip .media-shot { order: 2; }

.media-shot {
	position: relative;
	margin: 0;
	border-radius: var(--r-xl);
	overflow: visible;
}
.media-shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--r-xl);
	box-shadow: 0 40px 80px -40px rgba(15, 23, 42, .45);
}
.media-shot--tall img {
	max-height: 620px;
	object-fit: cover;
	object-position: top center;
}

/* Soft brand wash behind the photo so it sits in the design rather than on it. */
.media-shot::before {
	content: "";
	position: absolute;
	inset: auto -18px -18px auto;
	width: 62%;
	height: 62%;
	border-radius: var(--r-xl);
	background: var(--grad-brand);
	opacity: .16;
	filter: blur(2px);
	z-index: -1;
}

.media-badge {
	position: absolute;
	right: clamp(-14px, -1vw, 0px);
	bottom: clamp(-14px, -1vw, 0px);
	display: grid;
	gap: .15rem;
	padding: 1rem 1.35rem;
	border-radius: var(--r-lg);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: 0 24px 50px -26px rgba(15, 23, 42, .4);
}
.media-badge b {
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem);
	font-weight: 700;
	letter-spacing: -.02em;
	background: var(--grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.media-badge i { font-style: normal; font-size: var(--fs-xs); color: var(--muted-fg); }

.media-copy__title { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.media-copy__lead { color: var(--muted-fg); line-height: 1.75; margin-bottom: var(--sp-4); }
.media-copy__actions { margin-top: var(--sp-5); }

.media-points { display: grid; gap: .75rem; list-style: none; margin: 0 0 var(--sp-4); padding: 0; }
.media-points li { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.6; }
.media-points svg { color: var(--blue-600); flex: none; margin-top: 2px; }

.section--night .media-copy__lead { color: var(--night-muted); }
.section--night .media-points li { color: var(--night-fg); }
.section--night .media-points svg { color: var(--cyan); }
.section--night .media-badge { background: rgba(12, 18, 33, .92); border-color: var(--night-border); }
.section--night .media-badge i { color: var(--night-muted); }

@media (max-width: 860px) {
	.media-split { grid-template-columns: 1fr; }
	.media-split--flip .media-shot { order: 0; }
	.media-badge { position: static; margin-top: var(--sp-4); justify-items: start; }
	.media-shot::before { display: none; }
}

/* ------------------------------------------------------ TIGHTER RHYTHM --- */
/* Service pages carry a lot of sections; pull the vertical rhythm in. */
.d3nova.has-page-header .section { padding-block: clamp(2.5rem, 1.75rem + 3.5vw, 4.5rem); }
.d3nova.has-page-header .sec-head { margin-bottom: var(--sp-6); }
.d3nova.has-page-header .panels { gap: var(--sp-4); }

/* The case-study images are full-page captures (620x2500+). Left unconstrained
   each one made its showcase ~2,300px tall. Cropped to a laptop aspect showing
   the top of the page, which is the part that reads. */
.laptop__screen {
	aspect-ratio: 16 / 10;
	position: relative;
}
.laptop__screen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: object-position 5s cubic-bezier(.25, .5, .35, 1);
}
.showcase:hover .laptop__screen img { object-position: bottom center; }

@media (prefers-reduced-motion: reduce) {
	.showcase:hover .laptop__screen img { object-position: top center; }
}

/* A page hero that has to leave room for content below it on the same screen. */
.page-hero--compact { padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-hero--compact .page-hero__title { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem); margin-bottom: .5rem; }
.page-hero--compact .page-hero__lead { font-size: var(--fs-sm); max-width: 62ch; margin-bottom: 0; }
.page-hero--compact .hero-stats { margin-top: var(--sp-4); padding-top: var(--sp-4); }
.page-hero--compact .page-hero__actions { margin-top: var(--sp-4); }
.d3nova.has-page-header .quiz-section { padding-block: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); }

/* ============================================== START-A-PROJECT QUIZ ===== */
.quiz { max-width: 880px; margin-inline: auto; }

/* The [hidden] attribute only sets display:none in the UA stylesheet, so any
   author rule with a display value beats it - .btn is display:inline-flex, which
   is why "Continue" and "Send my enquiry" were both visible on the last step. */
.quiz [hidden] { display: none !important; }

/* Honeypot: present for bots, invisible and unreachable for people. */
.q-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.q-error {
	margin-bottom: var(--sp-4);
	padding: .8rem 1rem;
	border-radius: var(--r-md);
	background: #FEF2F2;
	border: 1px solid #FECACA;
	color: #991B1B;
	font-size: var(--fs-sm);
}

.q-progress { margin-bottom: var(--sp-5); }
.q-progress__bar { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.q-progress__bar span {
	display: block;
	height: 100%;
	width: 20%;
	border-radius: 99px;
	background: var(--grad-brand);
	transition: width var(--t-mid) var(--e-out);
}
.q-progress__label {
	margin: .55rem 0 0;
	font-family: var(--font-display);
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted-fg);
}
.q-progress__sep { margin-inline: .5rem; }

.q-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.q-legend { display: block; font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; margin-bottom: .4rem; }
.q-legend:focus { outline: none; }
.q-help { color: var(--muted-fg); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.q-sublabel { font-family: var(--font-display); font-weight: 600; margin: var(--sp-5) 0 var(--sp-3); }
.q-none { color: var(--muted-fg); font-size: var(--fs-sm); }

.q-grid { display: grid; gap: .7rem; margin-bottom: var(--sp-2, .5rem); }
.q-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.q-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.q-opt { display: block; cursor: pointer; }
.q-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.q-opt__box {
	position: relative;
	display: flex;
	align-items: center;
	gap: .75rem;
	height: 100%;
	padding: .9rem 1rem;
	border-radius: var(--r-md);
	border: 1.5px solid var(--border);
	background: var(--surface);
	transition: border-color var(--t-fast) var(--e-out), background var(--t-fast) var(--e-out), transform var(--t-fast) var(--e-spring);
}
.q-opt:hover .q-opt__box { border-color: var(--blue-400); transform: translateY(-2px); }
.q-opt input:focus-visible + .q-opt__box { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.q-opt input:checked + .q-opt__box { border-color: var(--blue-600); background: rgba(37, 99, 235, .06); }

.q-opt__ico {
	display: grid; place-items: center;
	width: 42px; height: 42px; flex: none;
	border-radius: 12px;
	background: rgba(37, 99, 235, .1);
	color: var(--blue-600);
}
.q-opt input:checked + .q-opt__box .q-opt__ico { background: var(--grad-brand); color: #fff; }

.q-opt__text { display: grid; gap: .1rem; min-width: 0; }
.q-opt__text b { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.q-opt__text i { font-style: normal; font-size: var(--fs-xs); color: var(--muted-fg); line-height: 1.4; }

.q-opt__tick {
	display: grid; place-items: center;
	width: 22px; height: 22px;
	margin-left: auto;
	flex: none;
	border-radius: 50%;
	background: var(--grad-brand);
	color: #fff;
	opacity: 0;
	transform: scale(.6);
	transition: opacity var(--t-fast) var(--e-out), transform var(--t-fast) var(--e-spring);
}
.q-opt input:checked + .q-opt__box .q-opt__tick { opacity: 1; transform: scale(1); }

/* A skipped required step shakes rather than throwing an alert. */
.q-step.is-missing .q-opt__box { border-color: #F87171; }
.q-step.is-missing { animation: qShake .4s var(--e-out); }
@keyframes qShake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-6px); }
	75% { transform: translateX(6px); }
}

.q-summary { margin-bottom: var(--sp-4); }
.q-summary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.q-summary li {
	display: inline-flex;
	align-items: baseline;
	gap: .4rem;
	padding: .4rem .8rem;
	border-radius: 99px;
	background: var(--bg-alt);
	border: 1px solid var(--border);
	font-size: var(--fs-xs);
}
.q-summary span { color: var(--muted-fg); }
.q-summary b { font-weight: 600; color: var(--fg); }

.q-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); }
.q-field { margin: 0; }
.q-field--wide { grid-column: 1 / -1; }
.q-field label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: .35rem; }
.q-field label span { color: var(--blue-600); }
.q-field input, .q-field textarea { width: 100%; }

.q-nav { display: flex; align-items: center; gap: .7rem; margin-top: var(--sp-5); }
.q-nav [data-quiz-next], .q-nav [data-quiz-submit] { margin-left: auto; }

.q-privacy {
	display: flex;
	align-items: center;
	gap: .45rem;
	margin: var(--sp-4) 0 0;
	font-size: var(--fs-xs);
	color: var(--muted-fg);
}
.q-privacy svg { color: var(--blue-600); flex: none; }

/* Without JS every step is shown, so the nav buttons would be meaningless. */
.quiz:not(.quiz--js) .q-progress,
.quiz:not(.quiz--js) [data-quiz-next],
.quiz:not(.quiz--js) [data-quiz-back] { display: none; }
.quiz:not(.quiz--js) .q-step { margin-bottom: var(--sp-6); }
.quiz:not(.quiz--js) [data-quiz-submit] { display: inline-flex; }
.quiz:not(.quiz--js) .q-subs { display: grid !important; }

@media (max-width: 860px) {
	.q-grid--2, .q-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.q-grid--2, .q-grid--3 { grid-template-columns: 1fr; }
	.q-fields { grid-template-columns: 1fr; }
	.q-nav { flex-wrap: wrap; }
	.q-nav .btn { flex: 1 1 auto; justify-content: center; }
}
