/*
 * GCMA premium portfolio.
 * Archive and case-study surfaces intentionally remain independent from theme pages.
 */

body.gcma-portfolio-view {
	background: #f3f8fd;
}

html[data-gcma-theme="dark"] body.gcma-portfolio-view {
	background: #02070f;
}

.gcma-portfolio-view .gcma-background-effects {
	opacity: 0.24;
}

html[data-gcma-theme="dark"] .gcma-portfolio-view .gcma-background-effects {
	opacity: 0.08;
}

.gcma-portfolio-archive,
.gcma-case-study {
	overflow: clip;
	padding-top: 0;
}

.gcma-portfolio-archive__hero,
.gcma-case-study__hero {
	align-items: flex-end;
	background: #061a44;
	color: #fff;
	display: flex;
	min-height: clamp(620px, 78vh, 920px);
	overflow: hidden;
	padding: clamp(150px, 18vh, 220px) clamp(22px, 7vw, 104px) clamp(64px, 8vw, 108px);
	position: relative;
}

.gcma-portfolio-archive__hero::before,
.gcma-case-study__hero::before {
	background: linear-gradient(90deg, rgba(2, 10, 28, 0.94) 0%, rgba(2, 10, 28, 0.67) 48%, rgba(2, 10, 28, 0.18) 100%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.gcma-portfolio-archive__hero::after,
.gcma-case-study__hero::after {
	background: linear-gradient(180deg, transparent 72%, rgba(2, 7, 15, 0.72) 100%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.gcma-portfolio-archive__hero-media,
.gcma-case-study__hero-media {
	inset: 0;
	margin: 0;
	position: absolute;
}

.gcma-portfolio-archive__hero-media img,
.gcma-case-study__hero-media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.gcma-portfolio-archive__hero-copy,
.gcma-case-study__hero-copy {
	max-width: 840px;
	position: relative;
	z-index: 2;
}

.gcma-portfolio-archive__hero-copy .gcma-kicker,
.gcma-case-study__hero-copy .gcma-kicker {
	color: #54d7ff;
}

.gcma-portfolio-archive__hero h1,
.gcma-case-study__hero h1 {
	color: #fff;
	font-size: clamp(44px, 5vw, 78px);
	line-height: 0.96;
	margin: 0 0 24px;
	max-width: 1080px;
}

.gcma-portfolio-archive__hero-copy > p:not(.gcma-kicker),
.gcma-case-study__subtitle {
	color: rgba(238, 247, 255, 0.84);
	font-size: clamp(18px, 2vw, 25px);
	line-height: 1.55;
	margin: 0 0 30px;
	max-width: 720px;
}

.gcma-portfolio-archive__hero .gcma-button,
.gcma-case-study__hero .gcma-button {
	gap: 9px;
	min-height: 52px;
	padding: 13px 19px;
}

.gcma-portfolio-archive__hero .gcma-button svg,
.gcma-case-study__hero .gcma-button svg,
.gcma-case-study__back svg {
	fill: currentColor;
	height: 18px;
	width: 18px;
}

.gcma-case-study__pdf-link > span {
	align-items: center;
	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 50%;
	display: inline-flex;
	height: 24px;
	justify-content: center;
	width: 24px;
}

.gcma-case-study__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.gcma-case-study__hero .gcma-button--secondary {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.34);
	color: #fff;
}

@supports (backdrop-filter: blur(18px)) {
	.gcma-case-study__hero .gcma-button--secondary {
		backdrop-filter: blur(24px) saturate(150%);
	}
}

.gcma-case-study__back {
	align-items: center;
	color: rgba(255, 255, 255, 0.8);
	display: inline-flex;
	font-size: 13px;
	font-weight: 850;
	gap: 8px;
	margin-bottom: 34px;
	text-decoration: none;
}

.gcma-case-study__back:hover,
.gcma-case-study__back:focus {
	color: #54d7ff;
}

/* Project hero carousel mirrors the home carousel without sharing its content layout. */
.gcma-case-study__hero-viewport,
.gcma-case-study__hero-slide,
.gcma-case-study__hero-slide picture,
.gcma-case-study__hero-image,
.gcma-case-study__hero-veil {
	inset: 0;
	position: absolute;
}

.gcma-case-study__hero-viewport {
	overflow: hidden;
	z-index: 0;
}

.gcma-case-study__hero-slide {
	background: #071a44;
	opacity: 0;
	pointer-events: none;
	transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), visibility 700ms;
	visibility: hidden;
}

.gcma-case-study__hero-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
	z-index: 1;
}

.gcma-case-study__hero-image {
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.025);
	transition: transform 8s ease;
	width: 100%;
}

.gcma-case-study__hero-slide.is-active .gcma-case-study__hero-image {
	transform: scale(1);
}

.gcma-case-study__hero-image--dark {
	display: none;
}

html[data-gcma-theme="dark"] .gcma-case-study__hero-image--light {
	display: none;
}

html[data-gcma-theme="dark"] .gcma-case-study__hero-image--dark {
	display: block;
}

.gcma-case-study__hero-veil {
	background: linear-gradient(90deg, rgba(2, 10, 28, 0.93) 0%, rgba(2, 10, 28, 0.72) 38%, rgba(2, 10, 28, 0.18) 74%), linear-gradient(0deg, rgba(2, 7, 15, 0.72), transparent 38%);
	pointer-events: none;
	z-index: 1;
}

html:not([data-gcma-theme="dark"]) .gcma-case-study__hero-veil {
	background: linear-gradient(90deg, rgba(2, 15, 46, 0.9) 0%, rgba(2, 15, 46, 0.57) 36%, rgba(2, 15, 46, 0.05) 74%), linear-gradient(0deg, rgba(2, 15, 46, 0.64), transparent 40%);
}

.gcma-case-study__hero.has-media::before,
.gcma-case-study__hero.has-media::after {
	display: none;
}

.gcma-case-study__hero-controls {
	z-index: 4;
}

/* The archive opens on one project per slide, with a protected reading area. */
.gcma-portfolio-archive__hero {
	padding: 0;
	touch-action: pan-y;
}

.gcma-portfolio-archive__hero::before,
.gcma-portfolio-archive__hero::after {
	display: none;
}

.gcma-portfolio-archive__hero-viewport,
.gcma-portfolio-archive__hero-slide,
.gcma-portfolio-archive__hero-slide picture,
.gcma-portfolio-archive__hero-image,
.gcma-portfolio-archive__hero-veil {
	inset: 0;
	position: absolute;
}

.gcma-portfolio-archive__hero-viewport {
	overflow: hidden;
	z-index: 0;
}

.gcma-portfolio-archive__hero-slide {
	align-items: flex-end;
	background: #071a44;
	display: flex;
	opacity: 0;
	padding: clamp(150px, 18vh, 220px) clamp(22px, 7vw, 104px) clamp(88px, 9vw, 126px);
	pointer-events: none;
	transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), visibility 700ms;
	visibility: hidden;
}

.gcma-portfolio-archive__hero-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
	z-index: 1;
}

.gcma-portfolio-archive__hero-media {
	z-index: 0;
}

.gcma-portfolio-archive__hero-image {
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.025);
	transition: transform 8s ease;
	width: 100%;
}

.gcma-portfolio-archive__hero-slide.is-active .gcma-portfolio-archive__hero-image {
	transform: scale(1);
}

.gcma-portfolio-archive__hero-image--dark {
	display: none;
}

html[data-gcma-theme="dark"] .gcma-portfolio-archive__hero-image--light {
	display: none;
}

html[data-gcma-theme="dark"] .gcma-portfolio-archive__hero-image--dark {
	display: block;
}

.gcma-portfolio-archive__hero-veil {
	background: linear-gradient(90deg, rgba(2, 10, 28, 0.82) 0%, rgba(2, 10, 28, 0.62) 34%, rgba(2, 10, 28, 0.22) 55%, transparent 76%), linear-gradient(0deg, rgba(2, 7, 15, 0.55), transparent 38%);
	pointer-events: none;
	z-index: 1;
}

html:not([data-gcma-theme="dark"]) .gcma-portfolio-archive__hero-veil {
	background: linear-gradient(90deg, rgba(2, 15, 46, 0.82) 0%, rgba(2, 15, 46, 0.6) 34%, rgba(2, 15, 46, 0.18) 56%, transparent 77%), linear-gradient(0deg, rgba(2, 15, 46, 0.52), transparent 38%);
}

.gcma-portfolio-archive__hero-copy {
	max-width: min(700px, 54vw);
	position: relative;
	z-index: 2;
}

.gcma-portfolio-archive__project-title {
	color: #fff;
	font-size: clamp(42px, 5vw, 72px);
	line-height: 0.98;
	margin: 0 0 20px;
	max-width: 760px;
	text-wrap: balance;
}

.gcma-portfolio-archive__project-title--long {
	font-size: clamp(38px, 4.5vw, 64px);
}

.gcma-portfolio-archive__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.gcma-portfolio-archive__hero .gcma-button--secondary {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.34);
	color: #fff;
}

@supports (backdrop-filter: blur(18px)) {
	.gcma-portfolio-archive__hero .gcma-button--secondary {
		backdrop-filter: blur(24px) saturate(150%);
	}
}

.gcma-portfolio-archive__hero-controls {
	z-index: 5;
}

.gcma-portfolio-archive__content {
	margin: 0 auto;
	max-width: 1440px;
	padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.gcma-portfolio-archive__content .gcma-project-filters {
	position: sticky;
	top: calc(var(--gcma-header-height) + 18px);
	z-index: 10;
}

.gcma-portfolio-archive__content .gcma-project-filters::before {
	background: color-mix(in srgb, var(--gcma-light) 84%, transparent);
	border: 1px solid var(--gcma-glass-border);
	border-radius: 999px;
	box-shadow: var(--gcma-soft-shadow);
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}

@supports (backdrop-filter: blur(18px)) {
	.gcma-portfolio-archive__content .gcma-project-filters::before {
		backdrop-filter: blur(30px) saturate(165%);
	}
}

.gcma-portfolio-archive__content .gcma-project-filters {
	padding: 7px;
}

.gcma-portfolio-archive__content .gcma-project-filters button {
	background: transparent;
	box-shadow: none;
}

.gcma-portfolio-archive__content .gcma-project-filters button[aria-pressed="true"] {
	background: rgba(0, 123, 255, 0.13);
	box-shadow: inset 0 0 0 1px rgba(0, 123, 255, 0.22), 0 0 22px rgba(0, 183, 241, 0.15);
}

.gcma-portfolio-archive__advice {
	align-items: end;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	margin: 56px auto;
	max-width: 1180px;
	padding: 0 28px;
}

.gcma-portfolio-archive__advice h2 {
	font-size: 32px;
	line-height: 1.16;
	margin: 8px 0 0;
}

.gcma-portfolio-archive__advice nav {
	display: grid;
	gap: 10px;
}

.gcma-portfolio-archive__advice nav a {
	align-items: center;
	background: color-mix(in srgb, var(--gcma-surface, #fff) 88%, transparent);
	border: 1px solid color-mix(in srgb, #0785ff 24%, transparent);
	border-radius: 16px;
	color: inherit;
	display: flex;
	font-weight: 800;
	justify-content: space-between;
	padding: 15px 18px;
	text-decoration: none;
}

.gcma-portfolio-archive__advice nav a span {
	color: #18b8ff;
	font-size: 20px;
}

.gcma-portfolio-archive__cta,
.gcma-case-study__cta {
	align-items: center;
	background: #061a44;
	color: #fff;
	display: flex;
	gap: 32px;
	justify-content: space-between;
	margin: 0;
	padding: clamp(54px, 7vw, 92px) clamp(22px, 7vw, 104px);
}

html[data-gcma-theme="dark"] .gcma-portfolio-archive__cta,
html[data-gcma-theme="dark"] .gcma-case-study__cta {
	background: #020714;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gcma-portfolio-archive__cta h2,
.gcma-case-study__cta h2 {
	color: #fff;
	font-size: clamp(34px, 4.4vw, 66px);
	line-height: 1.02;
	margin: 0;
	max-width: 820px;
}

.gcma-portfolio-archive__cta .gcma-kicker,
.gcma-case-study__cta .gcma-kicker {
	color: #54d7ff;
}

.gcma-portfolio-archive__cta .gcma-button,
.gcma-case-study__cta .gcma-button {
	flex: 0 0 auto;
	gap: 9px;
	min-height: 54px;
	padding: 14px 20px;
}

.gcma-portfolio-archive__cta .gcma-button svg,
.gcma-case-study__cta .gcma-button svg {
	fill: currentColor;
	height: 18px;
	width: 18px;
}

/* Case study. */
.gcma-case-study__facts {
	align-items: center;
	background: color-mix(in srgb, var(--gcma-surface) 82%, #fff 18%);
	border-bottom: 1px solid var(--gcma-line);
	display: grid;
	gap: 0;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	padding: 0 clamp(18px, 6vw, 90px);
}

html[data-gcma-theme="dark"] .gcma-case-study__facts {
	background: #071222;
}

.gcma-case-study__facts > div {
	display: grid;
	gap: 5px;
	min-height: 124px;
	padding: 28px 22px;
	place-content: center start;
}

.gcma-case-study__facts > div + div {
	border-left: 1px solid var(--gcma-line);
}

.gcma-case-study__facts span {
	color: var(--gcma-muted);
	font-size: 11px;
	font-weight: 850;
	text-transform: uppercase;
}

.gcma-case-study__facts strong {
	color: var(--gcma-navy);
	font-size: clamp(15px, 1.5vw, 20px);
	line-height: 1.25;
}

.gcma-case-study__client-logo img {
	max-height: 58px;
	max-width: 150px;
	object-fit: contain;
}

.gcma-case-study__introduction {
	margin: 0 auto;
	max-width: 1080px;
	padding: clamp(70px, 10vw, 140px) clamp(20px, 5vw, 72px);
}

.gcma-case-study__richtext {
	color: var(--gcma-navy);
	font-size: clamp(24px, 3.3vw, 44px);
	font-weight: 720;
	line-height: 1.28;
}

.gcma-case-study__richtext > :first-child {
	margin-top: 0;
}

.gcma-case-study__richtext > :last-child {
	margin-bottom: 0;
}

.gcma-case-study__story {
	border-bottom: 1px solid var(--gcma-line);
	border-top: 1px solid var(--gcma-line);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gcma-case-study__story section {
	min-height: 480px;
	padding: clamp(42px, 6vw, 86px) clamp(24px, 4.5vw, 70px);
	position: relative;
}

.gcma-case-study__story section + section {
	border-left: 1px solid var(--gcma-line);
}

.gcma-case-study__story section > span {
	color: rgba(0, 123, 255, 0.13);
	font-size: clamp(76px, 10vw, 148px);
	font-weight: 900;
	line-height: 0.8;
	position: absolute;
	right: 24px;
	top: 34px;
}

html[data-gcma-theme="dark"] .gcma-case-study__story section > span {
	color: rgba(0, 183, 241, 0.12);
}

.gcma-case-study__story h2 {
	color: var(--gcma-navy);
	font-size: clamp(30px, 3vw, 46px);
	line-height: 1.04;
	margin: 0 0 24px;
	max-width: 400px;
	position: relative;
}

.gcma-case-study__story section > p:not(.gcma-kicker) {
	color: var(--gcma-muted);
	font-size: 17px;
	line-height: 1.75;
	margin: 0;
	position: relative;
}

.gcma-case-study__metrics {
	background: #061a44;
	color: #fff;
	padding: clamp(64px, 8vw, 108px) clamp(20px, 6vw, 90px);
}

html[data-gcma-theme="dark"] .gcma-case-study__metrics {
	background: #020714;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gcma-case-study__metrics .gcma-kicker {
	color: #54d7ff;
}

.gcma-case-study__metrics > h2 {
	color: #fff;
	font-size: clamp(38px, 5vw, 72px);
	line-height: 1;
	margin: 0 0 46px;
	max-width: 820px;
}

.gcma-case-study__metrics dl {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
}

.gcma-case-study__metrics dl > div {
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--gcma-radius);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.19), 0 0 40px rgba(0, 183, 241, 0.06);
	min-height: 190px;
	padding: clamp(24px, 3vw, 40px);
}

@supports (backdrop-filter: blur(18px)) {
	.gcma-case-study__metrics dl > div {
		backdrop-filter: blur(24px) saturate(150%);
	}
}

.gcma-case-study__metrics dt {
	color: #54d7ff;
	font-size: clamp(44px, 6vw, 84px);
	font-weight: 900;
	line-height: 1;
	margin-bottom: 14px;
}

.gcma-case-study__metrics dd {
	color: rgba(238, 247, 255, 0.78);
	font-size: 15px;
	font-weight: 750;
	line-height: 1.45;
	margin: 0;
}

.gcma-case-study__gallery {
	padding: clamp(70px, 10vw, 140px) clamp(18px, 5vw, 72px);
}

.gcma-case-study__gallery > div:first-child {
	margin: 0 auto 42px;
	max-width: 1240px;
}

.gcma-case-study__gallery > div:first-child > p:last-child {
	color: var(--gcma-muted);
	font-size: 15px;
	margin: 15px 0 0;
}

.gcma-case-study__gallery h2 {
	color: var(--gcma-navy);
	font-size: clamp(38px, 5vw, 72px);
	line-height: 1;
	margin: 0;
}

.gcma-case-study__gallery-grid {
	display: grid;
	gap: clamp(14px, 2vw, 28px);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 auto;
	max-width: 1440px;
}

.gcma-case-study__gallery-item {
	aspect-ratio: 16 / 11;
	background: var(--gcma-surface);
	border: 1px solid var(--gcma-glass-border);
	border-radius: var(--gcma-radius);
	box-shadow: var(--gcma-soft-shadow);
	display: block;
	overflow: hidden;
	position: relative;
}

.gcma-case-study__gallery-item:nth-child(3n + 1) {
	grid-column: 1 / -1;
	aspect-ratio: 21 / 9;
}

.gcma-case-study__gallery-grid img {
	height: 100%;
	object-fit: cover;
	transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
	width: 100%;
}

.gcma-case-study__gallery-item:hover img,
.gcma-case-study__gallery-item:focus img {
	transform: scale(1.018);
}

.gcma-case-study__gallery-item > span[aria-hidden="true"] {
	align-items: center;
	background: color-mix(in srgb, var(--gcma-glass-strong) 82%, transparent);
	border: 1px solid var(--gcma-glass-border);
	border-radius: 50%;
	bottom: 18px;
	box-shadow: var(--gcma-soft-shadow), inset 0 1px 0 var(--gcma-glass-highlight);
	color: var(--gcma-blue);
	display: flex;
	font-size: 28px;
	height: 48px;
	justify-content: center;
	position: absolute;
	right: 18px;
	transition: transform 180ms ease;
	width: 48px;
}

.gcma-case-study__gallery-item:hover > span[aria-hidden="true"],
.gcma-case-study__gallery-item:focus > span[aria-hidden="true"] {
	transform: scale(1.08);
}

.gcma-project-lightbox[hidden] {
	display: none;
}

.gcma-project-lightbox {
	inset: 0;
	position: fixed;
	z-index: 100000;
}

.gcma-project-lightbox__backdrop {
	backdrop-filter: blur(24px) saturate(150%);
	background: rgba(2, 7, 15, 0.8);
	inset: 0;
	position: absolute;
}

html:not([data-gcma-theme="dark"]) .gcma-project-lightbox__backdrop {
	background: rgba(226, 240, 251, 0.82);
}

.gcma-project-lightbox__dialog {
	background: color-mix(in srgb, var(--gcma-glass-strong) 84%, transparent);
	border: 1px solid var(--gcma-glass-border);
	border-radius: min(30px, var(--gcma-radius));
	box-shadow: 0 32px 90px rgba(2, 7, 15, 0.42), inset 0 1px 0 var(--gcma-glass-highlight);
	display: grid;
	inset: clamp(16px, 4vw, 54px);
	place-items: center;
	position: absolute;
}

.gcma-project-lightbox__dialog figure {
	display: grid;
	gap: 12px;
	height: 100%;
	margin: 0;
	padding: clamp(54px, 7vw, 86px) clamp(54px, 8vw, 112px);
	place-items: center;
	width: 100%;
}

.gcma-project-lightbox__dialog figure img {
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(2, 7, 15, 0.32);
	max-height: calc(100vh - 190px);
	max-width: 100%;
	object-fit: contain;
}

.gcma-project-lightbox__dialog figcaption {
	color: var(--gcma-navy);
	font-size: 14px;
	font-weight: 800;
	text-align: center;
}

.gcma-project-lightbox__close,
.gcma-project-lightbox__arrow {
	align-items: center;
	background: color-mix(in srgb, var(--gcma-glass-strong) 82%, transparent);
	border: 1px solid var(--gcma-glass-border);
	border-radius: 50%;
	box-shadow: var(--gcma-soft-shadow), inset 0 1px 0 var(--gcma-glass-highlight);
	color: var(--gcma-navy);
	cursor: pointer;
	display: flex;
	height: 52px;
	justify-content: center;
	position: absolute;
	width: 52px;
	z-index: 2;
}

.gcma-project-lightbox__close {
	font-size: 30px;
	right: 20px;
	top: 20px;
}

.gcma-project-lightbox__arrow {
	top: 50%;
	transform: translateY(-50%);
}

.gcma-project-lightbox__arrow svg {
	fill: currentColor;
	height: 20px;
	width: 20px;
}

.gcma-project-lightbox__arrow--prev {
	left: 20px;
}

.gcma-project-lightbox__arrow--next {
	right: 20px;
}

.gcma-project-lightbox__status {
	bottom: 22px;
	color: var(--gcma-muted);
	font-size: 12px;
	font-weight: 850;
	left: 50%;
	margin: 0;
	position: absolute;
	transform: translateX(-50%);
}

body.gcma-lightbox-open {
	overflow: hidden;
}

.gcma-case-study__technologies {
	align-items: center;
	border-top: 1px solid var(--gcma-line);
	display: flex;
	gap: 28px;
	justify-content: space-between;
	padding: clamp(46px, 6vw, 76px) clamp(20px, 6vw, 90px);
}

.gcma-case-study__technologies .gcma-kicker {
	margin: 0;
}

.gcma-case-study__technologies ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gcma-case-study__technologies li {
	background: var(--gcma-surface);
	border: 1px solid var(--gcma-glass-border);
	border-radius: 999px;
	box-shadow: inset 0 1px 0 var(--gcma-glass-highlight);
	color: var(--gcma-navy);
	font-size: 12px;
	font-weight: 850;
	padding: 9px 12px;
}

.gcma-case-study__navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gcma-case-study__navigation a {
	background: var(--gcma-light);
	border-top: 1px solid var(--gcma-line);
	display: grid;
	gap: 8px;
	min-height: 180px;
	padding: clamp(34px, 5vw, 68px) clamp(22px, 6vw, 90px);
	place-content: center start;
	text-decoration: none;
	transition: background 180ms ease, color 180ms ease;
}

.gcma-case-study__navigation a + a {
	border-left: 1px solid var(--gcma-line);
	place-content: center end;
	text-align: right;
}

.gcma-case-study__navigation a:only-child:last-child {
	grid-column: 2;
}

.gcma-case-study__navigation a:hover,
.gcma-case-study__navigation a:focus {
	background: color-mix(in srgb, var(--gcma-blue) 7%, var(--gcma-light));
}

.gcma-case-study__navigation span {
	color: var(--gcma-muted);
	font-size: 11px;
	font-weight: 850;
	text-transform: uppercase;
}

.gcma-case-study__navigation strong {
	color: var(--gcma-navy);
	font-size: clamp(20px, 2.5vw, 34px);
	line-height: 1.1;
}

/* Homepage bridge to the upgraded shortcode. */
.gcma-projects-section .gcma-projects.gcma-portfolio {
	max-width: 1240px;
}

.gcma-projects-section__action {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

.gcma-projects-section__action .gcma-button {
	gap: 9px;
}

.gcma-projects-section__action svg {
	fill: currentColor;
	height: 18px;
	width: 18px;
}

@media (max-width: 1060px) {
	.gcma-case-study__facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.gcma-case-study__facts > div:nth-child(4) {
		border-left: 0;
	}

	.gcma-case-study__facts > div:nth-child(n + 4) {
		border-top: 1px solid var(--gcma-line);
	}

	.gcma-case-study__story {
		grid-template-columns: 1fr;
	}

	.gcma-case-study__story section {
		min-height: 0;
	}

	.gcma-case-study__story section + section {
		border-left: 0;
		border-top: 1px solid var(--gcma-line);
	}
}

@media (max-width: 760px) {
	.gcma-portfolio-archive,
	.gcma-case-study {
		padding-bottom: calc(var(--gcma-bottom-nav-height) + env(safe-area-inset-bottom) + 26px);
	}

	.gcma-portfolio-archive__hero,
	.gcma-case-study__hero {
		min-height: min(780px, calc(100svh - 4px));
		padding: calc(var(--gcma-mobile-topbar-height) + env(safe-area-inset-top) + 86px) 18px 46px;
	}

	.gcma-portfolio-archive__hero {
		min-height: min(820px, calc(100svh - 4px));
		padding: 0;
	}

	.gcma-portfolio-archive__hero-slide {
		padding: calc(var(--gcma-mobile-topbar-height) + env(safe-area-inset-top) + 32px) 18px calc(var(--gcma-bottom-nav-height) + env(safe-area-inset-bottom) + 82px);
	}

	.gcma-portfolio-archive__hero-image {
		object-position: center top;
	}

	.gcma-portfolio-archive__hero-veil,
	html:not([data-gcma-theme="dark"]) .gcma-portfolio-archive__hero-veil {
		background: linear-gradient(180deg, rgba(2, 10, 28, 0.02) 0%, rgba(2, 10, 28, 0.06) 38%, rgba(2, 10, 28, 0.74) 60%, rgba(2, 10, 28, 0.98) 84%);
	}

	.gcma-portfolio-archive__hero-copy {
		max-width: 100%;
		width: 100%;
	}

	.gcma-portfolio-archive__project-title,
	.gcma-portfolio-archive__project-title--long {
		font-size: clamp(34px, 10.5vw, 44px);
		line-height: 1;
		margin-bottom: 14px;
	}

	.gcma-portfolio-archive__hero-copy .gcma-kicker {
		font-size: 11px;
		margin-bottom: 10px;
	}

	.gcma-portfolio-archive__hero-copy > p:not(.gcma-kicker) {
		font-size: 15px;
		line-height: 1.42;
		margin-bottom: 18px;
		max-width: 34rem;
	}

	.gcma-portfolio-archive__hero-actions {
		display: grid;
		gap: 8px;
		grid-template-columns: 1fr;
	}

	.gcma-portfolio-archive__hero .gcma-button {
		justify-content: center;
		min-height: 46px;
		padding-block: 10px;
		width: 100%;
	}

	.gcma-portfolio-archive__hero .gcma-button--secondary {
		min-height: 40px;
	}

	.gcma-portfolio-archive__hero-controls {
		bottom: calc(var(--gcma-bottom-nav-height) + env(safe-area-inset-bottom) + 18px);
	}

	.gcma-case-study__hero {
		padding-bottom: calc(var(--gcma-bottom-nav-height) + env(safe-area-inset-bottom) + 84px);
	}

	.gcma-portfolio-archive__hero::before,
	.gcma-case-study__hero::before {
		background: linear-gradient(180deg, rgba(2, 10, 28, 0.08) 0%, rgba(2, 10, 28, 0.28) 43%, rgba(2, 10, 28, 0.94) 82%);
	}

	.gcma-portfolio-archive__hero h1,
	.gcma-case-study__hero h1 {
		font-size: clamp(42px, 13vw, 58px);
		line-height: 0.98;
	}

	.gcma-portfolio-archive__hero-copy > p:not(.gcma-kicker),
	.gcma-case-study__subtitle {
		font-size: 17px;
		line-height: 1.48;
	}

	.gcma-case-study__back {
		margin-bottom: 24px;
	}

	.gcma-case-study__hero-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.gcma-case-study__hero .gcma-button {
		width: 100%;
	}

	.gcma-portfolio-archive__content {
		padding: 48px 14px 64px;
	}

	.gcma-portfolio-archive__advice {
		align-items: stretch;
		grid-template-columns: 1fr;
		margin: 40px auto;
		padding: 0 16px;
	}

	.gcma-portfolio-archive__advice h2 {
		font-size: 28px;
	}

	.gcma-portfolio-archive__content .gcma-project-filters {
		border-radius: var(--gcma-radius);
		justify-content: flex-start;
		margin-inline: 0;
		top: calc(var(--gcma-mobile-topbar-height) + env(safe-area-inset-top) + 8px);
	}

	.gcma-portfolio-archive__content .gcma-project-filters::before {
		border-radius: var(--gcma-radius);
	}

	.gcma-portfolio-archive__cta,
	.gcma-case-study__cta {
		align-items: stretch;
		flex-direction: column;
		padding: 48px 18px;
	}

	.gcma-portfolio-archive__cta .gcma-button,
	.gcma-case-study__cta .gcma-button {
		width: 100%;
	}

	.gcma-case-study__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0 14px;
	}

	.gcma-case-study__facts > div {
		min-height: 105px;
		padding: 20px 14px;
	}

	.gcma-case-study__facts > div:nth-child(odd) {
		border-left: 0;
	}

	.gcma-case-study__facts > div:nth-child(n + 3) {
		border-top: 1px solid var(--gcma-line);
	}

	.gcma-case-study__introduction {
		padding: 64px 18px;
	}

	.gcma-case-study__richtext {
		font-size: 24px;
	}

	.gcma-case-study__story section {
		padding: 58px 20px;
	}

	.gcma-case-study__story section > span {
		font-size: 76px;
		right: 18px;
		top: 28px;
	}

	.gcma-case-study__metrics {
		padding: 58px 18px;
	}

	.gcma-case-study__metrics dl {
		grid-template-columns: 1fr;
	}

	.gcma-case-study__metrics dl > div {
		min-height: 150px;
	}

	.gcma-case-study__gallery {
		padding: 64px 14px;
	}

	.gcma-case-study__gallery-grid {
		grid-template-columns: 1fr;
	}

	.gcma-case-study__gallery-item,
	.gcma-case-study__gallery-item:nth-child(3n + 1) {
		aspect-ratio: 4 / 3;
		grid-column: auto;
	}

	.gcma-case-study__hero-image {
		object-position: center top;
	}

	.gcma-case-study__hero-veil,
	html:not([data-gcma-theme="dark"]) .gcma-case-study__hero-veil {
		background: linear-gradient(180deg, rgba(2, 10, 28, 0.04) 0%, rgba(2, 10, 28, 0.2) 40%, rgba(2, 10, 28, 0.94) 74%);
	}

	.gcma-case-study__hero-controls {
		bottom: calc(var(--gcma-bottom-nav-height) + env(safe-area-inset-bottom) + 16px);
	}

	.gcma-project-lightbox__dialog {
		border-radius: 24px;
		inset: 10px;
	}

	.gcma-project-lightbox__dialog figure {
		padding: 64px 12px 76px;
	}

	.gcma-project-lightbox__dialog figure img {
		border-radius: 14px;
		max-height: calc(100svh - 190px);
	}

	.gcma-project-lightbox__close,
	.gcma-project-lightbox__arrow {
		height: 44px;
		width: 44px;
	}

	.gcma-project-lightbox__close {
		right: 12px;
		top: 12px;
	}

	.gcma-project-lightbox__arrow {
		bottom: 18px;
		top: auto;
		transform: none;
	}

	.gcma-project-lightbox__arrow--prev {
		left: 18px;
	}

	.gcma-project-lightbox__arrow--next {
		right: 18px;
	}

	.gcma-case-study__technologies {
		align-items: flex-start;
		flex-direction: column;
		padding: 42px 18px;
	}

	.gcma-case-study__technologies ul {
		justify-content: flex-start;
	}

	.gcma-case-study__navigation {
		grid-template-columns: 1fr;
	}

	.gcma-case-study__navigation a,
	.gcma-case-study__navigation a:only-child:last-child {
		grid-column: auto;
		min-height: 130px;
		padding: 30px 18px;
	}

	.gcma-case-study__navigation a + a {
		border-left: 0;
		place-content: center start;
		text-align: left;
	}

	.gcma-projects-section__action .gcma-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gcma-case-study__gallery-grid img,
	.gcma-case-study__navigation a {
		transition: none;
	}
}
.gcma-case-study__artisan-link {
	margin: 18px auto 36px;
	max-width: 1296px;
	padding-inline: clamp(18px, 5vw, 72px);
}

.gcma-case-study__artisan-link a {
	color: var(--gcma-blue);
	font-weight: 850;
	text-decoration: none;
}

.gcma-case-study__artisan-link a:focus-visible {
	outline: 3px solid var(--gcma-cyan);
	outline-offset: 3px;
}

@media (min-width: 1181px) {
	.gcma-portfolio-archive__project-title {
		font-size: clamp(40px, 3.7vw, 54px);
	}

	.gcma-portfolio-archive__project-title--long {
		font-size: clamp(36px, 3.3vw, 48px);
	}

	.gcma-case-study__hero h1 {
		font-size: clamp(42px, 4vw, 58px);
	}

	.gcma-portfolio-archive__cta h2,
	.gcma-case-study__cta h2,
	.gcma-case-study__metrics > h2,
	.gcma-case-study__gallery > h2 {
		font-size: clamp(34px, 3.6vw, 50px);
	}
}

@media (max-width: 760px) {
	.gcma-portfolio-archive__hero-slide {
		padding-bottom: calc(var(--gcma-bottom-nav-height) + env(safe-area-inset-bottom) + 70px);
	}

	.gcma-portfolio-archive__hero-veil,
	html:not([data-gcma-theme="dark"]) .gcma-portfolio-archive__hero-veil {
		background: linear-gradient(180deg, rgba(2, 10, 28, 0.02) 0%, rgba(2, 10, 28, 0.12) 34%, rgba(2, 10, 28, 0.68) 50%, rgba(2, 10, 28, 0.96) 72%, rgba(2, 10, 28, 1) 88%);
	}

	.gcma-portfolio-archive__project-title,
	.gcma-portfolio-archive__project-title--long {
		font-size: clamp(32px, 9.4vw, 38px);
		line-height: 1.02;
		text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
	}

	.gcma-portfolio-archive__hero-copy > p:not(.gcma-kicker) {
		display: -webkit-box;
		font-size: 14px;
		line-height: 1.38;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
	}
}
