/* Site-wide page and section layout. */

.cl-section {
	padding: clamp(82px, 10vw, 150px) 0;
	border-top: 1px solid var(--cl-line);
}

.cl-section-soft {
	background: var(--cl-bg-soft);
}

.cl-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 42px;
}

.cl-section-head small,
.cl-contact small,
.cl-profile-label small {
	display: block;
	margin-bottom: 12px;
	color: var(--cl-blue);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.16em;
}

.cl-section-head h2,
.cl-contact h2 {
	margin: 0;
	font-size: clamp(2rem, 5vw, 4.6rem);
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.cl-section-head > a {
	color: var(--cl-muted);
	font-size: 0.82rem;
	text-decoration: none;
}

.cl-section-head > a:hover {
	color: var(--cl-magenta);
}

.cl-work-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

@media (max-width: 900px) {
	.cl-work-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.cl-section {
		padding: 72px 0;
	}

	.cl-work-grid {
		grid-template-columns: 1fr;
	}

	.cl-section-head {
		align-items: start;
		flex-direction: column;
	}
}

/* Each major area remains dark while the surrounding page stays light. */
.cl-front .cl-section,
.cl-front .cl-contact {
	width: min(1500px, calc(100% - 32px));
	margin-inline: auto;
	overflow: hidden;
	border: 1px solid rgba(8, 10, 18, 0.08);
	border-radius: 28px;
	box-shadow: 0 18px 50px rgba(28, 33, 50, 0.10);
}

.cl-front .cl-section {
	margin-top: 18px;
	background: var(--cl-bg);
}

.cl-front .cl-section-soft {
	background: var(--cl-bg-soft);
}

.cl-front .cl-contact {
	margin-top: 18px;
}

.cl-front .cl-site-footer {
	margin-top: 18px;
}

@media (max-width: 600px) {
	.cl-front #main {
		padding-top: 8px;
	}

	.cl-front .cl-section,
	.cl-front .cl-contact {
		width: calc(100% - 16px);
		border-radius: 20px;
	}

	.cl-front .cl-section,
	.cl-front .cl-contact {
		margin-top: 8px;
	}

	.cl-front .cl-site-footer {
		margin-top: 8px;
	}
}



/* Front page layout. */

.cl-front #container,
.cl-front #content {
	margin: 0;
	max-width: none;
	padding: 0;
}

.cl-hero {
	position: relative;
	overflow: hidden;
	min-height: calc(100svh - 82px);
	display: grid;
	align-items: center;
	padding: 72px 0;
	background:
		radial-gradient(circle at 76% 38%, rgba(109, 125, 255, 0.2), transparent 24%),
		radial-gradient(circle at 84% 54%, rgba(240, 74, 169, 0.16), transparent 22%),
		linear-gradient(135deg, #080a12 0%, #0d1020 58%, #080a12 100%);
}

.cl-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
	background-size: 100% 9px;
	mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.cl-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(340px, .7fr);
	align-items: center;
	gap: clamp(44px, 8vw, 120px);
}

.cl-eyebrow {
	margin: 0 0 22px;
	color: var(--cl-blue);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.18em;
}

.cl-hero h1 {
	margin: 0;
	font-size: clamp(3.4rem, 7.3vw, 7.4rem);
	line-height: 0.98;
	letter-spacing: -0.075em;
}

.cl-hero h1 span {
	color: transparent;
	-webkit-text-stroke: 1px rgba(255,255,255,.62);
}

.cl-hero-lead {
	max-width: 620px;
	margin: 34px 0 0;
	color: var(--cl-muted);
	font-size: clamp(0.96rem, 1.4vw, 1.12rem);
	line-height: 2;
}

.cl-hero-lead > :first-child {
	margin-top: 0;
}

.cl-hero-lead > :last-child {
	margin-bottom: 0;
}

.cl-hero-lead > p:last-child {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.cl-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.cl-hero-visual {
	position: relative;
	display: grid;
	aspect-ratio: 4 / 5;
	align-content: end;
	padding: 42px;
	overflow: hidden;
	border: 1px solid var(--cl-line);
	border-radius: 28px;
	background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
	box-shadow: 0 40px 100px rgba(0,0,0,.45);
}

.cl-hero-visual::before {
	content: "";
	position: absolute;
	inset: 8% 10%;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 50%;
	transform: rotate(-12deg);
}

.cl-orbit {
	position: absolute;
	width: 68%;
	aspect-ratio: 1;
	top: 10%;
	left: 16%;
	border: 1px solid rgba(109,125,255,.7);
	border-radius: 50%;
	box-shadow: 0 0 80px rgba(109,125,255,.24);
}

.cl-hero-visual strong {
	position: relative;
	font-size: clamp(2.3rem, 4.4vw, 4.8rem);
	line-height: .86;
	letter-spacing: -.07em;
}

.cl-hero-visual > span {
	position: relative;
	margin-top: 14px;
	color: var(--cl-muted);
	font-size: .7rem;
	letter-spacing: .24em;
}

.cl-levels {
	position: absolute;
	top: 12%;
	right: 8%;
	display: flex;
	align-items: end;
	gap: 5px;
	height: 88px;
}

.cl-levels i {
	display: block;
	width: 4px;
	height: 18%;
	background: var(--cl-magenta);
	box-shadow: 0 0 10px rgba(240,74,169,.65);
	animation: cl-level 1.5s ease-in-out infinite alternate;
}

.cl-levels i:nth-child(2) { height: 76%; animation-delay: -.3s; }
.cl-levels i:nth-child(3) { height: 42%; animation-delay: -.6s; }
.cl-levels i:nth-child(4) { height: 95%; animation-delay: -.9s; }
.cl-levels i:nth-child(5) { height: 54%; animation-delay: -1.2s; }
.cl-levels i:nth-child(6) { height: 82%; animation-delay: -.4s; }
.cl-levels i:nth-child(7) { height: 28%; animation-delay: -.8s; }

@keyframes cl-level {
	to { transform: scaleY(.25); opacity: .55; }
}

.cl-section-intro,
.cl-service-intro {
	max-width: 860px;
	margin: -8px 0 20px;
	color: var(--cl-muted);
	font-size: clamp(1rem, 1.4vw, 1.12rem);
	line-height: 1.9;
}

.cl-section-intro > :first-child,
.cl-service-intro > :first-child {
	margin-top: 0;
}

.cl-section-intro > :last-child,
.cl-service-intro > :last-child {
	margin-bottom: 0;
}

.cl-service-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--cl-line);
	border-left: 1px solid var(--cl-line);
}

.cl-service {
	min-height: 260px;
	padding: clamp(14px, 2vw, 27px) clamp(28px, 4vw, 54px) clamp(34px, 4.8vw, 65px);
	border-right: 1px solid var(--cl-line);
	border-bottom: 1px solid var(--cl-line);
}

.cl-service span {
	display: block;
	line-height: 1;
	color: var(--cl-magenta);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .12em;
}

.cl-service h3 {
	margin: 0 0 8px;
	font-size: clamp(1.5rem, 3vw, 2.7rem);
}

.cl-service h3 a {
	color: var(--cl-text);
	text-decoration: none;
}

.cl-service h3 a:hover {
	color: var(--cl-magenta);
}

.cl-service p,
.cl-profile-copy p {
	color: var(--cl-muted);
	line-height: 1.9;
}

.cl-profile-section {
	background: linear-gradient(125deg, #0b0d16 0%, #11162a 52%, #190e1d 100%);
}

.cl-profile-grid {
	display: grid;
	grid-template-columns: .75fr 1.25fr;
	gap: 70px;
}

.cl-profile-label > span {
	display: block;
	margin-top: 60px;
	color: rgba(255,255,255,.06);
	font-size: clamp(4rem, 10vw, 9rem);
	font-weight: 900;
	line-height: .8;
	writing-mode: vertical-rl;
}

.cl-profile-copy h2 {
	margin: 0;
	font-size: clamp(2.8rem, 6vw, 6rem);
	letter-spacing: -.06em;
}

.cl-profile-copy h2 span {
	display: block;
	margin-top: 16px;
	color: var(--cl-muted);
	font-size: .78rem;
	letter-spacing: .18em;
}

.cl-profile-content {
	display: flow-root;
	margin-top: 24px;
}

.cl-profile-content img {
	max-width: 100%;
	height: auto;
}

.cl-profile-role {
	margin-top: 50px;
	color: var(--cl-blue) !important;
	font-weight: 800;
	letter-spacing: .1em;
}

.cl-contact {
	padding: clamp(82px, 10vw, 150px) 0;
	background:
		radial-gradient(circle at 10% 50%, rgba(109,125,255,.22), transparent 30%),
		radial-gradient(circle at 90% 50%, rgba(240,74,169,.18), transparent 28%),
		#090b13;
}

.cl-contact .cl-section-head > div {
	width: 100%;
}

.cl-contact-content > p {
	max-width: none;
	margin: 0 0 30px;
	color: var(--cl-muted);
	line-height: 1.9;
}

.cl-contact-content .formnest-form-container {
	margin: 0;
}

.cl-empty {
	padding: 32px;
	border: 1px solid var(--cl-line);
	color: var(--cl-muted);
}

@media (max-width: 900px) {
	.cl-hero {
		min-height: auto;
	}

	.cl-hero-grid {
		grid-template-columns: 1fr;
	}

	.cl-hero-visual {
		aspect-ratio: 16 / 10;
	}

	.cl-profile-grid {
		grid-template-columns: 1fr;
	}

	.cl-profile-label > span {
		display: none;
	}

}

@media (max-width: 600px) {
	.cl-hero {
		padding: 62px 0;
	}

	.cl-eyebrow {
		font-size: .55rem;
		letter-spacing: .06em;
		white-space: nowrap;
	}

	.cl-hero-visual > span {
		font-size: .5rem;
		letter-spacing: .06em;
		white-space: nowrap;
	}

	.cl-hero h1 {
		font-size: clamp(3rem, 15vw, 4.5rem);
	}

	.cl-hero-visual {
		aspect-ratio: 4 / 5;
		padding: 26px;
	}

	.cl-service-grid {
		grid-template-columns: 1fr;
	}

	.cl-service {
		min-height: auto;
	}

	.cl-profile-content img.alignright {
		float: none;
		width: min(42%, 150px);
		margin: 0 4% 16px 0;
		vertical-align: top;
	}

	.cl-contact h2 br {
		display: none;
	}
}

.cl-front .cl-hero {
	width: min(1500px, calc(100% - 32px));
	margin-inline: auto;
	overflow: hidden;
	border: 1px solid rgba(8, 10, 18, 0.08);
	border-radius: 28px;
	box-shadow: 0 18px 50px rgba(28, 33, 50, 0.12);
}

@media (max-width: 600px) {
	.cl-front .cl-hero {
		width: calc(100% - 16px);
		border-radius: 20px;
	}
}


/* Recent works keep the section width while fitting four cards per row. */
.cl-work-grid-recent {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cl-work-grid-recent .cl-work-card-body {
	padding: 16px 16px 20px;
}

.cl-work-grid-recent .cl-work-card h3 {
	font-size: 1rem;
}

@media (max-width: 1050px) {
	.cl-work-grid-recent {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.cl-work-grid-recent {
		grid-template-columns: 1fr;
	}
}

/* Inner page, archive, and single-page layout. */

.cl-inner .cl-site-header,
.cl-inner .cl-site-footer {
	color: var(--cl-text);
}

.cl-page-shell,
.cl-list-shell {
	margin: 18px auto;
}

.cl-page-shell {
	width: min(var(--cl-width), calc(100% - 48px));
}

.cl-list-shell {
	width: min(1500px, calc(100% - 32px));
}

.cl-page-article,
.cl-list-card {
	overflow: hidden;
	padding: clamp(30px, 6vw, 82px);
	border: 1px solid rgba(8, 10, 18, 0.08);
	border-radius: 28px;
	background:
		radial-gradient(circle at 92% 8%, rgba(109, 125, 255, .16), transparent 22%),
		var(--cl-bg);
	box-shadow: 0 18px 50px rgba(28, 33, 50, 0.10);
}

.cl-page-header {
	max-width: 980px;
	margin-bottom: clamp(42px, 7vw, 90px);
}

.cl-list-header {
	max-width: none;
	margin-bottom: clamp(42px, 7vw, 90px);
}

.cl-page-header > small,
.cl-list-header > small {
	display: block;
	margin-bottom: 16px;
	color: var(--cl-blue);
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .16em;
}

.cl-page-header h1,
.cl-list-header h1 {
	margin: 0;
	font-size: clamp(2.5rem, 6.5vw, 6.7rem);
	line-height: 1.08;
	letter-spacing: -.06em;
}

.cl-page-article-contact-complete .cl-page-header {
	max-width: none;
	margin-bottom: clamp(28px, 4vw, 56px);
}

.cl-page-article-contact-complete .cl-page-header h1 {
	font-size: clamp(2.5rem, 4vw, 4rem);
	text-wrap: balance;
}

.cl-page-article-contact-complete .cl-entry-content {
	max-width: none;
}

.cl-list-header p,
.cl-list-description {
	margin: 24px 0 0;
	color: var(--cl-muted);
	line-height: 1.9;
}

.cl-page-image {
	margin: 0 0 clamp(38px, 6vw, 72px);
}

.cl-page-image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 18px;
}

.cl-work-main-image {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
}

.cl-work-main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cl-entry-content {
	max-width: 900px;
	color: #e5e7ef;
	font-size: clamp(.98rem, 1.4vw, 1.08rem);
	line-height: 2;
}

.cl-entry-content > *:first-child {
	margin-top: 0;
}

.cl-entry-content h2,
.cl-entry-content h3 {
	margin: 2.2em 0 .8em;
	line-height: 1.35;
}

.cl-entry-content a:not(.cl-button) {
	color: #9ea9ff;
}

.cl-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.cl-detail-meta {
	display: flex;
	gap: 16px;
	margin-bottom: 18px;
	color: var(--cl-muted);
	font-size: .75rem;
}

.cl-detail-meta span {
	color: var(--cl-blue);
	font-weight: 800;
}

.cl-credit-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 40px 0 0;
	background: var(--cl-line);
	border: 1px solid var(--cl-line);
}

.cl-credit-list > div {
	padding: 18px;
	background: var(--cl-surface);
}

.cl-credit-list dt {
	color: var(--cl-muted);
	font-size: .7rem;
}

.cl-credit-list dd {
	margin: 7px 0 0;
	font-weight: 700;
}

.cl-list-card > .cl-container {
	width: 100%;
	max-width: none;
}

.cl-list-card .cl-work-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.date .cl-list-header {
	margin-bottom: 30px;
}

.cl-period-nav {
	display: grid;
	width: min(720px, 100%);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	gap: 10px;
	margin: 0 auto 36px;
	font-size: clamp(.82rem, 1.1vw, .94rem);
}

.cl-works-index .cl-list-header {
	margin-bottom: 30px;
}

.cl-year-filter {
	display: grid;
	width: min(960px, 100%);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0 auto 36px;
	font-size: clamp(.82rem, 1.1vw, .94rem);
}

.cl-works-index .cl-year-filter-count-1 {
	width: min(232px, 100%);
	grid-template-columns: minmax(0, 1fr);
}

.cl-works-index .cl-year-filter-count-2 {
	width: min(474px, 100%);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cl-works-index .cl-year-filter-count-3 {
	width: min(716px, 100%);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category .cl-list-header {
	margin-bottom: clamp(21px, 3.5vw, 45px);
}

.cl-taxonomy-filter {
	width: min(320px, 100%);
	margin: 0 auto 36px;
}

.cl-archive-select-field {
	position: relative;
	display: block;
}

:is(.cl-period-nav a, .cl-year-filter a, .cl-archive-select-field) {
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	border: 1px solid rgba(109, 125, 255, .42);
	border-radius: 999px;
	background: linear-gradient(120deg, rgba(109, 125, 255, .11), rgba(240, 74, 169, .055));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
	color: var(--cl-muted);
	font: inherit;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

:is(.cl-period-nav a, .cl-year-filter a) {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
}

.cl-archive-select-field::after {
	position: absolute;
	top: 50%;
	right: 18px;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	content: "";
	pointer-events: none;
	transform: translateY(-70%) rotate(45deg);
}

.cl-archive-jump {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 50px;
	padding: 12px 42px 12px 18px;
	border: 0;
	outline: 0;
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-weight: inherit;
	text-align: center;
	text-align-last: center;
}

.cl-archive-jump option {
	background: var(--cl-surface);
	color: var(--cl-text);
}

:is(.cl-period-nav a, .cl-year-filter a):hover,
.cl-archive-select-field:hover,
.cl-archive-select-field:focus-within {
	border-color: rgba(109, 125, 255, .8);
	box-shadow: 0 10px 28px rgba(109, 125, 255, .16);
	color: var(--cl-text);
}

:is(.cl-period-nav a, .cl-year-filter a):hover {
	transform: translateY(-2px);
}

.cl-year-filter-archive .cl-archive-select-field {
	width: calc(100% - 10px);
	margin-left: 10px;
}

.cl-year-filter-archive-no-next {
	width: min(716px, 100%);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

:is(.cl-period-nav, .cl-year-filter) .cl-period-nav-parent {
	border-color: rgba(109, 125, 255, .82);
	background: linear-gradient(110deg, rgba(109, 125, 255, .29), rgba(240, 74, 169, .17));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 22px rgba(109, 125, 255, .08);
	color: var(--cl-text);
}

.cl-archive-empty {
	margin-bottom: 30px;
	color: var(--cl-muted);
	font-size: clamp(.98rem, 1.4vw, 1.08rem);
	line-height: 2;
}

.cl-archive-empty p {
	margin: 0;
}

.cl-archive-empty p + p {
	margin-top: 0;
}

.cl-archive-empty .cl-archive-empty-title {
	color: var(--cl-text);
	font-weight: 700;
}

.navigation.pagination {
	margin-top: 42px;
}

.nav-links {
	display: flex;
	gap: 8px;
}

.page-numbers {
	display: grid;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	place-items: center;
	border: 1px solid var(--cl-line);
	border-radius: 999px;
	color: var(--cl-text);
	text-decoration: none;
}

.page-numbers.current {
	border-color: transparent;
	background: linear-gradient(100deg, var(--cl-blue), var(--cl-magenta));
}

@media (max-width: 1050px) {
	.cl-list-card .cl-work-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.cl-page-shell {
		width: min(var(--cl-width), calc(100% - 32px));
	}

	.cl-credit-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.cl-page-shell,
	.cl-list-shell {
		margin-block: 8px;
	}

	.cl-list-shell {
		width: calc(100% - 16px);
	}

	.cl-page-article,
	.cl-list-card {
		padding: 28px 18px 44px;
		border-radius: 20px;
	}

	.cl-page-article-contact-complete .cl-page-header h1 {
		font-size: clamp(2rem, 9vw, 2.3rem);
	}

	.cl-list-shell {
		width: calc(100% - 16px);
	}


	.cl-list-card .cl-work-grid {
		grid-template-columns: 1fr;
	}
}

/* 404 page. */
.cl-404-shell {
	padding: 18px 0;
}

.cl-404-panel {
	width: min(1500px, calc(100% - 32px));
	margin-inline: auto;
	display: grid;
	min-height: min(720px, calc(100vh - 174px));
	grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
	align-items: center;
	gap: clamp(36px, 6vw, 92px);
	padding: clamp(38px, 7vw, 92px);
	border: 1px solid rgba(8, 10, 18, .08);
	border-radius: 28px;
	background:
		radial-gradient(circle at 10% 20%, rgba(109, 125, 255, .22), transparent 30%),
		radial-gradient(circle at 92% 88%, rgba(240, 74, 169, .18), transparent 28%),
		var(--cl-bg);
	box-shadow: 0 18px 50px rgba(28, 33, 50, .10);
}

.cl-404-number {
	justify-self: stretch;
	box-sizing: border-box;
	padding-left: 5%;
	text-align: left;
	color: transparent;
	font-size: clamp(8rem, 18vw, 15rem);
	font-weight: 900;
	line-height: .8;
	letter-spacing: -.1em;
	-webkit-text-stroke: 2px var(--cl-blue);
	text-shadow: 20px 20px 0 rgba(240, 74, 169, .18);
}

.cl-404-kicker {
	margin: 0 0 18px;
	color: var(--cl-blue);
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .18em;
}

.cl-404-content h1 {
	max-width: 720px;
	margin: 0;
	font-size: clamp(2.5rem, 5.5vw, 5.7rem);
	line-height: 1.08;
	letter-spacing: -.055em;
}

.cl-404-lead {
	max-width: 680px;
	margin: 26px 0 0;
	color: var(--cl-muted);
	line-height: 1.9;
}

@media (max-width: 900px) {
	.cl-404-panel {
		min-height: auto;
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 48px 32px 58px;
	}

	.cl-404-number {
		justify-self: start;
		padding-left: 0;
		text-align: left;
		font-size: clamp(7rem, 30vw, 11rem);
	}
}

@media (max-width: 600px) {
	.cl-404-shell {
		padding: 8px 0;
	}

	.cl-404-panel {
		width: calc(100% - 16px);
		padding: 36px 20px 44px;
		border-radius: 20px;
	}

}
@media (max-width: 600px) {
	.cl-year-filter {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cl-works-index .cl-year-filter-count-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	:is(.cl-period-nav a, .cl-year-filter a, .cl-archive-select-field) {
		min-height: 48px;
		font-size: .74rem;
	}

	:is(.cl-period-nav a, .cl-year-filter a) {
		padding-inline: 8px;
	}

	.cl-archive-jump {
		min-height: 46px;
		padding-inline: 8px 32px;
	}

	.cl-year-filter-archive .cl-archive-select-field {
		width: 100%;
		margin-left: 0;
	}
}

/* Work detail page. */
.cl-work-detail-shell {
	padding: 18px 0;
}

.cl-work-detail-card {
	box-sizing: border-box;
	width: min(1500px, calc(100% - 32px));
	margin-inline: auto;
	overflow: hidden;
	padding: clamp(34px, 6vw, 86px);
	border: 1px solid rgba(8, 10, 18, .08);
	border-radius: 28px;
	background:
		radial-gradient(circle at 94% 6%, rgba(109, 125, 255, .17), transparent 24%),
		var(--cl-bg);
	box-shadow: 0 18px 50px rgba(28, 33, 50, .10);
}

.cl-work-detail-header {
	margin-bottom: clamp(42px, 6vw, 78px);
}

.cl-work-detail-header .cl-detail-meta {
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 22px;
}

.cl-detail-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 10px;
}

.cl-detail-categories i {
	color: rgba(255, 255, 255, .32);
	font-style: normal;
}

.cl-detail-categories a {
	color: var(--cl-blue);
	font-weight: 800;
	text-decoration: none;
}

.cl-detail-categories a:hover,
.cl-detail-categories a:focus-visible {
	color: var(--cl-magenta);
}

.cl-work-detail-header h1 {
	max-width: none;
	margin: 0;
	font-size: clamp(3rem, 7vw, 7.3rem);
	line-height: 1.02;
	letter-spacing: -.065em;
	overflow-wrap: anywhere;
}

.cl-work-detail-intro {
	display: block;
}

.cl-work-detail-figure {
	float: right;
	width: 180px;
	min-width: 0;
	margin: 0 0 24px clamp(24px, 3vw, 42px);
}

.cl-work-detail-image {
	display: grid;
	width: 100%;
	position: relative;
	overflow: hidden;
	aspect-ratio: 1;
	place-items: center;
	border: 1px solid var(--cl-line);
	border-radius: 20px;
	background: #05060b;
}

.cl-work-detail-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.cl-work-detail-image.is-error {
	min-height: 0;
}

.cl-work-detail-image-fallback {
	display: grid;
	position: absolute;
	inset: 0;
	place-items: center;
	color: rgba(255, 255, 255, .28);
	font-size: clamp(1.4rem, 4vw, 2.6rem);
	font-weight: 800;
	letter-spacing: .22em;
}

.cl-work-detail-figure figcaption {
	margin-top: 12px;
	white-space: nowrap;
	color: var(--cl-muted);
	font-size: .72rem;
	text-align: right;
}

.cl-work-detail-figure figcaption a {
	text-decoration: none;
}

.cl-work-detail-figure figcaption a:hover,
.cl-work-detail-figure figcaption a:focus-visible {
	color: var(--cl-text);
}

.cl-work-detail-copy {
	box-sizing: border-box;
	min-width: 0;
	padding: clamp(26px, 4vw, 50px);
	border: 1px solid var(--cl-line);
	border-radius: 20px;
	background: linear-gradient(145deg, rgba(109, 125, 255, .10), rgba(21, 25, 39, .94) 45%);
}

.cl-work-detail-copy::after {
	display: block;
	clear: both;
	content: "";
}

.cl-work-detail-kicker,
.cl-work-subhead p {
	margin: 0 0 14px;
	color: var(--cl-blue);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .18em;
}

.cl-work-detail-copy h2,
.cl-work-subhead h2 {
	margin: 0;
	font-size: clamp(1.8rem, 3.4vw, 3.4rem);
	line-height: 1.12;
	letter-spacing: -.04em;
}

.cl-work-body {
	max-width: none;
	margin-top: clamp(24px, 3vw, 38px);
}

.cl-work-body p {
	margin: 0 0 1em;
}

.cl-work-body p:last-child {
	margin-bottom: 0;
}

.cl-work-video-section {
	margin-top: clamp(64px, 8vw, 112px);
	padding-top: clamp(42px, 6vw, 72px);
	border-top: 1px solid var(--cl-line);
}

.cl-work-subhead {
	margin-bottom: 30px;
}

.cl-work-video-frame {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--cl-line);
	border-radius: 20px;
	background: #05060b;
}

.cl-work-video-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.cl-work-video-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.cl-work-video-choice {
	display: grid;
	box-sizing: border-box;
	min-width: 0;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 14px;
	padding: 18px 20px;
	border: 1px solid var(--cl-line);
	border-radius: 14px;
	background: var(--cl-surface);
	color: var(--cl-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.cl-work-video-choice > span {
	grid-row: 1 / 3;
	align-self: center;
	color: var(--cl-blue);
	font-size: .76rem;
	font-weight: 800;
}

.cl-work-video-choice strong {
	overflow: hidden;
	font-size: .9rem;
	line-height: 1.45;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cl-work-video-choice small {
	margin-top: 4px;
	color: var(--cl-muted);
	font-size: .7rem;
}

.cl-work-video-choice:hover,
.cl-work-video-choice:focus-visible {
	border-color: rgba(109, 125, 255, .68);
	transform: translateY(-2px);
}

.cl-work-video-choice.is-active {
	border-color: rgba(109, 125, 255, .78);
	background: linear-gradient(115deg, rgba(109, 125, 255, .20), rgba(240, 74, 169, .08));
}

.cl-work-detail-heading-row {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	column-gap: clamp(28px, 4vw, 64px);
	row-gap: 14px;
}

.cl-work-detail-heading {
	flex: 0 0 auto;
}

.cl-work-detail-links {
	display: contents;
}

.cl-work-detail-links .cl-button {
	flex: 0 0 auto;
	min-height: 42px;
	padding: 0 16px;
	font-size: .78rem;
	margin-top: 40px;
	white-space: nowrap;
}

.cl-work-tags {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 18px;
	margin-top: 34px;
	padding-top: 28px;
	border-top: 1px solid var(--cl-line);
}

.cl-work-tags > span {
	color: var(--cl-blue);
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .16em;
}

.cl-work-tags > div {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.cl-work-tags a {
	color: var(--cl-muted);
	font-size: .78rem;
	text-decoration: none;
}

.cl-work-tags a:hover,
.cl-work-tags a:focus-visible {
	color: var(--cl-text);
}

@media (min-width: 601px) and (max-width: 750px) {
	.cl-work-detail-copy {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 180px;
		column-gap: 24px;
	}

	.cl-work-detail-heading-row {
		display: contents;
	}

	.cl-work-detail-heading {
		grid-column: 1;
		grid-row: 1;
	}

	.cl-work-detail-figure {
		float: none;
		grid-column: 2;
		grid-row: 1 / 3;
		margin: 0;
	}

	.cl-work-body {
		grid-column: 1;
		grid-row: 2;
	}

	.cl-work-detail-links {
		display: flex;
		grid-column: 1 / -1;
		grid-row: 3;
		flex-wrap: wrap;
		gap: 10px;
		margin-top: 24px;
	}

	.cl-work-detail-links .cl-button {
		margin-top: 0;
	}
}

@media (max-width: 600px) {
	.cl-work-detail-shell {
		padding: 8px 0;
	}

	.cl-work-detail-card {
		width: calc(100% - 16px);
		padding: 34px 18px 44px;
		border-radius: 20px;
	}

	.cl-work-detail-header .cl-detail-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.cl-work-detail-header h1 {
		font-size: clamp(2.7rem, 15vw, 4.5rem);
	}

	.cl-work-detail-copy {
		display: flex;
		flex-direction: column;
		padding: 26px 20px;
	}

	.cl-work-detail-heading-row {
		display: contents;
	}

	.cl-work-detail-heading {
		order: 1;
	}

	.cl-work-body {
		order: 2;
	}

	.cl-work-detail-figure {
		float: none;
		order: 3;
		width: min(100%, 180px);
		margin: 24px auto 0;
	}

	.cl-work-detail-links {
		display: flex;
		order: 4;
		flex-wrap: wrap;
		gap: 10px;
		justify-content: center;
		margin-top: 20px;
	}

	.cl-work-detail-links .cl-button {
		margin-top: 0;
	}

	.cl-work-video-list {
		grid-template-columns: 1fr;
	}

	.cl-work-video-choice {
		padding: 15px 16px;
	}
}
