/*
 * Components. Each block reads semantic tokens only, so it adapts to
 * .ax-surface--* automatically. Motion states live in motion.css.
 */

/* =========================================================
   Logo
   ========================================================= */

.ax-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.ax-logo__img {
	width: auto;
	height: 1.75rem;
}

@media (min-width: 64rem) {
	.ax-logo__img {
		height: 2rem;
	}
}

/* =========================================================
   Buttons & links
   ========================================================= */

.ax-btn {
	--btn-bg: var(--ax-navy);
	--btn-fg: var(--ax-white);
	--btn-border: var(--ax-navy);
	--btn-fill: var(--ax-teal);
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	min-height: 3.25rem;
	padding: 0.85rem 1.5rem;
	border: 1px solid var(--btn-border);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-family: var(--ax-font-sans);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	transition: color var(--ax-dur-base) var(--ax-ease-out), border-color var(--ax-dur-base) var(--ax-ease-out);
}

/* Fill sweeps in on the monogram diagonal. */
.ax-btn::before {
	content: "";
	position: absolute;
	inset: 0 -40% 0 -40%;
	z-index: -1;
	background: var(--btn-fill);
	transform: translateX(-101%) skewX(-35deg);
	transition: transform var(--ax-dur-slow) var(--ax-ease-out);
}

.ax-btn:hover::before,
.ax-btn:focus-visible::before {
	transform: translateX(0) skewX(-35deg);
}

.ax-btn__icon {
	display: inline-flex;
	transition: transform var(--ax-dur-base) var(--ax-ease-out);
}

.ax-btn__icon .ax-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.ax-btn:hover .ax-btn__icon {
	transform: translateX(0.25rem);
}

.ax-btn--secondary {
	--btn-bg: transparent;
	--btn-fg: var(--ax-heading);
	--btn-border: var(--ax-line-strong);
	--btn-fill: var(--ax-navy);
}

.ax-btn--secondary:hover,
.ax-btn--secondary:focus-visible {
	--btn-fg: var(--ax-white);
	--btn-border: var(--ax-navy);
}

.ax-btn--ghost {
	--btn-bg: transparent;
	--btn-fg: currentColor;
	--btn-border: currentColor;
	--btn-fill: transparent;
	min-height: 2.75rem;
	padding: 0.6rem 1.15rem;
	font-size: 0.875rem;
}

.ax-btn--ghost:hover {
	--btn-fg: var(--ax-gold);
	--btn-border: var(--ax-gold);
}

.ax-btn--light {
	--btn-bg: transparent;
	--btn-fg: var(--ax-white);
	--btn-border: rgb(255 255 255 / 0.5);
	--btn-fill: var(--ax-gold);
}

.ax-btn--light:hover,
.ax-btn--light:focus-visible {
	--btn-fg: var(--ax-navy-deep);
	--btn-border: var(--ax-gold);
}

/* Text link with drawn underline. */
.ax-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--ax-heading);
	font-weight: 500;
	text-decoration: none;
}

.ax-link > span {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size var(--ax-dur-slow) var(--ax-ease-out);
	padding-bottom: 0.1em;
}

.ax-link:hover > span,
.ax-link:focus-visible > span {
	background-size: 100% 1px;
}

.ax-link .ax-icon {
	width: 1.125rem;
	height: 1.125rem;
	transition: transform var(--ax-dur-base) var(--ax-ease-out);
}

.ax-link:hover .ax-icon {
	transform: translateX(0.25rem);
}

.ax-link--light {
	color: var(--ax-white);
}

.ax-tag {
	display: inline-block;
	font-size: var(--ax-step-eyebrow);
	font-weight: 500;
	letter-spacing: var(--ax-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--ax-accent);
	text-decoration: none;
}

/* Whole-card click target without nesting links. */
.ax-stretched-link {
	text-decoration: none;
}

.ax-stretched-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

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

.ax-header {
	--hdr-fg: var(--ax-navy);
	--hdr-bg: transparent;
	position: fixed;
	inset: 0 0 auto;
	z-index: var(--ax-z-header);
	height: var(--ax-header-h);
	color: var(--hdr-fg);
	background: var(--hdr-bg);
	transition:
		transform var(--ax-dur-slow) var(--ax-ease-out),
		background-color var(--ax-dur-base) var(--ax-ease-standard),
		color var(--ax-dur-base) var(--ax-ease-standard),
		box-shadow var(--ax-dur-base) var(--ax-ease-standard);
	view-transition-name: ax-header;
}

.ax-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ax-space-l);
	height: 100%;
}

.ax-header__logo {
	position: relative;
	z-index: 2;
}

/* Two logo variants stacked; header theme decides which shows. */
.ax-logo__variant--light {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.ax-logo__variant {
	transition: opacity var(--ax-dur-base) var(--ax-ease-standard);
}

/*
 * data-theme follows the surface under the header (ax-navigation.js reads
 * [data-ax-surface="dark"] sections): light = white logo/text over dark.
 */
.ax-header[data-theme="light"] .ax-logo__variant--dark,
body.ax-menu-open .ax-header .ax-logo__variant--dark {
	opacity: 0;
}

.ax-header[data-theme="light"] .ax-logo__variant--light,
body.ax-menu-open .ax-header .ax-logo__variant--light {
	opacity: 1;
}

.ax-header[data-theme="light"],
body.ax-menu-open .ax-header {
	--hdr-fg: var(--ax-white);
}

.ax-header[data-scrolled] {
	--hdr-bg: rgb(255 255 255 / 0.94);
	box-shadow: 0 1px 0 var(--ax-line);
	backdrop-filter: saturate(1.4) blur(10px);
}

.ax-header[data-scrolled][data-theme="light"] {
	--hdr-bg: rgb(0 29 47 / 0.82);
	box-shadow: 0 1px 0 var(--ax-line-light);
}

body.ax-menu-open .ax-header {
	--hdr-bg: transparent;
	box-shadow: none;
	backdrop-filter: none;
}

.ax-header[data-hidden] {
	transform: translateY(-100%);
}

/* Inline menu (desktop only). */
.ax-menu--header {
	display: none;
	margin-left: auto;
}

@media (min-width: 64rem) {
	.ax-menu--header {
		display: block;
	}
}

.ax-menu--header .ax-menu__list {
	display: flex;
	gap: clamp(1.25rem, 0.5rem + 1.6vw, 2.5rem);
}

.ax-menu--header a {
	display: block;
	padding-block: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.ax-menu--header .ax-menu__mask {
	display: block;
	overflow: hidden;
}

.ax-menu--header .ax-menu__label {
	display: block;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size var(--ax-dur-slow) var(--ax-ease-out);
}

.ax-menu--header a:hover .ax-menu__label,
.ax-menu--header .current-menu-item .ax-menu__label,
.ax-menu--header .current-menu-ancestor .ax-menu__label,
.ax-menu--header .current-page-ancestor .ax-menu__label {
	/* current-page-ancestor: WordPress's class on the parent page's item (e.g. "Sectors" on a sector page). */
	background-size: 100% 1px;
}

.ax-header__actions {
	display: flex;
	align-items: center;
	gap: var(--ax-space-m);
	position: relative;
	z-index: 2;
}

.ax-header__cta {
	display: none;
}

@media (min-width: 48rem) {
	.ax-header__cta {
		display: inline-flex;
	}
}

/* 1024–1279px: the inline menu needs the room. The CTA stays one click
   away in the fullscreen menu, so the header never wraps. */
@media (min-width: 64rem) and (max-width: 79.99rem) {
	.ax-header__cta {
		display: none;
	}
}

.ax-menu--header a,
.ax-header__cta {
	white-space: nowrap;
}

body.ax-menu-open .ax-header__cta,
body.ax-menu-open .ax-menu--header {
	visibility: hidden;
}

.ax-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 2.75rem;
	padding: 0.5rem 0;
	border: 0;
	background: none;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ax-menu-toggle__bars {
	position: relative;
	width: 1.75rem;
	height: 0.75rem;
}

.ax-menu-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	transition: transform var(--ax-dur-slow) var(--ax-ease-out), width var(--ax-dur-base) var(--ax-ease-out);
}

.ax-menu-toggle__bars span:first-child {
	top: 0;
}

.ax-menu-toggle__bars span:last-child {
	bottom: 0;
	width: 70%;
}

.ax-menu-toggle:hover .ax-menu-toggle__bars span:last-child {
	width: 100%;
}

.ax-menu-toggle[aria-expanded="true"] .ax-menu-toggle__bars span:first-child {
	transform: translateY(0.34rem) rotate(35deg);
}

.ax-menu-toggle[aria-expanded="true"] .ax-menu-toggle__bars span:last-child {
	width: 100%;
	transform: translateY(-0.34rem) rotate(-35deg);
}

/* =========================================================
   Fullscreen overlay navigation
   ========================================================= */

.ax-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--ax-z-overlay);
	visibility: hidden;
	pointer-events: none;
	/* Visibility must flip instantly so focus can move in on open
	   (the reduced-motion reset would otherwise transition it). */
	transition-property: none !important;
}

.ax-overlay[data-state="open"] {
	visibility: visible;
	pointer-events: auto;
}

.ax-overlay__panel {
	--ax-bg: var(--ax-navy-deep);
	--ax-fg: rgb(255 255 255 / 0.86);
	--ax-heading: var(--ax-white);
	--ax-accent: var(--ax-gold-soft);
	--ax-focus: var(--ax-gold);
	position: absolute;
	inset: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--ax-bg);
	color: var(--ax-fg);
}

/* Oversized monogram diagonal as a quiet background device. */
.ax-overlay__mark,
.ax-footer__mark,
.ax-cta-band__mark {
	position: absolute;
	pointer-events: none;
	width: 60vmax;
	aspect-ratio: 1;
	right: -12vmax;
	bottom: -18vmax;
	background: url("../images/brand/axlaw-monogram-512.png") center / contain no-repeat;
	opacity: 0.05;
	filter: brightness(0) invert(1);
}

.ax-overlay__inner {
	position: relative;
	display: grid;
	gap: var(--ax-space-2xl);
	min-height: 100%;
	padding-top: calc(var(--ax-header-h) + var(--ax-space-xl));
	padding-bottom: var(--ax-space-xl);
}

@media (min-width: 64rem) {
	.ax-overlay__inner {
		grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
		column-gap: var(--ax-column-gap);
		align-items: end;
		padding-bottom: var(--ax-space-2xl);
	}
}

.ax-menu--overlay .ax-menu__list {
	counter-reset: ax-menu;
}

.ax-menu--overlay .ax-menu__list > li {
	counter-increment: ax-menu;
	border-top: 1px solid var(--ax-line-light);
}

.ax-menu--overlay .ax-menu__list > li > a {
	display: flex;
	align-items: baseline;
	gap: var(--ax-space-m);
	padding-block: clamp(0.6rem, 0.4rem + 0.8vw, 1.1rem);
	font-family: var(--ax-font-serif);
	font-size: clamp(2.25rem, 1.4rem + 3.6vw, 5.25rem);
	font-weight: 300;
	line-height: 1.02;
	letter-spacing: var(--ax-tracking-display);
	color: var(--ax-heading);
	text-decoration: none;
}

.ax-menu--overlay .ax-menu__list > li > a::before {
	content: counter(ax-menu, decimal-leading-zero);
	font-family: var(--ax-font-sans);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: var(--ax-tracking-eyebrow);
	color: var(--ax-gold);
	transform: translateY(-1.4em);
}

.ax-menu--overlay .ax-menu__mask {
	display: block;
	overflow: hidden;
	padding-bottom: 0.08em;
}

.ax-menu--overlay .ax-menu__label {
	display: inline-block;
	transition: transform var(--ax-dur-slow) var(--ax-ease-out), color var(--ax-dur-base);
}

@media (hover: hover) {
	.ax-menu--overlay .ax-menu__list > li > a:hover .ax-menu__label {
		transform: translateX(0.35em);
		color: var(--ax-gold-soft);
	}

	/* Dim siblings to focus the hovered item. */
	.ax-menu--overlay .ax-menu__list:hover > li > a {
		opacity: 0.45;
	}

	.ax-menu--overlay .ax-menu__list:hover > li > a:hover {
		opacity: 1;
	}

	.ax-menu--overlay .ax-menu__list > li > a {
		transition: opacity var(--ax-dur-base) var(--ax-ease-standard);
	}
}

.ax-menu--overlay .current-menu-item > a .ax-menu__label,
.ax-menu--overlay .current-page-ancestor > a .ax-menu__label {
	font-style: italic;
}

.ax-menu--overlay .sub-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	padding: 0 0 1rem calc(1.5rem + var(--ax-space-m));
	list-style: none;
}

.ax-menu--overlay .sub-menu a {
	font-size: 0.9375rem;
	color: var(--ax-fg);
	text-decoration: none;
}

.ax-menu--overlay .sub-menu a:hover {
	color: var(--ax-gold-soft);
}

.ax-overlay__aside {
	display: grid;
	gap: var(--ax-space-l);
	align-content: end;
}

.ax-overlay__block .ax-eyebrow {
	margin-bottom: var(--ax-space-xs);
}

.ax-contact-list {
	display: grid;
	gap: 0.5rem;
}

.ax-contact-list a {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.ax-contact-list a:hover span,
.ax-contact-list a:hover {
	color: var(--ax-gold-soft);
}

.ax-contact-list .ax-icon {
	width: 1.125rem;
	height: 1.125rem;
	opacity: 0.7;
}

/* =========================================================
   Search
   ========================================================= */

.ax-search {
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--ax-line-strong);
}

.ax-surface--navy .ax-search,
.ax-overlay__panel .ax-search {
	border-color: var(--ax-line-light);
}

.ax-search__input {
	flex: 1;
	min-width: 0;
	padding: 0.85rem 0;
	border: 0;
	background: transparent;
	font-size: 1.0625rem;
}

.ax-search__input::placeholder {
	color: inherit;
	opacity: 0.55;
}

.ax-search__input:focus {
	outline: none;
}

.ax-search:focus-within {
	border-color: var(--ax-focus);
}

.ax-search__submit {
	display: inline-flex;
	padding: 0.5rem;
	border: 0;
	background: none;
}

/* =========================================================
   Hero
   ========================================================= */

.ax-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	padding-top: calc(var(--ax-header-h) + var(--ax-space-2xl));
	padding-bottom: var(--ax-space-2xl);
	overflow: hidden;
}

.ax-hero--plain {
	border-bottom: var(--ax-border);
}

.ax-hero--image {
	min-height: min(100svh, 62rem);
	color: var(--ax-white);
	--ax-heading: var(--ax-white);
	--ax-fg: rgb(255 255 255 / 0.9);
	--ax-accent: var(--ax-gold-soft);
	background: var(--ax-navy-deep);
}

.ax-hero__media {
	position: absolute;
	inset: 0;
}

.ax-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ax-scrim);
}

.ax-hero__img {
	width: 100%;
	height: 112%; /* headroom for parallax drift */
	object-fit: cover;
}

.ax-hero__content {
	position: relative;
	display: grid;
	gap: var(--ax-space-m);
}

.ax-hero__title {
	max-width: 16ch;
}

.ax-hero--plain .ax-hero__title {
	font-size: var(--ax-step-display-m);
	max-width: 20ch;
}

/* =========================================================
   Section heading
   ========================================================= */

.ax-section-heading {
	display: grid;
	gap: var(--ax-space-m);
	margin-bottom: var(--ax-space-xl);
}

.ax-section-heading__main {
	display: grid;
	gap: var(--ax-space-s);
}

.ax-section-heading__aside {
	display: grid;
	gap: var(--ax-space-m);
	justify-items: start;
}

@media (min-width: 64rem) {
	.ax-section-heading--split {
		grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
		column-gap: var(--ax-column-gap);
		align-items: end;
	}

	.ax-section-heading--split .ax-section-heading__aside:has(> .ax-btn:only-child) {
		justify-self: end;
	}
}

/* =========================================================
   Article card
   ========================================================= */

.ax-card-article {
	position: relative;
	display: grid;
	gap: var(--ax-space-m);
}

.ax-card-article__media img {
	transition: transform var(--ax-dur-image) var(--ax-ease-out);
}

.ax-card-article__body {
	position: relative;
	display: grid;
	gap: var(--ax-space-xs);
	padding-right: 2.5rem;
}

.ax-card-article__title {
	font-family: var(--ax-font-serif);
	font-size: var(--ax-step-h4);
	font-weight: 400;
	line-height: 1.2;
}

.ax-card-article__title a {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size var(--ax-dur-slow) var(--ax-ease-out);
}

.ax-card-article__arrow {
	position: absolute;
	top: 0;
	right: 0;
	color: var(--ax-accent);
	transition: transform var(--ax-dur-base) var(--ax-ease-out);
}

@media (hover: hover) {
	.ax-card-article:hover .ax-card-article__media img {
		transform: scale(1.045);
	}
	.ax-card-article:hover .ax-card-article__title a {
		background-size: 100% 1px;
	}
	.ax-card-article:hover .ax-card-article__arrow {
		transform: translateX(0.35rem);
	}
}

.ax-card-article:focus-within .ax-card-article__title a {
	background-size: 100% 1px;
}

/* =========================================================
   Person card
   ========================================================= */

.ax-card-person {
	position: relative;
	display: grid;
	gap: var(--ax-space-s);
}

.ax-card-person__media img {
	filter: grayscale(0.35) contrast(1.02);
	transition: transform var(--ax-dur-image) var(--ax-ease-out), filter var(--ax-dur-slow) var(--ax-ease-out);
}

.ax-card-person__media::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: var(--ax-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--ax-dur-slow) var(--ax-ease-out);
}

.ax-card-person__body {
	display: grid;
	gap: 0.15rem;
}

.ax-card-person__name {
	font-family: var(--ax-font-serif);
	font-size: var(--ax-step-h4);
	font-weight: 400;
	line-height: 1.2;
	text-wrap: balance;
}

.ax-card-person__name a {
	text-decoration: none;
}

.ax-card-person__role {
	font-size: var(--ax-step-small);
	color: var(--ax-fg-muted);
}

@media (hover: hover) {
	.ax-card-person:hover .ax-card-person__media img {
		transform: scale(1.04);
		filter: none;
	}
	.ax-card-person:hover .ax-card-person__media::after {
		transform: scaleX(1);
	}
}

.ax-card-person:focus-within .ax-card-person__media::after {
	transform: scaleX(1);
}

/* Profile arrow + portrait framing (moved from home.css in 0.3.0 — shared by
   the homepage team and the About team grid). */
.ax-card-person__body {
	position: relative;
	padding-right: 2rem;
}

.ax-card-person__arrow {
	position: absolute;
	top: 0.15rem;
	right: 0;
	color: var(--ax-teal);
	transition: transform var(--ax-dur-base) var(--ax-ease-out);
}

.ax-card-person__arrow .ax-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.ax-card-person:hover .ax-card-person__arrow {
	transform: translate(0.2rem, -0.2rem);
}

.ax-card-person__media img {
	object-position: 50% 18%;
}

/* Mirrored arrow (previous controls). */
.ax-icon--flip {
	transform: scaleX(-1);
}

/* Editor-only "content pending" note (axlaw_content_pending()). */
.ax-pending {
	margin-block: var(--ax-space-m);
	padding: var(--ax-space-s) var(--ax-space-m);
	border: 1px dashed var(--ax-gold);
	background: rgb(177 156 114 / 0.08);
	font-size: var(--ax-step-small);
	color: var(--ax-navy);
}

/* =========================================================
   Link rows (sectors, practice areas)
   ========================================================= */

.ax-link-rows {
	border-bottom: 1px solid var(--ax-rule);
}

.ax-link-row {
	position: relative;
	border-top: 1px solid var(--ax-rule);
}

.ax-link-row__link {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: baseline;
	column-gap: var(--ax-space-m);
	row-gap: var(--ax-space-2xs);
	padding-block: clamp(1.25rem, 0.9rem + 1.5vw, 2.25rem);
	text-decoration: none;
	isolation: isolate;
}

/* Background fill sweeps in on hover. */
.ax-link-row__link::before {
	content: "";
	position: absolute;
	inset: 0 calc(var(--ax-gutter) * -1);
	z-index: -1;
	background: var(--ax-stone);
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform var(--ax-dur-slow) var(--ax-ease-out);
}

.ax-surface--stone .ax-link-row__link::before {
	background: var(--ax-white);
}

.ax-surface--navy .ax-link-row__link::before,
.ax-surface--deep .ax-link-row__link::before {
	background: rgb(255 255 255 / 0.06);
}

.ax-link-row__index {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: var(--ax-tracking-eyebrow);
	color: var(--ax-accent);
}

.ax-link-row__title {
	font-family: var(--ax-font-serif);
	font-size: var(--ax-step-h2);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: var(--ax-tracking-heading);
	color: var(--ax-heading);
	transition: transform var(--ax-dur-slow) var(--ax-ease-out);
}

.ax-link-row__desc {
	grid-column: 2 / 3;
	max-width: 48ch;
	font-size: var(--ax-step-small);
	color: var(--ax-fg-muted);
}

.ax-link-row__arrow {
	grid-column: 3;
	grid-row: 1;
	align-self: center;
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid var(--ax-rule);
	border-radius: var(--ax-radius-pill);
	color: var(--ax-heading);
	transition: background-color var(--ax-dur-base), color var(--ax-dur-base), border-color var(--ax-dur-base), transform var(--ax-dur-slow) var(--ax-ease-out);
}

@media (min-width: 64rem) {
	.ax-link-row__link {
		grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 22rem) auto;
	}
	.ax-link-row__desc {
		grid-column: 3;
		grid-row: 1;
		align-self: center;
	}
	.ax-link-row__arrow {
		grid-column: 4;
	}
}

@media (hover: hover) {
	.ax-link-row__link:hover::before {
		transform: scaleY(1);
	}
	.ax-link-row__link:hover .ax-link-row__title {
		transform: translateX(0.5rem);
	}
	.ax-link-row__link:hover .ax-link-row__arrow {
		background: var(--ax-navy);
		border-color: var(--ax-navy);
		color: var(--ax-white);
		transform: rotate(-35deg);
	}
}

.ax-link-row__link:focus-visible .ax-link-row__arrow {
	background: var(--ax-navy);
	color: var(--ax-white);
}

/* Cursor-following preview (positioned by JS; pointer devices only). */
.ax-link-row__preview {
	position: fixed;
	top: 0;
	left: 0;
	z-index: var(--ax-z-preview);
	width: clamp(12rem, 16vw, 18rem);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
}

.ax-link-row__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (hover: none), (max-width: 63.99rem) {
	.ax-link-row__preview {
		display: none;
	}
}

/* =========================================================
   CTA band
   ========================================================= */

.ax-cta-band {
	overflow: hidden;
}

.ax-cta-band__inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: var(--ax-space-l);
	justify-items: start;
}

.ax-cta-band .ax-display-m {
	max-width: 18ch;
}

/* Optional page-specific actions (first = button, rest = text links) and note. */
.ax-cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ax-space-m) var(--ax-space-l);
}

.ax-cta-band__note {
	padding-top: var(--ax-space-m);
	border-top: 1px solid var(--ax-rule);
	font-size: var(--ax-step-eyebrow);
	font-weight: 500;
	letter-spacing: var(--ax-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--ax-gold-soft);
}

/* =========================================================
   Breadcrumb (sector pages, Insights; moved from sector.css in v0.6.0)
   ========================================================= */

.ax-breadcrumb ol {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.6rem;
	font-size: var(--ax-step-eyebrow);
	font-weight: 500;
	letter-spacing: var(--ax-tracking-eyebrow);
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--ax-fg-muted);
}

.ax-breadcrumb li + li::before {
	content: "/";
	margin-right: 0.6rem;
	color: var(--ax-line-strong);
}

.ax-breadcrumb a {
	color: var(--ax-teal);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size var(--ax-dur-slow) var(--ax-ease-out);
}

.ax-breadcrumb a:hover,
.ax-breadcrumb a:focus-visible {
	background-size: 100% 1px;
}

/* =========================================================
   Article (single)
   ========================================================= */

.ax-article__header {
	display: grid;
	gap: var(--ax-space-xl);
	padding-top: calc(var(--ax-header-h) + var(--ax-space-2xl));
}

.ax-article__heading {
	display: grid;
	gap: var(--ax-space-m);
	max-width: var(--ax-measure-wide);
}

/* =========================================================
   Pagination
   ========================================================= */

.ax-pagination .nav-links,
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: var(--ax-space-2xl);
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding-inline: 0.75rem;
	border: 1px solid var(--ax-rule);
	text-decoration: none;
	font-size: var(--ax-step-small);
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	background: var(--ax-navy);
	border-color: var(--ax-navy);
	color: var(--ax-white);
}

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

.ax-footer {
	--ax-bg: var(--ax-navy-deep);
	--ax-fg: rgb(255 255 255 / 0.78);
	--ax-heading: var(--ax-white);
	--ax-accent: var(--ax-gold-soft);
	--ax-rule: var(--ax-line-light);
	--ax-focus: var(--ax-gold);
	position: relative;
	overflow: hidden;
	padding-top: var(--ax-section);
	background: var(--ax-bg);
	color: var(--ax-fg);
}

.ax-footer__top {
	display: grid;
	gap: var(--ax-space-l);
	justify-items: start;
	padding-bottom: var(--ax-space-2xl);
	border-bottom: 1px solid var(--ax-rule);
}

.ax-footer__logo .ax-logo__img {
	height: clamp(2.25rem, 1.6rem + 2.6vw, 4rem);
}

.ax-footer__statement {
	max-width: 30ch;
	font-family: var(--ax-font-serif);
	font-size: var(--ax-step-h3);
	font-weight: 300;
	line-height: 1.2;
	color: var(--ax-heading);
}

.ax-footer__newsletter {
	padding-block: var(--ax-space-xl);
	border-bottom: 1px solid var(--ax-rule);
}

.ax-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ax-space-xl) var(--ax-column-gap);
	padding-block: var(--ax-space-2xl);
}

@media (min-width: 64rem) {
	.ax-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ax-footer__heading {
	margin-bottom: var(--ax-space-s);
	font-size: var(--ax-step-eyebrow);
	font-weight: 500;
	letter-spacing: var(--ax-tracking-eyebrow);
	text-transform: uppercase;
	color: var(--ax-accent);
}

.ax-menu--footer .ax-menu__list,
.ax-footer .ax-contact-list {
	display: grid;
	gap: 0.55rem;
}

.ax-menu--footer a,
.ax-menu--legal a {
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size var(--ax-dur-slow) var(--ax-ease-out), color var(--ax-dur-base);
}

.ax-menu--footer a:hover,
.ax-menu--legal a:hover {
	color: var(--ax-white);
	background-size: 100% 1px;
}

.ax-footer__bar {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--ax-space-s) var(--ax-space-l);
	padding-block: var(--ax-space-l);
	border-top: 1px solid var(--ax-rule);
	font-size: var(--ax-step-small);
}

.ax-menu--legal .ax-menu__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

/* =========================================================
   Style guide helpers (internal template only)
   ========================================================= */

.ax-sg-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
	gap: var(--ax-space-m);
}

.ax-sg-swatch {
	display: grid;
	gap: 0.5rem;
}

.ax-sg-swatch__chip {
	aspect-ratio: 4 / 3;
	border: var(--ax-border);
}

.ax-sg-pad {
	padding: var(--ax-space-l);
}
