/* ==========================================================================
   COMPONENTS  -  every reusable piece of the profile UI
   --------------------------------------------------------------------------
   Components read the contextual tokens (--ground, --surface, --ink,
   --hairline) rather than raw brand colours, so the same component renders
   correctly inside a navy section and a light section with no variant class.
   ========================================================================== */

/* ==========================================================================
   1. Text accents
   ========================================================================== */

.accent {
	/* Flips with the section theme: the bright step on navy, the deeper one on
	   white, where the bright step sits near 2:1 and fails even large text. */
	color: var(--accent-ink);
}

.eyebrow {
	font-size: var(--text-xs);
	font-weight: var(--weight-semi);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--color-sky);
}

/* Short accent rule that sits under an eyebrow or a heading, everywhere in the
   references. Width is deliberately fixed - it is a mark, not a divider. */
.rule {
	display: block;
	width: 56px;
	height: 3px;
	border-radius: var(--radius-pill);
	background-color: var(--color-sky);
}

.rule--sm { width: 36px; height: 2px; }
.rule--center { margin-inline: auto; }

/* ==========================================================================
   2. Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2xs);
	min-height: 48px; /* touch target */
	padding: var(--space-xs) var(--space-md);
	border-radius: var(--radius-pill);
	font-family: var(--font-display);
	font-size: var(--text-sm);
	font-weight: var(--weight-semi);
	letter-spacing: 0.01em;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color var(--transition-fast),
		border-color var(--transition-fast),
		color var(--transition-fast),
		transform var(--transition-fast),
		box-shadow var(--transition-fast);
}

.btn--lg {
	min-height: 56px;
	padding: var(--space-sm) var(--space-lg);
	font-size: var(--text-base);
}

/* Caps treatment for the gold hero / portfolio CTAs. */
.btn--caps {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: var(--weight-bold);
}

.btn__icon {
	display: inline-flex;
	transition: transform var(--transition-fast);
}

.btn:hover .btn__icon,
.btn:focus-visible .btn__icon {
	transform: translateX(3px);
}

/* Primary - sky pill, the single strongest call to action per screen. */
.btn--primary {
	background-color: var(--color-sky);
	color: var(--color-navy);
	border: 1px solid var(--color-sky);
}

.btn--primary:hover {
	background-color: var(--color-sky-light);
	border-color: var(--color-sky-light);
	box-shadow: var(--shadow-sky);
	transform: translateY(-2px);
}

/* Secondary - solid ink on the current ground. */
.btn--secondary {
	background-color: var(--ink);
	color: var(--ground);
	border: 1px solid var(--ink);
}

.btn--secondary:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* Ghost - hairline outline, inherits ink. */
.btn--ghost {
	background-color: transparent;
	color: var(--ink);
	border: 1px solid var(--hairline);
}

.btn--ghost:hover {
	border-color: var(--color-sky);
	color: var(--color-sky);
}

/* Gold outline - used on navy where a filled gold button would shout. */
.btn--gold-outline {
	background-color: transparent;
	color: var(--color-sky);
	border: 1px solid var(--color-sky);
}

.btn--gold-outline:hover {
	background-color: var(--color-sky);
	color: var(--color-navy);
}

.btn[disabled],
.btn[aria-disabled='true'] {
	opacity: 0.55;
	pointer-events: none;
}

/* Circular icon button - pairs with a pill CTA, as in sections 01 and 05. */
.btn-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: var(--radius-pill);
	border: 1px solid var(--color-sky);
	color: var(--color-sky);
	transition:
		background-color var(--transition-fast),
		color var(--transition-fast),
		transform var(--transition-fast);
}

.btn-circle:hover {
	background-color: var(--color-sky);
	color: var(--color-navy);
	transform: scale(1.06);
}

/* ==========================================================================
   3. Profile header  -  logo + "Company Profile" + live counter
   ========================================================================== */

.profile-header {
	position: fixed;
	inset-block-start: 0;
	inset-inline: 0;
	z-index: var(--z-nav);
	padding-block: clamp(0.75rem, 2vh, 1.5rem);
	pointer-events: none; /* let the page scroll through the empty middle */

	/* Chrome ink follows the ground behind it; JS sets the class. */
	--chrome-ink: var(--color-text);
	--chrome-muted: rgba(27, 42, 58, 0.55);
	color: var(--chrome-ink);
	transition: color var(--transition-normal);
}

.profile-header.is-on-dark {
	--chrome-ink: var(--color-white);
	--chrome-muted: rgba(255, 255, 255, 0.6);
}

/*
 * Split sections (06) put the two halves of the header over different grounds.
 * The inversion above is chosen for the brand side, which sits over the navy
 * panel; the meta side sits over the light half and has to opt back out of it,
 * or "Company Profile" ends up white on off-white.
 */
.profile-header.is-split.is-on-dark .profile-header__meta {
	--chrome-ink: var(--color-text);
	--chrome-muted: rgba(27, 42, 58, 0.55);
}

.profile-header.is-split:not(.is-on-dark) .profile-header__meta {
	--chrome-ink: var(--color-white);
	--chrome-muted: rgba(255, 255, 255, 0.6);
}

/* Sections taller than the viewport scroll their content up under the fixed
   header. This scrim fades whatever passes behind it. --chrome-ground is
   written by scroll-navigation.js from the active section's own background, so
   it blends on navy, white and off-white without a hard-coded value. */
.profile-header::before {
	content: '';
	position: absolute;
	inset: 0 0 -1.5rem;
	z-index: -1;
	background: linear-gradient(to bottom, var(--chrome-ground, transparent) 55%, transparent);
	pointer-events: none;
}

/*
 * A split section has two grounds but --chrome-ground can only carry one, so
 * the scrim is pulled back to the half it is correct for - the one the content
 * column scrolls up through. The other half is the solid navy panel, which has
 * nothing passing behind the header and would only show the wrong colour as a
 * haze across the top.
 */
.profile-header.is-split::before {
	inset-inline-start: 38%;
}

.profile-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.profile-header__brand,
.profile-header__meta {
	pointer-events: auto;
}

/* Brand lockup ------------------------------------------------------------ */

.profile-header__brand {
	display: flex;
	align-items: center;
	gap: clamp(0.5rem, 1vw, 0.875rem);
	min-width: 0;
}

.profile-header__mark {
	width: auto;
	height: clamp(34px, 4.4vw, 52px);
}

.profile-header__lockup {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.profile-header__wordmark {
	position: relative;
	display: block;
	height: clamp(15px, 2vw, 22px);
}

.profile-header__word {
	width: auto;
	height: 100%;
	transition: opacity var(--transition-normal);
}

/* The two wordmark colourways are stacked; only one is ever visible. */
.profile-header__word--light {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.profile-header.is-on-dark .profile-header__word--dark { opacity: 0; }
.profile-header.is-on-dark .profile-header__word--light { opacity: 1; }

.profile-header__descriptor {
	font-family: var(--font-display);
	font-size: clamp(0.5rem, 0.9vw, 0.6875rem);
	font-weight: var(--weight-semi);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--chrome-muted);
	white-space: nowrap;
}

/* Uploaded logo replaces the bundled lockup entirely. */

.profile-header__custom img {
	width: auto;
	height: clamp(34px, 4.5vw, 52px);
}

.profile-header__custom--light { display: none; }
.profile-header.is-on-dark .profile-header__custom--light { display: block; }
.profile-header.is-on-dark .profile-header__custom--dark { display: none; }

/* "Company Profile" + counter --------------------------------------------- */

.profile-header__meta {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	font-family: var(--font-display);
}

.profile-header__label {
	position: relative;
	padding-bottom: 5px;
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	color: var(--chrome-ink);
	white-space: nowrap;
}

.profile-header__label::after {
	content: '';
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2px;
	background-color: var(--color-sky);
}

.profile-header__counter {
	display: flex;
	align-items: baseline;
	gap: 3px;
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	letter-spacing: 0.02em;
	color: var(--chrome-muted);
}

.profile-header__current {
	color: var(--color-sky);
	font-variant-numeric: tabular-nums;
}

.profile-header__divider {
	opacity: 0.6;
}

/* ==========================================================================
   4. Profile navigation  -  desktop rail
   ========================================================================== */

.profile-nav {
	position: fixed;
	top: 50%;
	right: clamp(0.75rem, 1.8vw, 2rem);
	z-index: var(--z-nav);
	display: none; /* desktop only, enabled in responsive.css */
	flex-direction: column;
	align-items: center;
	gap: var(--space-md);
	transform: translateY(-50%);

	--rail-ink: var(--color-text);
	--rail-muted: rgba(27, 42, 58, 0.3);
	color: var(--rail-ink);
	transition: color var(--transition-normal);
}

.profile-nav.is-on-dark {
	--rail-ink: var(--color-white);
	--rail-muted: rgba(255, 255, 255, 0.35);
}

/* Dots -------------------------------------------------------------------- */

.profile-nav__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-sm);
}

.profile-nav__item {
	display: flex;
	justify-content: center;
}

.profile-nav__dot {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
}

.profile-nav__mark {
	width: 8px;
	height: 8px;
	border-radius: var(--radius-pill);
	background-color: var(--rail-muted);
	transition:
		background-color var(--transition-fast),
		transform var(--transition-fast),
		box-shadow var(--transition-fast);
}

.profile-nav__dot:hover .profile-nav__mark {
	background-color: var(--color-sky);
	transform: scale(1.2);
}

.profile-nav__dot.is-active .profile-nav__mark {
	background-color: var(--color-sky);
	transform: scale(1.5);
	box-shadow: 0 0 0 5px var(--color-sky-tint);
}

/* The active dot shows its number beside it, as in the references. */

.profile-nav__number {
	position: absolute;
	right: calc(100% + 6px);
	font-family: var(--font-display);
	font-size: var(--text-xs);
	font-weight: var(--weight-bold);
	color: var(--color-sky);
	opacity: 0;
	transform: translateX(4px);
	transition:
		opacity var(--transition-fast),
		transform var(--transition-fast);
}

.profile-nav__dot.is-active .profile-nav__number,
.profile-nav__dot:hover .profile-nav__number,
.profile-nav__dot:focus-visible .profile-nav__number {
	opacity: 1;
	transform: translateX(0);
}

/* Prev / next controls ---------------------------------------------------- */

.profile-nav__step {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--rail-muted);
	color: var(--rail-ink);
	transition:
		border-color var(--transition-fast),
		color var(--transition-fast),
		background-color var(--transition-fast),
		transform var(--transition-fast);
}

.profile-nav__step:hover:not([disabled]) {
	border-color: var(--color-sky);
	color: var(--color-sky);
	transform: scale(1.06);
}

.profile-nav__step[disabled] {
	opacity: 0.25;
	cursor: default;
}

/* ==========================================================================
   5. Profile navigation  -  mobile progress bar
   ========================================================================== */

.profile-progress {
	position: fixed;
	inset-block-start: 0;
	inset-inline: 0;
	z-index: var(--z-overlay);
	height: 3px;
	background-color: rgba(7, 21, 38, 0.12);
}

.profile-progress__bar {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--color-sky-deep), var(--color-sky-light));
	transition: width 0.1s linear;
}

/* ==========================================================================
   6. Scroll cue
   ========================================================================== */

.scroll-cue {
	position: fixed;
	left: 50%;
	bottom: clamp(0.75rem, 2.5vh, 1.75rem);
	z-index: var(--z-sticky);
	display: none; /* desktop only */
	align-items: center;
	gap: var(--space-md);
	transform: translateX(-50%);
	transition: opacity var(--transition-normal), visibility var(--transition-normal);

	--cue-ink: var(--color-text-light);
}

.scroll-cue.is-on-dark {
	--cue-ink: rgba(255, 255, 255, 0.7);
}

/* Sections denser than the viewport scroll their content underneath the fixed
   cue. This scrim fades whatever passes below it. --cue-ground is written by
   scroll-navigation.js from the active section's own background colour, so it
   blends on navy, white and off-white without a hard-coded value. */
.scroll-cue::before {
	content: '';
	position: absolute;
	inset: -1.25rem -2.5rem -1rem;
	z-index: -1;
	background: radial-gradient(58% 100% at 50% 62%, var(--cue-ground, transparent) 52%, transparent 100%);
	pointer-events: none;
}

.scroll-cue.is-hidden {
	opacity: 0;
	visibility: hidden;
}

/* Gold hairlines flanking the cue. */
.scroll-cue__rule {
	width: clamp(3rem, 9vw, 9rem);
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--color-sky));
	opacity: 0.55;
}

.scroll-cue__rule:last-child {
	background: linear-gradient(90deg, var(--color-sky), transparent);
}

.scroll-cue__button {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2xs);
	color: var(--cue-ink);
	transition: color var(--transition-fast);
}

.scroll-cue__button:hover {
	color: var(--color-sky);
}

.scroll-cue__glyph {
	display: flex;
	animation: scroll-hint 2.2s var(--ease-inout) infinite;
}

.scroll-cue__label {
	font-family: var(--font-display);
	font-size: var(--text-xs);
	font-weight: var(--weight-medium);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	white-space: nowrap;
}

@media (min-width: 1024px) {
	.scroll-cue {
		display: flex;
	}
}

/* ==========================================================================
   7. Cards
   ========================================================================== */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	padding: var(--space-lg);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	background-color: var(--surface);
	transition:
		transform var(--transition-normal),
		border-color var(--transition-normal),
		box-shadow var(--transition-normal);
}

.card--raised {
	background-color: var(--surface-raised);
	box-shadow: var(--shadow-sm);
}

.card--interactive:hover {
	transform: translateY(-4px);
	border-color: var(--color-sky);
	box-shadow: var(--shadow-lg);
}

.card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: var(--radius-sm);
	background-color: var(--color-sky-tint);
	color: var(--color-sky);
}

.card__title {
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
}

.card__text {
	font-size: var(--text-sm);
	color: var(--ink-muted);
}

/* Statistic card - used by the growth and about sections. */

.stat {
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);
}

.stat__value {
	font-family: var(--font-display);
	font-size: var(--text-3xl);
	font-weight: var(--weight-black);
	line-height: 1;
	color: var(--color-sky);
	font-variant-numeric: tabular-nums;
}

.stat__label {
	font-size: var(--text-sm);
	color: var(--ink-muted);
}

/* ==========================================================================
   8. Social links
   ========================================================================== */

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
}

.social-links__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--hairline);
	color: inherit;
	transition:
		background-color var(--transition-fast),
		border-color var(--transition-fast),
		color var(--transition-fast),
		transform var(--transition-fast);
}

.social-links__link:hover {
	background-color: var(--color-sky);
	border-color: var(--color-sky);
	color: var(--color-navy);
	transform: translateY(-2px);
}

.social-links--footer .social-links__link {
	border-color: var(--color-navy-line);
}

/* ==========================================================================
   9. Form  -  section 08
   ========================================================================== */

.form {
	display: grid;
	gap: var(--space-md);
}

@media (min-width: 640px) {
	.form__row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-md);
	}
}

.field {
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);
}

.field__label {
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	color: var(--ink-muted);
}

.field__required {
	color: var(--color-sky);
}

.field__control {
	width: 100%;
	min-height: 52px;
	padding: var(--space-xs) var(--space-sm);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-sm);
	background-color: var(--surface);
	color: var(--ink);
	font-size: var(--text-base);
	transition:
		border-color var(--transition-fast),
		box-shadow var(--transition-fast);
}

.field__control::placeholder {
	color: var(--ink-muted);
	opacity: 0.7;
}

.field__control:focus {
	outline: none;
	border-color: var(--color-sky);
	box-shadow: 0 0 0 3px var(--color-sky-tint);
}

textarea.field__control {
	min-height: 8rem;
	line-height: var(--leading-body);
}

select.field__control {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right var(--space-sm) center;
	background-size: 12px;
	padding-right: var(--space-xl);
}

.field.has-error .field__control {
	border-color: var(--color-error);
}

.field__error {
	font-size: var(--text-xs);
	color: var(--color-error);
	min-height: 1em;
}

/* Honeypot - off-screen, never focusable, invisible to real visitors. */
.field--honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form__status {
	display: none;
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-sm);
	font-size: var(--text-sm);
	border: 1px solid transparent;
}

.form__status.is-visible {
	display: block;
}

.form__status.is-success {
	background-color: rgba(30, 142, 90, 0.1);
	border-color: rgba(30, 142, 90, 0.35);
	color: var(--color-success);
}

.form__status.is-error {
	background-color: rgba(198, 56, 62, 0.08);
	border-color: rgba(198, 56, 62, 0.35);
	color: var(--color-error);
}

.form.is-submitting {
	opacity: 0.7;
	pointer-events: none;
}

/* ==========================================================================
   10. Service strip  -  icon + label row divided by hairlines
   Used in section 01 and again, in a softer form, in section 08.
   ========================================================================== */

.service-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(4.75rem, 1fr));
	gap: var(--space-xs) 0;
}

.service-strip__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2xs);
	padding-inline: var(--space-xs);
	text-align: center;
	border-left: 1px solid var(--hairline);
}

.service-strip__item:first-child {
	border-left: 0;
	padding-left: 0;
}

.service-strip__icon {
	color: var(--color-sky);
}

.service-strip__label {
	font-size: var(--text-xs);
	font-weight: var(--weight-medium);
	line-height: 1.35;
	color: var(--ink);
	text-wrap: balance;
}

/* Compact variant: separated from what sits above it by a hairline. */
.service-strip--compact {
	padding-top: var(--space-md);
	border-top: 1px solid var(--hairline);
}

/* Below the desktop breakpoint the row becomes a wrapped grid, so the vertical
   dividers would land in arbitrary places. Drop them and let the gap do the
   separating instead. */
@media (max-width: 767px) {
	.service-strip {
		grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
		gap: var(--space-md) var(--space-2xs);
	}

	.service-strip__item {
		border-left: 0;
		padding-inline: 0;
	}
}

/* ==========================================================================
   11. Small-screen chrome adjustments
   ========================================================================== */

/* Below the tablet breakpoint the header has room for the logo and the counter
   but not the words beside it, so the label steps aside and the counter stays -
   it is the piece that actually tells the visitor where they are. */
@media (max-width: 767px) {
	.profile-header__label {
		display: none;
	}

	.profile-header__descriptor {
		letter-spacing: 0.16em;
	}
}



/* ==========================================================================
   12. Section eyebrow  -  gold label + trailing rule
   Opens every section from 02 onward.
   ========================================================================== */

.section-eyebrow {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.section-eyebrow__number {
	font-family: var(--font-display);
	font-size: var(--text-number);
	font-weight: var(--weight-black);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--color-sky);
}

.section-eyebrow__label {
	font-family: var(--font-display);
	font-size: var(--text-lg);
	font-weight: var(--weight-semi);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-sky);
}

.section-eyebrow__rule {
	width: clamp(1.75rem, 4vw, 3rem);
	height: 2px;
	flex-shrink: 0;
	background-color: var(--color-sky);
	opacity: 0.85;
}

/* ==========================================================================
   13. Icon badge  -  the circular icon chip used in almost every section
   ========================================================================== */

.icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: var(--radius-pill);
	transition:
		background-color var(--transition-fast),
		border-color var(--transition-fast),
		color var(--transition-fast);
}

.icon-badge--sm { width: 44px; height: 44px; }
.icon-badge--md { width: 56px; height: 56px; }
.icon-badge--lg { width: 68px; height: 68px; }

/* Hairline ring, gold glyph - the quietest variant. */
.icon-badge--outline {
	border: 1px solid var(--hairline);
	color: var(--color-sky);
}

/* Soft gold wash. */
.icon-badge--tint {
	background-color: var(--color-sky-tint);
	color: var(--color-sky);
}

/* Solid navy with a gold glyph. */
.icon-badge--navy {
	background-color: var(--color-navy);
	color: var(--color-sky);
}

/* Solid gold with a navy glyph - reserve for the single strongest mark. */
.icon-badge--gold {
	background-color: var(--color-sky);
	color: var(--color-navy);
}

/* White chip that lifts off a light ground. */
.icon-badge--white {
	background-color: var(--color-white);
	color: var(--color-sky);
	box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   14. Statistics card  -  white card of divided figures
   ========================================================================== */

.stat-card {
	padding: clamp(var(--space-md), 3vw, var(--space-lg));
	border-radius: var(--radius-lg);
	background-color: var(--color-white);
	box-shadow: var(--shadow-md);
}

.stat-card__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-md) 0;
}

.stat-card__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2xs);
	padding-inline: var(--space-xs);
	text-align: center;
	border-left: 1px solid var(--color-line);
}

/* Dividers only ever sit between columns, never at the start of a row. */
.stat-card__item:nth-child(2n + 1) {
	border-left: 0;
}

.stat-card__value {
	font-family: var(--font-display);
	font-size: var(--text-3xl);
	font-weight: var(--weight-black);
	line-height: 1;
	color: var(--color-text);
	font-variant-numeric: tabular-nums;
}

.stat-card__label {
	font-size: var(--text-sm);
	line-height: 1.35;
	color: var(--color-text-light);
	text-wrap: balance;
}

@media (min-width: 768px) {
	.stat-card__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.stat-card__item:nth-child(2n + 1) {
		border-left: 1px solid var(--color-line);
	}

	.stat-card__item:first-child {
		border-left: 0;
	}
}

/* ==========================================================================
   15. Hexagon badge
   ========================================================================== */

.hex-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: clamp(96px, 11vw, 132px);
	aspect-ratio: 1 / 1.1;
	padding: var(--space-2xs);
	text-align: center;

	/* A pointy-top hexagon, the shape used throughout reference 02. */
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-badge__text {
	font-family: var(--font-display);
	font-size: clamp(0.625rem, 0.9vw, 0.8125rem);
	font-weight: var(--weight-semi);
	line-height: 1.2;
	text-wrap: balance;
}

.hex-badge--navy {
	background-color: var(--color-navy);
	color: var(--color-white);
}

.hex-badge--navy .hex-badge__icon { color: var(--color-sky); }

.hex-badge--white {
	background-color: var(--color-white);
	color: var(--color-text);
	filter: drop-shadow(0 10px 24px rgba(7, 21, 38, 0.16));
}

.hex-badge--white .hex-badge__icon { color: var(--color-sky); }

.hex-badge--gold {
	background-color: var(--color-sky);
	color: var(--color-navy);
}

.hex-badge--gold .hex-badge__icon { color: var(--color-navy); }

/* ==========================================================================
   16. Accent contexts
   --------------------------------------------------------------------------
   An .accent-{name} class sets two custom properties, and every component
   inside reads those rather than a specific colour. That is how one service
   card, one contact block and one floating chip serve all seven hues without
   a variant of their own.
   ========================================================================== */

.accent-blue   { --accent: var(--accent-blue);   --accent-soft: var(--accent-blue-tint); }
.accent-green  { --accent: var(--accent-green);  --accent-soft: var(--accent-green-tint); }
.accent-gold   { --accent: var(--accent-gold);   --accent-soft: var(--accent-gold-tint); }
.accent-pink   { --accent: var(--accent-pink);   --accent-soft: var(--accent-pink-tint); }
.accent-purple { --accent: var(--accent-purple); --accent-soft: var(--accent-purple-tint); }
.accent-teal   { --accent: var(--accent-teal);   --accent-soft: var(--accent-teal-tint); }
.accent-navy   { --accent: var(--accent-navy);   --accent-soft: var(--accent-navy-tint); }

/* ==========================================================================
   17. Service card
   ========================================================================== */

.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);

	padding: var(--space-sm);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
	background-color: var(--color-white);
	box-shadow: var(--shadow-sm);
	transition:
		transform var(--transition-normal),
		border-color var(--transition-normal),
		box-shadow var(--transition-normal);
}

.service-card:hover {
	transform: translateY(-4px);
	border-color: var(--accent, var(--color-sky));
	box-shadow: var(--shadow-lg);
}

.service-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: var(--space-3xs);
	border-radius: var(--radius-pill);
	background-color: var(--accent-soft, var(--color-sky-tint));
	color: var(--accent, var(--color-sky));
}

.service-card__title {
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	line-height: 1.25;
	color: var(--color-text);
	text-wrap: balance;
}

.service-card__text {
	font-size: var(--text-sm);
	line-height: 1.55;
	color: var(--color-text-light);
}

/* The corner arrow. margin-top:auto pins it to the foot of the card so a row
   of cards with unequal copy still lines its arrows up. */
/* margin-top:auto drops the arrow to the foot of the card, so a row of cards
   with unequal copy still lines its arrows up. */
.service-card__arrow {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-top: auto;
	margin-left: auto;
	border: 1px solid var(--accent, var(--color-sky));
	border-radius: var(--radius-pill);
	color: var(--accent, var(--color-sky));
	transition:
		background-color var(--transition-fast),
		color var(--transition-fast),
		transform var(--transition-fast);
}

.service-card__arrow:hover {
	background-color: var(--accent, var(--color-sky));
	color: var(--color-white);
	transform: translateX(2px);
}

/* The circle reads best at 34px, but a finger needs 44. Grow the hit area
   without growing the mark. */
.service-card__arrow::after {
	content: '';
	position: absolute;
	inset: -5px;
}


/* Cards sit inside a link-free list, so the arrow is the only interactive
   element. Give the whole card a visible focus ring when it is focused. */
.service-card:focus-within {
	border-color: var(--accent, var(--color-sky));
}

/* ==========================================================================
   18. Highlight card  -  tinted callout beside the copy
   ========================================================================== */

.highlight-card {
	display: flex;
	align-items: flex-start;
	gap: var(--space-sm);
	padding: var(--space-md);
	border: 1px solid rgba(69, 183, 232, 0.4);
	border-radius: var(--radius-md);
	background-color: rgba(69, 183, 232, 0.07);
}

.highlight-card__title {
	font-family: var(--font-display);
	font-size: var(--text-base);
	font-weight: var(--weight-bold);
	color: var(--color-text);
}

.highlight-card__text {
	margin-top: var(--space-3xs);
	font-size: var(--text-sm);
	line-height: 1.55;
	color: var(--color-text-light);
}

.highlight-card__text strong {
	color: var(--color-text);
	font-weight: var(--weight-semi);
}

/* ==========================================================================
   19. Feature list  -  icon + title + sub text rows, divided by hairlines
   ========================================================================== */

.feature-list {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	background-color: var(--surface);
}

.feature-list__item {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-sm);
}

.feature-list__item + .feature-list__item {
	border-top: 1px solid var(--hairline);
}

.feature-list__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	border-radius: var(--radius-sm);
	background-color: var(--color-sky-tint);
	color: var(--color-sky);
}

.feature-list__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.feature-list__title {
	font-family: var(--font-display);
	font-size: var(--text-base);
	font-weight: var(--weight-bold);
	color: var(--ink);
}

.feature-list__text {
	font-size: var(--text-sm);
	line-height: 1.4;
	color: var(--ink-muted);
}

/* ==========================================================================
   20. Action row  -  a primary CTA paired with a circular arrow
   ========================================================================== */

.action-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-sm);
}

/*
 * The circular arrow only ever repeats the scroll gesture, so on narrow screens
 * it gives way rather than pushing the primary CTA onto a line of its own.
 */
@media (max-width: 575px) {
	.action-row .btn-circle {
		display: none;
	}

	.action-row .btn {
		width: 100%;
	}
}
