/*
Theme Name: AccessNow
Theme URI: https://accessnow.com.au
Author: AccessNow
Author URI: https://accessnow.com.au
Description: AccessNow site theme. A child of Twenty Twenty-Five with the AccessNow brand: navy and teal, dark gradient heroes, card grids, a blog that matches the Projects directory, and a branded footer.
Template: twentytwentyfive
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: accessnow
*/

/* ==========================================================================
   Tokens (mirrors the AccessNow Projects plugin)
   ========================================================================== */

:root {
	--an-navy: #142c6e;
	--an-navy-deep: #0a1638;
	--an-teal: #2aa3a0;
	--an-teal-soft: #a7ece6;
	--an-teal-text: #16706d; /* AA contrast for small teal text on light backgrounds */
	--an-steel: #3f7aa8;
	--an-ink: #0f172a;
	--an-muted: #5b6477;
	--an-line: rgba(15, 23, 42, 0.08);
	--an-surface: #f4f7fb;
	--an-radius: 20px;
	--an-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
	--an-shadow-lg: 0 18px 40px -12px rgba(20, 44, 110, 0.28), 0 4px 12px rgba(15, 23, 42, 0.06);
	--an-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--an-gutter: max(1.25rem, 4vw);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--an-teal-soft);
	color: var(--an-navy-deep);
}

:where(a, button, input, summary):focus-visible {
	outline: 2px solid var(--an-teal);
	outline-offset: 3px;
}

/* Templates own their spacing: no gaps between header, main and footer. */
.wp-site-blocks > * + * {
	margin-block-start: 0 !important;
}

.an-main > * {
	margin-block-start: 0 !important;
}

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

header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0);
	z-index: 100;
}

.an-header {
	padding-inline: var(--an-gutter) !important;
	border-bottom: 1px solid var(--an-line);
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 6px 20px -10px rgba(15, 23, 42, 0.22);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
}

/* Where the browser can follow the scroll position, the shadow fades in as the page moves under
   the bar, so it lifts off white pages without weighing down the very top. */
@supports (animation-timeline: scroll()) {
	.an-header {
		animation: an-header-lift linear both;
		animation-timeline: scroll(root);
		animation-range: 0 120px;
	}

	@keyframes an-header-lift {
		from {
			box-shadow: 0 6px 20px -10px rgba(15, 23, 42, 0);
		}

		to {
			box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.26);
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.an-header {
		animation: none;
	}
}

.an-header__bar {
	padding-block: 0.85rem;
}

.an-header__logo img {
	display: block;
	height: auto;
}

.an-header__actions {
	gap: 0.75rem !important;
}

.an-nav .wp-block-navigation-item__content {
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	color: var(--an-ink);
	transition: background 0.2s, color 0.2s;
}

.an-nav .wp-block-navigation-item__content:hover {
	background: var(--an-surface);
	color: var(--an-navy);
}

.an-nav .current-menu-item > .wp-block-navigation-item__content,
.an-nav .wp-block-navigation-item__content[aria-current="page"] {
	background: #e8eef8;
	color: var(--an-navy);
}

.an-nav .wp-block-navigation__container {
	gap: 0.25rem;
}

.an-header__search .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	width: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	border: 1px solid var(--an-line);
	border-radius: 999px;
	background: #fff;
	color: var(--an-navy);
}

.an-header__search .wp-block-search__button:hover {
	background: var(--an-surface);
}

.an-header__search .wp-block-search__input {
	border-radius: 999px;
}

/* ==========================================================================
   Heroes
   ========================================================================== */

.an-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(2.5rem, 5vw, 4rem) var(--an-gutter) clamp(2.25rem, 4vw, 3.25rem) !important;
	background:
		radial-gradient(55% 80% at 88% 8%, rgba(42, 163, 160, 0.5), transparent 60%),
		radial-gradient(45% 70% at 5% 100%, rgba(63, 122, 168, 0.55), transparent 60%),
		linear-gradient(135deg, var(--an-navy-deep) 0%, var(--an-navy) 58%, #17407c 100%);
	color: #fff;
}

.an-hero::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
	content: "";
}

.an-hero::after {
	position: absolute;
	z-index: -1;
	top: -20%;
	right: 8%;
	width: 28rem;
	height: 28rem;
	border-radius: 50%;
	background: #2aa3a0;
	filter: blur(80px);
	opacity: 0.35;
	content: "";
}

.an-hero.is-compact {
	padding-block: clamp(2.25rem, 4.5vw, 3.5rem) clamp(2rem, 4vw, 2.75rem) !important;
}

.an-hero > *,
.an-hero__inner > * {
	margin-block: 0;
}

.an-hero :where(h1, h2, h3, p, a) {
	color: inherit;
}

.an-eyebrow {
	display: inline-flex !important;
	align-items: center;
	gap: 0.55rem;
	width: fit-content;
	margin: 0 0 1.1rem !important;
	padding: 0.35rem 0.85rem 0.35rem 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--an-teal-soft) !important;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.an-eyebrow::before {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
	content: "";
}

.an-hero__title {
	max-width: 18ch;
	margin: 0 !important;
	padding-bottom: 0.08em;
	background: linear-gradient(180deg, #fff 30%, #b9f0ea 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
	font-size: clamp(2.3rem, 4.2vw, 3.75rem) !important;
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.02;
}

.an-hero.is-compact .an-hero__title,
.an-hero.is-post .an-hero__title {
	max-width: 22ch;
	font-size: clamp(2rem, 3.4vw, 2.9rem) !important;
}

.an-hero__subtitle,
.an-hero .wp-block-post-excerpt__excerpt,
.an-hero .wp-block-term-description {
	max-width: 42rem;
	margin: 1rem 0 0 !important;
	color: rgba(226, 236, 248, 0.86) !important;
	font-size: clamp(1rem, 1.25vw, 1.15rem);
	line-height: 1.55;
}

.an-hero .wp-block-post-excerpt {
	margin: 0 !important;
}

.an-hero__count {
	margin-top: 1rem !important;
	color: var(--an-teal-soft);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.an-hero__actions {
	gap: 0.75rem !important;
	margin-top: 1.6rem !important;
}

/* Buttons for dark sections */
.an-btn-light .wp-block-button__link {
	background: #fff !important;
	box-shadow: 0 14px 30px -12px rgba(42, 163, 160, 0.8);
	color: var(--an-navy) !important;
	transition: transform 0.2s var(--an-ease), box-shadow 0.2s;
}

.an-btn-ghost .wp-block-button__link {
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	background: rgba(255, 255, 255, 0.06) !important;
	color: #fff !important;
	transition: transform 0.2s var(--an-ease), background 0.2s;
}

.an-btn-light .wp-block-button__link:hover,
.an-btn-ghost .wp-block-button__link:hover {
	transform: translateY(-2px);
}

.an-btn-ghost .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.14) !important;
}

/* Category pills (Categories block on the blog hero) */
.an-hero .an-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 2rem 0 0 !important;
	padding: 0;
	list-style: none;
}

.an-pills li {
	margin: 0;
}

.an-pills a {
	display: inline-flex;
	padding: 0.5rem 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	color: #e6eef9 !important;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s;
}

.an-pills a:hover,
.an-pills .current-cat a {
	border-color: #fff;
	background: #fff;
	color: var(--an-navy) !important;
}

/* Breadcrumbs */
.an-crumbs {
	margin-bottom: 1.5rem !important;
	color: rgba(226, 236, 248, 0.6);
	font-size: 0.88rem;
}

.an-crumbs a {
	color: rgba(226, 236, 248, 0.85) !important;
	text-decoration: none;
}

.an-crumbs a:hover {
	color: #fff !important;
	text-decoration: underline;
}

/* Post hero details */
.an-hero__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1rem !important;
}

.an-hero__cats a {
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: rgba(42, 163, 160, 0.22);
	color: var(--an-teal-soft) !important;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.an-hero__cats .wp-block-post-terms__separator {
	display: none;
}

.an-byline {
	gap: 0.4rem 1.1rem !important;
	margin-top: 2rem !important;
	color: rgba(226, 236, 248, 0.8);
	font-size: 0.92rem;
}

.an-byline__avatar img {
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
}

.an-byline__name {
	color: #fff;
	font-weight: 700;
}

.an-byline .wp-block-post-date,
.an-byline__time {
	color: rgba(226, 236, 248, 0.75) !important;
}

.an-byline > * {
	margin: 0 !important;
}

.an-byline__time::before {
	margin-right: 1.1rem;
	color: rgba(226, 236, 248, 0.45);
	content: "•";
}

/* Search in heroes */
.an-hero__search {
	max-width: 36rem;
	margin-top: 2rem !important;
}

.an-hero__search .wp-block-search__inside-wrapper {
	padding: 0.35rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.an-hero__search .wp-block-search__input {
	border: 0;
	background: transparent;
	color: #fff;
}

.an-hero__search .wp-block-search__input::placeholder {
	color: rgba(226, 236, 248, 0.6);
}

.an-hero__search .wp-block-search__button {
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--an-navy);
	font-weight: 700;
}

/* ==========================================================================
   Home hero with orbiting app icons
   ========================================================================== */

.an-hero.is-home {
	padding-block: clamp(2.5rem, 5vw, 4.25rem) !important;
}

.an-home-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
}

.an-home-hero__text > * {
	margin-block: 0;
}

.an-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2.5rem;
	margin: 2rem 0 0;
}

.an-stats > div {
	display: flex;
	flex-direction: column-reverse;
}

.an-stats dd {
	margin: 0;
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
}

.an-stats dt {
	margin-top: 0.35rem;
	color: var(--an-teal-soft);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.an-orbit {
	position: relative;
	width: min(100%, 25rem);
	margin-inline: auto;
	aspect-ratio: 1;
}

.an-orbit__ring {
	position: absolute;
	inset: 12%;
	border: 1px dashed rgba(167, 236, 230, 0.35);
	border-radius: 50%;
}

.an-orbit__ring.is-outer {
	inset: -2%;
	border-style: solid;
	border-color: rgba(255, 255, 255, 0.08);
}

.an-orbit__mark {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42%;
	height: auto;
	border-radius: 22%;
	box-shadow: 0 30px 80px -20px rgba(42, 163, 160, 0.75), 0 0 0 10px rgba(255, 255, 255, 0.05);
	transform: translate(-50%, -50%);
}

.an-orbit__app {
	position: absolute;
	width: 17%;
	aspect-ratio: 1;
	overflow: hidden;
	border: 3px solid rgba(255, 255, 255, 0.85);
	border-radius: 24%;
	background: #fff;
	box-shadow: 0 16px 36px -12px rgba(2, 6, 23, 0.6);
	transition: transform 0.3s var(--an-ease);
}

.an-orbit__app img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.an-orbit__app:hover {
	transform: scale(1.08);
}

.an-orbit__app.is-0 { top: 2%; left: 40%; }
.an-orbit__app.is-1 { top: 22%; right: 0; }
.an-orbit__app.is-2 { right: 6%; bottom: 14%; }
.an-orbit__app.is-3 { bottom: 0; left: 36%; }
.an-orbit__app.is-4 { bottom: 18%; left: 2%; }
.an-orbit__app.is-5 { top: 18%; left: 4%; }

/* ==========================================================================
   Sections
   ========================================================================== */

.an-section {
	padding: clamp(3rem, 5.5vw, 4.75rem) var(--an-gutter) !important;
}

.an-section.is-surface {
	background: var(--an-surface);
}

.an-section > * + * {
	margin-block-start: 2rem !important;
}

.an-section__head {
	gap: 1rem !important;
}

.an-section__head h2,
.an-section__title {
	margin-block: 0 !important;
	font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important;
}

.an-kicker {
	margin: 0 0 0.5rem !important;
	color: var(--an-teal-text);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.an-more-link {
	margin: 0 !important;
}

.an-more-link a {
	color: var(--an-navy);
	font-weight: 700;
	text-decoration: none;
}

.an-more-link a:hover {
	color: var(--an-teal);
}

/* Platform tiles */
.an-platforms {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
}

.an-platform {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.5rem;
	border: 1px solid var(--an-line);
	border-radius: var(--an-radius);
	background: #fff;
	box-shadow: var(--an-shadow-sm);
	color: var(--an-ink);
	text-decoration: none;
	transition: transform 0.35s var(--an-ease), box-shadow 0.35s, border-color 0.35s;
}

.an-platform:hover {
	border-color: rgba(42, 163, 160, 0.35);
	box-shadow: var(--an-shadow-lg);
	transform: translateY(-4px);
}

.an-platform__icon {
	display: grid;
	width: 3rem;
	height: 3rem;
	margin-bottom: 0.5rem;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--an-navy), var(--an-teal));
	box-shadow: 0 10px 24px -10px rgba(42, 163, 160, 0.7);
	color: #fff;
	place-items: center;
}

.an-platform__icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

.an-platform__name {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.an-platform__blurb {
	color: var(--an-muted);
	font-size: 0.93rem;
	line-height: 1.5;
}

.an-platform__count {
	margin-top: auto;
	padding-top: 0.75rem;
	color: var(--an-navy);
	font-size: 0.85rem;
	font-weight: 700;
}

/* Call-to-action band */
.an-section.is-cta {
	padding-top: 0 !important;
	background: var(--an-surface);
}

.an-cta {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	gap: 1.5rem !important;
	padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem) !important;
	border-radius: 28px;
	box-shadow: var(--an-shadow-lg);
	background:
		radial-gradient(50% 120% at 100% 0%, rgba(42, 163, 160, 0.55), transparent 60%),
		linear-gradient(120deg, var(--an-navy) 0%, #1a3f85 100%);
	color: #fff;
}

.an-cta h2 {
	margin: 0 0 0.5rem !important;
	color: #fff;
	font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
}

.an-cta p {
	margin: 0;
	color: rgba(226, 236, 248, 0.85);
}

/* ==========================================================================
   Post cards (match the project cards)
   ========================================================================== */

.an-posts {
	gap: 1.75rem !important;
}

.an-posts > .wp-block-post {
	display: flex;
	margin: 0 !important;
}

.an-card {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	overflow: hidden;
	margin: 0 !important;
	border: 1px solid var(--an-line);
	border-radius: var(--an-radius);
	background: #fff;
	box-shadow: var(--an-shadow-sm);
	transition: transform 0.35s var(--an-ease), box-shadow 0.35s var(--an-ease), border-color 0.35s;
}

.an-card:hover,
.an-card:focus-within {
	border-color: rgba(42, 163, 160, 0.35);
	box-shadow: var(--an-shadow-lg);
	transform: translateY(-5px);
}

.an-card:focus-within {
	outline: 3px solid rgba(42, 163, 160, 0.55);
	outline-offset: 2px;
}

.an-card > * {
	margin: 0 !important;
}

.an-card__media {
	overflow: hidden;
	max-width: 100%;
	margin: 0 !important;
}

.an-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--an-ease);
}

.an-card:hover .an-card__media img:not(.an-fallback__mark) {
	transform: scale(1.04);
}

.an-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.2rem 1.35rem 1.15rem !important;
}

.an-card__body > * {
	margin: 0 !important;
}

.an-card__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.an-card__cats a,
.an-card__label {
	position: relative;
	z-index: 2;
	display: inline-block;
	padding: 0.2em 0.7em;
	border-radius: 999px;
	background: #e4f4f3;
	color: var(--an-teal-text) !important;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.5;
	text-decoration: none;
	text-transform: uppercase;
}

.an-card__cats a:hover {
	background: #d2eeec;
}

.an-card__cats .wp-block-post-terms__separator {
	display: none;
}

.an-card__title {
	font-size: 1.15rem !important;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.an-card__title a::after {
	position: absolute;
	z-index: 1;
	inset: 0;
	content: "";
}

.an-card__title a:focus-visible {
	outline: none;
}

.an-card__excerpt .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--an-muted);
	font-size: 0.97rem;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.an-card__meta {
	gap: 0.3rem 0.6rem !important;
	line-height: 1.4;
	margin-top: auto !important;
	padding-top: 0.9rem;
	border-top: 1px solid var(--an-line);
	color: var(--an-muted);
	font-size: 0.85rem;
}

.an-card__meta > * {
	margin: 0 !important;
	font-size: 0.85rem !important;
	line-height: 1.4;
}

.an-card__meta .wp-block-post-time-to-read::before {
	margin-right: 0.6rem;
	color: #94a3b8;
	content: "•";
}

/* Featured first post on the blog's first page */
@media (min-width: 900px) {
	.is-first-page .is-featured-first .an-posts > .wp-block-post:first-child {
		grid-column: 1 / -1;
	}

	.is-first-page .is-featured-first .an-posts > .wp-block-post:first-child .an-card {
		display: grid;
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	}

	.is-first-page .is-featured-first .an-posts > .wp-block-post:first-child .an-card__media {
		/* The column sets the width and the row sets the height. Keeping the card's 16/9
		   ratio here would turn min-height into a width (22rem × 16/9), which overflows the
		   column and covers the text as soon as the reader's font size grows. */
		aspect-ratio: auto !important;
		width: 100%;
		height: 100%;
		/* Height tracks the viewport, with a floor, rather than the font size. */
		min-height: max(16rem, min(25rem, 28vw));
	}

	.is-first-page .is-featured-first .an-posts > .wp-block-post:first-child .an-card__body {
		justify-content: center;
		padding: 2.5rem !important;
	}

	.is-first-page .is-featured-first .an-posts > .wp-block-post:first-child .an-card__title {
		font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
		letter-spacing: -0.03em;
	}

	.is-first-page .is-featured-first .an-posts > .wp-block-post:first-child .an-card__meta {
		margin-top: 0.5rem !important;
	}
}

/* Branded placeholder for posts without a featured image */
.an-fallback {
	position: relative;
	overflow: hidden;
	margin: 0;
	background: linear-gradient(135deg, var(--an-from, #142c6e), var(--an-to, #2aa3a0));
	isolation: isolate;
	container-type: inline-size;
}

.an-fallback > a {
	display: block;
	width: 100%;
	height: 100%;
}

.an-fallback::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.4px);
	background-size: 18px 18px;
	-webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 70%);
	mask-image: linear-gradient(160deg, #000 10%, transparent 70%);
	content: "";
}

.an-fallback__word {
	position: absolute;
	right: 0;
	bottom: -0.14em;
	left: 0.3em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 95%);
	mask-image: linear-gradient(90deg, #000 55%, transparent 95%);
	color: rgba(255, 255, 255, 0.12);
	font-size: 17cqw;
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
	white-space: nowrap;
}

.an-fallback__mark {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22% !important;
	height: auto !important;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 22%;
	box-shadow: 0 20px 40px -12px rgba(2, 6, 23, 0.45);
	transform: translate(-50%, -50%);
}

/* ==========================================================================
   Articles and pages
   ========================================================================== */

.an-article {
	padding: 0 var(--an-gutter) clamp(2rem, 4vw, 3.5rem) !important;
}

.an-article > * + * {
	margin-block-start: 2.5rem !important;
}

.an-article__media {
	position: relative;
	z-index: 2;
	margin-top: clamp(2rem, 4vw, 3rem) !important;
	overflow: hidden;
	border-radius: 24px;
	box-shadow: var(--an-shadow-lg);
}

.an-article__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.an-article > .an-prose:first-child,
.an-article > .an-fallback + .an-prose {
	margin-top: clamp(2.5rem, 5vw, 4rem) !important;
}

.an-article > .an-prose {
	margin-top: clamp(2.5rem, 5vw, 3.5rem) !important;
}

/* Single posts with no image: no placeholder under the hero. */
.an-article > .an-fallback.an-article__media {
	display: none;
}

.an-prose {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.an-prose > * + * {
	margin-block-start: 1.35em;
}

.an-prose :where(h2, h3, h4) {
	margin-block-start: 2em;
	scroll-margin-top: 6rem;
}

.an-prose h2 {
	font-size: clamp(1.6rem, 2.6vw, 2rem);
}

.an-prose h3 {
	font-size: clamp(1.3rem, 2vw, 1.5rem);
}

.an-prose a {
	color: var(--an-navy);
	text-decoration-color: rgba(42, 163, 160, 0.6);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.an-prose a:hover {
	color: var(--an-teal);
}

.an-prose :where(ul, ol) {
	padding-left: 1.4em;
}

.an-prose li + li {
	margin-top: 0.4em;
}

.an-prose li::marker {
	color: var(--an-teal);
}

.an-prose img,
.an-prose .wp-block-image img {
	border-radius: 16px;
}

.an-prose .wp-block-image figcaption {
	text-align: center;
}

.an-prose :not(pre) > code {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: #eef2f8;
	color: var(--an-navy);
	font-size: 0.9em;
}

.an-prose pre,
.an-prose pre code {
	white-space: pre !important;
	word-break: normal;
	overflow-wrap: normal;
}

.an-prose pre {
	overflow-x: auto;
	font-size: 0.92rem;
	line-height: 1.6;
}

.an-prose blockquote {
	margin-inline: 0;
	color: var(--an-ink);
}

.an-prose hr {
	margin-block: 3rem;
}

/* Tags */
.an-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: center;
	color: var(--an-muted);
	font-size: 0.85rem !important;
}

.an-tags a {
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: #eef2f8;
	color: #334155 !important;
	font-weight: 600;
	text-decoration: none;
}

.an-tags a:hover {
	background: #dfe7f3;
}

.an-tags .wp-block-post-terms__separator {
	display: none;
}

/* Author box (hidden until the author has a biography in their profile) */
.an-author:not(:has(.wp-block-post-author-biography)) {
	display: none;
}

.an-author {
	gap: 1.25rem !important;
	padding: 1.5rem;
	border: 1px solid var(--an-line);
	border-radius: var(--an-radius);
	background: var(--an-surface);
}

.an-author img {
	border-radius: 50%;
}

.an-author__label {
	margin: 0 !important;
	color: var(--an-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.an-author__name {
	margin: 0.15rem 0 0 !important;
	font-size: 1.2rem;
	font-weight: 800;
}

.an-author__bio {
	margin-top: 0.5rem !important;
	color: var(--an-muted);
	font-size: 0.97rem;
}

/* Previous / next */
.an-post-nav {
	gap: 1rem !important;
	align-items: stretch !important;
}

.an-post-nav > div {
	display: flex;
	flex: 1 1 18rem;
	flex-direction: column;
	justify-content: center;
	padding: 1.1rem 1.3rem;
	border: 1px solid var(--an-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--an-shadow-sm);
	transition: border-color 0.2s, transform 0.2s var(--an-ease);
}

.an-post-nav > div:hover {
	border-color: rgba(42, 163, 160, 0.4);
	transform: translateY(-2px);
}

.an-post-nav > div:empty {
	visibility: hidden;
}

.an-post-nav .post-navigation-link-next {
	text-align: right;
}

.an-post-nav a {
	color: var(--an-ink);
	font-weight: 700;
	text-decoration: none;
}

.an-post-nav__prev .post-navigation-link__label::before {
	content: "← ";
}

.an-post-nav__next .post-navigation-link__label::after {
	content: " →";
}

.an-post-nav .post-navigation-link__label {
	display: block;
	margin-bottom: 0.2rem;
	color: var(--an-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Comments */
.an-article .wp-block-comments {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 1px solid var(--an-line);
	border-radius: var(--an-radius);
	background: #fff;
}

.an-article .wp-block-comments :where(input[type="text"], input[type="email"], input[type="url"], textarea) {
	padding: 0.75rem 1rem;
	border: 1px solid #d5dce8;
	border-radius: 12px;
	font: inherit;
}

.an-article .wp-block-comments :where(input, textarea):focus {
	border-color: var(--an-teal);
	outline: 3px solid rgba(42, 163, 160, 0.2);
}

.an-comments > :first-child {
	margin-top: 0 !important;
}

.an-comments .wp-block-comments-title {
	font-size: 1.4rem;
}

.an-comments .comment-reply-title {
	margin-top: 0;
	font-size: 1.4rem;
}

.an-comment {
	gap: 1rem !important;
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--an-line);
}

.an-comment img {
	border-radius: 50%;
}

.an-comment__meta {
	gap: 0.5rem 0.75rem !important;
	font-size: 0.9rem;
}

.an-comment__meta .wp-block-comment-author-name {
	font-weight: 700;
}

.an-comment__meta .wp-block-comment-date {
	color: var(--an-muted);
}

.an-comments input[type="checkbox"] {
	accent-color: var(--an-teal);
	width: 1.1rem;
	height: 1.1rem;
}

.an-comments .comment-form-cookies-consent {
	display: flex;
	gap: 0.6rem;
	align-items: center;
	color: var(--an-muted);
	font-size: 0.9rem;
}

/* Related projects appended under posts by the Projects plugin */
.an-prose .anp-more {
	margin-top: 3.5rem !important;
}

/* ==========================================================================
   Pagination and empty states
   ========================================================================== */

.an-pagination {
	gap: 0.5rem !important;
	margin-top: 3rem !important;
}

.an-pagination :where(a, .page-numbers) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	white-space: nowrap;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.85rem;
	border: 1px solid var(--an-line);
	border-radius: 999px;
	background: #fff;
	color: var(--an-ink);
	font-weight: 600;
	text-decoration: none;
	place-items: center;
}

.an-pagination .page-numbers.current {
	border-color: var(--an-navy);
	background: var(--an-navy);
	color: #fff;
}

.an-empty {
	padding: 3rem 1rem;
	color: var(--an-muted);
	font-size: 1.1rem;
	text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.an-footer {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(3.5rem, 7vw, 5.5rem) var(--an-gutter) 2rem !important;
	background:
		radial-gradient(40% 70% at 100% 0%, rgba(42, 163, 160, 0.28), transparent 60%),
		radial-gradient(40% 70% at 0% 100%, rgba(63, 122, 168, 0.3), transparent 60%),
		var(--an-navy-deep);
	color: rgba(226, 236, 248, 0.8);
	font-size: 0.95rem;
}

.an-footer::before {
	position: absolute;
	z-index: -1;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
	mask-image: linear-gradient(180deg, #000, transparent 80%);
	content: "";
}

.an-footer a {
	color: #e6eef9;
	text-decoration: none;
}

.an-footer a:hover {
	color: var(--an-teal-soft);
}

.an-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.3fr);
	gap: 2.5rem;
}

.an-footer__top > * {
	margin: 0 !important;
}

.an-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
}

.an-footer__logo img {
	border-radius: 12px;
	box-shadow: 0 10px 24px -10px rgba(42, 163, 160, 0.7);
}

.an-footer__logo span {
	color: #fff;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.an-footer__logo small {
	color: var(--an-teal-soft);
	font-size: 0.85rem;
	font-weight: 600;
}

.an-footer__tagline {
	max-width: 22rem;
	margin: 1rem 0 1.5rem !important;
	line-height: 1.6;
}

.an-footer__heading {
	margin: 0 0 1rem !important;
	color: #fff !important;
	font-size: 0.8rem !important;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.an-footer__links {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.an-footer__posts {
	display: grid;
	gap: 0.9rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.an-footer__posts li {
	margin: 0;
}

.an-footer__posts a {
	display: block;
	font-weight: 600;
	line-height: 1.4;
}

.an-footer__posts time {
	color: rgba(226, 236, 248, 0.55);
	font-size: 0.8rem;
}

.an-footer__bottom {
	margin-top: 3.5rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(226, 236, 248, 0.55);
	font-size: 0.85rem;
}

.an-footer__bottom p {
	margin: 0;
}

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

@keyframes an-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

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

@keyframes an-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

@keyframes an-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.an-hero__inner > *,
	.an-home-hero__text > *,
	.an-hero.is-post > *,
	.an-hero.is-compact > *,
	.an-hero.is-404 > * {
		animation: an-rise 0.8s var(--an-ease) both;
	}

	.an-hero__inner > :nth-child(2),
	.an-home-hero__text > :nth-child(2),
	.an-hero > :nth-child(2) {
		animation-delay: 0.06s;
	}

	.an-hero__inner > :nth-child(3),
	.an-home-hero__text > :nth-child(3),
	.an-hero > :nth-child(3) {
		animation-delay: 0.12s;
	}

	.an-hero__inner > :nth-child(n+4),
	.an-home-hero__text > :nth-child(n+4),
	.an-hero > :nth-child(n+4) {
		animation-delay: 0.18s;
	}

	.an-posts > .wp-block-post {
		animation: an-rise 0.7s var(--an-ease) both;
	}

	.an-posts > .wp-block-post:nth-child(2) {
		animation-delay: 0.06s;
	}

	.an-posts > .wp-block-post:nth-child(n+3) {
		animation-delay: 0.12s;
	}

	.an-orbit__app {
		animation: an-float 6s ease-in-out infinite;
	}

	.an-orbit__app.is-1 { animation-delay: -1s; }
	.an-orbit__app.is-2 { animation-delay: -2s; }
	.an-orbit__app.is-3 { animation-delay: -3s; }
	.an-orbit__app.is-4 { animation-delay: -4s; }
	.an-orbit__app.is-5 { animation-delay: -5s; }

	.an-orbit__ring {
		animation: an-spin 60s linear infinite;
	}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
	.an-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.an-home-hero {
		grid-template-columns: 1fr;
	}

	.an-orbit {
		width: min(100%, 22rem);
	}
}

@media (max-width: 600px) {
	.an-header__logo img {
		width: 150px !important;
	}

	.an-footer__top {
		grid-template-columns: 1fr;
	}

	.an-stats {
		gap: 0.75rem 1.75rem;
	}

	.an-post-nav .post-navigation-link-next {
		text-align: left;
	}
}

/* ==========================================================================
   Review fixes: layout glue, counts, blog filters
   ========================================================================== */

/* Footer always reaches the bottom on short pages. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}

.wp-site-blocks > main,
.wp-site-blocks > .an-main {
	flex: 1 0 auto;
}

.an-results-count {
	margin: 0 0 1.25rem !important;
	color: var(--an-muted);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* "Uncategorized" is not a real topic. */
.an-pills .cat-item-1 {
	display: none;
}

.an-home-hero .an-hero__title {
	max-width: 17ch;
}

@media (max-width: 900px) {
	.an-platforms {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.an-platforms {
		grid-template-columns: 1fr;
	}

	.an-orbit {
		width: min(100%, 15rem);
		margin-top: 0.5rem;
	}

	.an-eyebrow {
		font-size: 0.68rem;
		letter-spacing: 0.06em;
		white-space: nowrap;
	}

	.an-crumbs li:last-child {
		display: none;
	}

	.an-byline__time::before {
		display: none;
	}
}

/* ==========================================================================
   Landing pages (Work with us)
   ========================================================================== */

.an-landing > * {
	margin-block: 0 !important;
}

.an-landing > .alignfull {
	max-width: none;
}

.an-work-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
}

.an-work-hero > * {
	margin: 0 !important;
}

.an-mosaic {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem 1rem;
	max-width: 22rem;
	margin-inline: auto !important;
	transform: rotate(-4deg);
}

.an-mosaic figure {
	margin: 0 !important;
	overflow: hidden;
	border: 3px solid rgba(255, 255, 255, 0.85);
	border-radius: 24%;
	background: #fff;
	box-shadow: 0 16px 36px -12px rgba(2, 6, 23, 0.6);
	aspect-ratio: 1;
}

.an-mosaic figure:nth-child(3n+2) {
	transform: translateY(1.25rem);
}

.an-mosaic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Feature cards with CSS icons */
.an-features {
	gap: 1.25rem !important;
}

.an-feature {
	margin: 0 !important;
	padding: 1.6rem;
	border: 1px solid var(--an-line);
	border-radius: var(--an-radius);
	background: #fff;
	box-shadow: var(--an-shadow-sm);
}

.an-feature > * {
	margin-block: 0 !important;
}

.an-feature > * + * {
	margin-block-start: 0.6rem !important;
}

.an-feature::before {
	display: block;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1.1rem;
	border-radius: 14px;
	background:
		var(--an-icon) center / 1.5rem no-repeat,
		linear-gradient(135deg, var(--an-navy), var(--an-teal));
	box-shadow: 0 10px 24px -10px rgba(42, 163, 160, 0.7);
	content: "";
}

.an-feature h3 {
	font-size: 1.2rem !important;
}

.an-feature p {
	color: var(--an-muted);
	font-size: 0.97rem;
	line-height: 1.6;
}

.an-feature .an-feature__eg {
	color: var(--an-teal-text);
	font-size: 0.85rem;
	font-weight: 700;
}

.an-feature.is-web { --an-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4' width='19' height='16' rx='2.5'/%3E%3Cpath d='M2.5 9h19M6 6.5h.01M9 6.5h.01'/%3E%3C/svg%3E"); }
.an-feature.is-mobile { --an-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M11 18.5h2'/%3E%3C/svg%3E"); }
.an-feature.is-plugin { --an-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 2v5M15 2v5M6 7h12v4a6 6 0 0 1-12 0V7zM12 17v5'/%3E%3C/svg%3E"); }
.an-feature.is-key { --an-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2.5'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.an-feature.is-shield { --an-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.5 9 8 11 4.5-2 8-6 8-11V5z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.an-feature.is-bolt { --an-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.an-feature.is-flag { --an-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4M5 4h11l-2 4 2 4H5'/%3E%3C/svg%3E"); }
.an-feature.is-chat { --an-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }

/* Process steps */
.an-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	max-width: var(--wp--style--global--wide-size);
	margin: 2rem auto 0 !important;
	padding: 0;
	list-style: none;
	counter-reset: an-step;
}

.an-steps > li {
	position: relative;
	margin: 0;
	padding: 1.5rem 1.4rem 1.4rem;
	border: 1px solid var(--an-line);
	border-radius: var(--an-radius);
	background: #fff;
	color: var(--an-muted);
	font-size: 0.95rem;
	line-height: 1.6;
	counter-increment: an-step;
}

.an-steps > li::before {
	display: block;
	margin-bottom: 0.9rem;
	background: linear-gradient(135deg, var(--an-navy), var(--an-teal));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 2.2rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	content: counter(an-step, decimal-leading-zero);
}

.an-steps > li strong {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--an-ink);
	font-size: 1.1rem;
}

/* FAQ */
.an-faq .wp-block-details {
	margin: 0 !important;
	padding: 1.1rem 1.35rem;
	border: 1px solid var(--an-line);
	border-radius: 16px;
	background: #fff;
}

.an-faq .wp-block-details + .wp-block-details {
	margin-top: 0.75rem !important;
}

.an-faq summary {
	position: relative;
	padding-right: 2rem;
	color: var(--an-ink);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.an-faq summary::-webkit-details-marker {
	display: none;
}

.an-faq summary::after {
	position: absolute;
	top: 50%;
	right: 0;
	color: var(--an-teal-text);
	font-size: 1.4rem;
	font-weight: 400;
	line-height: 1;
	transform: translateY(-50%);
	transition: transform 0.2s;
	content: "+";
}

.an-faq details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.an-faq .wp-block-details p {
	margin: 0.75rem 0 0;
	color: var(--an-muted);
}

/* Enquiry section */
.an-enquiry-section .an-enquiry-cols {
	gap: clamp(2rem, 4vw, 4rem) !important;
}

.an-next-steps {
	margin: 1.5rem 0 0 !important;
	padding: 0;
	list-style: none;
	counter-reset: an-next;
}

.an-next-steps li {
	position: relative;
	margin: 0 0 1rem;
	padding-left: 2.75rem;
	color: var(--an-muted);
	counter-increment: an-next;
}

.an-next-steps li::before {
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	background: #e4f4f3;
	color: var(--an-teal-text);
	font-size: 0.85rem;
	font-weight: 800;
	place-items: center;
	content: counter(an-next);
}

.an-next-steps li strong {
	display: block;
	color: var(--an-ink);
}

/* Header call to action */
.an-nav .an-nav-cta > .wp-block-navigation-item__content {
	margin-left: 0.25rem;
	background: var(--an-navy);
	color: #fff;
}

.an-nav .an-nav-cta > .wp-block-navigation-item__content:hover,
.an-nav .an-nav-cta.current-menu-item > .wp-block-navigation-item__content {
	background: #1f4d8f;
	color: #fff;
}

@media (max-width: 1000px) {
	.an-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.an-work-hero {
		grid-template-columns: 1fr;
	}

	.an-mosaic {
		max-width: 16rem;
	}
}

@media (max-width: 600px) {
	.an-steps {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Second review fixes
   ========================================================================== */

.an-header__search .wp-block-search__button svg {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
}

/* Main column fills the page so short pages end on the footer, not a white band. */
.an-main {
	display: flex;
	flex-direction: column;
}

.an-main > :last-child {
	flex-grow: 1;
}

/* Feature grids: always fill the row. */
.an-features {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important;
}

.an-feature {
	display: flex;
	flex-direction: column;
}

.an-feature .an-feature__eg {
	margin-top: auto !important;
	padding-top: 0.6rem;
}

/* FAQ: one left edge. */
.an-faq > * {
	max-width: 820px;
	margin-inline: 0 !important;
}

.an-faq h2 {
	margin: 0 0 1.5rem !important;
}

.an-faq {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto !important;
}

/* Enquiry: keep the intro beside the form while scrolling. */
@media (min-width: 782px) {
	.an-enquiry-cols > .wp-block-column:first-child {
		position: sticky;
		top: 6rem;
		align-self: flex-start;
	}
}

/* Comments: even padding. */
.an-comments > :empty {
	display: none;
}

.an-comments .comment-respond {
	margin: 0;
}

.an-comments .form-submit {
	margin-bottom: 0;
}

.an-comments .comment-reply-title {
	margin-top: 0 !important;
}

/* Single post hero lines up with the reading column; images break out wider. */
.an-hero.is-post .an-hero__inner {
	max-width: 720px;
	margin-inline: auto !important;
}

@media (max-width: 600px) {
	.an-crumbs li:nth-last-child(2)::after {
		content: none;
	}

	.an-orbit {
		width: min(100%, 11rem);
	}
}

.an-comments .wp-block-post-comments-form {
	padding-block: 0 !important;
}

.an-pagination .wp-block-query-pagination-numbers {
	display: inline-flex;
	gap: 0.5rem;
}

.an-project-cover > a {
	display: block;
}

.an-project-cover .anp-cover {
	aspect-ratio: 16 / 9;
}
