/*
Theme Name: DDCS Lawyers
Theme URI: https://ddcslawyers.com.au/
Author: The Mark Agency
Author URI: https://themarkagency.com.au/
Description: DDCS Lawyers block theme. Field-driven sections rendered in PHP, tokens in theme.json.
Version: 1.0.0
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 8.1
License: Proprietary
Text Domain: tma
*/

/*
 * SHARED class vocabulary only. Section-specific CSS lives in each block's own
 * blocks/<name>/style.css. The contract is docs/CONTRACT.md.
 *
 * Mobile first. Two breakpoints, both min-width:
 *   md  @media (min-width: 782px)   tablet refinements (optional)
 *   lg  @media (min-width: 1181px)  the desktop design (label column, 3 and 4 up grids)
 * Desktop grid rules ALWAYS sit behind a min-width query, never in the base rule.
 */

/* ------------------------------------------------------------------ */
/* Base.                                                               */
/* ------------------------------------------------------------------ */

html,
body,
.wp-site-blocks {
	overflow-x: clip;
}

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

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

img,
svg {
	max-width: 100%;
}

p {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	text-wrap: pretty;
}

a {
	transition: color 180ms ease, border-color 180ms ease;
}

/* Template parts and the main group sit flush: no block gap, no footer gap. */
.wp-site-blocks > * + *,
.wp-site-blocks > footer,
footer.wp-block-template-part {
	margin-block-start: 0;
}

.visually-hidden,
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 20px;
	margin: 0;
	clip: auto;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	border-radius: var(--wp--custom--radius--pill);
}

/* ------------------------------------------------------------------ */
/* Focus: WCAG 2.2 AA. Visible, 2px, offset, never removed.             */
/* ------------------------------------------------------------------ */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 3px;
	border-radius: 2px;
}

.is-dark :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline-color: var(--wp--preset--color--blush);
}

/* ------------------------------------------------------------------ */
/* Layout: container, sections, grounds.                               */
/* ------------------------------------------------------------------ */

.container {
	width: 100%;
	max-width: calc(var(--wp--custom--content-max) + 2 * var(--wp--custom--gutter));
	margin-inline: auto;
	padding-inline: var(--wp--custom--gutter);
}

.section {
	position: relative;
	padding-block: var(--wp--preset--spacing--70);
}

.section--flush-top {
	padding-top: 0;
}

.section--flush-bottom {
	padding-bottom: 0;
}

.section-paper {
	background-color: var(--wp--preset--color--paper);
}

.section-surface {
	background-color: var(--wp--preset--color--surface);
}

.section-sand {
	background-color: var(--wp--preset--color--sand);
}

.section-forest {
	background-color: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--surface);
}

.section-espresso {
	background-color: var(--wp--preset--color--espresso);
	color: var(--wp--preset--color--paper);
}

/* Dark context: set on any dark ground so shared pieces invert. */
.is-dark {
	color: var(--wp--preset--color--surface);
}

.is-dark :where(h1, h2, h3, h4, a) {
	color: inherit;
}

/* Left label column + right content column: the recurring section layout. */
.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--30);
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.split--ruled {
	padding-top: var(--wp--preset--spacing--40);
}

.split__label {
	padding-top: 0;
}

.split__body {
	min-width: 0;
}

/* Grids: one column on mobile, the design's columns on desktop. grid-4 is
   two up on mobile, as the design has it. */
.grid-2,
.grid-3 {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--40);
}

.grid-4 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
}

@media (min-width: 1181px) {
	.split {
		grid-template-columns: var(--wp--custom--label-col) minmax(0, 1fr);
		column-gap: var(--wp--custom--col-gap);
		row-gap: 0;
		padding-top: 0;
		border-top: 0;
	}

	.split--ruled {
		padding-top: var(--wp--preset--spacing--40);
		border-top: 1px solid var(--wp--preset--color--line);
	}

	.split__label {
		padding-top: 10px;
	}

	.grid-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wp--custom--col-gap);
	}

	.grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--50);
	}

	.grid-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 32px;
	}
}

/* Full-bleed photo band. Height via --bleed-h / --bleed-h-lg. */
.bleed {
	position: relative;
	height: var(--bleed-h, 300px);
	overflow: hidden;
	background-color: var(--wp--preset--color--stone);
}

.bleed > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--bleed-pos, center 30%);
}

@media (min-width: 1181px) {
	.bleed {
		height: var(--bleed-h-lg, 560px);
	}
}

/* Image frame: stone ground, cropped, optional hover zoom. */
.media-frame {
	position: relative;
	overflow: hidden;
	background-color: var(--wp--preset--color--stone);
}

.media-frame > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--frame-pos, center);
	transition: transform 520ms var(--wp--custom--ease--out);
}

.ratio-4x5 {
	aspect-ratio: 4 / 5;
}

/* Team headshots: the photos are shot 2:3, so the whole frame shows. */
.ratio-2x3 {
	aspect-ratio: 2 / 3;
}

.ratio-16x10 {
	aspect-ratio: 16 / 10;
}

a:hover .media-frame.tile-zoom > img,
a:focus-visible .media-frame.tile-zoom > img {
	transform: scale(1.045);
}

/* ------------------------------------------------------------------ */
/* Rules.                                                              */
/* ------------------------------------------------------------------ */

.rule-top {
	border-top: 1px solid var(--wp--preset--color--line);
}

.rule-bottom {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.hairline {
	height: 0;
	margin: 0;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

.is-dark .rule-top,
.is-dark .rule-bottom,
.is-dark .hairline {
	border-color: var(--wp--preset--color--line-dark);
}

/* A vertical list of rows split by faint hairlines, no line after the last. */
.list-rule {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.list-rule > * {
	padding-block: 13px;
	border-bottom: 1px solid var(--wp--preset--color--line-faint);
}

.list-rule > *:last-child {
	border-bottom: 0;
}

.list-rule--closed > *:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line-faint);
}

/* ------------------------------------------------------------------ */
/* Typography.                                                         */
/* ------------------------------------------------------------------ */

.eyebrow {
	display: block;
	font-size: var(--wp--preset--font-size--fine);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}

.is-dark .eyebrow {
	color: var(--wp--preset--color--ash);
}

.eyebrow--blush,
.is-dark .eyebrow--blush {
	color: var(--wp--preset--color--blush);
}

.display {
	font-size: var(--wp--preset--font-size--display);
	font-weight: 500;
	line-height: var(--wp--custom--leading--display);
	letter-spacing: var(--wp--custom--tracking--display);
}

.h-xl,
.h-lg,
.h-md,
.h-card,
.statement {
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--heading);
	text-wrap: pretty;
}

.h-xl {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.15;
}

.h-lg {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.15;
}

.h-md {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
}

.h-card {
	font-size: var(--wp--preset--font-size--card);
	line-height: 1.25;
}

.statement {
	font-size: var(--wp--preset--font-size--statement);
	line-height: var(--wp--custom--leading--snug);
	letter-spacing: 0;
}

.lede {
	max-width: 620px;
	font-size: var(--wp--preset--font-size--lede);
	font-weight: 500;
	line-height: var(--wp--custom--leading--body);
	color: var(--wp--preset--color--secondary);
	text-wrap: pretty;
}

.body-copy {
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--leading--loose);
	color: var(--wp--preset--color--secondary);
	text-wrap: pretty;
}

.meta {
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: var(--wp--custom--tracking--meta);
	color: var(--wp--preset--color--secondary);
}

.fine {
	font-size: var(--wp--preset--font-size--fine);
	line-height: var(--wp--custom--leading--body);
	color: var(--wp--preset--color--secondary);
}

.is-dark .lede {
	color: var(--wp--preset--color--fog);
}

.is-dark .body-copy,
.is-dark .meta,
.is-dark .fine {
	color: var(--wp--preset--color--ash);
}

/* ------------------------------------------------------------------ */
/* Arrow icon (the design's cta-arrow).                                */
/* ------------------------------------------------------------------ */

.arrow {
	display: inline-flex;
	align-items: center;
	flex: none;
	transition: transform 220ms var(--wp--custom--ease--standard);
}

.arrow > svg {
	display: block;
	width: 1em;
	height: 0.885em;
}

.arrow--ne > svg {
	transform: rotate(-45deg);
}

.arrow--rev > svg {
	transform: rotate(180deg);
}

a:hover .arrow,
button:hover .arrow,
a:focus-visible .arrow,
button:focus-visible .arrow {
	transform: translateX(3px);
}

a:hover .arrow--ne,
a:focus-visible .arrow--ne {
	transform: translate(3px, -3px);
}

a:hover .arrow--rev,
button:hover .arrow--rev,
button:focus-visible .arrow--rev {
	transform: translateX(-3px);
}

/* ------------------------------------------------------------------ */
/* Pill buttons with the circled arrow.                                */
/* ------------------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 7px 8px 7px 22px;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--pill);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--body);
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 30px;
	height: 30px;
	border: 1px solid color-mix(in srgb, currentColor 60%, transparent);
	border-radius: 50%;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

.btn--solid {
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.btn--solid:hover,
.btn--solid:focus-visible {
	background-color: var(--wp--preset--color--espresso);
	color: var(--wp--preset--color--paper);
}

.btn--outline {
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--ink);
}

.btn--outline .btn__icon {
	border-color: color-mix(in srgb, currentColor 45%, transparent);
}

.btn--outline:hover,
.btn--outline:focus-visible {
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.btn--blush {
	background-color: var(--wp--preset--color--blush);
	color: var(--wp--preset--color--espresso);
}

.btn--blush .btn__icon {
	border-color: color-mix(in srgb, currentColor 40%, transparent);
}

.btn--blush:hover,
.btn--blush:focus-visible {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--espresso);
}

.btn--ghost {
	border-color: color-mix(in srgb, var(--wp--preset--color--surface) 50%, transparent);
	color: var(--wp--preset--color--surface);
}

.btn--ghost .btn__icon {
	border-color: color-mix(in srgb, currentColor 45%, transparent);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
	border-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--surface);
}

.btn--sm {
	padding-left: 20px;
	font-size: var(--wp--preset--font-size--small);
}

/* Below desktop the design stretches these pills to a full-width bar. */
.btn--stretch-mobile {
	display: flex;
	width: 100%;
	justify-content: space-between;
}

@media (min-width: 1181px) {
	.btn--stretch-mobile {
		display: inline-flex;
		width: auto;
		justify-content: flex-start;
	}
}

/* Text + a bare circled arrow, no pill (hero team link, For Professionals). */
.link-circle {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	min-height: 44px;
	font-size: var(--wp--preset--font-size--lede);
	color: inherit;
	text-decoration: none;
}

.link-circle .btn__icon {
	width: 42px;
	height: 42px;
	font-size: var(--wp--preset--font-size--lede);
	border-color: color-mix(in srgb, currentColor 60%, transparent);
}

/* Round icon button (testimonial prev and next). */
.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 50%;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: border-color 180ms ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
	border-color: var(--wp--preset--color--ink);
}

/* ------------------------------------------------------------------ */
/* Text link with arrow, sage underline.                               */
/* ------------------------------------------------------------------ */

.link-arrow {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	padding-bottom: 3px;
	border-bottom: 1px solid var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.link-arrow:hover,
.link-arrow:focus-visible {
	color: var(--wp--preset--color--espresso);
	border-bottom-color: var(--wp--preset--color--ink);
}

.is-dark .link-arrow {
	color: var(--wp--preset--color--surface);
	border-bottom-color: var(--wp--preset--color--blush);
}

/* ------------------------------------------------------------------ */
/* Dark animated ground (hero, For Professionals): tma_aurora().        */
/* ------------------------------------------------------------------ */

.aurora {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
}

.aurora > * {
	position: absolute;
	pointer-events: none;
}

.aurora__a {
	inset: -14%;
	background: url("assets/img/hero-texture.jpg") right center / cover no-repeat;
	will-change: transform;
	animation: tma-aurora-a 21s ease-in-out infinite;
}

.aurora__b {
	inset: -16%;
	background: url("assets/img/hero-texture.jpg") left center / cover no-repeat;
	opacity: 0.22;
	will-change: transform, opacity;
	animation: tma-aurora-b 29s ease-in-out infinite;
}

.aurora__shade {
	inset: 0;
	background: linear-gradient(96deg, rgb(34 41 27) 0%, rgb(34 41 27 / 0.94) 42%, rgb(34 41 27 / 0.88) 76%, rgb(34 41 27 / 0.82) 100%);
}

.aurora__curtain {
	mix-blend-mode: screen;
	will-change: transform;
}

.aurora__curtain--1 {
	inset: -30% -26%;
	background: linear-gradient(73deg, rgb(223 203 188 / 0) 4%, rgb(223 203 188 / 0.1) 7%, rgb(223 203 188 / 0) 11%, rgb(223 203 188 / 0) 19%, rgb(223 203 188 / 0.05) 21%, rgb(223 203 188 / 0) 24%, rgb(223 203 188 / 0) 37%, rgb(223 203 188 / 0.13) 41%, rgb(223 203 188 / 0.04) 44%, rgb(223 203 188 / 0) 49%, rgb(223 203 188 / 0) 61%, rgb(223 203 188 / 0.07) 64%, rgb(223 203 188 / 0) 69%, rgb(223 203 188 / 0) 82%, rgb(223 203 188 / 0.11) 86%, rgb(223 203 188 / 0) 92%);
	animation: tma-curtain-1 37s ease-in-out infinite;
}

.aurora__curtain--2 {
	inset: -34% -30%;
	background: linear-gradient(78deg, rgb(119 142 125 / 0) 9%, rgb(119 142 125 / 0.16) 13%, rgb(119 142 125 / 0) 15%, rgb(119 142 125 / 0) 28%, rgb(119 142 125 / 0.22) 31%, rgb(119 142 125 / 0.08) 34%, rgb(119 142 125 / 0) 40%, rgb(119 142 125 / 0) 52%, rgb(119 142 125 / 0.13) 54%, rgb(119 142 125 / 0) 57%, rgb(119 142 125 / 0) 71%, rgb(119 142 125 / 0.24) 76%, rgb(119 142 125 / 0) 81%);
	filter: blur(3px);
	animation: tma-curtain-2 53s ease-in-out infinite;
}

.aurora__curtain--3 {
	inset: -28% -34%;
	background: linear-gradient(68deg, rgb(251 249 244 / 0) 14%, rgb(251 249 244 / 0.05) 18%, rgb(251 249 244 / 0) 23%, rgb(251 249 244 / 0) 45%, rgb(251 249 244 / 0.07) 50%, rgb(251 249 244 / 0) 56%, rgb(251 249 244 / 0) 88%, rgb(251 249 244 / 0.04) 93%, rgb(251 249 244 / 0) 97%);
	filter: blur(9px);
	animation: tma-curtain-3 71s ease-in-out infinite;
}

.aurora__beam {
	top: -40%;
	bottom: -40%;
	width: 38%;
	background: linear-gradient(100deg, rgb(251 249 244 / 0) 0%, rgb(251 249 244 / 0.1) 38%, rgb(223 203 188 / 0.16) 52%, rgb(251 249 244 / 0.06) 68%, rgb(251 249 244 / 0) 100%);
	filter: blur(22px);
	mix-blend-mode: screen;
	will-change: transform, opacity;
	animation: tma-beam 19s linear infinite;
}

.aurora__leak {
	mix-blend-mode: screen;
}

.aurora__leak--a {
	top: -26%;
	right: -12%;
	width: 70%;
	height: 116%;
	background: radial-gradient(ellipse 42% 40% at 58% 40%, rgb(223 203 188 / 0.36) 0%, rgb(223 203 188 / 0.12) 38%, rgb(223 203 188 / 0) 74%);
	animation: tma-leak-a 23s ease-in-out infinite;
}

.aurora__leak--b {
	bottom: -34%;
	left: -8%;
	width: 80%;
	height: 104%;
	background: radial-gradient(ellipse 40% 38% at 46% 56%, rgb(119 142 125 / 0.5) 0%, rgb(119 142 125 / 0.16) 42%, rgb(119 142 125 / 0) 74%);
	animation: tma-leak-b 33s ease-in-out infinite;
}

.aurora__leak--c {
	top: 14%;
	left: -22%;
	width: 62%;
	height: 84%;
	background: radial-gradient(ellipse 38% 36% at 50% 50%, rgb(201 164 145 / 0.16) 0%, rgb(201 164 145 / 0) 74%);
	animation: tma-leak-c 41s ease-in-out infinite;
}

.aurora__grain {
	inset: 0;
	background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22180%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.9%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22180%22%20height%3D%22180%22%20filter%3D%22url(%23n)%22%20opacity%3D%220.42%22%2F%3E%3C%2Fsvg%3E");
	background-size: 180px 180px;
	opacity: 0.14;
	mix-blend-mode: overlay;
}

/* Content above the aurora layers. */
.aurora + *,
.above-aurora {
	position: relative;
}

/* Small screens drop the heavier layers, as the design does. */
@media (max-width: 700px) {
	.aurora__curtain,
	.aurora__beam,
	.aurora__leak--b,
	.aurora__leak--c,
	.aurora__b {
		display: none;
	}
}

@keyframes tma-aurora-a {
	0%   { transform: translate3d(-4%, 0, 0) scale(1.12) skewX(0deg); }
	50%  { transform: translate3d(4%, 2.5%, 0) scale(1.2) skewX(-1.5deg); }
	100% { transform: translate3d(-4%, 0, 0) scale(1.12) skewX(0deg); }
}

@keyframes tma-aurora-b {
	0%   { transform: translate3d(5%, 1%, 0) scale(1.22) skewX(2deg); opacity: 0.18; }
	50%  { transform: translate3d(-5%, -2%, 0) scale(1.1) skewX(0deg); opacity: 0.55; }
	100% { transform: translate3d(5%, 1%, 0) scale(1.22) skewX(2deg); opacity: 0.18; }
}

@keyframes tma-curtain-1 {
	0%   { transform: translate3d(-3%, 0, 0) scaleX(1); opacity: 0.6; }
	40%  { transform: translate3d(2%, 1%, 0) scaleX(1.05); opacity: 1; }
	70%  { transform: translate3d(4%, 0.4%, 0) scaleX(0.98); opacity: 0.72; }
	100% { transform: translate3d(-3%, 0, 0) scaleX(1); opacity: 0.6; }
}

@keyframes tma-curtain-2 {
	0%   { transform: translate3d(4%, 1%, 0) scaleX(1.06) skewX(1deg); opacity: 0.9; }
	55%  { transform: translate3d(-4%, -1%, 0) scaleX(0.97) skewX(-1.5deg); opacity: 0.45; }
	100% { transform: translate3d(4%, 1%, 0) scaleX(1.06) skewX(1deg); opacity: 0.9; }
}

@keyframes tma-curtain-3 {
	0%   { transform: translate3d(0, 0, 0) scaleX(1.1); opacity: 0.35; }
	35%  { transform: translate3d(-6%, 2%, 0) scaleX(1); opacity: 0.9; }
	100% { transform: translate3d(0, 0, 0) scaleX(1.1); opacity: 0.35; }
}

@keyframes tma-beam {
	0%   { transform: translateX(-40%) rotate(-6deg); opacity: 0; }
	18%  { opacity: 0.85; }
	72%  { opacity: 0.7; }
	100% { transform: translateX(240%) rotate(-6deg); opacity: 0; }
}

@keyframes tma-leak-a {
	0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
	50%  { transform: translate3d(-4%, 3%, 0) scale(1.18); opacity: 1; }
	100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
}

@keyframes tma-leak-b {
	0%   { transform: translate3d(0, 0, 0) scale(1.1); opacity: 0.9; }
	50%  { transform: translate3d(5%, -4%, 0) scale(0.94); opacity: 0.35; }
	100% { transform: translate3d(0, 0, 0) scale(1.1); opacity: 0.9; }
}

@keyframes tma-leak-c {
	0%   { transform: translate3d(0, 0, 0) scale(0.96); opacity: 0.3; }
	50%  { transform: translate3d(3%, -2%, 0) scale(1.16); opacity: 0.8; }
	100% { transform: translate3d(0, 0, 0) scale(0.96); opacity: 0.3; }
}

/* ------------------------------------------------------------------ */
/* Motion.                                                             */
/*                                                                     */
/* .rise auto-plays via CSS (visible with no JS and no scroll).         */
/* .animate-on-scroll is hidden ONLY when html.js is set, and theme.js  */
/* adds .is-visible as it enters the viewport.                          */
/* ------------------------------------------------------------------ */

@keyframes tma-rise {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.rise {
	animation: tma-rise 900ms var(--wp--custom--ease--out) both;
}

.rise-1 { animation-delay: 80ms; }
.rise-2 { animation-delay: 220ms; }
.rise-3 { animation-delay: 340ms; }
.rise-4 { animation-delay: 440ms; }
.rise-5 { animation-delay: 520ms; }
.rise-6 { animation-delay: 600ms; }
.rise-7 { animation-delay: 680ms; }
.rise-8 { animation-delay: 760ms; }

.js .animate-on-scroll {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 760ms var(--wp--custom--ease--out), transform 760ms var(--wp--custom--ease--out);
	transition-delay: calc(var(--reveal-step, 0) * 90ms);
}

.js .animate-on-scroll.is-visible {
	opacity: 1;
	transform: none;
}

.reveal-1 { --reveal-step: 1; }
.reveal-2 { --reveal-step: 2; }
.reveal-3 { --reveal-step: 3; }
.reveal-4 { --reveal-step: 4; }

@media (prefers-reduced-motion: reduce) {
	.rise,
	.aurora > * {
		animation: none !important;
	}

	.rise {
		opacity: 1;
		transform: none;
	}

	.js .animate-on-scroll {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.arrow,
	.media-frame > img {
		transition: none;
	}
}

/* In the editor nothing is ever hidden or moving. */
.editor-styles-wrapper .rise,
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .aurora > * {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
	transition: none !important;
}

.editor-styles-wrapper .aurora__b {
	opacity: 0.22 !important;
}

.arrow--down > svg {
	transform: rotate(90deg);
}

a:hover .arrow--down,
a:focus-visible .arrow--down {
	transform: translateY(3px);
}

.resource-card {
	display: block;
	color: inherit;
	text-decoration: none;
}

.resource-card__frame {
	display: block;
}

.resource-card__eyebrow {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid var(--wp--preset--color--line);
}

.resource-card__title {
	display: block;
	margin-top: 14px;
	color: var(--wp--preset--color--ink);
}

.resource-card__meta {
	display: block;
	margin-top: 10px;
}

.resource-card__read {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	margin-top: 16px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--secondary);
}

.resource-card:hover .resource-card__read,
.resource-card:focus-visible .resource-card__read,
.resource-card:hover .resource-card__title,
.resource-card:focus-visible .resource-card__title {
	color: var(--wp--preset--color--ink);
}

.resource-card:hover .resource-card__title,
.resource-card:focus-visible .resource-card__title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.team-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	text-align: left;
	color: inherit;
	text-decoration: none;
}

button.team-card {
	cursor: pointer;
}

.team-card__media {
	display: block;
}

.team-card__name {
	display: block;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: min(var(--wp--preset--font-size--lead), 1.1875rem);
	font-weight: 500;
	line-height: 1.3;
	color: var(--wp--preset--color--ink);
}

.team-card__role {
	display: block;
	margin-top: 5px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	color: var(--wp--preset--color--ink);
}

.team-card__area {
	display: block;
	margin-top: 2px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	color: var(--wp--preset--color--secondary);
	text-wrap: pretty;
}

.team-card:hover .team-card__name,
.team-card:focus-visible .team-card__name {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--fine);
	font-weight: 500;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--ash);
}

.breadcrumbs__item + .breadcrumbs__item::before {
	content: "/";
	margin-right: 10px;
	color: var(--wp--preset--color--line-dark);
}

.breadcrumbs__link {
	color: inherit;
	text-decoration: none;
}

.breadcrumbs__link:hover,
.breadcrumbs__link:focus-visible {
	color: var(--wp--preset--color--surface);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose {
	max-width: 760px;
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--leading--loose);
	color: var(--wp--preset--color--ink);
}

.prose > * {
	margin-top: 0;
	margin-bottom: 0;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose > h2 {
	margin-top: 2.2em;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	line-height: var(--wp--custom--leading--heading);
	letter-spacing: var(--wp--custom--tracking--heading);
}

.prose > h3 {
	margin-top: 1.8em;
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 500;
	line-height: var(--wp--custom--leading--snug);
}

.prose > h2 + *,
.prose > h3 + * {
	margin-top: 0.8em;
}

.prose > ul,
.prose > ol {
	padding-left: 1.3em;
}

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

.prose a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-underline-offset: 3px;
}

.prose a:hover,
.prose a:focus-visible {
	color: var(--wp--preset--color--espresso);
	text-decoration-color: currentColor;
}

.prose strong {
	font-weight: 500;
}

.prose > .lede,
.prose > p.is-style-lede {
	font-size: var(--wp--preset--font-size--lede);
	font-weight: 500;
}

.accordion__item {
	border-top: 1px solid var(--wp--preset--color--line);
}

.accordion__item:last-child {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.accordion__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: 20px 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	text-align: left;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

.accordion__name {
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: var(--wp--custom--tracking--heading);
}

.accordion__glyph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 30px;
	height: 30px;
	border: 1px solid var(--wp--preset--color--ink);
	border-radius: 50%;
	font-size: var(--wp--preset--font-size--lede);
	font-weight: 500;
	line-height: 1;
	transition: background-color 180ms ease, color 180ms ease;
}

.accordion__glyph::before {
	content: "+";
}

.accordion__toggle[aria-expanded="true"] .accordion__glyph::before {
	content: "\2212";
}

.accordion__toggle:hover .accordion__glyph {
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.accordion__panel {
	display: grid;
	grid-template-rows: 1fr;
}

.accordion__inner {
	min-height: 0;
	overflow: hidden;
}

.accordion__body {
	padding-bottom: 28px;
}

.js .accordion__panel {
	grid-template-rows: 0fr;
	opacity: 0;
	visibility: hidden;
	transition:
		grid-template-rows 420ms var(--wp--custom--ease--standard),
		opacity 300ms ease,
		visibility 0s linear 420ms;
}

.js .accordion__item.is-open .accordion__panel {
	grid-template-rows: 1fr;
	opacity: 1;
	visibility: visible;
	transition:
		grid-template-rows 420ms var(--wp--custom--ease--standard),
		opacity 300ms ease,
		visibility 0s linear 0s;
}

.editor-styles-wrapper .accordion__panel {
	grid-template-rows: 1fr !important;
	opacity: 1 !important;
	visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
	.js .accordion__panel,
	.js .accordion__item.is-open .accordion__panel,
	.accordion__glyph {
		transition: none;
	}
}

.select-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-width: 220px;
}

.select-pill select {
	width: 100%;
	min-height: 44px;
	padding: 0 44px 0 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: transparent;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	appearance: none;
	cursor: pointer;
}

.select-pill select:hover {
	border-color: var(--wp--preset--color--ink);
}

.select-pill::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 18px;
	width: 8px;
	height: 8px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.pill-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pill {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--pill);
	background: transparent;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.pill:hover,
.pill:focus-visible {
	border-color: var(--wp--preset--color--ink);
}

.pill[aria-pressed="true"],
.pill.is-active {
	background-color: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.callout {
	padding: 28px 28px 30px;
	background-color: var(--wp--preset--color--sand);
}

.callout__label {
	margin-bottom: 14px;
}

.callout__text {
	max-width: 620px;
	margin: 0;
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--leading--body);
	color: var(--wp--preset--color--ink);
}

.sticky-aside {
	position: sticky;
	top: 150px;
}

.aside-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aside-list__link {
	display: block;
	padding: 12px 0;
	border-bottom: 1px solid var(--wp--preset--color--line-faint);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: padding 160ms ease, color 160ms ease;
}

.aside-list__link:hover,
.aside-list__link:focus-visible,
.aside-list__link.is-current {
	padding-left: 6px;
	color: var(--wp--preset--color--espresso);
}

.aside-list__label {
	margin-bottom: 8px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
