/*
 * MAIN - the shared pieces of the site: header, menu, the yellow
 * coordinates strip, footer, project cards, quotes and page furniture.
 * Rebuilt for plan v2 (chapters 5-6): floating header, services panel,
 * white footer.
 */

/* ==================================================================
 * HEADER + MENU (plan v2, chapter 5)
 * The header floats over the page, copies the colours of the section
 * under it, hides when scrolling down and returns when scrolling up.
 *
 * Built from the Figma header (file "WEB Sites", page 1, frame
 * "Etusivu" > group "header" > instance "Group 715"):
 *   - a 183 px white scrim; its blur appears after scrolling
 *   - the menu row sits 76 px down, the logo 130 x 24
 *   - the menu words are 16 px, the "Let's talk" pill 163 x 35
 * ================================================================== */

.aitio-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	color: var(--aitio-black);
	transition: transform var(--base) var(--ease), color var(--fast) var(--ease);
}

.aitio-header[data-theme="dark"] {
	color: var(--aitio-white);
}

.aitio-header.is-hidden {
	transform: translateY(-100%);
}

/* the header never hides while the mobile menu is open */
body.aitio-menu-open .aitio-header {
	transform: none;
}

/* Keep the Figma gradient in the normal state; blur is reserved for
   the scrolled, sticky-header state below. */
.aitio-header__scrim {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 183px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	pointer-events: none;
}

.aitio-header.is-sticky .aitio-header__scrim {
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.aitio-header__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	min-height: 183px;
	padding-top: 76px;
}

.aitio-header__brand {
	flex-shrink: 0;
	line-height: 0;
}

.aitio-header__brand img {
	display: block;
	width: auto;
	height: 24px;
	max-height: 24px;
}

/* The header logo follows the same light/dark state as the menu text.
   Recolouring the existing image keeps its exact width and position, so
   nothing shifts while the colour fades. */
.aitio-header__brand .custom-logo {
	filter: brightness(1);
	transition: filter var(--fast) var(--ease);
}

.aitio-header[data-theme="light"] .aitio-header__brand .custom-logo {
	filter: brightness(0);
}

.aitio-logo-text {
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

/* ---- the menu row ------------------------------------------------- */

.aitio-nav {
	margin-left: 84px;
	padding-top: 5px;
}

.aitio-nav__list {
	display: flex;
	align-items: center;
	gap: 58px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aitio-nav__item {
	position: relative;
}

.aitio-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 0;
	font-size: 16px;
	line-height: 24px;
	color: inherit;
	text-decoration: none;
	opacity: 0.86;
	transition: opacity var(--fast) var(--ease);
}

.aitio-nav__link:hover,
.aitio-nav__link.is-current {
	opacity: 1;
}

/* the little yellow count next to "Services" */
.aitio-nav__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 21px;
	padding: 0 9px;
	border-radius: 999px;
	background: var(--aitio-black);
	color: var(--aitio-yellow);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
}

/* ---- the FI / EN switch -------------------------------------------- */

.aitio-lang {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 8px;
	margin-left: 98px;
	flex-shrink: 0;
}

.aitio-lang__link {
	font-size: 16px;
	line-height: 24px;
	color: inherit;
	text-decoration: none;
	opacity: 0.86;
	transition: opacity var(--fast) var(--ease);
}

.aitio-lang__link:hover,
.aitio-lang__link.is-current {
	opacity: 1;
}

.aitio-lang__link.is-off {
	opacity: 0.4;
}

/* the small yellow switch between FI and EN */
.aitio-lang__switch {
	position: relative;
	display: block;
	width: 18px;
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 5, 0.8);
}

.aitio-lang__knob {
	position: absolute;
	top: -1px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--aitio-yellow);
}

.aitio-lang--fi .aitio-lang__knob {
	left: -1px;
}

.aitio-lang--en .aitio-lang__knob {
	right: -1px;
}

/* ---- the right hand column ----------------------------------------- */

.aitio-header__right {
	display: flex;
	align-items: flex-start;
	gap: 188px;
	margin-left: auto;
	flex-shrink: 0;
}

.aitio-header__end {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
	flex-shrink: 0;
}

.aitio-header__email {
	margin-top: 19px;
	font-size: 14px;
	line-height: 21px;
	color: inherit;
	text-decoration: none;
	opacity: 0.86;
	transition: opacity var(--fast) var(--ease);
}

.aitio-header__email:hover {
	opacity: 1;
}

.aitio-header__online {
	margin-top: 12px;
	font-size: 14px;
	line-height: 21px;
	text-transform: uppercase;
	opacity: 0.6;
}

.aitio-header__online-text {
	display: inline-block;
	min-width: 50px;
	text-align: right;
}

.aitio-header .aitio-online__dot {
	width: 5px;
	height: 5px;
}

.aitio-header .aitio-online__dot::after {
	inset: -3px;
}

/* when the page has no hero, keep the content clear of the
   floating header */
body:not(.has-hero) .aitio-main {
	padding-top: 183px;
}

/* the services panel opens under the menu word (the design) */
.aitio-nav__item--mega .aitio-mega {
	top: calc(100% + 18px);
}

/* ---- the services panel (the wide "mega menu") -------------------- */

.aitio-mega {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	width: min(1080px, calc(100vw - 64px));
	background: var(--aitio-white);
	color: var(--aitio-black);
	border-radius: var(--aitio-radius);
	padding: 26px;
	box-shadow: 0 34px 90px rgba(0, 0, 0, 0.16);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility var(--fast);
	z-index: 95;
}

.aitio-nav__item--mega.is-open .aitio-mega,
.aitio-nav__item--mega:focus-within .aitio-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}

.aitio-mega__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	list-style: none;
}

.aitio-mega__card {
	display: block;
	border-radius: 12px;
	padding: 16px;
	transition: background var(--fast) var(--ease);
}

.aitio-mega__card:hover {
	background: var(--aitio-beige);
}

.aitio-mega__image {
	width: 100%;
	border-radius: 8px;
	margin-bottom: 12px;
}

.aitio-mega__name {
	display: block;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.01em;
}

.aitio-mega__lead {
	display: block;
	font-size: 13px;
	margin-top: 4px;
	opacity: 0.7;
}

/* ---- burger (mobile only) ----------------------------------------- */

.aitio-burger {
	display: none;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	padding: 10px 0;
	color: inherit;
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.aitio-burger__icon {
	position: relative;
	display: block;
	width: 18px;
	height: 8px;
}

.aitio-burger__icon span {
	position: absolute;
	left: 0;
	right: 0;
	height: 1.5px;
	background: currentColor;
	transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.aitio-burger__icon span:nth-child(1) { top: 0; }
.aitio-burger__icon span:nth-child(2) { bottom: 0; }

body.aitio-menu-open .aitio-burger__icon span:nth-child(1) {
	transform: translateY(3px) rotate(45deg);
}

body.aitio-menu-open .aitio-burger__icon span:nth-child(2) {
	transform: translateY(-3.5px) rotate(-45deg);
}

/* ---- the full-screen mobile menu ---------------------------------- */

.aitio-mobile {
	position: fixed;
	inset: 0;
	z-index: 99;
	background: var(--aitio-dark);
	color: var(--aitio-white);
	padding: 106px 0 44px;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--base) var(--ease), visibility var(--base);
}

body.aitio-menu-open .aitio-mobile {
	opacity: 1;
	visibility: visible;
}

.aitio-mobile__inner {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.aitio-mobile__list {
	display: flex;
	flex-direction: column;
}

.aitio-mobile__link {
	display: block;
	padding: 12px 0;
	font-size: clamp(26px, 6vw, 34px);
	font-weight: 500;
	letter-spacing: 0.01em;
	opacity: 0.9;
	transition: opacity var(--fast) var(--ease), color var(--fast) var(--ease);
}

.aitio-mobile__link:hover,
.aitio-mobile__link.is-current {
	opacity: 1;
	color: var(--aitio-yellow);
}

.aitio-mobile__sub {
	display: flex;
	flex-direction: column;
	margin: 0 0 6px 2px;
	padding: 0 0 6px 14px;
	border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.aitio-mobile__sub-link {
	display: block;
	padding: 5px 0;
	font-size: 16px;
	opacity: 0.65;
	transition: opacity var(--fast) var(--ease), color var(--fast) var(--ease);
}

.aitio-mobile__sub-link:hover {
	opacity: 1;
	color: var(--aitio-yellow);
}

.aitio-mobile__meta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 44px;
	font-size: 15px;
	opacity: 0.85;
}

/* ---- small screens: desktop menu goes away, burger appears -------- */

@media (max-width: 1024px) {

	.aitio-nav,
	.aitio-lang,
	.aitio-header__email,
	.aitio-header .aitio-online,
	.aitio-header__end .aitio-btn {
		display: none;
	}

	.aitio-header__right {
		gap: 0;
	}

	.aitio-header__inner {
		align-items: center;
		min-height: 72px;
		padding-top: 0;
	}

	.aitio-header__scrim {
		height: 72px;
	}

	body:not(.has-hero) .aitio-main {
		padding-top: 72px;
	}

	.aitio-burger {
		display: inline-flex;
	}
}


/* ==================================================================
 * SIDEBAR PANEL + CARDS (plan v2, chapter 7)
 * A slim sticky column on the right side of most pages. Small cards
 * dock into it when their section reaches the top part of the screen.
 * On small screens one card shows at the bottom instead.
 * ================================================================== */

.aitio-panel {
	position: fixed;
	top: 96px;
	right: calc(max(0px, (100vw - var(--aitio-container)) / 2) - (100vw - 100%));
	width: var(--aitio-panel);
	padding: 0;
	display: flex;
	flex-direction: column;
	pointer-events: none;
	z-index: 60;
}

.aitio-panel__stack {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	width: 100%;
	max-height: calc(100vh - 216px);
	overflow: visible;
	scrollbar-width: none;
}

/* Cards stay with their section until its top reaches the sticky stack. */
.aitio-card-shell {
	position: absolute;
	top: 0;
	right: 40px;
	width: var(--aitio-card-sidebar);
	min-height: 60px;
	box-sizing: border-box;
	margin-right: 0;
	background: rgba(255, 255, 255, 0.55);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(21, 21, 21, 0.14);
	border-radius: 5px;
	color: var(--aitio-black);
	opacity: 0;
	visibility: hidden;
	transform: none;
	transition: none;
	pointer-events: none;
}

/* Cards return to their section's page position while scrolling upward. */
.aitio-card-shell.is-in-section {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

@media (min-width: 1024px) {
	.aitio-card-shell.is-docking {
		transition: transform 500ms var(--ease);
	}
}

/* Docked cards share one normal-flow column, so their open bodies can
   never overlap the cards below them. */
.aitio-card-shell.is-docked {
	position: relative;
	top: auto !important;
	right: auto;
	margin-left: auto;
	margin-right: 40px;
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

@media (min-width: 1024px) {
	.aitio-panel:not(.is-live) .aitio-card-shell.is-docked {
		opacity: 0;
		pointer-events: none;
	}
}

.aitio-panel.is-obscured {
	visibility: hidden;
}

.aitio-card-shell__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	height: 58px;
	min-height: 58px;
	box-sizing: border-box;
	padding: 12px 17px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.aitio-card-shell__title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.aitio-card-shell__sign {
	font-size: 16px;
	line-height: 1;
}

/* Open body. The 0fr to 1fr trick animates the height smoothly. */
.aitio-card-shell__body {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	transition: grid-template-rows var(--base) var(--ease), visibility 0s linear var(--base);
}

.aitio-card-shell.is-open .aitio-card-shell__body {
	grid-template-rows: 1fr;
	visibility: visible;
	transition: grid-template-rows var(--base) var(--ease);
}

.aitio-card-shell__inner {
	min-height: 0;
	overflow: hidden;
	padding: 0 17px;
}

.aitio-card-shell.is-open .aitio-card-shell__inner {
	padding-top: 2px;
	padding-bottom: 17px;
}

.aitio-card-shell__inner > * {
	margin: 0;
}

.aitio-card-shell__inner > * + * {
	margin-top: 12px;
}

.aitio-card-shell.is-compact {
	height: 60px;
	overflow: hidden;
}

.aitio-card-shell.is-compact .aitio-card-shell__body {
	display: none;
}

.aitio-card-shell__body p {
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.85;
}

.aitio-card-shell__link {
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Below 1024 px there is one compact card, fixed at the bottom. */
@media (max-width: 1023px) {

	.aitio-panel {
		top: auto;
		bottom: 16px;
		left: 16px;
		right: auto;
		width: min(var(--aitio-card-sidebar), calc(100vw - 120px));
		padding: 0;
		z-index: 80;
	}

	.aitio-panel__stack {
		max-height: none;
		align-items: flex-start;
	}

	.aitio-card-shell {
		display: none;
		position: static;
		top: auto;
		right: auto;
		width: var(--aitio-card-sidebar);
		max-width: 100%;
		margin-right: 0;
		margin-left: 0;
		transition: opacity 300ms var(--ease), transform 300ms var(--ease);
	}

	.aitio-card-shell.is-active {
		display: block;
		position: relative;
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
	}

	.aitio-card-shell.is-active:not(.is-visible) {
		opacity: 0;
		transform: translateY(8px);
	}

	.aitio-card-shell.is-leaving {
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		opacity: 0;
		visibility: visible;
		transform: translateY(8px);
		pointer-events: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.aitio-card-shell,
	.aitio-card-shell.is-docking,
	.aitio-card-shell__body {
		transition: none;
	}
}

/* ---- the card types (plan v2, chapter 7) -------------------------- */

.aitio-card-shell__photo {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.aitio-card-shell__name {
	font-weight: 500;
}

.aitio-card-shell__deck {
	position: relative;
	width: 100%;
	height: 105px;
	margin-top: 3px;
}

.aitio-card-shell__page {
	position: absolute;
	top: 0;
	display: block;
	height: auto;
	box-sizing: border-box;
	border: 1px solid var(--aitio-line);
	border-radius: 3px;
}

.aitio-card-shell__page--1 {
	left: 15px;
	width: 152px;
	z-index: 1;
}

.aitio-card-shell__page--2 {
	top: 13px;
	left: 10px;
	width: 162px;
	z-index: 2;
}

.aitio-card-shell__page--3 {
	top: 26px;
	left: 8px;
	width: 167px;
	z-index: 3;
}

.aitio-card-shell__address {
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.85;
}

.aitio-card-shell__video {
	display: block;
	width: 100%;
	border-radius: 5px;
}

/* ---- recently played (the About us card) -------------------------- */

.aitio-rp {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	text-align: left;
}

.aitio-card-shell--recently_played .aitio-card-shell__head {
	height: 56px;
	min-height: 56px;
}

.aitio-card-shell--recently_played.is-open .aitio-card-shell__inner {
	padding-top: 0;
	padding-bottom: 16px;
}

.aitio-card-shell__deck + .aitio-card-shell__link {
	margin-top: 16px;
	margin-left: 8px;
	text-decoration: none;
}

.aitio-card-shell--pitch_deck.is-open .aitio-card-shell__inner {
	padding-bottom: 23px;
}

.aitio-rp__data {
	display: none;
}

.aitio-rp__play[hidden],
.aitio-rp__nav[hidden],
.aitio-rp__pill[hidden] {
	display: none;
}

.aitio-rp__cover {
	position: relative;
	flex: 0 0 120px;
	width: 120px;
	height: 120px;
	margin: 0 auto 20px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--aitio-cream-deep);
}

.aitio-rp__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.aitio-rp__img.is-front {
	opacity: 1;
}

.aitio-rp__play {
	position: absolute;
	inset: 0;
	display: block;
	color: var(--aitio-black);
	transition: opacity var(--fast) var(--ease);
}

.aitio-rp__play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	width: 48px;
	height: 48px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--aitio-white);
	transform: translate(-50%, -50%);
}

.aitio-rp__external-icon {
	position: absolute;
	top: 20px;
	right: 30px;
	display: flex;
	width: 20px;
	height: 20px;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--aitio-white);
	border-radius: 50%;
	background: var(--aitio-black);
	color: var(--aitio-yellow);
}

@media (min-width: 1024px) {

	.aitio-rp__play:hover {
		opacity: 0.9;
	}
}

.aitio-rp__now {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	line-height: 17px;
}

.aitio-rp__eq {
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	height: 14px;
	flex: 0 0 18px;
}

.aitio-rp__eq i {
	width: 3px;
	height: 100%;
	background: currentColor;
	transform-origin: bottom;
	animation: aitio-eq 1.1s ease-in-out infinite;
}

.aitio-rp__eq i:nth-child(2) { animation-delay: 0.15s; }
.aitio-rp__eq i:nth-child(3) { animation-delay: 0.3s; }
.aitio-rp__eq i:nth-child(4) { animation-delay: 0.45s; }

@keyframes aitio-eq {

	0%, 100% { transform: scaleY(0.35); }
	50% { transform: scaleY(1); }
}

.aitio-rp__title {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}

.aitio-rp__artist {
	max-width: 100%;
	margin-top: 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	line-height: 18px;
	opacity: 0.7;
}

.aitio-rp__progress {
	position: relative;
	width: 100%;
	height: 2px;
	margin-top: 10px;
	border-radius: 2px;
	background: rgba(21, 21, 21, 0.12);
	overflow: hidden;
}

.aitio-rp__progress i {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 45%;
	background: currentColor;
}

.aitio-rp__nav {
	display: flex;
	align-items: center;
	width: 100%;
	height: 18px;
	margin-top: 11px;
	gap: 10px;
	font-size: 12px;
}

.aitio-rp__step {
	border: 0;
	background: transparent;
	padding: 2px;
	color: inherit;
	line-height: 0;
	opacity: 0.7;
	cursor: pointer;
	transition: opacity var(--fast) var(--ease);
}

.aitio-rp__step:hover {
	opacity: 1;
}

.aitio-rp__count {
	letter-spacing: 0.04em;
	opacity: 0.7;
}

.aitio-rp__pills {
	display: flex;
	gap: 8px;
	width: 100%;
	margin-top: 9px;
}

.aitio-rp__pill {
	flex: 1;
	padding: 6px 4px;
	border-radius: 999px;
	font-size: 16px;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity var(--fast) var(--ease);
}

.aitio-rp__pill:hover {
	opacity: 0.8;
}

.aitio-rp__play[aria-disabled="true"],
.aitio-rp__pill[aria-disabled="true"] {
	cursor: default;
}

.aitio-rp__pill--spotify {
	border: 1px solid currentColor;
}

.aitio-rp__pill--youtube {
	background: var(--aitio-black);
	color: var(--aitio-yellow);
}

@media (prefers-reduced-motion: reduce) {

	.aitio-rp__img,
	.aitio-rp__play,
	.aitio-rp__step,
	.aitio-rp__pill {
		transition: none;
	}

	.aitio-rp__eq i {
		animation: none;
	}
}

/* ==================================================================
 * PROJECT CARDS (home grid, work list, hub pages)
 * ================================================================== */

.aitio-card {
	position: relative;
	background: var(--aitio-paper);
	border: 1px solid var(--aitio-line);
	border-radius: var(--aitio-radius);
	overflow: hidden;
	transition: transform 0.25s var(--aitio-ease), box-shadow 0.25s ease;
}

.aitio-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 50px rgba(22, 19, 13, 0.12);
}

.aitio-card__link {
	display: block;
	height: 100%;
	color: inherit;
}

.aitio-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--aitio-cream-deep);
	overflow: hidden;
}

/* The white logo sits on the cover (page 11). */
.aitio-card__logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 40%;
	max-height: 30%;
	width: auto;
	height: auto;
	object-fit: contain;
	pointer-events: none;
}

.aitio-card__image,
.aitio-card__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--aitio-ease);
}

.aitio-card:hover .aitio-card__image,
.aitio-card:hover .aitio-card__video {
	transform: scale(1.045);
}

.aitio-card__placeholder {
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% 20%, var(--aitio-yellow-soft), transparent 55%),
		var(--aitio-cream-deep);
}

.aitio-card__body {
	padding: 22px 24px 26px;
}

.aitio-card__client {
	display: block;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--aitio-ink-faint);
	margin-bottom: 6px;
}

.aitio-card__title {
	margin: 0 0 8px;
	font-size: 1.3rem;
}

/* Client name + service short names, dot-separated (page 11). */
.aitio-card__meta {
	margin: 0;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--aitio-ink-faint);
}

/* the six-service tags ("WEB DESIGN · PHOTO & VIDEO") */
.aitio-card__tags {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: var(--aitio-ink-faint);
}

.aitio-card__tagline {
	color: var(--aitio-ink-soft);
	font-size: 15px;
	margin: 0;
}

/* the deliverables appear on hover (like the manager's "hover card") */
.aitio-card__scope {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.35s var(--aitio-ease), opacity 0.3s ease, margin 0.3s ease;
	margin: 0;
}

.aitio-card:hover .aitio-card__scope {
	max-height: 140px;
	opacity: 1;
	margin-top: 14px;
}

.aitio-card__scope li {
	font-size: 13.5px;
	color: var(--aitio-ink-soft);
	padding-left: 16px;
	position: relative;
	line-height: 1.6;
}

.aitio-card__scope li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--aitio-yellow);
}

/* ==================================================================
 * QUOTES (testimonial section + case study)
 * ================================================================== */

.aitio-quote {
	margin: 0;
	background: var(--aitio-cream);
	border-radius: var(--aitio-radius);
	padding: clamp(28px, 5vw, 56px);
	position: relative;
}

.aitio-quote--big {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

.aitio-quote--big::before {
	content: "\201C";
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 110px;
	line-height: 1;
	color: var(--aitio-yellow);
	font-family: var(--aitio-font-display);
}

.aitio-quote__text {
	font-size: clamp(1.25rem, 2.6vw, 1.85rem);
	line-height: 1.4;
	letter-spacing: -0.015em;
	font-weight: 600;
	margin: 0 0 24px;
	text-wrap: pretty;
}

.aitio-quote__by {
	display: flex;
	align-items: center;
	justify-content: inherit;
	gap: 14px;
	font-style: normal;
}

.aitio-quote--big .aitio-quote__by {
	justify-content: center;
}

.aitio-quote__photo img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.aitio-quote__by strong {
	display: block;
	font-size: 15px;
}

.aitio-quote__role {
	display: block;
	font-size: 13.5px;
	color: var(--aitio-ink-faint);
}

/* ==================================================================
 * CASE STUDY (one project)
 * ================================================================== */

.aitio-case__head {
	padding-top: clamp(48px, 7vw, 96px);
	padding-bottom: clamp(28px, 4vw, 48px);
}

.aitio-case__client {
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--aitio-ink-faint);
}

.aitio-case__title {
	max-width: 18ch;
}

.aitio-case__tagline {
	font-size: clamp(1.1rem, 2.2vw, 1.45rem);
	color: var(--aitio-ink-soft);
	max-width: 46ch;
}

.aitio-case__cover {
	background: var(--aitio-cream-deep);
}

.aitio-case__cover img,
.aitio-case__cover video {
	width: 100%;
	max-height: 78vh;
	object-fit: cover;
}

.aitio-case__meta {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	padding-top: clamp(36px, 5vw, 64px);
	padding-bottom: clamp(20px, 3vw, 40px);
}

.aitio-case__meta-heading {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--aitio-ink-faint);
	margin-bottom: 14px;
}

.aitio-case__scope ul li {
	padding: 8px 0;
	border-bottom: 1px solid var(--aitio-line);
	font-size: 15.5px;
}

.aitio-case__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-content: start;
}

.aitio-case__videoembed {
	padding-bottom: clamp(40px, 6vw, 80px);
}

.aitio-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--aitio-radius);
	overflow: hidden;
	background: var(--aitio-ink);
}

.aitio-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.aitio-next-project {
	border-top: 1px solid var(--aitio-line);
	padding: clamp(36px, 5vw, 64px) 0;
}

.aitio-next-project__label {
	display: block;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--aitio-ink-faint);
	margin-bottom: 6px;
}

.aitio-next-project__link {
	font-size: clamp(1.4rem, 3vw, 2.2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.aitio-next-project__link:hover {
	color: var(--aitio-ink-soft);
}

@media (max-width: 800px) {

	.aitio-case__meta {
		grid-template-columns: 1fr;
	}
}

/* ==================================================================
 * SERVICE HUB CARDS
 * ================================================================== */

.aitio-hub-card {
	display: flex;
	flex-direction: column;
	background: var(--aitio-paper);
	border: 1px solid var(--aitio-line);
	border-radius: var(--aitio-radius);
	overflow: hidden;
	transition: transform 0.25s var(--aitio-ease), box-shadow 0.25s ease;
	height: 100%;
}

.aitio-hub-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 44px rgba(22, 19, 13, 0.1);
}

.aitio-hub-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--aitio-cream-deep);
}

.aitio-hub-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--aitio-ease);
}

.aitio-hub-card:hover .aitio-hub-card__media img {
	transform: scale(1.05);
}

.aitio-hub-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	flex: 1;
	position: relative;
}

.aitio-hub-card__title {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.aitio-hub-card__intro {
	color: var(--aitio-ink-soft);
	font-size: 15px;
	line-height: 1.55;
}

.aitio-hub-card__arrow {
	margin-top: auto;
	padding-top: 14px;
	font-size: 22px;
	color: var(--aitio-ink-faint);
	transition: transform 0.2s var(--aitio-ease), color 0.2s ease;
}

.aitio-hub-card:hover .aitio-hub-card__arrow {
	transform: translateX(6px);
	color: var(--aitio-ink);
}

/* hub hero */
.aitio-hub-hero {
	background: var(--aitio-cream);
}

.aitio-hub-hero__media {
	max-height: 46vh;
	overflow: hidden;
}

.aitio-hub-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aitio-hub-hero__content {
	padding-top: clamp(40px, 6vw, 84px);
	padding-bottom: clamp(40px, 6vw, 84px);
}

.aitio-hub-hero__intro {
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	color: var(--aitio-ink-soft);
	max-width: 56ch;
}

/* ==================================================================
 * TEAM
 * ================================================================== */

.aitio-member__photo {
	aspect-ratio: 1;
	border-radius: var(--aitio-radius);
	overflow: hidden;
	background: var(--aitio-cream-deep);
	margin-bottom: 16px;
}

.aitio-member__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	transition: filter 0.35s ease, transform 0.5s var(--aitio-ease);
}

.aitio-member:hover .aitio-member__photo img {
	filter: grayscale(0%);
	transform: scale(1.03);
}

.aitio-member__placeholder {
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 40% 30%, var(--aitio-yellow-soft), var(--aitio-cream-deep));
}

.aitio-member__name {
	margin: 0 0 2px;
	font-size: 1.15rem;
}

.aitio-member__role {
	margin: 0 0 8px;
	color: var(--aitio-ink-faint);
	font-size: 14.5px;
}

.aitio-member__links {
	font-size: 14px;
}

.aitio-member__links a {
	color: var(--aitio-ink-soft);
	border-bottom: 1px solid var(--aitio-line);
	margin-right: 12px;
}

.aitio-member__links a:hover {
	color: var(--aitio-ink);
	border-color: var(--aitio-ink);
}

/* ==================================================================
 * CONTACT FORM
 * ================================================================== */

.aitio-form-wrap {
	max-width: 760px;
}

.aitio-form-wrap__intro {
	color: var(--aitio-ink-soft);
	font-size: 16.5px;
}

.aitio-form__row {
	margin-bottom: 18px;
}

.aitio-form__row label {
	display: block;
	font-weight: 600;
	font-size: 14.5px;
	margin-bottom: 7px;
}

.aitio-form__trap {
	position: absolute !important;
	left: -9999px !important;
}

.aitio-form__row--submit {
	margin-top: 26px;
}

.aitio-form .aitio-button[data-busy="1"] {
	opacity: 0.7;
	pointer-events: none;
}

.aitio-form__ok,
.aitio-form__error {
	border-radius: var(--aitio-radius-sm);
	padding: 14px 18px;
	font-weight: 600;
	margin-bottom: 20px;
}

.aitio-form__ok {
	background: #e8f1dc;
	color: #3d6b2c;
}

.aitio-form__error {
	background: #fde8e4;
	color: #a33a24;
}

/* ==================================================================
 * 404 + simple hero (no front page set)
 * ================================================================== */

.aitio-404 {
	text-align: center;
	padding: clamp(80px, 12vw, 160px) 0;
}

.aitio-404__code {
	font-size: clamp(4rem, 12vw, 8rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--aitio-yellow);
	line-height: 1;
	margin: 0 0 10px;
}

.aitio-404__heading {
	margin-bottom: 30px;
}

.aitio-404__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.aitio-hero--simple {
	background: var(--aitio-cream);
	padding: clamp(70px, 10vw, 130px) 0;
}

.aitio-hero--simple .aitio-hero__subline {
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	color: var(--aitio-ink-soft);
}
