/* ==========================================================================
   WeDevWebs. Design tokens, base, components, then sections in page order.
   ========================================================================== */

:root {
	--container: 1450px; /* Maximum content width across the site. */
	/* Brand tokens: from WeDevWebs Core when set, otherwise these fallbacks. */
	--accent: var(--wdwc-color-primary, #145a43);
	--accent-strong: var(--wdwc-color-primary-hover, #0f4634);
	--accent-soft: var(--wdwc-color-primary-soft, #ddf2e6);
	--ink: var(--wdwc-color-heading, #102a24);
	--body: var(--wdwc-color-text, #24312b);
	--muted: var(--wdwc-color-muted, #5e6d65);
	--muted-strong: var(--body);
	--bg: var(--wdwc-color-background, #f5f8f5);
	--surface: var(--wdwc-color-surface, #fff);
	--soft: var(--wdwc-color-soft, #eaf2ec);
	--border: var(--wdwc-color-border, #dce7df);
	--font-heading: var(--wdwc-font-heading, system-ui, sans-serif);
	--font-body: var(--wdwc-font-body, system-ui, sans-serif);
	--font-mono: var(--wdwc-font-mono, ui-monospace, monospace);

	--radius-sm: 12px;
	--radius: 20px;
	--radius-lg: 32px;
	--shadow: 0 1px 2px color-mix(in srgb, var(--ink) 4%, transparent);
	--shadow-hover: 0 18px 40px -20px color-mix(in srgb, var(--ink) 22%, transparent);

	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(4.5rem, 10vw, 8.5rem);
	--header: 90px;
	--radius-frame: 10px; /* Hero corners. */
	--radius-nav: 22px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--body);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--font-heading); }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: .6rem 1rem;
	border-radius: var(--radius-sm);
	background: var(--ink);
	color: #fff;
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

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

/* Shared components
   ========================================================================== */

.eyebrow {
	margin-bottom: 1.125rem;
	color: var(--accent);
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.section { padding-block: var(--section); }
.section--white { background: var(--surface); }

.section-title {
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.03em;
	text-wrap: balance;
}

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head__text { color: var(--muted); font-size: 1.0625rem; }
.section-head__text p + p { margin-top: 1rem; }

.section-head--split {
	display: grid;
	gap: 1.5rem clamp(2rem, 6vw, 6rem);
	align-items: end;
}
.section-head--center { text-align: center; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .625rem;
	min-height: 52px;
	padding: .75rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--secondary { background: var(--surface); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--accent-strong); }
.btn--light:hover { background: var(--soft); }
.btn--outline-light { border-color: rgb(255 255 255 / 55%); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgb(255 255 255 / 10%); }
.btn--light:focus-visible, .btn--outline-light:focus-visible { outline-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Text link with arrow */
.text-link {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: var(--accent-strong);
	font-size: .9375rem;
	font-weight: 500;
	text-decoration: none;
}
.text-link .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover .icon { transform: translateX(4px); }

/* Cards */
.card-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }

.card {
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 2.5vw, 2rem);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}
.card--soft { background: var(--bg); box-shadow: none; }
.card__title { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.card__text { margin-top: .75rem; color: var(--muted); }

.icon-tile {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 1.5rem;
	border-radius: 14px;
	background: var(--soft);
	color: var(--accent-strong);
}
.icon-tile--white { background: var(--surface); border: 1px solid var(--border); }

/* Image areas. Change a ratio here and it applies everywhere it is used. */
.media {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--soft);
	aspect-ratio: 4 / 3;
}
.media--hero { aspect-ratio: 1; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }

.media__img { width: 100%; height: 100%; object-fit: cover; }

.media__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 1rem;
	background: var(--soft);
	color: var(--muted-strong);
	font-size: .875rem;
	text-align: center;
}

/* Reveal on scroll. Only hidden when the script is running. */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Submenu indicator on links with inner pages. */
.nav-chevron { display: inline-block; width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; stroke-width: 2; }
.menu-panel__list .nav-chevron { width: 22px; height: 22px; margin-left: 8px; vertical-align: -3px; }

/* Clear the fixed header when the page does not start with the hero. */
#main > :first-child:not(.hero, .e404) { margin-top: var(--header); }

/* Header: compact centred bar, only as wide as its contents
   ========================================================================== */

.site-header {
	--logo-height: var(--wdwc-logo-height, 30px);
	--control: 46px;
	position: fixed;
	inset: 20px 20px auto;
	z-index: 50;
	transition: top .25s var(--ease);
}
.site-header.is-scrolled { top: 10px; }
.admin-bar .site-header { top: 52px; }
.admin-bar .site-header.is-scrolled { top: 42px; }

.site-header__bar {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); /* Equal sides keep the logo dead centre. */
	align-items: center;
	gap: clamp(.75rem, 1.6vw, 1.5rem);
	width: fit-content;
	max-width: 100%;
	min-height: calc(var(--control) + 16px);
	margin-inline: auto;
	padding: 8px;
	border: 1px solid var(--border);
	border-radius: var(--radius-nav);
	background: var(--surface);
	box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--ink) 35%, transparent);
}
.nav-open .site-header__bar { box-shadow: none; }

.site-header__brand { grid-column: 2; grid-row: 1; }
.site-header__right { display: flex; grid-column: 3; grid-row: 1; align-items: center; justify-content: space-between; gap: clamp(.75rem, 1.6vw, 1.5rem); }
.brand { font-size: 1.3125rem; font-weight: 700; letter-spacing: -.035em; text-decoration: none; }
.custom-logo-link { display: block; }
.custom-logo { width: auto; height: var(--logo-height, 40px); }

.nav { display: none; flex: none; }
.site-header__bar > .nav { grid-column: 1; grid-row: 1; padding-left: 6px; }
.nav__list { display: flex; gap: 0; }
.nav__list a {
	display: block;
	padding: .5rem .625rem;
	color: var(--ink);
	font-size: .9375rem;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 8px;
	transition: color .2s;
}
.nav__list a:hover, .nav__list a[aria-current] { color: var(--accent-strong); }

.site-header__actions { display: flex; flex: none; align-items: center; gap: .25rem; }

.nav__cta { display: none; min-height: var(--control); padding: .5rem 1.25rem; border-radius: 15px; font-size: .9375rem; white-space: nowrap; }
.btn--soft { background: var(--accent-soft); color: var(--ink); }
.btn--soft:hover { background: color-mix(in srgb, var(--accent-soft) 85%, var(--accent)); }

.nav-toggle {
	display: none;
	place-items: center;
	width: var(--control);
	height: var(--control);
	padding: 0;
	border: 0;
	border-radius: 15px;
	background: none;
	cursor: pointer;
	transition: background-color .2s;
}
.js .nav-toggle { display: grid; }
.nav-toggle:hover { background: var(--soft); }

/* Two offset lines that even out on hover and cross into an X when open. */
.burger { position: relative; display: block; width: 20px; height: 10px; }
.burger span {
	position: absolute;
	right: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform .3s var(--ease), width .25s var(--ease), top .3s var(--ease);
}
.burger span:first-child { top: 0; }
.burger span:last-child { top: 8px; width: 65%; }
.nav-toggle:hover .burger span:last-child { width: 100%; }
.nav-open .burger span { top: 4px; width: 100%; }
.nav-open .burger span:first-child { transform: rotate(45deg); }
.nav-open .burger span:last-child { transform: rotate(-45deg); }

/* Menu panel opened by the hamburger. The future mega menu goes in here. */
.menu-panel {
	position: fixed;
	inset: 0;
	z-index: 0;
	padding-block: 104px max(1.5rem, env(safe-area-inset-bottom));
	overflow-y: auto;
	background: var(--bg);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, visibility .25s;
}
.nav-open { overflow: hidden; }
.nav-open .menu-panel { opacity: 1; visibility: visible; }
.nav-open .nav { visibility: hidden; }
.nav-open .nav__cta { visibility: hidden; }
.menu-panel__inner { display: flex; flex-direction: column; gap: 2rem; min-height: 100%; }
.menu-panel__list a {
	display: block;
	padding: .875rem 0;
	border-bottom: 1px solid var(--border);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 500;
	letter-spacing: -.02em;
	text-decoration: none;
	transition: color .2s;
}
.menu-panel__list a:hover, .menu-panel__list a[aria-current] { color: var(--accent-strong); }
.menu-panel__cta { align-self: flex-start; border-radius: 5px; margin-top: auto; }

/* Services submenu: image cards under the bar; a list in the phone and tablet menu
   ========================================================================== */

.sub-toggle { display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; }
.sub-toggle .icon { width: 14px; height: 14px; stroke-width: 2; transition: transform .25s var(--ease); }
.is-open > .sub-toggle .icon { transform: rotate(180deg); }
.has-sub.is-current > a { color: var(--accent-strong); }
.sub .sub-card { display: block; padding: 0; border: 0; color: var(--ink); font: inherit; letter-spacing: normal; white-space: normal; text-decoration: none; }
.sub-card__image { display: block; overflow: hidden; border-radius: 12px; background: var(--soft); }
.sub-card__image .media { border-radius: 0; }
.sub-card__image img { transition: transform .6s var(--ease); }
.sub-card__title { display: block; font-family: var(--font-heading); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; transition: color .2s; }
.sub .sub-card:hover .sub-card__title, .sub .sub-card[aria-current] .sub-card__title { color: var(--accent-strong); }
.sub .sub__all { display: inline-flex; align-items: center; gap: .5rem; padding: 0; border: 0; color: var(--accent-strong); font-size: .9375rem; font-weight: 600; letter-spacing: normal; text-decoration: none; }
.sub__all .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.sub__all:hover .icon { transform: translateX(3px); }

/* Desktop dropdown */
.nav .has-sub { display: flex; align-items: center; }
.nav .has-sub > a { padding-right: .125rem; }
.nav .sub-toggle { width: 24px; height: 32px; margin-right: .25rem; }
.nav .sub {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	width: min(1200px, calc(100vw - 40px));
	padding: 14px 14px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius-nav);
	background: var(--surface);
	box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--ink) 45%, transparent);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 8px);
	transition: opacity .2s, transform .3s var(--ease), visibility .2s;
}
.nav .sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav .is-open > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav .sub__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.nav .sub-card { padding: 6px; border-radius: 16px; transition: background-color .2s; }
.nav .sub-card:hover, .nav .sub-card[aria-current] { background: var(--soft); }
.nav .sub-card:hover img { transform: scale(1.05); }
.nav .sub-card__image .media { aspect-ratio: 4 / 3; }
.nav .sub-card__title { margin-top: .75rem; padding-inline: 2px; font-size: 1.0625rem; }
.nav .sub-card__text { display: block; margin-top: .375rem; padding-inline: 2px; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.nav .sub__all { margin: 12px 8px 0; }
html:not(.js) .nav .has-sub:hover > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Phone and tablet menu */
.menu-panel .has-sub { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--border); }
.menu-panel .has-sub > a { flex: 1; border-bottom: 0; }
.menu-panel .sub-toggle { width: 48px; height: 48px; background: var(--soft); border-radius: 50%; }
.menu-panel .sub-toggle .icon { width: 20px; height: 20px; }
.menu-panel .sub { display: none; flex-basis: 100%; padding-bottom: 1rem; }
.menu-panel .is-open > .sub { display: block; }
.menu-panel .sub__grid { display: grid; gap: 4px; }
.menu-panel .sub .sub-card { display: flex; align-items: center; gap: .875rem; min-height: 64px; padding-block: .25rem; }
.menu-panel .sub-card__image { flex: none; width: 76px; }
.menu-panel .sub-card__image .media { aspect-ratio: 4 / 3; }
.menu-panel .sub-card__title { font-size: 1.0625rem; }
.menu-panel .sub-card__text { display: none; }
.menu-panel .sub .sub__all { min-height: 44px; margin-top: .25rem; }

/* Hero: 10px from every screen edge, nav bar floats on top
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: calc(100vh - 20px);
	min-height: calc(100svh - 20px);
	margin: 10px;
	overflow: hidden;
	border-radius: var(--radius-frame);
	background: var(--ink);
}
.admin-bar .hero { min-height: calc(100vh - 52px); min-height: calc(100svh - 52px); }

.hero__media { position: absolute; inset: 0; }
.hero__media .media { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .6s;
}
.hero__video.is-playing { opacity: 1; }

/* Keeps white text readable over any video frame. */
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(color-mix(in srgb, var(--ink) 8%, transparent), color-mix(in srgb, var(--ink) 12%, transparent) 40%, color-mix(in srgb, var(--ink) 62%, transparent) 70%, color-mix(in srgb, var(--ink) 82%, transparent));
}

.hero__content { position: relative; width: 100%; padding: clamp(1.25rem, 4vw, 4rem); }
.hero .hero__title {
	max-width: 17em;
	margin-inline: auto;
	text-align: center;
	color: #fff;
	font-size: clamp(2.5rem, min(5.4vw, 10.5vh), 6.25rem);
	font-weight: 600;
	line-height: 1.02;
	letter-spacing: -.035em;
	text-wrap: balance;
}

/* Inner page hero
   ========================================================================== */

.hero--page, .admin-bar .hero--page { min-height: clamp(30rem, 72svh, 48rem); }
.hero--page .hero__title { font-size: clamp(2.25rem, min(4.8vw, 9vh), 5rem); }
.hero--page .hero__media::after { background: linear-gradient(color-mix(in srgb, var(--ink) 30%, transparent), color-mix(in srgb, var(--ink) 62%, transparent) 45%, color-mix(in srgb, var(--ink) 84%, transparent)); }
/* Keeps the breadcrumb clear of the floating nav bar when the banner fills up. */
.hero--page .hero__content { padding-top: calc(var(--header) + .75rem); }
.hero--compact, .admin-bar .hero--compact { min-height: clamp(24rem, 54svh, 34rem); }
.hero__intro { text-wrap: balance; max-width: 40rem; margin: 1.25rem auto 0; color: color-mix(in srgb, #fff 92%, transparent); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); text-align: center; }

/* Story and values
   ========================================================================== */

.story__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.story__title { max-width: 14ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.story__text { margin-top: 1.75rem; color: var(--muted); font-size: 1.0625rem; }
.story__text p + p { margin-top: 1rem; }
.story__text .story__lead { color: var(--ink); font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.4; letter-spacing: -.01em; }
.story__media { overflow: hidden; border-radius: 18px; }
.story__media .media { border-radius: 0; }

.values { padding-top: 0; }
.values__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.values__title { max-width: 16ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.values__grid { display: grid; gap: 12px; }
.value { --v-ink: var(--ink); --v-soft: var(--body); --v-chip: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: clamp(2.5rem, 6vw, 5rem); min-height: 18rem; padding: clamp(1.5rem, 2.4vw, 2.25rem); border-radius: 18px; }
.value--1 { --v-ink: #fff; --v-soft: color-mix(in srgb, #fff 86%, transparent); --v-chip: color-mix(in srgb, #fff 14%, transparent); background: var(--ink); }
.value--2 { background: var(--accent-soft); }
.value--3 { --v-ink: #fff; --v-soft: color-mix(in srgb, #fff 88%, transparent); --v-chip: color-mix(in srgb, #fff 16%, transparent); background: var(--accent); }
.value--4 { --v-soft: var(--muted); --v-chip: var(--soft); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.value__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--v-chip); color: var(--v-ink); }
.value__title { color: var(--v-ink); font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.value__text { max-width: 30rem; margin-top: .625rem; color: var(--v-soft); font-size: 1.0625rem; line-height: 1.5; }

@media (min-width: 640px) {
	.values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
	.story__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
	.values__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.value--1, .value--4 { grid-column: span 7; }
	.value--2, .value--3 { grid-column: span 5; }
}

/* Services: draggable equal cards with looping video under a green blend
   ========================================================================== */

.services { overflow: hidden; }
.services__head { display: grid; gap: 1.25rem clamp(2rem, 6vw, 6rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.services__title { max-width: 15ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.services__text { max-width: 26rem; color: var(--muted); font-size: 1.125rem; }

.svc__track {
	--edge: max(var(--gutter), calc((100% - var(--container)) / 2));
	display: flex;
	gap: 12px;
	padding-inline: var(--edge);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-padding-inline: var(--edge);
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}
.svc__track::-webkit-scrollbar { display: none; }
.svc__track:focus-visible { outline-offset: -2px; }
.svc__track.is-dragging { scroll-snap-type: none; user-select: none; }
.svc__track.is-dragging a { pointer-events: none; }
.svc-card { flex: 0 0 min(82%, 22rem); min-width: 0; scroll-snap-align: start; }
.svc-card__link {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 34rem;
	padding: 1.5rem;
	overflow: hidden;
	border-radius: 20px;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
}
.svc-card__link:focus-visible { outline-offset: -4px; outline-color: #fff; }
.svc-card__link img { -webkit-user-drag: none; }
.svc-card__photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; isolation: isolate; }
.svc-card__photo .media { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.svc-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; pointer-events: none; }
.svc-card__video.is-playing { opacity: 1; }
/* Dark at the bottom where the title and text sit, fading out toward the top. */
.svc-card__photo::after { content: ""; position: absolute; inset: -1px; background: linear-gradient(to top, var(--wdwc-color-text, #24312b), transparent); }
.svc-card__title { color: #fff; font-size: clamp(1.5rem, 2.1vw, 1.875rem); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
.svc-card__foot { display: block; }
.svc-card__text { display: block; margin-top: .625rem; color: #fff; font-size: 1rem; line-height: 1.5; }
.svc-card__arrow { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface); color: var(--accent); }
.svc-card__arrow .icon { width: 20px; height: 20px; stroke-width: 2; transform: rotate(-45deg); transition: transform .4s var(--ease); }
.svc-card__link:hover .svc-card__arrow .icon { transform: rotate(0); }

.svc__cursor { position: fixed; top: 0; left: 0; z-index: 40; display: none; align-items: center; justify-content: center; gap: .5rem; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--surface); box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--ink) 40%, transparent); color: var(--ink); font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .25s; }
@media (hover: hover) and (pointer: fine) {
	.svc__cursor { display: flex; }
	.svc__cursor.is-on { opacity: 1; }
	.svc__track { cursor: grab; }
	.svc__track.is-dragging { cursor: grabbing; }
}
@media (min-width: 960px) {
	.services__head { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
}
@media (max-width: 639.98px) {
	.svc-card__link { height: 30rem; }
}

/* Key Numbers: heading beside numbers in a thin-lined grid
   ========================================================================== */

.stats { padding-bottom: var(--section); }
.stats__grid { display: grid; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.stats__title, .stats__cell { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 3vw, 2.75rem); box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); }
.stats__title { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.stats__cell { min-height: 13rem; }
.stats__value { color: var(--ink); font-family: var(--font-heading); font-size: clamp(3rem, 5.4vw, 5rem); font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.04em; }
.stats__text { max-width: 17rem; margin-top: 1.25rem; color: var(--muted); }

@media (min-width: 640px) {
	.stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
	.stats__grid { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; grid-template-columns: minmax(0, 1.3fr); }
	.stats__cell { min-height: 21rem; }
}

/* About: dark panel with a wide image and a scroll-lit statement
   ========================================================================== */

.about { margin: 0 10px; padding-block: clamp(4rem, 9vw, 8rem); border-radius: 18px; background: var(--ink); color: #fff; }
.about .eyebrow { color: var(--accent-soft); }
.about__intro { display: grid; gap: 2rem clamp(2rem, 6vw, 6rem); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.about__title { max-width: 14ch; color: #fff; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.about__focus { display: flex; flex-wrap: wrap; gap: .5rem; }
.about__focus a { display: block; padding: .5rem 1rem; border: 1px solid color-mix(in srgb, #fff 24%, transparent); border-radius: 999px; color: inherit; font-size: .9375rem; text-decoration: none; transition: background-color .2s, border-color .2s; }
.about__focus a:hover { border-color: color-mix(in srgb, #fff 60%, transparent); background: color-mix(in srgb, #fff 10%, transparent); }
.about__focus a:focus-visible { outline-color: #fff; }
.about__media { overflow: hidden; border-radius: 18px; background: color-mix(in srgb, #fff 8%, transparent); }
.about__media .media { border-radius: 0; aspect-ratio: 16 / 10; }
.about__statement { max-width: 24ch; margin-top: clamp(3rem, 7vw, 6rem); font-family: var(--font-heading); font-size: clamp(1.875rem, 5vw, 4.5rem); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; }
.about__closing { max-width: 30rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); color: color-mix(in srgb, #fff 82%, transparent); font-size: 1.125rem; }

@media (min-width: 960px) {
	.about__intro { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; }
	.about__focus { justify-content: flex-end; }
	.about__media .media { aspect-ratio: 21 / 9; }
	.about__closing { margin-left: auto; }
}

/* Process: sticky heading beside a timeline that fills on scroll
   ========================================================================== */

.how__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); }
.how__title { max-width: 13ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.how__text { max-width: 26rem; margin-top: 1.25rem; color: var(--muted); font-size: 1.125rem; }

.how__steps { position: relative; --dot: 52px; }
.how__rail { position: absolute; top: calc(var(--dot) / 2); bottom: 0; left: calc(var(--dot) / 2 - 1px); width: 2px; background: var(--border); }
.how__fill { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: top; }
.how__step { position: relative; display: grid; grid-template-columns: var(--dot) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); padding-bottom: clamp(3rem, 8vw, 6.5rem); }
/* Ends the rail at the last step's number. */
.how__step:last-child { padding-bottom: 0; }
.how__step:last-child::before { content: ""; position: absolute; top: calc(var(--dot) / 2); bottom: 0; left: 0; width: var(--dot); background: var(--bg); }
.how__num {
	position: relative;
	display: grid;
	place-items: center;
	width: var(--dot);
	height: var(--dot);
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-family: var(--font-mono);
	font-size: .875rem;
	transition: background-color .4s, color .4s, box-shadow .4s;
}
.how__name { padding-top: .25rem; font-size: clamp(1.75rem, 3.6vw, 3.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; transition: color .4s; }
.how__desc { max-width: 32rem; margin-top: .75rem; color: var(--muted); font-size: 1.125rem; line-height: 1.5; }

/* Before a step is reached. Only when GSAP is running, so nothing depends on it. */
.has-gsap .how__step:not(.is-active) .how__num { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); }
.has-gsap .how__step:not(.is-active) .how__name { color: var(--muted); }

@media (min-width: 960px) {
	.how__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
	.how__head { position: sticky; top: calc(var(--header) + 2rem); }
}

/* Our Work: project slider
   ========================================================================== */

.work { overflow: hidden; }
.work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.work__title { max-width: 14ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.work__text { max-width: 30rem; margin-top: 1rem; color: var(--muted); font-size: 1.125rem; }
.work__controls { display: flex; align-items: center; gap: .625rem; }
.work__count { margin-right: .75rem; color: var(--muted); font-family: var(--font-mono); font-size: .875rem; }
.work__btn { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .3s, border-color .3s, color .3s, opacity .3s; }
.work__btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent); color: #fff; }
.work__btn:disabled { opacity: .35; cursor: default; }
.work__btn--prev .icon { transform: rotate(180deg); }

.work__track {
	--edge: max(var(--gutter), calc((100% - var(--container)) / 2));
	display: flex;
	gap: clamp(1rem, 2vw, 1.75rem);
	padding-inline: var(--edge);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-padding-inline: var(--edge);
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.work__track::-webkit-scrollbar { display: none; }
.work__track:focus-visible { outline-offset: -2px; }
.work__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.work__track.is-dragging a { pointer-events: none; }
.work-slide { flex: 0 0 min(88%, 1040px); min-width: 0; scroll-snap-align: start; }
.work-slide__link { display: block; color: var(--ink); text-decoration: none; }
.work-slide__link img { -webkit-user-drag: none; }
.work-slide__frame { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--ink); transition: transform .7s var(--ease); }
.work-slide__frame .media { border-radius: 0; aspect-ratio: 16 / 9; max-height: 68vh; width: 100%; }
.work-slide__frame .media__img { object-position: top; }
.work-slide__frame img { transition: transform .9s var(--ease), filter .6s; }
.work-slide:not(.is-active) .work-slide__frame { transform: scale(.97); }
.work-slide:not(.is-active) .work-slide__frame img { filter: saturate(.6) brightness(.82); }
.work-slide__meta { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 2rem; padding-top: 1.25rem; }
.work-slide__name { font-size: clamp(1.375rem, 2.4vw, 2.125rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.work-slide__tags { display: block; margin-top: .375rem; color: var(--muted); font-size: .9375rem; }
.work-slide__visit { display: inline-flex; align-items: center; gap: .5rem; padding-top: .375rem; color: var(--accent-strong); font-weight: 600; }
.work-slide__visit .icon { width: 18px; height: 18px; transform: rotate(-45deg); transition: transform .4s var(--ease); }
.work-slide__link:focus-visible { outline-offset: 4px; }
.work__progress { height: 2px; margin-top: clamp(1.75rem, 3vw, 2.5rem); overflow: hidden; background: var(--border); }
.work__progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

@media (hover: hover) {
	.work-slide__link:hover .work-slide__frame img { transform: scale(1.03); }
	.work-slide__link:hover .work-slide__visit .icon { transform: rotate(0); }
	.work__track { cursor: grab; }
}
@media (min-width: 960px) {
	.work-slide { flex-basis: min(78%, 1040px); }
}

/* FAQ: heading and help box beside an accordion of cards
   ========================================================================== */

.faq-section__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
.faq-section__title { max-width: 15ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.faq-help { margin-top: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.25rem, 2vw, 1.75rem); border-radius: 18px; background: var(--accent-soft); }
.faq-help__title { color: var(--ink); font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.faq-help__text { max-width: 26rem; margin-top: .375rem; color: var(--body); }
.faq-help__btn { margin-top: 1.125rem; border-radius: 12px; }

.faq { display: grid; gap: .625rem; align-content: start; }
.faq__item { border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: background-color .4s, box-shadow .4s; }
.faq__q { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; }
.faq__q button { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; width: 100%; padding: clamp(1rem, 1.6vw, 1.375rem) clamp(1.125rem, 2vw, 1.625rem); border: 0; border-radius: 18px; background: none; color: var(--ink); font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; transition: color .3s; }
.faq__icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--accent-strong); transition: background-color .3s, color .3s, transform .45s var(--ease); }
.faq__icon .icon { width: 20px; height: 20px; }
.faq__item:not(.is-open) .faq__q button:hover .faq__icon { background: var(--accent); color: #fff; }
.faq__a-inner { padding: 0 clamp(1.125rem, 2vw, 1.625rem) 1.5rem; color: var(--muted); }
.faq__a-inner p { max-width: 42rem; }
.faq__q button:focus-visible { outline-offset: -3px; }

.faq__item.is-open { background: var(--accent); box-shadow: none; }
.faq__item.is-open .faq__q button { color: #fff; }
.faq__item.is-open .faq__q button:focus-visible { outline-color: #fff; }
.faq__item.is-open .faq__icon { background: #fff; color: var(--accent-strong); transform: rotate(45deg); }
.faq__item.is-open .faq__a-inner { color: color-mix(in srgb, #fff 90%, transparent); }

.js .faq__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility .4s; }
.js .faq__a-inner { min-height: 0; overflow: hidden; padding-block-end: 0; }
.js .faq__a-inner p { padding-bottom: 1.5rem; }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; }

@media (min-width: 960px) {
	.faq-section__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
	.faq-section__side { position: sticky; top: calc(var(--header) + 2rem); }
}

/* Contact: next steps beside the enquiry form
   ========================================================================== */

.contact__grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__title { max-width: 13ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.contact__text { max-width: 30rem; margin-top: 1.25rem; color: var(--muted); font-size: 1.125rem; }
.contact__sub { margin-top: clamp(2rem, 4vw, 3rem); font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.contact__steps { counter-reset: step; margin-top: .5rem; }
.contact__steps li { display: flex; align-items: center; gap: .875rem; padding-block: .875rem; border-bottom: 1px solid var(--border); counter-increment: step; }
.contact__steps li::before { content: counter(step, decimal-leading-zero); flex: none; color: var(--muted); font-family: var(--font-mono); font-size: .8125rem; }
.contact__details { margin-top: .875rem; }
.contact__details a, .contact__details address { display: block; font-size: 1.125rem; font-weight: 600; line-height: 1.4; }

.contact__form { min-width: 0; padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.form { display: grid; gap: 1.125rem; }
.form__row { display: grid; gap: 1.125rem; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: .375rem; color: var(--ink); font-size: .9375rem; font-weight: 500; }
.field label span { color: var(--accent-strong); }
.field input, .field select, .field textarea {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: .625rem .875rem;
	border: 1px solid color-mix(in srgb, var(--muted) 60%, var(--surface));
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink);
	font-size: 1rem; /* 16px stops iOS zooming into fields. */
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field [aria-invalid="true"] { border-color: #b91c1c; }
.field__error { margin-top: .375rem; color: #b91c1c; font-size: .875rem; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { width: 100%; border-radius: 12px; }
.form-message { border-radius: 10px; }
.form-message--error { padding: .75rem 1rem; background: #fef2f2; color: #991b1b; font-size: .9375rem; }
.form-message--success { padding: clamp(1rem, 3vw, 2.5rem) 0; }
.form-message--success p { margin-top: .5rem; color: var(--muted); }

@media (min-width: 640px) {
	.form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
	.contact__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

/* Footer: photo call to action above a white card of links
   ========================================================================== */

.site-footer { padding-bottom: 10px; background: var(--ink); }
.foot-cta { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.foot-cta__media { position: absolute; inset: 0; z-index: -1; }
.foot-cta__media .media { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; background: var(--ink); }
.foot-cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(color-mix(in srgb, var(--ink) 55%, transparent), color-mix(in srgb, var(--ink) 62%, transparent) 55%, var(--ink)); }
.foot-cta__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 4rem; padding-block: clamp(5rem, 11vw, 10rem) clamp(4rem, 8vw, 7rem); }
.foot-cta__title { max-width: 14ch; color: #fff; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.foot-cta__text { max-width: 32rem; margin-top: 1.25rem; font-size: 1.125rem; }
.foot-cta__btn { min-height: 58px; padding-inline: 2rem; border-radius: 15px; }

.foot-card { margin-inline: 10px; padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: 18px; background: var(--surface); }
.foot-card__grid { display: grid; gap: 2.5rem; }
.foot-card__about p { max-width: 24rem; margin-top: 1rem; color: var(--muted); }
.site-footer__title { margin-bottom: 1rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.site-footer__list { display: grid; gap: .25rem; color: var(--muted); font-size: .9375rem; }
.site-footer__list a { display: inline-block; padding-block: .3rem; text-decoration: none; transition: color .2s; }
.site-footer__list a:hover { color: var(--accent-strong); }
.site-footer__list address { font-style: normal; }

.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s; }
.social a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.contact-items { display: grid; gap: .875rem; }
.contact-item__label { display: block; color: var(--muted); font-size: .8125rem; }
.contact-items a, .contact-items address { color: var(--ink); font-style: normal; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-items a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.foot-contact a, .foot-contact address { display: block; font-size: .9375rem; line-height: 1.45; }
.site-footer .foot-contact a { min-height: 0; }
.foot-contact__link { margin-top: 1rem; }
.foot-contact__link a { display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; color: var(--accent-strong); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.foot-contact__link .icon { width: 16px; height: 16px; }

/* Floating WhatsApp button, shown only when a number is set in WeDevWebs Core. Sits below the header (z-index 50). */
.wa-float { position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: 45; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 45%, transparent), 0 12px 28px -10px color-mix(in srgb, var(--ink) 55%, transparent); color: var(--accent-soft); transition: transform .25s var(--ease), background-color .25s, box-shadow .25s; }
.wa-float:hover { transform: translateY(-3px); background: var(--accent-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 70%, transparent), 0 16px 32px -10px color-mix(in srgb, var(--ink) 65%, transparent); }
.wa-float:focus-visible { outline-color: var(--ink); outline-offset: 3px; }
@media print { .wa-float { display: none; } }

.foot-card__bottom { display: grid; gap: .5rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .875rem; }

@media (min-width: 640px) {
	.foot-card__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-card__bottom { grid-template-columns: auto 1fr; gap: 2rem; }
	.site-footer__closing { max-width: 44rem; justify-self: end; text-align: right; }
}
@media (min-width: 960px) {
	.foot-card__grid { grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr; gap: clamp(2rem, 4vw, 4rem); }
}

.fallback { padding-block: calc(var(--header) + 4rem) 5rem; min-height: 60vh; }
.fallback article + article { margin-top: 2.5rem; }
.fallback p { margin-top: 1rem; }

/* Header breakpoints
   ========================================================================== */

@media (min-width: 720px) {
	.nav__cta { display: inline-flex; }
}

/* Below this the links move to the menu panel; the hamburger only exists on these sizes. */
@media (min-width: 1040px) {
	.nav { display: block; }
	/* A wider button takes up the spare room on the right, so the gaps stay even. */
	.nav__cta { padding-inline: 3.25rem; }
	.js .nav-toggle { display: none; }
}

/* Without JavaScript the panel cannot open, so show the links in a plain header. */
html:not(.js) .site-header { position: static; margin: 10px; }
html:not(.js) .site-header__bar { width: auto; }
html:not(.js) .nav { display: block; }
html:not(.js) .nav__list { flex-wrap: wrap; }
html:not(.js) .hero { min-height: 80vh; }

@media (max-width: 782px) {
	.admin-bar .site-header { top: 56px; }
	.admin-bar .hero { min-height: calc(100svh - 66px); }
}

@media (max-width: 519.98px) {
	.site-header { --logo-height: var(--wdwc-logo-height-sm, 28px); --control: 44px; inset-inline: 18px; }
	.site-header__bar { width: 100%; min-height: 60px; padding: 7px; border-radius: 18px; }
	.btn-row .btn { width: 100%; }
	.work-card__body { flex-direction: column; }
}

/* Larger layouts
   ========================================================================== */

@media (min-width: 640px) {
	.site-footer__closing { max-width: 44rem; justify-self: end; text-align: right; }
}

@media (min-width: 640px) and (max-width: 959.98px) {
	.about__visual .media { aspect-ratio: 16 / 10; }
}

@media (min-width: 960px) {
	.section-head--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

	/* Asymmetric portfolio: alternating 7/5 and 5/7 columns. */
	.work-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.work-card { grid-column: span 5; }
	.work-card:nth-child(4n + 1), .work-card:nth-child(4n) { grid-column: span 7; }
	.work-card:last-child:nth-child(odd) { grid-column: span 12; }
	.work-card .media { flex: 1; aspect-ratio: auto; min-height: clamp(280px, 30vw, 420px); }


}

/* Without the links beside it, the logo sits left and the controls right. */
@media (max-width: 1039.98px) {
	.site-header__bar { display: flex; justify-content: space-between; width: 100%; padding: 7px 7px 7px 16px; }
}

/* Service Details
   ========================================================================== */

.svc-list__head { display: grid; gap: 1.25rem clamp(2rem, 6vw, 6rem); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.svc-list__title { max-width: 15ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.svc-list__text { max-width: 30rem; color: var(--muted); font-size: 1.125rem; }
.svc-row { display: grid; gap: 1.75rem clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(2rem, 4vw, 3.5rem); scroll-margin-top: var(--header); }
.svc-row + .svc-row { border-top: 1px solid var(--border); }
.svc-row__media { position: relative; isolation: isolate; height: clamp(20rem, 60vw, 38rem); overflow: hidden; border-radius: 20px; background: var(--accent); }
.svc-row__media .svc-card__photo::after { content: none; }
.svc-row__title { font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.svc-row__text { margin-top: 1rem; color: var(--body); font-size: 1.0625rem; line-height: 1.6; }
.svc-row__text p + p { margin-top: .75rem; }
.svc-row__sub { margin: 1.5rem 0 .75rem; color: var(--ink); font-family: var(--font-heading); font-size: 1rem; font-weight: 600; }
.svc-row__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-row__list li { padding: .4375rem .875rem; border-radius: 99px; background: var(--soft); color: var(--ink); font-size: .9375rem; }
.svc-row__for { margin-top: 1.25rem; color: var(--muted); }
.svc-row__btn { margin-top: 1.5rem; }

@media (min-width: 960px) {
	/* The label gets its own row so the description lines up with the top of the heading. */
	.svc-list__head { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
	.services__head, .svc-list__head, .so__head { row-gap: 0; align-items: start; }
	.services__head > div:first-child, .svc-list__head > div:first-child, .so__head > div:first-child { display: contents; }
	.services__head .eyebrow, .services__title, .svc-list__head .eyebrow, .svc-list__title, .so__head .eyebrow, .so__title { grid-column: 1; }
	.services__text, .svc-list__text, .so__text { grid-column: 2; }
	.services__head:has(.eyebrow) .services__text, .svc-list__head:has(.eyebrow) .svc-list__text, .so__head:has(.eyebrow) .so__text { grid-row: 2; }
	.svc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.svc-row:nth-of-type(even) .svc-row__media { order: 2; }
	.svc-row__media { height: clamp(28rem, 42vw, 38rem); }
}

.crumbs { margin-bottom: 1rem; color: #fff; font-size: .875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .5rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .7; }
.crumbs a { color: #fff; text-decoration-color: rgb(255 255 255 / 50%); text-underline-offset: 3px; }
.crumbs a:hover { text-decoration-color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.hero__actions .btn { min-height: 52px; border-radius: 14px; }

/* Service page sections
   ========================================================================== */

.si__grid { display: grid; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.si__title { max-width: 16ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.si__text { margin-top: 1.5rem; color: var(--body); font-size: 1.0625rem; line-height: 1.65; }
.si__text p + p { margin-top: 1rem; }
.si__text .si__lead { color: var(--ink); font-size: clamp(1.1875rem, 1.7vw, 1.375rem); line-height: 1.45; letter-spacing: -.01em; }
.si__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.si__tags li { padding: .4375rem .875rem; border-radius: 99px; background: var(--soft); color: var(--ink); font-size: .9375rem; }
.si__media { overflow: hidden; border-radius: 18px; }
.si__media .media { border-radius: 0; }

.so { padding-top: 0; }
.so__head { display: grid; gap: 1.25rem clamp(2rem, 6vw, 6rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.so__title { max-width: 16ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.so__text { max-width: 30rem; color: var(--muted); font-size: 1.125rem; }
.so__grid { display: grid; gap: clamp(2rem, 3.5vw, 3rem) clamp(.75rem, 1.6vw, 1.5rem); }
.so-card__image { display: block; overflow: hidden; border-radius: 18px; background: var(--soft); }
.so-card__image .media { border-radius: 0; aspect-ratio: 3 / 2; }
.so-card__title { margin-top: 1.125rem; font-size: clamp(1.375rem, 1.9vw, 1.625rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.so-card__title a { color: inherit; text-decoration: none; }
.so-card__title a:hover { color: var(--accent-strong); }
.so-card__title .icon { display: inline-block; width: 20px; height: 20px; margin-left: .125rem; vertical-align: -3px; transform: rotate(-45deg); }
.so-card__text { margin-top: .5rem; color: var(--body); line-height: 1.6; }

.sl--dark { margin: 0 10px; padding-block: clamp(4rem, 9vw, 8rem); border-radius: 18px; background: var(--ink); color: #fff; }
.sl__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sl__title { max-width: 14ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.sl--dark .sl__title { color: #fff; }
.sl--dark .eyebrow { color: var(--accent-soft); }
.sl--dark .wdw-tone { color: color-mix(in srgb, #fff 68%, transparent); }
.sl__text { max-width: 30rem; margin-top: 1.25rem; color: var(--muted); font-size: 1.125rem; line-height: 1.55; }
.sl__text p + p { margin-top: .75rem; }
.sl--dark .sl__text { color: color-mix(in srgb, #fff 82%, transparent); }
.sl__items { counter-reset: point; }
.sl__item { position: relative; padding-block: 1.5rem; padding-left: 3.25rem; border-top: 1px solid var(--border); counter-increment: point; }
.sl--dark .sl__item { border-color: color-mix(in srgb, #fff 18%, transparent); }
.sl__item::before { content: counter(point, decimal-leading-zero); position: absolute; top: 1.875rem; left: 0; color: var(--muted); font-family: var(--font-mono); font-size: .875rem; }
.sl--dark .sl__item::before { color: var(--accent-soft); }
.sl__name { font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.sl--dark .sl__name { color: #fff; }
.sl__desc { margin-top: .375rem; color: var(--body); line-height: 1.6; }
.sl--dark .sl__desc { color: color-mix(in srgb, #fff 82%, transparent); }

.sr__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sr__title { max-width: 18ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.sr__grid { display: grid; gap: 1.5rem clamp(.75rem, 1.6vw, 1.5rem); }
.sr-card { display: block; color: var(--ink); text-decoration: none; }
.sr-card__image { display: block; overflow: hidden; border-radius: 16px; background: var(--soft); }
.sr-card__image .media { border-radius: 0; aspect-ratio: 3 / 2; }
.sr-card__image img { transition: transform .6s var(--ease); }
.sr-card:hover img { transform: scale(1.04); }
.sr-card__name { display: block; margin-top: .875rem; font-family: var(--font-heading); font-size: 1.1875rem; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.sr-card:hover .sr-card__name { color: var(--accent-strong); }
.sr-card__name .icon { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; transform: rotate(-45deg); }
.sr-card__text { display: block; margin-top: .375rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }

@media (min-width: 640px) {
	.so__grid, .sr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
	.si__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
	.si--flip .si__media { order: -1; }
	.si--flip .si__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
	.so__head { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
	.sl__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
	.sl__head { position: sticky; top: calc(var(--header) + 1.5rem); }
	.sr__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.so__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Blog
   ========================================================================== */

.blog-list__title { margin-bottom: clamp(2rem, 4vw, 3rem); font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.blog-grid { display: grid; gap: clamp(2rem, 3.5vw, 3rem) clamp(.75rem, 1.6vw, 1.5rem); }
.post-card { position: relative; }
.post-card__image { display: block; overflow: hidden; border-radius: 18px; background: var(--soft); }
.post-card__image .media { border-radius: 0; aspect-ratio: 16 / 10; }
.post-card__image img { transition: transform .7s var(--ease); }
.post-card:hover img { transform: scale(1.03); }
.post-card__copy { padding-top: 1.125rem; }
.post-card__cat { color: var(--accent-strong); font-size: .875rem; font-weight: 600; }
.post-card__title { margin-top: .375rem; font-size: clamp(1.375rem, 2.1vw, 1.75rem); font-weight: 600; line-height: 1.18; letter-spacing: -.02em; text-wrap: balance; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a:focus-visible { outline: 0; }
.post-card__title a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 18px; }
.post-card:hover .post-card__title { color: var(--accent-strong); }
.post-card__text { margin-top: .5rem; color: var(--body); line-height: 1.55; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 3rem; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding-inline: .875rem; border-radius: 12px; background: var(--soft); color: var(--ink); text-decoration: none; }
.nav-links .current { background: var(--accent); color: #fff; }

.article-head { padding-top: calc(var(--header) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(2rem, 4vw, 3rem); }
.crumbs--dark { color: var(--muted); }
.crumbs--dark ol { justify-content: flex-start; }
.crumbs--dark a { color: var(--ink); text-decoration-color: var(--border); }
.crumbs--dark a:hover { text-decoration-color: var(--ink); }
.article-head__title { font-size: clamp(2.125rem, 4.6vw, 3.75rem); font-weight: 600; line-height: 1.07; letter-spacing: -.035em; text-wrap: balance; }
.article-head__lead { margin-top: 1.25rem; color: var(--body); font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.5; }
.article-head__meta { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin-top: 1.25rem; color: var(--muted); font-size: .9375rem; }
.article-image { margin: 0 10px; overflow: hidden; border-radius: 18px; background: var(--soft); }
.article-image .media { width: 100%; height: clamp(15rem, 56vw, 44rem); border-radius: 0; aspect-ratio: auto; }
.article-body { padding-block: clamp(2.5rem, 5vw, 4.5rem) 0; }
.article-toc { margin-bottom: clamp(2rem, 4vw, 3rem); padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: 18px; background: var(--soft); }
.article-toc__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.article-toc ol { margin-top: .625rem; padding-left: 1.25rem; list-style: decimal; }
.article-toc li { padding-block: .1875rem; }
.article-toc a { color: var(--ink); text-underline-offset: 3px; }
.article-toc a:hover { color: var(--accent-strong); }
.prose { color: var(--body); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.7; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2.25em; font-size: clamp(1.625rem, 2.8vw, 2.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; scroll-margin-top: calc(var(--header) + 1.5rem); text-wrap: balance; }
.prose h3 { margin-top: 1.75em; font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.prose h2 + *, .prose h3 + * { margin-top: .75em; }
.prose ul, .prose ol { padding-left: 1.375em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.blog-list--more { padding-top: clamp(4rem, 8vw, 6rem); }
.blog-list--more .blog-list__title { font-size: clamp(1.875rem, 3.6vw, 3rem); }

@media (min-width: 640px) {
	.blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-card--lead { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
	.post-card--lead { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
	.post-card--lead .post-card__copy { padding-top: 0; }
	.post-card--lead .post-card__title { font-size: clamp(1.875rem, 3.2vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
	.post-card--lead .post-card__text { font-size: 1.125rem; }
}

@media (min-width: 960px) {
	.contact__form { position: sticky; top: calc(var(--header) + 1.5rem); }
	.site-footer__closing { padding-right: 4.5rem; }
}

/* Industries
   ========================================================================== */

.nav .sub__grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
.nav .sub__grid--wide .sub-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: .875rem; align-items: center; }
.nav .sub__grid--wide .sub-card__image { grid-row: 1 / span 2; }
.nav .sub__grid--wide .sub-card__title { align-self: end; margin-top: 0; font-size: 1rem; }
.nav .sub__grid--wide .sub-card__text { align-self: start; margin-top: .25rem; font-size: .8125rem; }

/* Listing mosaic */
.ii__head, .ib__head, .icm__head { display: grid; gap: 1.25rem clamp(2rem, 6vw, 6rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.ii__title, .ib__title, .icm__title, .ij__title, .ir__title, .is__title { max-width: 17ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.ii__text, .ib__text, .icm__text, .ij__text { max-width: 30rem; color: var(--muted); font-size: 1.125rem; line-height: 1.5; }
.ii__grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.ii-card__link { position: relative; display: flex; flex-direction: column; height: 100%; padding: 10px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink); text-decoration: none; transition: box-shadow .3s, transform .3s var(--ease); }
.ii-card__link:hover { box-shadow: inset 0 0 0 1px var(--accent), 0 18px 40px -24px color-mix(in srgb, var(--ink) 45%, transparent); transform: translateY(-3px); }
.ii-card__image { display: block; overflow: hidden; border-radius: 14px; background: var(--soft); }
.ii-card__image .media { border-radius: 0; aspect-ratio: 16 / 10; }
.ii-card__image img { transition: transform .8s var(--ease); }
.ii-card__link:hover img { transform: scale(1.04); }
.ii-card__num { display: none; }
.ii-card__arrow { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--accent); }
.ii-card__arrow .icon { width: 18px; height: 18px; stroke-width: 2; transform: rotate(-45deg); transition: transform .4s var(--ease); }
.ii-card__link:hover .ii-card__arrow { background: var(--accent); color: #fff; }
.ii-card__link:hover .ii-card__arrow .icon { transform: rotate(0); }
.ii-card__copy { display: flex; flex: 1; flex-direction: column; padding: 1.25rem .875rem .875rem; }
.ii-card__title { font-size: clamp(1.375rem, 1.9vw, 1.625rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.ii-card__link:hover .ii-card__title { color: var(--accent-strong); }
.ii-card__text { display: block; margin-top: .5rem; color: var(--body); line-height: 1.5; }
.ii-card__chips { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: auto; padding-top: 1rem; }
.ii-card__chips span { padding: .25rem .75rem; border-radius: 99px; background: var(--soft); color: var(--ink); font-size: .8125rem; }

/* Big statement */
.il__statement { max-width: 24ch; margin-top: 1rem; color: var(--ink); font-family: var(--font-heading); font-size: clamp(2rem, 4.8vw, 4rem); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; }
.il__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(2.5rem, 5vw, 5rem); }
.il__media { overflow: hidden; border-radius: 18px; }
.il__media .media { border-radius: 0; aspect-ratio: 4 / 3; }
.il__title { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.il__text { margin-top: 1.25rem; color: var(--body); font-size: 1.0625rem; line-height: 1.65; }
.il__text p + p { margin-top: 1rem; }

/* Before and after */
.icm { margin: 0 10px; padding-block: clamp(4rem, 9vw, 7.5rem); border-radius: 18px; background: var(--ink); color: #fff; }
.icm .eyebrow { color: var(--accent-soft); }
.icm__title { color: #fff; }
.icm .wdw-tone { color: color-mix(in srgb, #fff 68%, transparent); }
.icm__text { color: color-mix(in srgb, #fff 82%, transparent); }
.icm__rows { display: grid; gap: 12px; }
.icm__row { display: grid; gap: 8px; align-items: stretch; }
.icm__before, .icm__after { padding: clamp(1.125rem, 2vw, 1.625rem); border-radius: 16px; line-height: 1.5; }
.icm__before { background: color-mix(in srgb, #fff 8%, transparent); color: color-mix(in srgb, #fff 88%, transparent); }
.icm__after { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.icm__tag { display: block; margin-bottom: .375rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .02em; text-transform: uppercase; }
.icm__after .icm__tag { color: var(--accent-strong); font-weight: 400; }
.icm__arrow { display: none; place-items: center; width: 44px; height: 44px; align-self: center; border-radius: 50%; background: var(--accent); color: #fff; }
.icm__arrow .icon { width: 18px; height: 18px; }

/* Feature panel: two photos beside feature cells */
.ib__panel { display: grid; gap: 12px; }
.ib__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ib__photo { position: relative; display: block; min-height: 12rem; overflow: hidden; border-radius: 18px; background: var(--soft); }
/* The photos crop to fit; the feature list sets the height. */
.ib__photo .media { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.ib__cells { display: grid; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.ib-cell { padding: clamp(1.25rem, 2.2vw, 2rem); box-shadow: 1px 0 0 var(--border), 0 1px 0 var(--border); transition: background-color .3s; }
.ib-cell:hover { background: var(--accent-soft); }
.ib-cell__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; }
.ib-cell__icon .icon { width: 20px; height: 20px; }
.ib-cell__title { margin-top: 1.125rem; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.ib-cell__text { margin-top: .5rem; color: var(--body); font-size: .9688rem; line-height: 1.55; }

/* Customer journey */
.ij { padding-top: 0; }
.ij__head { display: grid; justify-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.ij__title { max-width: 20ch; }
.ij__text { margin-top: 1rem; }
.ij__steps { counter-reset: journey; display: grid; gap: 1.5rem; }
.ij__step { position: relative; padding-left: 4rem; counter-increment: journey; }
.ij__step::before { content: counter(journey); position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; }
.ij__step:not(:last-child)::after { content: ""; position: absolute; top: 48px; bottom: -1.5rem; left: 23px; width: 2px; background: var(--accent-soft); }
.ij__name { font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.ij__desc { margin-top: .375rem; color: var(--body); line-height: 1.5; }

/* Search band */
.is { position: relative; isolation: isolate; overflow: hidden; margin: 0 10px; padding-block: clamp(4rem, 9vw, 7.5rem); border-radius: 18px; background: var(--ink); color: #fff; }
.is__bg { position: absolute; inset: 0; z-index: -1; }
.is__bg .media { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.is__bg::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 80%, transparent); }
.is__inner { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.is .eyebrow { color: var(--accent-soft); }
.is__title { color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); }
.is .wdw-tone { color: color-mix(in srgb, #fff 72%, transparent); }
.is__text { margin-top: 1.25rem; color: color-mix(in srgb, #fff 90%, transparent); font-size: 1.0625rem; line-height: 1.6; }
.is__text p + p { margin-top: .75rem; }
.is__box { padding: clamp(1rem, 2vw, 1.5rem); border-radius: 20px; background: var(--surface); color: var(--ink); }
.is__bar { display: flex; align-items: center; gap: .75rem; min-height: 60px; padding: .625rem 1.125rem; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--border), 0 8px 24px -16px rgb(0 0 0 / 50%); font-size: 1.0625rem; }
.is__bar .icon { flex: none; width: 20px; height: 20px; color: var(--muted); }
.is__bar [data-typing]::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: is-blink 1s steps(2) infinite; }
@keyframes is-blink { 50% { opacity: 0; } }
.is__label { margin-top: 1.125rem; padding-inline: .375rem; color: var(--muted); font-family: var(--font-body); font-size: .875rem; font-weight: 500; }
.is__list { margin-top: .25rem; }
.is__list li { padding: .625rem .375rem; border-bottom: 1px solid var(--border); font-size: .9375rem; }
.is__list li:last-child { border-bottom: 0; }

/* Other industries */
.ir__head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.ir__title { font-size: clamp(1.875rem, 3.6vw, 3rem); }
.ir__list { display: flex; flex-wrap: wrap; gap: 10px; }
.ir__link { display: flex; align-items: center; gap: .75rem; min-height: 64px; padding: 6px 1.125rem 6px 6px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink); font-weight: 500; text-decoration: none; transition: background-color .25s, color .25s; }
.ir__link:hover { background: var(--accent); color: #fff; }
.ir__image { flex: none; width: 52px; height: 52px; overflow: hidden; border-radius: 50%; background: var(--soft); }
.ir__image .media { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; }
.ir__link .icon { width: 16px; height: 16px; transform: rotate(-45deg); }

@media (min-width: 640px) {
	.ib__cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ij__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
	.ij__step:not(:last-child)::after { display: none; }
}
@media (min-width: 768px) {
	.ii__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.icm__row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
	.icm__before, .icm__after { height: 100%; }
	.icm__row { align-items: stretch; }
	.icm__arrow { display: grid; }
}
@media (min-width: 960px) {
	.ii__head, .ib__head, .icm__head { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; }
	.il__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
	.is__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}
@media (min-width: 1100px) {
	.ij__steps { grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); gap: 1.25rem; }
	.ij__step { padding: 4.25rem 0 0; }
	.ij__step:not(:last-child)::after { display: block; top: 23px; bottom: auto; left: 48px; right: -1.25rem; width: auto; height: 2px; }
}
@media (min-width: 1024px) {
	.ii__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
	/* Icon beside the text keeps the list short on phones. */
	.ib-cell { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: .875rem; padding: 1.125rem; }
	.ib-cell__icon { grid-row: 1 / span 2; width: 40px; height: 40px; }
	.ib-cell__title { margin-top: .5rem; }
	.ib__photo { min-height: 9rem; }
}
@media (min-width: 1100px) {
	.ib__panel { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
	.ib__photos { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1.25fr 1fr; }
	.ib__photo { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.is__bar [data-typing]::after { display: none; }
}

/* Content pages and policy links
   ========================================================================== */

.content-page { padding-bottom: var(--section); }
.content-page .prose h2:first-child { margin-top: 0; }
.site-footer__legal a { color: inherit; text-underline-offset: 3px; }
.site-footer__legal a:hover { color: var(--accent-strong); }
.contact__privacy { margin-top: 1rem; color: var(--muted); font-size: .875rem; text-align: center; }
.contact__privacy a { color: var(--accent-strong); text-underline-offset: 3px; }

/* 404: CSS 3D number that tilts with the pointer
   ========================================================================== */

.e404 { position: relative; isolation: isolate; display: grid; align-content: center; justify-items: center; gap: clamp(1.5rem, 3vw, 2.5rem); min-height: calc(100svh - 20px); margin: 10px; padding: calc(var(--header) + 2rem) var(--gutter) clamp(2.5rem, 5vw, 4rem); overflow: hidden; border-radius: 18px; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 55%, var(--ink)) 0%, var(--ink) 62%); color: #fff; text-align: center; }
.e404__stage { perspective: 1100px; }
.e404__num { position: relative; display: grid; font-family: var(--font-heading); font-size: clamp(7rem, 26vw, 20rem); font-weight: 800; line-height: .85; letter-spacing: -.06em; transform-style: preserve-3d; transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -18deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); animation: e404-float 7s ease-in-out infinite; }
.e404__num > span { grid-area: 1 / 1; }
.e404__layer { color: color-mix(in srgb, var(--accent) calc(100% - var(--z) * 4%), #061611); transform: translateZ(calc(var(--z) * -3px)); }
.e404__face { background: linear-gradient(180deg, #fff 10%, var(--accent-soft) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateZ(1px); filter: drop-shadow(0 30px 40px rgb(0 0 0 / 35%)); }
@keyframes e404-float { 50% { translate: 0 -12px; } }
.e404__copy { display: grid; justify-items: center; max-width: 40rem; }
.e404__title { color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; }
.e404__text { margin-top: .875rem; color: color-mix(in srgb, #fff 86%, transparent); font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.55; }
.e404__search { display: flex; align-items: center; gap: .5rem; width: min(100%, 30rem); margin-top: 1.5rem; padding: 6px 6px 6px 1.125rem; border-radius: 99px; background: var(--surface); color: var(--ink); }
.e404__search .icon { flex: none; width: 18px; height: 18px; color: var(--muted); }
.e404__search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; outline: 0; }
.e404__search button { min-height: 44px; padding: 0 1.25rem; border: 0; border-radius: 99px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.e404__search button:hover { background: var(--accent-strong); }
.e404__search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-soft) 70%, transparent); }
.e404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.e404__actions .btn { min-height: 50px; border-radius: 14px; }
.e404__links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.e404__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border: 1px solid color-mix(in srgb, #fff 30%, transparent); border-radius: 99px; color: #fff; font-size: .9375rem; text-decoration: none; transition: background-color .2s, border-color .2s; }
.e404__links a:hover { border-color: #fff; background: color-mix(in srgb, #fff 12%, transparent); }
.e404__shapes { position: absolute; inset: 0; z-index: -1; perspective: 800px; }
.e404-cube { --s: 70px; position: absolute; width: var(--s); height: var(--s); transform-style: preserve-3d; animation: e404-spin 18s linear infinite; }
.e404-cube i { position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--accent-soft) 45%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.e404-cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.e404-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.e404-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.e404-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.e404-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.e404-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.e404-cube--1 { top: 16%; left: 8%; }
.e404-cube--2 { --s: 44px; top: 24%; right: 12%; animation-duration: 14s; animation-direction: reverse; }
.e404-cube--3 { --s: 96px; bottom: 12%; left: 14%; animation-duration: 24s; }
.e404-cube--4 { --s: 54px; right: 8%; bottom: 20%; animation-duration: 16s; }
@keyframes e404-spin { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(720deg); } }
@media (max-width: 639.98px) {
	/* Only the top cubes on phones, clear of the buttons. */
	.e404-cube--1 { --s: 44px; top: 13%; left: 6%; }
	.e404-cube--2 { top: 15%; right: 7%; }
	.e404-cube--3, .e404-cube--4 { display: none; }
}
@media (max-width: 359.98px) {
	.e404__shapes { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.e404__num, .e404-cube { animation: none; }
	.e404__num { transition: none; }
}

/* Portfolio Grid
   ========================================================================== */

.folio__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.folio__title { max-width: 16ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.folio__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem) clamp(.75rem, 1.6vw, 1.5rem); }
.folio-card__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; color: var(--ink); text-decoration: none; }
.folio-card__link:focus-visible { outline-offset: 4px; }
.folio-card__frame { grid-column: 1 / -1; display: block; overflow: hidden; border-radius: 18px; background: var(--soft); }
.folio-card__frame .media { width: 100%; border-radius: 0; aspect-ratio: 16 / 9; }
.folio-card__frame img { object-position: top; transition: transform .9s var(--ease); }
a.folio-card__link:hover .folio-card__frame img { transform: scale(1.03); }
.folio-card__arrow { grid-column: 2; grid-row: 2 / span 3; align-self: start; display: grid; place-items: center; width: 52px; height: 52px; margin-top: 1.25rem; border-radius: 50%; background: var(--accent); color: #fff; }
.folio-card__arrow .icon { width: 20px; height: 20px; stroke-width: 2; transform: rotate(-45deg); transition: transform .4s var(--ease); }
a.folio-card__link:hover .folio-card__arrow .icon { transform: rotate(0); }
.folio-card__name { grid-column: 1; margin-top: 1.25rem; font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.folio-card__tags { grid-column: 1; display: block; margin-top: .375rem; color: var(--muted); font-size: .9375rem; }
.folio-card__text { grid-column: 1; display: block; max-width: 34rem; margin-top: .75rem; color: var(--body); font-size: 1.0625rem; line-height: 1.5; }
.folio + .stats { padding-top: 0; }

@media (min-width: 768px) {
	.folio__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.folio-card { grid-column: span 6; }
}

/* Two-tone headings: the ending is lighter, and on dark backgrounds a softer white. */
.wdw-tone { color: var(--muted); }
.about .wdw-tone, .foot-cta .wdw-tone { color: color-mix(in srgb, #fff 68%, transparent); }

/* Slim page scrollbar. The -webkit rules set the 5px width in Chrome and Safari;
   Firefox only offers "thin", and @supports keeps those rules from overriding them. */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 5px; background: var(--accent); }
@supports not selector(::-webkit-scrollbar) {
	html { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
}

/* Phone and tablet refinements
   ========================================================================== */

@media (pointer: coarse), (max-width: 1023.98px) {
	/* Comfortable touch targets. */
	.site-footer__list a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
	.work__controls .work__btn { width: 46px; height: 46px; }
	.site-header .custom-logo-link { display: flex; align-items: center; min-height: 44px; }
	.nav__list a { display: flex; align-items: center; min-height: 44px; }
	.site-footer .custom-logo-link { display: flex; align-items: center; min-height: 44px; }
}
@media (max-width: 639.98px) {
	.stats__cell { min-height: 0; }
	.stats__value { font-size: 3.5rem; }
	.foot-card__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
	.foot-card__about, .foot-card__grid > div:last-child { grid-column: 1 / -1; }
	.foot-cta__btn { width: 100%; }
	.foot-cta__inner > div:last-child { width: 100%; }
}
/* Phones held sideways. */
@media (max-height: 500px) and (orientation: landscape) {
	.hero .hero__title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
	.hero--page, .hero--compact, .admin-bar .hero--page { min-height: 24rem; }
}

/* Motion layer (GSAP and Lenis)
   ========================================================================== */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* GSAP drives reveals, so turn off the CSS fallback's own movement. */
.has-gsap [data-reveal] { transform: none; transition: none; }
.js-anim .hero__title { visibility: hidden; }
.nowrap { display: inline-block; white-space: nowrap; }
/* Room for descenders inside the line masks. */
.wdw-line-mask { padding-bottom: .16em; margin-bottom: -.16em; }

/* Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		transition-delay: 0s !important;
	}
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* With the links hidden, the button and menu icon sit at the right edge. */
@media (max-width: 1039.98px) {
	.site-header__right { justify-content: flex-end; }
}
