/* ==========================================================================
   Nextor — the company's own look (design v3, Eloti Designs).
   Cinematic and confident: a full-width photo slider under a floating glass
   header, the logo's blue-to-green swoosh as the line where each photo band
   ends, clean photo cards, a deep petrol band for the values, Geologica
   throughout.
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------------ */
.v2 {
	--petrol: #0b6378;
	--petrol-deep: #003c48;
	--night: #022a33;
	--signal: #6cc024;
	--signal-deep: #4f9a14;
	--sky: #309cd8;
	--mist: #f1f6f7;
	--mist-2: #e1edf0;
	--swoosh-line: linear-gradient(90deg, var(--sky), #3fb38c 55%, var(--signal));
	--display-weight: 700;
	--display-tracking: -0.03em;
	--display-leading: 1.04;
	--c-tint: var(--mist);
	--shadow-soft: 0 1px 2px rgb(2 42 51 / 0.05), 0 20px 44px -30px rgb(2 42 51 / 0.4);
	--shadow-lift: 0 1px 2px rgb(2 42 51 / 0.06), 0 34px 64px -32px rgb(2 42 51 / 0.5);
}

.v2 :is(h1, h2, h3, .sk-hero__title, .page-header__title) {
	font-variation-settings: "SHRP" 30;
}

.v2 .sk-section--tint {
	background: var(--mist);
}

/* 2. Header: a glass bar floating over the photos. --------------------------------- */
.v2.hdr-float .site-header__inner {
	position: relative;
	background: transparent;
	border-color: rgb(255 255 255 / 0.6);
	box-shadow: 0 24px 48px -28px rgb(2 42 51 / 0.55);
}

/* The frosted glass is a layer behind the bar, not the bar itself: a blur
   on the bar would trap the phone menu (which lives inside it) in the bar. */
.v2.hdr-float .site-header__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: rgb(255 255 255 / 0.86);
	-webkit-backdrop-filter: saturate(1.6) blur(18px);
	backdrop-filter: saturate(1.6) blur(18px);
}

.v2 .topbar {
	background: var(--night);
	border-bottom: 0;
}

.v2 .topbar__list .icon {
	color: var(--signal);
}

.v2 .brand-logo__img {
	height: 44px;
}

.v2 .header-cta {
	background: var(--petrol);
	border-color: var(--petrol);
	color: #fff;
	font-weight: 600;
}

.v2 .header-cta::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	margin-right: 0.55rem;
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 0 0 0.25rem rgb(108 192 36 / 0.25);
}

.v2 .header-cta:hover {
	background: var(--petrol-deep);
	border-color: var(--petrol-deep);
}

@media (min-width: 1080px) { /* nav-bp */
	.v2 .top-item > .menu-link {
		color: var(--night);
		font-weight: 550;
	}

	.v2.hdr-float .top-item:hover > .menu-link,
	.v2.hdr-float .top-item.is-current > .menu-link {
		background: var(--mist);
		color: var(--petrol-deep);
	}

	.v2 .sub-menu {
		border-color: var(--mist-2);
		border-radius: 1.5rem;
		box-shadow: var(--shadow-lift);
	}

	.v2 .sub-item .menu-icon {
		border-radius: 50%;
		background: linear-gradient(135deg, var(--sky), var(--petrol));
		color: #fff;
	}
}

/* 3. Opener: the photos full width, slowly moving, the words on them, and the
   logo's swoosh as the line where they end. -------------------------------------- */
.v2 .entry-content .wp-block-cover.sk-hero {
	align-items: center;
	min-height: clamp(640px, 100svh, 940px) !important;
	padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 4vw, 6rem));
	padding-bottom: clamp(7rem, 5rem + 6vw, 11rem);
	overflow: hidden;
	background: var(--night);
}

.v2 .sk-hero .wp-block-cover__background {
	background:
		linear-gradient(90deg, rgb(2 42 51 / 0.92) 0%, rgb(2 42 51 / 0.7) 38%, rgb(2 42 51 / 0.2) 72%, rgb(2 42 51 / 0.08) 100%),
		linear-gradient(0deg, rgb(2 42 51 / 0.65) 0%, rgb(2 42 51 / 0) 40%),
		linear-gradient(180deg, rgb(2 42 51 / 0.55) 0%, rgb(2 42 51 / 0) 26%) !important;
	opacity: 1 !important;
}

/* Every photo drifts slowly (movement only: the slideshow's fades stay as they are). */
.v2 .sk-hero .wp-block-cover__image-background {
	animation: nx-drift 22s ease-in-out infinite alternate;
}

@keyframes nx-drift {
	from {
		transform: scale(1.02) translate3d(0, 0, 0);
	}

	to {
		transform: scale(1.12) translate3d(-1.5%, -1%, 0);
	}
}

.v2 .entry-content .sk-hero::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	z-index: 2;
	height: clamp(3.5rem, 2rem + 5vw, 7rem);
	background: url("../img/v2/curve.svg") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

.v2 .sk-hero .wp-block-cover__inner-container {
	z-index: 3;
}

.v2 .sk-hero .sk-hero__eyebrow {
	display: inline-flex;
	gap: 0.6rem;
	width: fit-content;
	padding: 0.5rem 1rem 0.5rem 0.8rem;
	border: 1px solid rgb(255 255 255 / 0.22);
	border-radius: 999px;
	background: rgb(255 255 255 / 0.1);
	color: #fff;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: none;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.v2 .sk-hero .sk-hero__eyebrow::before {
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 0 0 0.3rem rgb(108 192 36 / 0.28);
}

.v2 .sk-hero .sk-hero__title {
	max-width: 15ch;
	margin-top: 1.5rem;
	color: #fff;
	font-size: clamp(2.7rem, 1.4rem + 4.6vw, 5.8rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	text-shadow: 0 2px 30px rgb(2 42 51 / 0.35);
}

.v2 .sk-hero .sk-hero__text {
	max-width: 42rem;
	margin-top: 1.5rem;
	color: rgb(255 255 255 / 0.84);
	font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
	line-height: 1.6;
}

.v2 .sk-hero .wp-block-buttons {
	gap: 0.75rem;
	margin-top: 2.4rem;
}

.v2 .sk-hero .wp-block-button__link {
	min-height: 3.5rem;
	padding: 0.85em 1.75em;
	font-weight: 650;
}

.v2 .sk-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--signal);
	border-color: var(--signal);
	color: var(--night);
	box-shadow: 0 14px 30px -14px rgb(108 192 36 / 0.7);
}

.v2 .sk-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: #fff;
	border-color: #fff;
	color: var(--night);
}

.v2 .sk-hero .is-style-outline > .wp-block-button__link {
	border: 1px solid rgb(255 255 255 / 0.45);
	background: rgb(255 255 255 / 0.1);
	color: #fff;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.v2 .sk-hero .is-style-outline > .wp-block-button__link:hover {
	border-color: #fff;
	background: #fff;
	color: var(--night);
}

.v2 .sk-hero .wp-block-cover__inner-container > * {
	animation: nx-rise 1.1s var(--v2-ease) both;
}

.v2 .sk-hero .wp-block-cover__inner-container > :nth-child(2) {
	animation-delay: 0.1s;
}

.v2 .sk-hero .wp-block-cover__inner-container > :nth-child(3) {
	animation-delay: 0.2s;
}

.v2 .sk-hero .wp-block-cover__inner-container > :nth-child(4) {
	animation-delay: 0.3s;
}

@keyframes nx-rise {
	from {
		opacity: 0;
		transform: translateY(1.25rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.v2 .sk-hero__pause {
	z-index: 4;
	bottom: clamp(5rem, 3.5rem + 4vw, 8rem);
	border-color: rgb(255 255 255 / 0.4);
	background: rgb(2 42 51 / 0.35);
}

@media (max-width: 639px) {
	/* The words end high enough to stay clear of the pause button. */
	.v2 .entry-content .wp-block-cover.sk-hero {
		align-items: flex-end;
		min-height: min(94svh, 46rem) !important;
		padding-bottom: 7.5rem;
	}

	.v2 .sk-hero .wp-block-cover__background {
		background:
			linear-gradient(0deg, rgb(2 42 51 / 0.94) 0%, rgb(2 42 51 / 0.72) 48%, rgb(2 42 51 / 0.35) 100%) !important;
	}

	.v2 .sk-hero__pause {
		bottom: 4.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.v2 .sk-hero .wp-block-cover__image-background {
		animation: none;
	}
}

/* 4. Band heads -------------------------------------------------------------------------- */
.v2 .sk-section > .sk-section__title {
	color: var(--night);
	font-size: clamp(2.1rem, 1.3rem + 2.7vw, 3.6rem);
	line-height: 1.04;
}

/* A short swoosh line above each heading. */
.v2 .sk-section > .sk-section__title::before {
	content: "";
	display: block;
	width: 3.5rem;
	height: 4px;
	margin: 0 auto 1.25rem;
	border-radius: 999px;
	background: var(--swoosh-line);
}

.v2 .sk-section > .sk-section__title::after {
	display: none;
}

.v2 .sk-section--dark > .sk-section__title {
	color: #fff;
}

.v2 .sk-section > .sk-section__intro {
	max-width: 46rem;
	color: var(--c-muted);
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

.v2 .sk-section--dark > .sk-section__intro {
	color: rgb(255 255 255 / 0.72);
}

.v2 :is(.sk-section, .sk-section .wp-block-column) > .is-style-lead {
	color: var(--night);
	font-size: clamp(1.2rem, 1.05rem + 0.65vw, 1.55rem);
	font-weight: 500;
	line-height: 1.45;
}

/* 5. Who we are: words beside a large photo, two more photos below. ----------------------- */
.v2 .sk-section > .wp-block-columns {
	gap: clamp(2.5rem, 1rem + 5vw, 6rem);
	align-items: center;
}

.v2 .sk-section .wp-block-column > .wp-block-image {
	position: relative;
	margin: 0;
}

.v2 .sk-section .wp-block-column > .wp-block-image img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: 1.75rem;
	box-shadow: var(--shadow-lift);
}

/* A swoosh-coloured frame set behind the photo, offset. */
.v2 .sk-section:not(.sk-section--dark) .wp-block-column > .wp-block-image::before {
	content: "";
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	z-index: -1;
	border-radius: 1.75rem;
	background: linear-gradient(135deg, rgb(48 156 216 / 0.22), rgb(108 192 36 / 0.28));
}

.v2 .sk-section > .wp-block-columns + .wp-block-gallery {
	margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}

.v2 .sk-section > .wp-block-gallery {
	gap: 1rem !important;
}

.v2 .sk-section > .wp-block-gallery > figure {
	overflow: hidden;
	border-radius: 1.5rem;
}

.v2 .entry-content .sk-section > .wp-block-gallery figure.wp-block-image:not(#individual-image) img {
	aspect-ratio: 16 / 9;
	border-radius: 1.5rem;
	transition: transform 1.2s var(--v2-ease);
}

.v2 .sk-section > .wp-block-gallery > figure:hover img {
	transform: scale(1.05);
}

/* Two photos stacked in one column keep clear of each other's frames. */
.v2 .sk-section .wp-block-column > .wp-block-image + .wp-block-image {
	margin-top: 2.75rem;
}

.v2 .sk-section .wp-block-column > .wp-block-buttons {
	margin-top: 2rem;
}

/* 6. Services: photo cards, four to a row. ------------------------------------------------- */
.v2 .sk-services--cards .sk-services__grid {
	gap: clamp(1rem, 0.6rem + 1vw, 1.5rem);
}

.v2 .sk-services--cards .sk-service {
	position: relative;
	border: 1px solid var(--mist-2);
	border-radius: 1.5rem;
	background: #fff;
	box-shadow: var(--shadow-soft);
	transition: box-shadow 0.45s var(--v2-ease), transform 0.45s var(--v2-ease);
}

.v2 .sk-services--cards .sk-service::after {
	content: "";
	position: absolute;
	right: 1.5rem;
	bottom: 0;
	left: 1.5rem;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--swoosh-line);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--v2-ease);
}

.v2 .sk-services--cards .sk-service:hover {
	border-color: var(--mist-2);
	box-shadow: var(--shadow-lift);
	transform: translateY(-5px);
}

.v2 .sk-services--cards .sk-service:hover::after {
	transform: scaleX(1);
}

.v2 .sk-services--cards .sk-service__media {
	margin: 0.5rem 0.5rem 0;
	border-radius: 1.15rem;
	aspect-ratio: 4 / 3;
}

.v2 .sk-services--cards .sk-service__media img {
	transition: transform 1.2s var(--v2-ease);
}

.v2 .sk-services--cards .sk-service:hover .sk-service__media img {
	transform: scale(1.07);
}

/* The icon sits inside the photo, bottom left, in a white disc. */
.v2 .sk-services--cards .sk-service__badge {
	left: 0.85rem;
	bottom: 0.85rem;
	width: 3rem;
	height: 3rem;
	transform: none;
	border: 2px solid transparent;
	border-radius: 50%;
	background:
		linear-gradient(#fff, #fff) padding-box,
		var(--swoosh-line) border-box;
	box-shadow: 0 12px 24px -12px rgb(2 42 51 / 0.6);
	color: var(--petrol);
}

.v2 .sk-services--cards .sk-service__badge .sk-icon {
	width: 1.35rem;
	height: 1.35rem;
}

.v2 .sk-services--cards .sk-service.has-image:has(.sk-service__badge) .sk-service__body {
	padding-top: 1.3rem;
}

.v2 .sk-services--cards .sk-service__title {
	color: var(--night);
	font-size: clamp(1.1rem, 1.02rem + 0.3vw, 1.25rem);
	font-weight: 650;
	line-height: 1.25;
}

.v2 .sk-services--cards .sk-service__desc {
	font-size: 0.97rem;
}

.v2 .sk-services--cards .sk-service__more {
	color: var(--petrol);
	font-weight: 600;
}

/* 7. Why clients choose Nextor: the photo, then the reasons with green ticks. ----------------- */
.v2 .sk-section .wp-block-column > ul.wp-block-list {
	display: grid;
	gap: 0;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--mist-2);
}

.v2 .sk-section .wp-block-column > ul.wp-block-list > li {
	position: relative;
	margin: 0;
	padding: 1.05rem 0 1.05rem 3rem;
	border-bottom: 1px solid var(--mist-2);
	color: var(--night);
	font-size: 1.05rem;
	font-weight: 550;
	line-height: 1.45;
}

.v2 .sk-section .wp-block-column > ul.wp-block-list > li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 2rem;
	height: 2rem;
	margin-top: -1rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--sky), var(--signal));
	box-shadow: 0 8px 18px -10px rgb(108 192 36 / 0.8);
}

.v2 .sk-section .wp-block-column > ul.wp-block-list > li::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0.5rem;
	width: 1rem;
	height: 1rem;
	margin-top: -0.5rem;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 8. Core values: the deep petrol band. ---------------------------------------------------------- */
.v2 .sk-section--dark {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(46rem 26rem at 0% 0%, rgb(48 156 216 / 0.28), transparent 70%),
		radial-gradient(40rem 24rem at 100% 100%, rgb(108 192 36 / 0.2), transparent 70%),
		var(--night);
}

.v2 .sk-section--dark::before {
	content: "";
	position: absolute;
	inset: auto -10% -35% auto;
	z-index: -1;
	width: min(70rem, 90vw);
	aspect-ratio: 1;
	background: url("../img/v2/swoosh.svg") center / contain no-repeat;
	opacity: 0.16;
	pointer-events: none;
}

/* Five values sit in one row on wide screens, on dark and light bands alike. */
@media (min-width: 1100px) {
	.v2 .sk-section > .sk-cards:has(> .sk-card:nth-child(5):last-child) {
		--cols: 5;
	}
}

.v2 .sk-section--dark .sk-cards .sk-card {
	border: 1px solid rgb(255 255 255 / 0.1);
	border-radius: 1.5rem;
	background: rgb(255 255 255 / 0.05);
	box-shadow: none;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background-color 0.4s var(--v2-ease), transform 0.4s var(--v2-ease), border-color 0.4s var(--v2-ease);
}

.v2 .sk-section--dark .sk-cards .sk-card:hover {
	border-color: rgb(108 192 36 / 0.45);
	background: rgb(255 255 255 / 0.08);
	transform: translateY(-4px);
}

.v2 .sk-section--dark .sk-card.has-icon::before {
	border-radius: 50%;
	background: linear-gradient(135deg, var(--sky), var(--signal));
	box-shadow: 0 12px 26px -14px rgb(108 192 36 / 0.8);
}

.v2 .sk-section--dark .sk-card.has-icon::after {
	background: #fff;
}

.v2 .sk-section--dark .sk-card h3 {
	color: #fff;
	font-weight: 650;
}

.v2 .sk-section--dark .sk-card p {
	color: rgb(255 255 255 / 0.72);
}

.v2 .sk-section--dark > .wp-block-buttons .wp-block-button__link {
	border: 1px solid rgb(255 255 255 / 0.4);
	background: transparent;
	color: #fff;
}

.v2 .sk-section--dark > .wp-block-buttons .wp-block-button__link:hover {
	border-color: var(--signal);
	background: var(--signal);
	color: var(--night);
}

/* 9. How we work: two large photos with their words over them. -------------------------------- */
.v2 .sk-section:not(.sk-section--dark) .sk-cards.sk-cols-2 .sk-card.has-image {
	position: relative;
	min-height: clamp(22rem, 16rem + 12vw, 30rem);
	overflow: hidden;
	border: 0;
	border-radius: 1.75rem;
	background: var(--night);
	box-shadow: var(--shadow-soft);
	transition: box-shadow 0.45s var(--v2-ease), transform 0.45s var(--v2-ease);
}

.v2 .sk-section:not(.sk-section--dark) .sk-cards.sk-cols-2 .sk-card.has-image:hover {
	box-shadow: var(--shadow-lift);
	transform: translateY(-4px);
}

.v2 .sk-section:not(.sk-section--dark) .sk-cards.sk-cols-2 .sk-card.has-image > .wp-block-image {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
}

.v2 .sk-section:not(.sk-section--dark) .sk-cards.sk-cols-2 .sk-card.has-image > .wp-block-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
	transition: transform 1.4s var(--v2-ease);
}

.v2 .sk-section:not(.sk-section--dark) .sk-cards.sk-cols-2 .sk-card.has-image:hover > .wp-block-image img {
	transform: scale(1.06);
}

.v2 .sk-section:not(.sk-section--dark) .sk-cards.sk-cols-2 .sk-card.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(0deg, rgb(2 42 51 / 0.92) 0%, rgb(2 42 51 / 0.55) 42%, rgb(2 42 51 / 0.05) 75%);
}

.v2 .sk-section:not(.sk-section--dark) .sk-cards.sk-cols-2 .sk-card.has-image > :not(.wp-block-image) {
	position: relative;
	z-index: 2;
	margin-inline: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}

.v2 .sk-section:not(.sk-section--dark) .sk-cards.sk-cols-2 .sk-card.has-image > h3 {
	margin-top: auto;
	padding-top: 10rem;
	color: #fff;
	font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
}

.v2 .sk-section:not(.sk-section--dark) .sk-cards.sk-cols-2 .sk-card.has-image > h3 a {
	color: #fff;
}

.v2 .sk-section:not(.sk-section--dark) .sk-cards.sk-cols-2 .sk-card.has-image > p {
	margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	color: rgb(255 255 255 / 0.8);
}

.v2 .sk-section:not(.sk-section--dark) .sk-cards.sk-cols-2 .sk-card.has-link h3::after {
	background: var(--signal);
}

/* Other cards on light bands */
.v2 :is(.sk-prose, .sk-section:not(.sk-section--dark)) .sk-cards:not(.sk-cols-2) .sk-card,
.v2 .sk-prose .sk-cards .sk-card {
	border: 1px solid var(--mist-2);
	border-radius: 1.5rem;
	background: #fff;
	box-shadow: none;
}

.v2 :is(.sk-prose, .sk-section:not(.sk-section--dark)) .sk-card.has-icon::before {
	border-radius: 50%;
	background: linear-gradient(135deg, rgb(48 156 216 / 0.14), rgb(108 192 36 / 0.18));
}

.v2 :is(.sk-prose, .sk-section:not(.sk-section--dark)) .sk-card.has-icon::after {
	background: var(--petrol);
}

/* 10. News ----------------------------------------------------------------------------------------- */
.v2 .post-card {
	overflow: hidden;
	border: 1px solid var(--mist-2);
	border-radius: 1.5rem;
	background: #fff;
	box-shadow: none;
	transition: box-shadow 0.45s var(--v2-ease), transform 0.45s var(--v2-ease);
}

.v2 .post-card:hover {
	box-shadow: var(--shadow-lift);
	transform: translateY(-4px);
}

.v2 .post-card__media {
	margin: 0.5rem 0.5rem 0;
	overflow: hidden;
	border-radius: 1.15rem;
}

.v2 .post-card__media img {
	transition: transform 1.2s var(--v2-ease);
}

.v2 .post-card:hover .post-card__media img {
	transform: scale(1.05);
}

.v2 .post-card__title {
	color: var(--night);
	font-weight: 650;
}

.v2 .post-label {
	color: var(--petrol);
	font-weight: 600;
}

/* "All articles" and similar links: a centred pill under the band, like the headings. */
.v2 .sk-section:not(.sk-section--dark) .sk-more {
	margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem);
	text-align: center;
}

.v2 .sk-section:not(.sk-section--dark) .sk-more__link {
	min-height: 3rem;
	padding: 0.7em 1.5em;
	border: 1px solid rgb(11 99 120 / 0.3);
	border-radius: 999px;
	background: #fff;
	color: var(--petrol);
	font-weight: 600;
	transition: background-color 0.3s var(--v2-ease), border-color 0.3s var(--v2-ease), color 0.3s var(--v2-ease);
}

.v2 .sk-section:not(.sk-section--dark) .sk-more__link:hover {
	border-color: var(--petrol);
	background: var(--petrol);
	color: #fff;
}

/* 11. Call to action ---------------------------------------------------------------------------------- */
.v2 :is(.sk-cta, .cta-band__panel) {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(2.5rem, 1.5rem + 4vw, 5rem);
	border-radius: 2rem;
	background:
		radial-gradient(40rem 22rem at 100% 0%, rgb(48 156 216 / 0.35), transparent 70%),
		radial-gradient(30rem 20rem at 0% 120%, rgb(108 192 36 / 0.3), transparent 70%),
		var(--petrol-deep);
	color: #fff;
}

.v2 :is(.sk-cta, .cta-band__panel)::before {
	content: "";
	position: absolute;
	inset: auto -6rem -14rem auto;
	z-index: -1;
	width: 34rem;
	aspect-ratio: 1;
	background: url("../img/v2/swoosh.svg") center / contain no-repeat;
	opacity: 0.35;
	pointer-events: none;
}

.v2 :is(.sk-cta .sk-cta__title, .cta-band__title) {
	color: #fff;
	font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem);
	font-weight: 700;
	line-height: 1.03;
}

.v2 :is(.sk-cta .sk-cta__text, .cta-band__text) {
	color: rgb(255 255 255 / 0.78);
}

.v2 .sk-cta .wp-block-button__link,
.v2 .cta-band .button--on-dark {
	background: var(--signal);
	border-color: var(--signal);
	color: var(--night);
	font-weight: 650;
}

.v2 .sk-cta .wp-block-button__link:hover,
.v2 .cta-band .button--on-dark:hover {
	background: #fff;
	border-color: #fff;
	color: var(--night);
}

.v2 .cta-band .button--ghost {
	border: 1px solid rgb(255 255 255 / 0.4);
	background: rgb(255 255 255 / 0.06);
	color: #fff;
}

.v2 .cta-band .button--ghost:hover {
	border-color: #fff;
	background: #fff;
	color: var(--night);
}

/* When a page ends on a tinted band, the closing panel sits across its edge
   instead of starting flush under it. */
.v2 .sk-flow:has(> .sk-section--tint:last-child) + .cta-band {
	background: linear-gradient(180deg, var(--mist) calc((100% - var(--space-section)) / 2), transparent 0);
}

.v2 :is(.sk-prose, .layout__main) .sk-cta {
	grid-template-columns: minmax(0, 1fr);
	padding: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.v2 :is(.sk-prose, .layout__main) .sk-cta .sk-cta__title {
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
}

.v2 :is(.sk-prose, .layout__main) .sk-cta > .wp-block-buttons {
	grid-column: 1;
	grid-row: auto;
	justify-content: flex-start;
	margin-top: 1.5rem;
}

/* 12. Page headers: a photo band like the opener, with the swoosh edge. -------------------------------- */
.v2 .site-main > .page-header.has-photo {
	display: flex;
	align-items: flex-end;
	min-height: clamp(24rem, 18rem + 16vw, 34rem);
	padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 3vw, 5rem));
	padding-bottom: clamp(5rem, 3.5rem + 4vw, 8rem);
	background: var(--night);
}

.v2 .page-header.has-photo::before {
	background:
		linear-gradient(90deg, rgb(2 42 51 / 0.92) 0%, rgb(2 42 51 / 0.66) 45%, rgb(2 42 51 / 0.2) 100%),
		linear-gradient(180deg, rgb(2 42 51 / 0.5) 0%, rgb(2 42 51 / 0) 30%);
}

.v2 .page-header.has-photo::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	z-index: 1;
	height: clamp(2.5rem, 1.5rem + 3.5vw, 5rem);
	background: url("../img/v2/curve.svg") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

.v2 .page-header.has-photo .page-header__img {
	animation: nx-drift 22s ease-in-out infinite alternate;
}

.v2 .page-header .page-header__title {
	max-width: 20ch;
	color: #fff;
	font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.04em;
}

.v2 .page-header__lead {
	max-width: 50ch;
	color: rgb(255 255 255 / 0.82);
}

.v2 .page-header__icon {
	border-radius: 50%;
	background: linear-gradient(135deg, var(--sky), var(--signal));
	color: #fff;
}

.v2 .page-header.no-photo {
	padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 3vw, 5rem));
	background:
		radial-gradient(46rem 26rem at 100% 0%, rgb(48 156 216 / 0.3), transparent 70%),
		radial-gradient(36rem 22rem at 0% 120%, rgb(108 192 36 / 0.22), transparent 70%),
		var(--night);
}

@media (prefers-reduced-motion: reduce) {
	.v2 .page-header.has-photo .page-header__img {
		animation: none;
	}
}

/* 13. Inner pages and side panels ---------------------------------------------------------------------- */
.v2 .aside-card {
	border-color: var(--mist-2);
	border-radius: 1.5rem;
	box-shadow: none;
}

.v2 .aside-cta {
	background:
		radial-gradient(22rem 14rem at 100% 0%, rgb(48 156 216 / 0.35), transparent 70%),
		var(--petrol-deep);
}

.v2 .aside-cta::after {
	display: none;
}

.v2 .aside-cta .button {
	background: var(--signal);
	border-color: var(--signal);
	color: var(--night);
}

.v2 .aside-cta .button:hover {
	background: #fff;
	border-color: #fff;
}

.v2 .sk-prose ul.wp-block-list > li::marker {
	color: var(--signal-deep);
}

/* Service pages: what we offer, each line with a small swoosh tick. */
.v2 .sk-prose .wp-block-column > ul.wp-block-list {
	display: grid;
	gap: 0.9rem;
	margin-top: 0;
	padding: 0;
}

.v2 .sk-prose .wp-block-column > ul.wp-block-list > li {
	margin: 0;
	padding-left: 2.3rem;
	color: var(--night);
	font-weight: 500;
	line-height: 1.45;
}

.v2 .sk-prose .wp-block-column > ul.wp-block-list > li::before {
	top: 0;
	left: 0;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--sky), var(--signal));
}

.v2 .sk-prose .wp-block-column > ul.wp-block-list > li::after {
	content: "";
	position: absolute;
	top: 0.375rem;
	left: 0.375rem;
	width: 0.75rem;
	height: 0.75rem;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.v2 .item-figure img,
.v2 .sk-prose .wp-block-image img {
	border-radius: 1.5rem;
}

.v2 .sk-contact__icon {
	border-radius: 50%;
	background: linear-gradient(135deg, rgb(48 156 216 / 0.14), rgb(108 192 36 / 0.18));
	color: var(--petrol);
}

/* Phones ------------------------------------------------------------------------------------------------------ */
@media (max-width: 639px) {
	/* The frame behind a photo stays inside the screen. */
	.v2 .sk-section:not(.sk-section--dark) .wp-block-column > .wp-block-image::before {
		inset: 0.75rem -0.6rem -0.75rem 0.6rem;
	}

	/* Long service names: the icon sits above the name, and the trail stops at
	   the parent page (the page's own name is the heading right below). */
	.v2 .page-header__heading {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.v2 .page-header .breadcrumbs li:nth-child(n+3):last-child {
		display: none;
	}

	/* The swoosh in the closing panel sits low, clear of the words. */
	.v2 :is(.sk-cta, .cta-band__panel)::before {
		inset: auto -17rem -22rem auto;
		opacity: 0.28;
	}
}

/* 14. Footer ----------------------------------------------------------------------------------------------- */
.v2 .site-footer {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(50rem 26rem at 100% 0%, rgb(48 156 216 / 0.2), transparent 70%),
		var(--night);
}

.v2 .site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: var(--swoosh-line);
}

.v2 .site-footer .brand-logo__img {
	height: 52px;
}

.v2 .site-footer__title {
	color: var(--signal);
}
