/*
 * SECTION STYLE: SERVICES - the six rows (accordion, plan v2).
 *
 * The band is dark; rows are separated by hairlines; a row opens
 * with a soft grow, then picture, words and related work fade in.
 *
 * The look is the design of the home page: the title in 36 px, the
 * service names in the same type and a yellow arrow on the right.
 */

.aitio-front-section--service_hubs {
	background: var(--aitio-dark);
	color: var(--aitio-white);
}

/* The title (top and bottom of the section). */
.aitio-hubs__heading {
	max-width: 613px;
	margin: 0;
	font-family: var(--aitio-font);
	font-size: 36px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.03em;
	color: var(--aitio-white);
}

/* The spacing of the design: 78 px above the title, 112 px under the
   button at the bottom. */
.aitio-front-section--service_hubs .aitio-hubs {
	padding-top: 78px;
	padding-bottom: 112px;
}

.aitio-hubs__heading + .aitio-hubs__list {
	margin-top: 65px;
}

/* The bottom: the title again and the "Learn more" button. */
.aitio-hubs__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-top: 84px;
	max-width: var(--aitio-col-panel);
}

.aitio-hubs__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 163px;
	height: 35px;
	padding: 0 22px;
	border-radius: 999px;
	background: var(--aitio-white);
	color: var(--aitio-black);
	font-size: var(--aitio-btn-text);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.aitio-hubs__more:hover {
	background: var(--aitio-yellow);
	color: var(--aitio-black);
}

/* The six rows are separated by thin hairlines (a line above every row,
   none under the last one). */
.aitio-hubs__list {
	max-width: var(--aitio-col-panel);
	border-top: 1px solid var(--aitio-beige);
}

.aitio-hub {
	border-top: 1px solid var(--aitio-beige);
	border-bottom: 0;
}

.aitio-hub__title {
	margin: 0;
}

/* The whole row header is one big button. */
.aitio-hub__head {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.5vw, 36px);
	width: 100%;
	padding: 18px 0 46px;
	background: none;
	border: 0;
	color: inherit;
	text-align: left;
	cursor: pointer;
	font: inherit;
}

.aitio-hub__head:focus-visible,
.aitio-hub__close:focus-visible {
	outline: 2px solid var(--aitio-yellow);
	outline-offset: 4px;
}

/* Closed rows invite a click: the row tints and the + shifts slightly. */
.aitio-hub__head {
	transition: background-color 0.25s ease;
}

.aitio-hub__sign {
	transition: transform 0.35s var(--aitio-ease);
}

@media (hover: hover) {

	.aitio-hub:not(.is-open) .aitio-hub__head:hover {
		background: rgba(249, 249, 249, 0.045);
	}

	.aitio-hub:not(.is-open) .aitio-hub__head:hover .aitio-hub__sign {
		transform: translateX(3px);
	}
}

.aitio-hub__num {
	display: none;
}

.aitio-hub__name {
	font-family: var(--aitio-font);
	font-size: 36px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.03em;
	text-transform: none;
	color: var(--aitio-white);
	transition: color 0.3s ease;
}

.aitio-hub__head:hover .aitio-hub__name {
	color: var(--aitio-white);
}

/* The yellow arrow on the right of every row. */
.aitio-hub__sign {
	margin-left: auto;
	flex: 0 0 auto;
	color: var(--aitio-yellow);
	font-size: 32px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.04em;
	transition: transform 0.35s var(--aitio-ease);
}

.aitio-hub__sign::before,
.aitio-hub__sign::after {
	content: none;
}

.aitio-hub.is-open .aitio-hub__sign {
	transform: rotate(90deg);
}

/* Open and close: the panel grows from zero height. */
.aitio-hub__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.55s var(--aitio-ease);
}

.aitio-hub__panel-inner {
	overflow: hidden;
	min-height: 0;
}

.aitio-hub.is-open .aitio-hub__panel {
	grid-template-rows: 1fr;
}

/* Inside the panel the pieces fade in one after another. */
.aitio-hub__top,
.aitio-hub__related,
.aitio-hub__foot {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.35s ease, transform 0.5s var(--aitio-ease);
}

.aitio-hub.is-open .aitio-hub__top {
	opacity: 1;
	transform: none;
	transition-delay: 0.05s;
}

.aitio-hub.is-open .aitio-hub__related {
	opacity: 1;
	transform: none;
	transition-delay: 0.16s;
}

.aitio-hub.is-open .aitio-hub__foot {
	opacity: 1;
	transform: none;
	transition-delay: 0.24s;
}

/* Top part: picture left, words right. */
.aitio-hub__top {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: start;
	padding-bottom: clamp(28px, 3.5vw, 48px);
}

.aitio-hub__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--aitio-radius-card);
}

/* No picture picked yet? Show the service colour instead. */
.aitio-hub__swatch {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: var(--aitio-radius-card);
	background: var(--hub-colour, var(--aitio-yellow));
}

.aitio-hub__lead {
	margin: 0 0 14px;
	font-size: clamp(19px, 1.7vw, 24px);
	line-height: 1.35;
}

.aitio-hub__text {
	margin: 0 0 18px;
	color: rgba(249, 249, 249, 0.72);
	max-width: 54ch;
}

.aitio-hub__includes-label {
	margin: 0 0 6px;
	font-size: var(--aitio-overline);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	opacity: 0.55;
}

.aitio-hub__includes {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	font-size: var(--aitio-overline);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.aitio-hub__includes li {
	display: inline;
}

.aitio-hub__includes li + li::before {
	content: " // ";
	opacity: 0.45;
}

/* The "Learn more" pill. */
.aitio-hub__more {
	margin: 0;
}

.aitio-hub__more-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	border: 1px solid rgba(249, 249, 249, 0.35);
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	font-size: var(--aitio-overline);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.aitio-hub__more-link:hover {
	background: var(--aitio-yellow);
	border-color: var(--aitio-yellow);
	color: var(--aitio-dark);
}

/* Related work: a rail you can swipe or scroll sideways. */
.aitio-hub__related-label {
	margin: 0 0 12px;
	font-size: var(--aitio-overline);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	opacity: 0.55;
}

.aitio-hub__strip {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0 0 12px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.aitio-hub__work {
	flex: 0 0 auto;
	width: min(320px, 72vw);
	scroll-snap-align: start;
}

.aitio-hub__cover {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--aitio-radius-card);
	background: rgba(249, 249, 249, 0.08);
}

.aitio-hub__work-link {
	display: block;
}

.aitio-hub__work-link:hover .aitio-hub__cover {
	opacity: 0.85;
}

/* Yellow "CLOSE up" pill at the end. */
.aitio-hub__foot {
	display: flex;
	justify-content: flex-end;
	padding: 10px 0 clamp(28px, 3.5vw, 44px);
}

.aitio-hub__close {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: var(--aitio-yellow);
	border: 0;
	border-radius: 999px;
	color: var(--aitio-dark);
	font-size: var(--aitio-overline);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	cursor: pointer;
	transition: background 0.25s ease;
}

.aitio-hub__close:hover {
	background: var(--aitio-white);
}

/* Small screens: one column, smaller names, shorter rail. */
@media (max-width: 900px) {
	.aitio-hub__top {
		grid-template-columns: 1fr;
	}

	.aitio-hub__num {
		min-width: 26px;
	}

	.aitio-hub__work {
		width: min(300px, 78vw);
	}
}

/* People who ask for less motion get no sliding. */
@media (prefers-reduced-motion: reduce) {
	.aitio-hub__panel,
	.aitio-hub__top,
	.aitio-hub__related,
	.aitio-hub__foot,
	.aitio-hub__head,
	.aitio-hub__sign,
	.aitio-hub__sign::before,
	.aitio-hub__sign::after,
	.aitio-hub__name {
		transition: none;
	}
}
