/*
 * FairyWare theme styles. Colours, fonts and sizes come from theme.json
 * (var(--wp--preset--...)); this file adds layout details and the
 * effects. Effects only use transform, opacity and box-shadow, show on
 * keyboard focus as on hover, and are switched off under
 * prefers-reduced-motion (see the end of the file).
 */

:root {
	--fw-radius: var(--wp--custom--radius, 14px);
	--fw-radius-s: var(--wp--custom--radius-small, 8px);
	--fw-speed: var(--wp--custom--speed, 260ms);
	--fw-ease: var(--wp--custom--ease, cubic-bezier(.2, .7, .2, 1));
	--fw-line: rgba(20, 35, 43, .12);
	--fw-shadow: var(--wp--preset--shadow--soft);
	--fw-shadow-lift: var(--wp--preset--shadow--lifted);
	--fw-mark: var(--wp--preset--color--accent);
	--fw-header-h: 76px;
	scroll-padding-top: calc(var(--fw-header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

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

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

img {
	height: auto;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

.has-dark-background-color :focus-visible {
	outline-color: var(--wp--preset--color--light);
}

.screen-reader-text:focus {
	clip-path: none;
}

/* ------------------------------------------------------------------ */
/* Text                                                                  */
/* ------------------------------------------------------------------ */

.fw-eyebrow {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--fw-mark);
}

.has-dark-background-color .fw-eyebrow {
	color: var(--wp--preset--color--light);
}

.fw-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
}

.fw-muted {
	color: var(--wp--preset--color--muted);
}

/* Links in running text: an underline that grows from left to right. */
:where(.entry-content, .wp-block-post-content) :where(p, li, td, dd) a:where(:not(.wp-element-button)) {
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 100% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size var(--fw-speed) var(--fw-ease);
}

:where(.entry-content, .wp-block-post-content) :where(p, li, td, dd) a:where(:not(.wp-element-button)):is(:hover, :focus-visible) {
	background-size: 100% 2px;
	animation: fw-underline var(--fw-speed) var(--fw-ease);
}

@keyframes fw-underline {
	from { background-size: 0 2px; }
	to { background-size: 100% 2px; }
}

/* Dark sections: light text and links. */
.has-dark-background-color {
	color: var(--wp--preset--color--background);
}

.has-dark-background-color a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--light);
}

.has-dark-background-color :where(h1, h2, h3, h4) {
	color: var(--wp--preset--color--white);
}

/* Big serif statements on dark bands. */
.fw-statement {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.15;
	letter-spacing: -.015em;
}

/* ------------------------------------------------------------------ */
/* Buttons: colour shift, small lift, arrow that slides                  */
/* ------------------------------------------------------------------ */

.wp-element-button,
.wp-block-button__link {
	transition: background-color var(--fw-speed) var(--fw-ease), color var(--fw-speed) var(--fw-ease), transform var(--fw-speed) var(--fw-ease), box-shadow var(--fw-speed) var(--fw-ease);
}

.wp-block-button__link:is(:hover, :focus-visible) {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(20, 35, 43, .18);
}

.wp-block-button:not(.fw-no-arrow) .wp-block-button__link::after {
	content: "→";
	display: inline-block;
	margin-left: .5em;
	transition: transform var(--fw-speed) var(--fw-ease);
}

.wp-block-button:not(.fw-no-arrow) .wp-block-button__link:is(:hover, :focus-visible)::after {
	transform: translateX(4px);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
	color: var(--wp--preset--color--dark);
	padding: calc(.8em - 2px) calc(1.4em - 2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--dark);
	border-color: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--white);
}

.has-dark-background-color .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--white);
}

.has-dark-background-color .wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--dark);
}

.has-dark-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--light);
	color: var(--wp--preset--color--dark);
}

/* ------------------------------------------------------------------ */
/* Header (sticky; shrinks and gets a shadow once the page scrolls)       */
/* ------------------------------------------------------------------ */

/* The template part wrapper is what sticks (a sticky child of it would not). */
header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

.fw-header {
	z-index: 50;
	background: rgba(247, 246, 242, .92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	transition: box-shadow var(--fw-speed) var(--fw-ease), padding var(--fw-speed) var(--fw-ease);
	border-bottom: 1px solid transparent;
}

.fw-scrolled .fw-header {
	box-shadow: 0 6px 24px rgba(20, 35, 43, .10);
	border-bottom-color: var(--fw-line);
}

.fw-header__bar {
	transition: padding var(--fw-speed) var(--fw-ease);
}

.fw-scrolled .fw-header__bar {
	padding-top: .5rem !important;
	padding-bottom: .5rem !important;
}

.fw-header .wp-block-site-logo img {
	transition: transform var(--fw-speed) var(--fw-ease);
	transform-origin: left center;
}

.fw-scrolled .fw-header .wp-block-site-logo img {
	transform: scale(.88);
}

.fw-header .wp-block-navigation a:where(:not(.wp-element-button)) {
	text-decoration: none;
}

.fw-header .wp-block-navigation-item__content:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--accent);
}

.fw-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--fw-line) !important;
	border-radius: var(--fw-radius-s);
	box-shadow: var(--fw-shadow-lift);
	padding: .5rem 0;
	min-width: 15rem !important;
}

.fw-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .45rem 1rem !important;
}

/* Product marks next to the Products menu entries. */
.fw-nav-mark > .wp-block-navigation-item__content {
	display: flex !important;
	align-items: center;
	gap: .55rem;
}

.fw-nav-mark > .wp-block-navigation-item__content::before {
	content: "";
	width: 22px;
	height: 22px;
	flex: none;
	background: center / contain no-repeat;
}

.fw-nav-draupnir > .wp-block-navigation-item__content::before {
	background-image: url(../logo/draupnir-mark.svg);
}

.fw-nav-gungnir > .wp-block-navigation-item__content::before {
	background-image: url(../logo/gungnir-mark.svg);
}

.fw-nav-addon > .wp-block-navigation-item__content::before {
	width: 22px;
	height: 2px;
	background: var(--wp--preset--color--brass);
	border-radius: 2px;
	opacity: .7;
}

/* Full-screen menu on mobile. */
.fw-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem clamp(1rem, 4vw, 2rem);
	background: var(--wp--preset--color--background);
}

.fw-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	font-size: var(--wp--preset--font-size--large);
	gap: 1rem;
}

.fw-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	box-shadow: none;
	padding: .5rem 0 0 1rem;
	font-size: var(--wp--preset--font-size--medium);
}

.fw-account a {
	font-size: .9375rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

@media (max-width: 781px) {
	.fw-header .fw-account {
		display: none;
	}

	.fw-header .fw-try .wp-block-button__link {
		padding: .55em 1em;
		font-size: .9375rem;
	}

	.fw-header .fw-try .wp-block-button__link::after {
		display: none;
	}
}

@media (max-width: 359px) {
	.fw-header .fw-try {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Cards and the Lift / Zoom / Lift-and-zoom styles                      */
/* ------------------------------------------------------------------ */

.fw-card,
.is-style-fw-lift,
.is-style-fw-lift-zoom {
	position: relative;
	border-radius: var(--fw-radius);
	transition: transform var(--fw-speed) var(--fw-ease), box-shadow var(--fw-speed) var(--fw-ease), border-color var(--fw-speed) var(--fw-ease);
}

:where(.is-style-fw-lift, .is-style-fw-lift-zoom):where(.wp-block-group, .wp-block-column) {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--fw-line);
	box-shadow: var(--fw-shadow);
}

:where(.is-style-fw-lift, .is-style-fw-lift-zoom).has-dark-background-color {
	border-color: rgba(255, 255, 255, .12);
}

.is-style-fw-lift:is(:hover, :focus-within),
.is-style-fw-lift-zoom:is(:hover, :focus-within) {
	transform: translateY(-7px);
	box-shadow: var(--fw-shadow-lift);
	border-color: var(--fw-mark);
}

/* A card whose heading link covers the whole card (one tab stop). */
.fw-card-link :where(h2, h3, h4) a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	z-index: 1;
}

.fw-card-link :where(h2, h3, h4) a {
	text-decoration: none;
	color: inherit;
}

.fw-card-link :where(h2, h3, h4) a:focus-visible {
	outline: none;
}

.fw-card-link:focus-within {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* Zoom: the picture zooms inside a frame that stays put. */
.wp-block-image.is-style-fw-zoom,
.wp-block-post-featured-image.is-style-fw-zoom,
.is-style-fw-lift-zoom .wp-block-image,
.is-style-fw-lift .wp-block-image.fw-frame {
	overflow: hidden;
	border-radius: var(--fw-radius-s);
	position: relative;
}

.wp-block-image.is-style-fw-zoom img,
.wp-block-post-featured-image.is-style-fw-zoom img,
.wp-block-cover.is-style-fw-zoom .wp-block-cover__image-background,
.is-style-fw-lift-zoom .wp-block-image img {
	transition: transform calc(var(--fw-speed) * 1.4) var(--fw-ease);
}

.wp-block-image.is-style-fw-zoom::after,
.wp-block-cover.is-style-fw-zoom::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--dark);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--fw-speed) var(--fw-ease);
}

.wp-block-cover.is-style-fw-zoom {
	overflow: hidden;
}

.wp-block-image.is-style-fw-zoom:is(:hover, :focus-within) img,
.wp-block-post-featured-image.is-style-fw-zoom:is(:hover, :focus-within) img,
.wp-block-cover.is-style-fw-zoom:is(:hover, :focus-within) .wp-block-cover__image-background,
.is-style-fw-lift-zoom:is(:hover, :focus-within) .wp-block-image img {
	transform: scale(1.07);
}

.wp-block-image.is-style-fw-zoom:is(:hover, :focus-within)::after,
.wp-block-cover.is-style-fw-zoom:is(:hover, :focus-within)::after {
	opacity: .12;
}

.wp-block-image.is-style-fw-lift {
	box-shadow: var(--fw-shadow);
}

.wp-block-image.is-style-fw-lift img {
	border-radius: inherit;
}

/* Product marks react on cards: Draupnir's rings turn, Gungnir's spear moves. */
.fw-mark img {
	transition: transform calc(var(--fw-speed) * 1.6) var(--fw-ease);
}

:is(.is-style-fw-lift, .is-style-fw-lift-zoom):is(:hover, :focus-within) .fw-mark--draupnir img {
	transform: rotate(22.5deg) scale(1.06);
}

:is(.is-style-fw-lift, .is-style-fw-lift-zoom):is(:hover, :focus-within) .fw-mark--gungnir img {
	transform: translate(4px, -4px) scale(1.06);
}

:is(.is-style-fw-lift, .is-style-fw-lift-zoom):is(:hover, :focus-within) .fw-mark--fairyware img {
	transform: scale(1.08);
}

/* Product colours: teal for Draupnir, brass for Gungnir (marks and details only). */
.fw-product-draupnir {
	--fw-mark: var(--wp--preset--color--accent);
}

.fw-product-gungnir {
	--fw-mark: var(--wp--preset--color--brass);
}

.fw-product-gungnir .fw-eyebrow {
	color: #8a5f1d; /* Brass, darkened to read as text. */
}

.fw-product-gungnir.has-dark-background-color .fw-eyebrow,
.has-dark-background-color .fw-product-gungnir .fw-eyebrow {
	color: var(--wp--preset--color--brass-light);
}

.fw-rule {
	width: 3.5rem;
	height: 3px;
	border: 0;
	border-radius: 3px;
	background: var(--fw-mark);
	margin-left: 0 !important;
	opacity: 1;
}

.fw-feature-card {
	height: 100%;
	border-top: 3px solid var(--fw-mark) !important;
}

/* ------------------------------------------------------------------ */
/* Browser frame (screenshots) and Tilt                                   */
/* ------------------------------------------------------------------ */

.wp-block-image:is(.is-style-fw-browser, .is-style-fw-tilt) {
	position: relative;
	border-radius: 12px;
	padding-top: 30px;
	background: #e3e1d9;
	box-shadow: 0 2px 4px rgba(20, 35, 43, .08), 0 30px 60px -20px rgba(20, 35, 43, .35);
	overflow: hidden;
}

.wp-block-image:is(.is-style-fw-browser, .is-style-fw-tilt)::before {
	content: "";
	position: absolute;
	top: 11px;
	left: 14px;
	width: 46px;
	height: 9px;
	background:
		radial-gradient(circle at 4.5px 4.5px, #d0705f 4px, transparent 4.5px),
		radial-gradient(circle at 22.5px 4.5px, #d8b25c 4px, transparent 4.5px),
		radial-gradient(circle at 40.5px 4.5px, #73b07f 4px, transparent 4.5px);
}

.wp-block-image:is(.is-style-fw-browser, .is-style-fw-tilt) img {
	display: block;
	width: 100%;
	border-radius: 0;
}

.wp-block-image.is-style-fw-tilt {
	transform: perspective(1200px) rotateX(var(--fw-tilt-x, 0deg)) rotateY(var(--fw-tilt-y, 0deg));
	transition: transform 400ms var(--fw-ease);
	will-change: transform;
}

/* ------------------------------------------------------------------ */
/* Hero with a living background                                         */
/* ------------------------------------------------------------------ */

.fw-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.fw-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url(../img/hero-lines.svg) right -60px center / auto 120% no-repeat;
	opacity: .9;
	pointer-events: none;
}

.fw-hero.fw-hero--services::before {
	background-image: url(../img/hero-lines-services.svg);
}

@media (max-width: 781px) {
	.fw-hero::before {
		background-position: right -180px top -40px;
		background-size: auto 80%;
		opacity: .45;
	}
}

/* ------------------------------------------------------------------ */
/* Numbers strip (count up)                                              */
/* ------------------------------------------------------------------ */

.fw-number {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	font-size: clamp(2.5rem, 6vw, 3.75rem);
	line-height: 1;
	margin-bottom: .35rem !important;
	color: var(--wp--preset--color--accent);
	font-variant-numeric: tabular-nums;
}

.has-dark-background-color .fw-number {
	color: var(--wp--preset--color--light);
}

/* ------------------------------------------------------------------ */
/* Steps that light up one by one, joined by a line                      */
/* ------------------------------------------------------------------ */

ol.is-style-fw-steps,
ul.is-style-fw-steps {
	list-style: none;
	counter-reset: fw-step;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: 2rem 1.5rem;
	position: relative;
}

.is-style-fw-steps > li {
	counter-increment: fw-step;
	position: relative;
	padding-top: 4rem;
	transition: opacity 500ms var(--fw-ease), transform 500ms var(--fw-ease);
}

.is-style-fw-steps > li::before {
	content: counter(fw-step);
	position: absolute;
	top: 0;
	left: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	font-size: 1.2rem;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	box-shadow: 0 0 0 6px rgba(31, 122, 109, .15);
	transition: background-color 500ms var(--fw-ease), box-shadow 500ms var(--fw-ease);
	z-index: 1;
}

.is-style-fw-steps > li::after {
	content: "";
	position: absolute;
	top: 1.375rem;
	left: 2.75rem;
	right: -1.5rem;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transform-origin: left;
	transition: transform 600ms var(--fw-ease) 150ms;
	opacity: .4;
}

.is-style-fw-steps > li:last-child::after {
	display: none;
}

.has-dark-background-color .is-style-fw-steps > li::before {
	background: var(--wp--preset--color--light);
	color: var(--wp--preset--color--dark);
}

.has-dark-background-color .is-style-fw-steps > li::after {
	background: var(--wp--preset--color--light);
}

/* Before a step lights up only its number and line are grey; the text keeps full contrast. */
.fw-js .is-style-fw-steps > li:not(.is-lit) {
	transform: translateY(6px);
}

.fw-js .is-style-fw-steps > li:not(.is-lit)::before {
	background: #b9c3c0;
	box-shadow: none;
}

.fw-js .is-style-fw-steps > li:not(.is-lit)::after {
	transform: scaleX(0);
}

@media (max-width: 600px) {
	ol.is-style-fw-steps,
	ul.is-style-fw-steps {
		grid-template-columns: 1fr;
	}

	.is-style-fw-steps > li {
		padding-top: 0;
		padding-left: 4rem;
		min-height: 2.75rem;
	}

	.is-style-fw-steps > li::after {
		top: 2.75rem;
		left: 1.375rem;
		right: auto;
		bottom: -2rem;
		width: 2px;
		height: auto;
		transform-origin: top;
	}

	.fw-js .is-style-fw-steps > li:not(.is-lit)::after {
		transform: scaleY(0);
	}
}

/* ------------------------------------------------------------------ */
/* Reveal on scroll (only once the effects script is on the page)        */
/* ------------------------------------------------------------------ */

.fw-js .is-style-fw-reveal {
	transition: opacity 600ms var(--fw-ease), transform 600ms var(--fw-ease);
}

.fw-js .is-style-fw-reveal:not(.is-visible) {
	opacity: 0;
	transform: translateY(26px);
}

.fw-js .is-style-fw-reveal.is-visible > .wp-block-column,
.fw-js .is-style-fw-reveal.is-visible > .wp-block-group {
	animation: fw-rise 600ms var(--fw-ease) both;
}

.fw-js .is-style-fw-reveal.is-visible > :nth-child(2) { animation-delay: 80ms; }
.fw-js .is-style-fw-reveal.is-visible > :nth-child(3) { animation-delay: 160ms; }
.fw-js .is-style-fw-reveal.is-visible > :nth-child(4) { animation-delay: 240ms; }

@keyframes fw-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ */
/* Cursor glow on dark sections (desktop with a mouse only)              */
/* ------------------------------------------------------------------ */

.is-style-fw-glow {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.is-style-fw-glow::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(420px circle at var(--fw-mx, 50%) var(--fw-my, 50%), rgba(127, 203, 190, .22), transparent 70%);
	opacity: 0;
	transition: opacity 400ms var(--fw-ease);
}

@media (hover: hover) and (pointer: fine) {
	.is-style-fw-glow:hover::after {
		opacity: 1;
	}
}

/* ------------------------------------------------------------------ */
/* FAQ (Details blocks)                                                  */
/* ------------------------------------------------------------------ */

.wp-block-details {
	border-bottom: 1px solid var(--fw-line);
	padding: 1.1rem 0;
	margin: 0 !important;
}

.wp-block-details summary {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--large);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: baseline;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wp--preset--color--accent);
	transition: transform var(--fw-speed) var(--fw-ease);
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.wp-block-details > :not(summary) {
	margin-top: .75rem;
}

/* ------------------------------------------------------------------ */
/* Tables and figures from the product texts                             */
/* ------------------------------------------------------------------ */

.wp-block-table table {
	background: var(--wp--preset--color--white);
	border-radius: var(--fw-radius-s);
	overflow: hidden;
	box-shadow: var(--fw-shadow);
	border-collapse: collapse;
}

.wp-block-table :is(th, td) {
	border: 0;
	border-bottom: 1px solid var(--fw-line);
	padding: .7rem .9rem;
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead {
	border: 0;
}

.wp-block-table th {
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

.wp-block-table tbody tr:last-child td {
	border-bottom: 0;
}

@media (max-width: 600px) {
	.wp-block-table {
		overflow-x: auto;
	}
}

/* ------------------------------------------------------------------ */
/* Footer                                                                */
/* ------------------------------------------------------------------ */

.fw-footer a {
	text-decoration: none;
}

.fw-footer a:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-underline-offset: .2em;
}

.fw-footer .fw-footer__links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: .45rem;
}

.fw-footer .fw-footer__heading {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--light);
}

.fw-footer .fw-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.fw-company-line a {
	white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Plugin areas: forms and the customer area in the theme's look          */
/* ------------------------------------------------------------------ */

.fw-area,
.fw-form {
	--fw-accent: var(--wp--preset--color--accent);
	--fw-radius: var(--wp--custom--radius, 14px);
}

.fw-area .fw-card,
.fw-area .fw-download {
	box-shadow: var(--fw-shadow);
	border-color: var(--fw-line);
	transition: transform var(--fw-speed) var(--fw-ease), box-shadow var(--fw-speed) var(--fw-ease), border-color var(--fw-speed) var(--fw-ease);
}

.fw-area .fw-card:is(:hover, :focus-within),
.fw-area .fw-download:is(:hover, :focus-within) {
	transform: translateY(-5px);
	box-shadow: var(--fw-shadow-lift);
	border-color: var(--wp--preset--color--accent);
}

.fw-area :is(h2, h3) {
	font-family: var(--wp--preset--font-family--serif);
}

/* ------------------------------------------------------------------ */
/* Reduced motion: everything in its final state, nothing moves           */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 1ms !important;
		animation-delay: 0ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 1ms !important;
		transition-delay: 0ms !important;
		scroll-behavior: auto !important;
	}

	.is-style-fw-lift:is(:hover, :focus-within),
	.is-style-fw-lift-zoom:is(:hover, :focus-within),
	.fw-area .fw-card:is(:hover, :focus-within),
	.fw-area .fw-download:is(:hover, :focus-within),
	.wp-block-button__link:is(:hover, :focus-visible) {
		transform: none;
	}

	.wp-block-image.is-style-fw-zoom:is(:hover, :focus-within) img,
	.wp-block-post-featured-image.is-style-fw-zoom:is(:hover, :focus-within) img,
	.wp-block-cover.is-style-fw-zoom:is(:hover, :focus-within) .wp-block-cover__image-background,
	.is-style-fw-lift-zoom:is(:hover, :focus-within) .wp-block-image img,
	:is(.is-style-fw-lift, .is-style-fw-lift-zoom):is(:hover, :focus-within) .fw-mark img,
	.wp-block-button:not(.fw-no-arrow) .wp-block-button__link:is(:hover, :focus-visible)::after {
		transform: none;
	}

	.wp-block-image.is-style-fw-tilt {
		transform: none !important;
	}

	.fw-js .is-style-fw-reveal:not(.is-visible),
	.fw-js .is-style-fw-steps > li:not(.is-lit) {
		opacity: 1;
		transform: none;
	}

	.fw-js .is-style-fw-steps > li:not(.is-lit)::before {
		background: var(--wp--preset--color--accent);
	}

	.fw-js .is-style-fw-steps > li:not(.is-lit)::after {
		transform: none;
	}

	.fw-hero::before {
		background-image: url(../img/hero-lines-static.svg);
	}

	.fw-hero.fw-hero--services::before {
		background-image: url(../img/hero-lines-static.svg);
	}

	.is-style-fw-glow::after {
		display: none;
	}
}

/* Card grids fill the row instead of leaving empty columns (core uses auto-fill). */
.wp-block-group.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)) !important;
}

/* Outline buttons on the teal banner: white, for contrast. */
.has-accent-background-color .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--white);
}

.has-accent-background-color .wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--dark);
}

/* The Services hero: the line art stays to the right of the text. */
.fw-hero--services::before {
	background-position: right -140px center;
	opacity: .7;
}

/* Eyebrows on the sand band need the darker colour for contrast. */
.has-sand-background-color .fw-eyebrow {
	color: var(--wp--preset--color--dark);
}

/* Links inside a line of text are underlined, not only coloured. */
.fw-company-line a,
.fw-promise a {
	text-decoration: underline;
	text-underline-offset: .2em;
}
