/*
 * Our services overview (/our-services/, page template "page-landing").
 *
 * Loads on every page after base.css, so every rule here is scoped to .cc-p-services (the wrapper group in
 * release/live-pages/our-services.html) or to a class that only this page carries (.cc-os-*, the markup of the patterns
 * patterns/services-gallery.php, services-map.php, services-package.php and services-guide.php). Colour, type, space and motion read tokens.css
 * only. The shared diagram look (thin neutral lines, dark raised nodes, the action colour for the hub and the path) is
 * assets/css/pages/diagrams.css; the map reuses its line, dash and dot classes and draws its nodes as HTML links so they stay
 * readable at any width.
 *
 * The page, top to bottom: the banner head; a gallery of photo-led service cards (two large, three smaller); a map of how the
 * services sit around your business; the Complete package band (words on the left, the K01 picture and the three things it brings
 * together on the right); a full width photo band (X01, three light-pipes at the left, the words on the quiet right) with the "not
 * sure" line, the two actions and three way-in cards.
 */

.cc-p-services {
	display: block;
}

.cc-p-services > * {
	margin-block: 0;
}

/* The head sits inside the page content on this template, so the rules for a head that is a direct child of main
   (weight and tracking) are repeated here. Case and size come from the shared page head rules. */
.cc-p-services .cc-page-head h1 {
	font-weight: 700;
}

.cc-p-services__lede {
	max-width: 34rem;
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-l);
	line-height: 1.5;
}

/* ------------------------------------------------------------------ section headings */

.cc-os-head {
	margin-bottom: var(--cc-space-xl);
}

.cc-os-head > * {
	margin-block: 0;
}

.cc-os-title {
	max-width: 24ch;
	margin: 0;
	font-family: var(--cc-font-heading);
	font-size: clamp(1.6rem, 2.8vw, 2.4rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-wrap: balance;
}

/* ------------------------------------------------------------------ the gallery of services */

.cc-os-gallery {
	padding-block: var(--cc-space-section);
}

.cc-os-gallery__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cc-space-m);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-os-gallery__item {
	margin: 0;
	padding: 0;
}

/* Tablet: two columns, the first card across the whole row. */
@media (min-width: 40em) {
	.cc-os-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cc-os-gallery__item:first-child {
		grid-column: 1 / -1;
	}
}

/* Tablet only: a card left alone in the last row takes the whole row. */
@media (min-width: 40em) and (max-width: 63.99em) {
	.cc-os-gallery__item:last-child:nth-child(even) {
		grid-column: 1 / -1;
	}
}

/* Wide: twelve columns. The first two cards are large (seven and five), the rest take four each. */
@media (min-width: 64em) {
	.cc-os-gallery__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: var(--cc-space-l);
	}

	.cc-os-gallery__item {
		grid-column: span 4;
	}

	.cc-os-gallery__item:nth-child(1) {
		grid-column: span 7;
	}

	.cc-os-gallery__item:nth-child(2) {
		grid-column: span 5;
	}

	/* When the cards after the large two do not divide by three, the last ones take halves or the full row. */
	.cc-os-gallery__item.cc-os-gallery__item--half {
		grid-column: span 6;
	}

	.cc-os-gallery__item.cc-os-gallery__item--full {
		grid-column: 1 / -1;
	}
}

.cc-os-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-white);
	text-decoration: none;
	transition: border-color var(--cc-transition-base) ease;
}

.cc-os-card:hover,
.cc-os-card:focus-visible {
	border-color: var(--cc-color-action);
	color: var(--cc-color-white);
}

/* The photo area takes whatever height the row gives it, so two cards side by side end on the same line. */
.cc-os-card__media {
	position: relative;
	display: block;
	flex: 1 1 auto;
	aspect-ratio: 16 / 10;
	background: var(--cc-color-canvas);
}

.cc-os-gallery__item:first-child .cc-os-card__media {
	aspect-ratio: 16 / 9;
}

@media (min-width: 40em) and (max-width: 63.99em) {
	.cc-os-gallery__item:first-child .cc-os-card__media {
		aspect-ratio: 21 / 9;
	}
}

/* Wide: the photo height is the same for every card in a row, whatever the card width. */
@media (min-width: 64em) {
	.cc-os-card__media,
	.cc-os-gallery__item:first-child .cc-os-card__media {
		flex: none;
		aspect-ratio: auto;
		height: 15rem;
	}

	.cc-os-gallery__item:nth-child(-n + 2) .cc-os-card__media {
		height: 21rem;
	}

	.cc-os-card--plain .cc-os-card__media {
		height: 6rem;
	}
}

.cc-os-card__photo {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

/* The photo melts into the card body at its foot. */
.cc-os-card__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(0deg, color-mix(in srgb, var(--cc-color-raised) 85%, transparent) 0%, transparent 42%);
}

.cc-os-card__photo picture,
.cc-os-card__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Each delivered photo has its subject on the right or in the middle, so the crop is steered to keep it in frame. */
.cc-os-card--s01 .cc-os-card__img {
	object-position: 72% 62%;
}

.cc-os-card--s03 .cc-os-card__img {
	object-position: 80% 50%;
}

.cc-os-card--s06 .cc-os-card__img {
	object-position: 72% 38%;
}

.cc-os-card--s04 .cc-os-card__img {
	object-position: 55% 50%;
}

.cc-os-card--s05 .cc-os-card__img {
	object-position: 74% 50%;
}

/* A service the theme has no photo for gets a shorter, plain top. */
.cc-os-card--plain .cc-os-card__media {
	flex-grow: 0;
	aspect-ratio: 16 / 5;
}

/* The service icon sits across the foot of the photo, half over it and half over the card body. */
.cc-os-card__icon {
	position: absolute;
	z-index: 2;
	left: var(--cc-space-l);
	bottom: 0;
	transform: translateY(50%);
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	box-sizing: border-box;
	background: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-action);
	transition: border-color var(--cc-transition-base) ease;
}

.cc-os-card__icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

.cc-os-card:hover .cc-os-card__icon,
.cc-os-card:focus-visible .cc-os-card__icon {
	border-color: var(--cc-color-action);
}

.cc-os-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--cc-space-xs);
	padding: calc(var(--cc-space-l) + 1.5rem) var(--cc-space-l) var(--cc-space-l);
}

@media (min-width: 64em) {
	.cc-os-card__body {
		padding-inline: var(--cc-space-xl);
		padding-bottom: var(--cc-space-xl);
	}

	.cc-os-card__icon {
		left: var(--cc-space-xl);
	}
}

.cc-os-card__name {
	margin: 0;
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-l);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (min-width: 64em) {
	.cc-os-gallery__item:nth-child(-n + 2) .cc-os-card__name {
		font-size: var(--cc-font-size-xl);
	}
}

.cc-os-card__text {
	display: block;
	max-width: 36ch;
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-s);
	line-height: 1.5;
}

/* The label and arrow close the card, on the same line in every card of a row. */
.cc-os-card__go {
	display: inline-flex;
	margin-top: auto;
	align-items: center;
	gap: var(--cc-space-xs);
	padding-top: var(--cc-space-xs);
	color: var(--cc-color-action);
	font-size: var(--cc-font-size-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cc-os-card__go::after {
	content: "";
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	background-color: currentcolor;
	-webkit-mask: url("../../icons/ui/arrow-right.svg") center / contain no-repeat;
	mask: url("../../icons/ui/arrow-right.svg") center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
	.cc-os-card__img {
		transition: transform var(--cc-transition-base) ease;
	}

	.cc-os-card:hover .cc-os-card__img,
	.cc-os-card:focus-visible .cc-os-card__img {
		transform: scale(1.04);
	}

	.cc-os-card__go::after {
		transition: transform var(--cc-transition-base) ease;
	}

	.cc-os-card:hover .cc-os-card__go::after,
	.cc-os-card:focus-visible .cc-os-card__go::after {
		transform: translateX(var(--cc-space-xxs));
	}
}

/* ------------------------------------------------------------------ the map: how the services fit together */

/* A faint dot grid behind the drawing marks this as the diagram section. */
.cc-os-map {
	position: relative;
	padding-block: var(--cc-space-section);
	background-color: color-mix(in srgb, var(--cc-color-raised) 30%, var(--cc-color-canvas));
	background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--cc-color-white) 9%, transparent) 1px, transparent 1.5px);
	background-size: 28px 28px;
	border-top: 1px solid var(--cc-color-line);
}

.cc-os-map__inner {
	display: grid;
	gap: var(--cc-space-l);
}

/* The drawing sits in a framed panel, like the diagram in the package band below it. */
.cc-os-map__panel {
	box-sizing: border-box;
	padding: var(--cc-space-l);
	background: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-s);
}

@media (min-width: 64em) {
	.cc-os-map__panel {
		padding: var(--cc-space-xl) clamp(var(--cc-space-xl), 4vw, 3.5rem);
	}
}

.cc-os-map__head {
	margin-bottom: var(--cc-space-s);
}

.cc-os-map__lede {
	max-width: 34rem;
	margin-top: var(--cc-space-s) !important;
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-m);
	line-height: 1.5;
}

/* Tablet: the words on the left and the tree on the right. A tree-only map (more services than the ring holds) does the same
   on a wide screen. */
@media (min-width: 48em) and (max-width: 63.99em) {
	.cc-os-map__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
		gap: var(--cc-space-xxl);
	}
}

@media (min-width: 64em) {
	.cc-os-map--tree .cc-os-map__inner {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
		gap: var(--cc-space-xxl);
	}
}

/* The drawing (lines and ring) is only shown where the nodes are placed around the hub. */
.cc-os-map__svg {
	display: none;
}

.cc-os-map__stage {
	position: relative;
}

.cc-os-map__stage > * {
	margin-block: 0;
}

.cc-os-map__ring {
	stroke: var(--cc-color-line);
}

.cc-os-map__ring--inner {
	opacity: 0.7;
}

.cc-os-map__spoke {
	stroke: var(--cc-color-line-strong);
	transition: stroke var(--cc-transition-base) ease;
}

/* The hub: your business. The action colour belongs to the hub and to the path you are pointing at. */
.cc-os-map__hub {
	position: relative;
	z-index: 1;
	display: inline-grid;
	place-items: center;
	box-sizing: border-box;
	min-height: 3.5rem;
	padding: var(--cc-space-s) var(--cc-space-l);
	background: var(--cc-color-canvas);
	border: 1.5px solid var(--cc-color-action);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-white);
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-s);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

/* Stacked (phone and tablet): the hub on top and a trunk line down the side with one branch to each service. */
.cc-os-map__nodes {
	position: relative;
	display: grid;
	gap: var(--cc-space-s);
	margin: var(--cc-space-m) 0 0 var(--cc-space-l);
	padding: var(--cc-space-l) 0 0 var(--cc-space-l);
	list-style: none;
}

.cc-os-map__nodes::before {
	content: "";
	position: absolute;
	top: calc(-1 * var(--cc-space-m));
	bottom: var(--cc-space-l);
	left: 0;
	width: 2px;
	background: linear-gradient(180deg, var(--cc-color-action), color-mix(in srgb, var(--cc-color-action) 25%, transparent));
}

.cc-os-map__nodes > li {
	position: relative;
	margin: 0;
	padding: 0;
}

.cc-os-map__nodes > li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(-1 * var(--cc-space-l));
	width: var(--cc-space-l);
	height: 1.5px;
	background: var(--cc-color-line-strong);
}

.cc-os-map__nodes > li::after {
	content: "";
	position: absolute;
	top: calc(50% - 0.35rem);
	left: calc(-1 * var(--cc-space-l) - 0.35rem + 1px);
	width: 0.7rem;
	height: 0.7rem;
	box-sizing: border-box;
	background: var(--cc-color-canvas);
	border: 2px solid var(--cc-color-action);
	border-radius: 50%;
}

.cc-os-node {
	display: flex;
	align-items: center;
	gap: var(--cc-space-s);
	box-sizing: border-box;
	width: 100%;
	min-height: 3.5rem;
	padding: var(--cc-space-xs) var(--cc-space-m);
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-white);
	text-decoration: none;
	transition: border-color var(--cc-transition-base) ease;
}

.cc-os-node:hover,
.cc-os-node:focus-visible {
	border-color: var(--cc-color-action);
	color: var(--cc-color-white);
}

.cc-os-node__icon {
	width: 1.75rem;
	height: 1.75rem;
	color: var(--cc-color-action);
}

.cc-os-node__name {
	flex: 1 1 auto;
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.25;
	text-transform: uppercase;
}

.cc-os-node__go {
	width: 1.25rem;
	height: 1.25rem;
	margin-left: auto;
	color: var(--cc-color-action);
}

/* Wide: the nodes are placed on a ring around the hub, over the drawing. Positions come from the --cc-os-x and --cc-os-y
   numbers the pattern sets on each item (the centre of the item, as a number of per cent of the stage). The drawing is
   1000 by 380 units, so the stage keeps that shape. A map with more services than the ring holds (a modifier class the pattern
   adds) stays a tree at every width. */
@media (min-width: 64em) {
	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__stage {
		aspect-ratio: 1000 / 380;
	}

	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__svg {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		height: 100%;
		overflow: visible;
	}

	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__hub {
		position: absolute;
		top: 50%;
		left: 50%;
		display: grid;
		min-width: 21%;
		min-height: 4rem;
		padding-inline: var(--cc-space-l);
		transform: translate(-50%, -50%);
		white-space: nowrap;
		outline: 1px solid var(--cc-color-line);
		outline-offset: 6px;
	}

	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__nodes {
		position: absolute;
		inset: 0;
		display: block;
		margin: 0;
		padding: 0;
	}

	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__nodes::before,
	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__nodes > li::before,
	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__nodes > li::after {
		display: none;
	}

	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__nodes > li {
		position: absolute;
		top: calc(var(--cc-os-y) * 1%);
		left: calc(var(--cc-os-x) * 1%);
		width: 25%;
		transform: translate(-50%, -50%);
	}

	.cc-os-map:not(.cc-os-map--tree) .cc-os-node {
		min-height: 4.5rem;
		padding-inline: var(--cc-space-m);
	}

	.cc-os-map:not(.cc-os-map--tree) .cc-os-node__name {
		font-size: var(--cc-font-size-s);
	}

	.cc-os-map:not(.cc-os-map--tree) .cc-os-node__go {
		display: none;
	}

	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__hub {
		font-size: var(--cc-font-size-s);
		letter-spacing: 0.1em;
	}

	/* The line to the service you are pointing at lights up in the action colour. */
	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__stage:has(.cc-os-map__nodes > li:nth-child(1) .cc-os-node:is(:hover, :focus-visible)) .cc-os-map__spoke:nth-of-type(1),
	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__stage:has(.cc-os-map__nodes > li:nth-child(2) .cc-os-node:is(:hover, :focus-visible)) .cc-os-map__spoke:nth-of-type(2),
	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__stage:has(.cc-os-map__nodes > li:nth-child(3) .cc-os-node:is(:hover, :focus-visible)) .cc-os-map__spoke:nth-of-type(3),
	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__stage:has(.cc-os-map__nodes > li:nth-child(4) .cc-os-node:is(:hover, :focus-visible)) .cc-os-map__spoke:nth-of-type(4),
	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__stage:has(.cc-os-map__nodes > li:nth-child(5) .cc-os-node:is(:hover, :focus-visible)) .cc-os-map__spoke:nth-of-type(5),
	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__stage:has(.cc-os-map__nodes > li:nth-child(6) .cc-os-node:is(:hover, :focus-visible)) .cc-os-map__spoke:nth-of-type(6),
	.cc-os-map:not(.cc-os-map--tree) .cc-os-map__stage:has(.cc-os-map__nodes > li:nth-child(7) .cc-os-node:is(:hover, :focus-visible)) .cc-os-map__spoke:nth-of-type(7) {
		stroke: var(--cc-color-action);
	}
}

/* ------------------------------------------------------------------ the Complete package band */

/* The words on the left; on the right a framed panel with the K01 picture (a laptop, a gateway box and a desk phone joined by
   one light-pipe) and, under it, the three things the package brings together. Stacked on a phone and tablet. */
.cc-os-pkg {
	position: relative;
	padding-block: clamp(3rem, 6vw, 4.5rem);
	background: var(--cc-color-canvas);
	border-top: 1px solid var(--cc-color-line);
}

.cc-os-pkg__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cc-space-xl);
	align-items: center;
}

@media (min-width: 64em) {
	.cc-os-pkg__inner {
		grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
		gap: clamp(2rem, 4vw, 3.5rem);
	}
}

.cc-os-pkg__text {
	display: grid;
	justify-items: start;
	gap: var(--cc-space-m);
}

.cc-os-pkg__text > * {
	margin-block: 0;
}

.cc-os-pkg__text .cc-os-title {
	max-width: 20ch;
	font-size: clamp(1.7rem, 3.2vw, 2.8rem);
	line-height: 1.08;
}

.cc-os-pkg__deck {
	max-width: 30rem;
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-l);
	line-height: 1.5;
}

.cc-os-pkg__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cc-space-s) var(--cc-space-m);
	margin: var(--cc-space-s) 0 0 !important;
}

/* Where the text column is too narrow for both buttons on one line, they stack at the same width. */
@media (min-width: 64em) and (max-width: 76.99em) {
	.cc-os-pkg__actions {
		display: grid;
		grid-template-columns: max-content;
		justify-items: stretch;
	}

	.cc-os-pkg__actions .cc-button {
		text-align: center;
	}
}

@media (max-width: 29.99em) {
	.cc-os-pkg__actions {
		flex-direction: column;
		align-self: stretch;
	}

	.cc-os-pkg__actions .cc-button {
		width: 100%;
	}
}

.cc-os-pkg__panel {
	box-sizing: border-box;
	overflow: hidden;
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-s);
}

.cc-os-pkg__photo {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--cc-color-canvas);
}

.cc-os-pkg__photo picture,
.cc-os-pkg__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 60% 62%;
}

/* The three things the package brings together, one beside the other under the picture. */
.cc-os-pkg__brings {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--cc-color-line);
}

.cc-os-pkg__bring {
	display: flex;
	align-items: center;
	gap: var(--cc-space-s);
	margin: 0;
	padding: var(--cc-space-m);
	border-top: 1px solid var(--cc-color-line);
}

.cc-os-pkg__bring:first-child {
	border-top: 0;
}

.cc-os-pkg__icon {
	flex: none;
	color: var(--cc-color-action);
}

.cc-os-pkg__icon svg {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
}

.cc-os-pkg__bringtext {
	display: grid;
	gap: 0.125rem;
	min-width: 0;
}

.cc-os-pkg__bringtext b {
	color: var(--cc-color-white);
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.25;
	text-transform: uppercase;
}

.cc-os-pkg__bringtext small {
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-xs);
	line-height: 1.35;
}

@media (min-width: 40em) {
	.cc-os-pkg__brings {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.cc-os-pkg__bring {
		align-items: flex-start;
		border-top: 0;
		border-left: 1px solid var(--cc-color-line);
	}

	.cc-os-pkg__bring:first-child {
		border-left: 0;
	}

	.cc-os-pkg__icon {
		padding-top: 0.125rem;
	}
}

/* ------------------------------------------------------------------ not sure which service: photo band and way-in cards */

.cc-os-guide {
	position: relative;
	padding-bottom: var(--cc-space-section);
}

/* The flow layout puts a gap between the band and the cards; this section owns that spacing. */
.cc-os-guide > * {
	margin-block: 0;
}

.cc-os-guide__band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--cc-color-canvas);
}

.cc-os-guide__media,
.cc-os-guide__media picture,
.cc-os-guide__img {
	position: absolute;
	z-index: -2;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 0% 62%;
}

/* A dark veil keeps the words clear of the picture: from the right on a wide screen, where the X01 picture is quiet. On a phone
   the picture is a strip across the top that fades into the dark, and the words sit below it. */
.cc-os-guide__band::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, color-mix(in srgb, var(--cc-color-canvas) 20%, transparent) 0, var(--cc-color-canvas) 14rem);
}

@media (max-width: 47.99em) {
	.cc-os-guide__media {
		bottom: auto;
		height: 14rem;
	}

	.cc-os-guide__img {
		object-position: 0% 60%;
	}
}

@media (min-width: 48em) {
	.cc-os-guide__band::after {
		background: linear-gradient(270deg, var(--cc-color-canvas) 0%, color-mix(in srgb, var(--cc-color-canvas) 78%, transparent) 30%, transparent 62%), linear-gradient(0deg, var(--cc-color-canvas) 0%, transparent 30%);
	}
}

.cc-os-guide__inner {
	padding-block: 10rem var(--cc-space-l);
}

@media (min-width: 48em) {
	.cc-os-guide__inner {
		padding-block: clamp(3.5rem, 8vw, 6rem);
	}
}

.cc-os-guide__inner > * {
	margin-block: 0;
}

/* From a tablet up the words stand in the right half, on the quiet side of the picture. */
@media (min-width: 48em) {
	.cc-os-guide__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, clamp(20rem, 44%, 32rem));
	}

	.cc-os-guide__inner > * {
		grid-column: 2;
	}
}

.cc-os-guide__lede {
	max-width: 30rem;
	margin-top: var(--cc-space-m) !important;
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-l);
	line-height: 1.5;
}

.cc-os-guide__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cc-space-s) var(--cc-space-m);
	margin: var(--cc-space-l) 0 0 !important;
}

@media (max-width: 29.99em) {
	.cc-os-guide__actions {
		flex-direction: column;
	}

	.cc-os-guide__actions .cc-button {
		width: 100%;
	}
}

/* The way-in cards overlap the foot of the band on a tablet or wider screen. */
.cc-os-guide__ways {
	position: relative;
	z-index: 2;
	padding-top: var(--cc-space-l);
}

@media (min-width: 48em) {
	.cc-os-guide__inner {
		padding-bottom: calc(clamp(3.5rem, 8vw, 6rem) + 4rem);
	}

	.cc-os-guide .cc-os-guide__ways {
		margin-top: -4rem;
		padding-top: 0;
	}
}

.cc-os-ways {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--cc-space-m);
	margin: 0;
	padding: 0;
	list-style: none;
}

.cc-os-ways > li {
	margin: 0;
	padding: 0;
}

@media (min-width: 40em) {
	.cc-os-ways {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cc-os-ways > li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 64em) {
	.cc-os-ways {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--cc-space-l);
	}

	.cc-os-ways > li:last-child:nth-child(odd) {
		grid-column: auto;
	}
}

.cc-os-way {
	display: flex;
	align-items: center;
	gap: var(--cc-space-m);
	box-sizing: border-box;
	height: 100%;
	padding: var(--cc-space-l);
	background: var(--cc-color-raised);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-white);
	text-decoration: none;
	transition: border-color var(--cc-transition-base) ease;
}

.cc-os-way:hover,
.cc-os-way:focus-visible {
	border-color: var(--cc-color-action);
	color: var(--cc-color-white);
}

.cc-os-way__icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	box-sizing: border-box;
	background: var(--cc-color-canvas);
	border: 1px solid var(--cc-color-line);
	border-radius: var(--cc-radius-s);
	color: var(--cc-color-action);
	transition: border-color var(--cc-transition-base) ease;
}

.cc-os-way__icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

.cc-os-way:hover .cc-os-way__icon,
.cc-os-way:focus-visible .cc-os-way__icon {
	border-color: var(--cc-color-action);
}

.cc-os-way__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--cc-space-xxs);
	min-width: 0;
}

.cc-os-way__situation {
	margin: 0;
	font-family: var(--cc-font-heading);
	font-size: var(--cc-font-size-s);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.cc-os-way__target {
	color: var(--cc-color-secondary);
	font-size: var(--cc-font-size-s);
	line-height: 1.4;
}

.cc-os-way__go {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--cc-color-action);
}

@media (prefers-reduced-motion: no-preference) {
	.cc-os-way__go {
		transition: transform var(--cc-transition-base) ease;
	}

	.cc-os-way:hover .cc-os-way__go,
	.cc-os-way:focus-visible .cc-os-way__go {
		transform: translateX(var(--cc-space-xxs));
	}
}
