/* Shared public components. Editorial layouts are in home.css and pages.css. */
.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: clamp(1.5rem, 3vw, 2.3rem);
	border: 1px solid rgb(162 177 201 / 17%);
	border-radius: 1.15rem;
	background: linear-gradient(145deg, rgb(14 27 51 / 90%), rgb(10 19 39 / 65%));
	transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover,
.service-card:focus-within {
	transform: translateY(-5px);
	border-color: rgb(66 232 255 / 45%);
	box-shadow: 0 18px 50px rgb(0 0 0 / 20%);
}

.service-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2.8rem;
}

.service-card__icon {
	display: grid;
	width: 3rem;
	height: 3rem;
	place-items: center;
	border: 1px solid rgb(66 232 255 / 22%);
	border-radius: 0.8rem;
	background: rgb(40 123 255 / 10%);
	color: var(--vionario-color-cyan);
}

.service-card__icon svg {
	width: 1.4rem;
	height: 1.4rem;
}

.service-card__number,
.work-card__visual-label,
.work-card__coordinate {
	color: var(--vionario-color-muted);
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
}

.service-card h3 {
	margin: 0 0 0.85rem;
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	letter-spacing: -0.035em;
	line-height: 1.25;
}

.service-card p {
	margin: 0 0 1.8rem;
	color: var(--vionario-color-muted);
	font-size: 0.95rem;
}

.service-card__link {
	align-self: flex-start;
	margin-top: auto;
	font-size: 0.88rem;
}

.work-card {
	min-width: 0;
}

.work-card__visual {
	position: relative;
	display: grid;
	min-height: 20rem;
	aspect-ratio: 1.42;
	align-items: center;
	overflow: hidden;
	padding: 4.8rem 10% 3rem;
	border: 1px solid rgb(162 177 201 / 17%);
	border-radius: 1.15rem;
	background: radial-gradient(ellipse at 65% 25%, rgb(40 123 255 / 27%), transparent 68%), #0a1429;
	perspective: 900px;
}

.work-card--editorial .work-card__visual {
	background: radial-gradient(ellipse at 70% 25%, rgb(120 102 255 / 25%), transparent 65%), #10162c;
}

.work-card__visual-label {
	position: absolute;
	top: 1.6rem;
	left: 1.6rem;
}

.work-card__coordinate {
	position: absolute;
	right: 1.6rem;
	bottom: 1.3rem;
	color: var(--vionario-color-cyan);
}

.work-mockup {
	position: relative;
	width: 100%;
	border: 1px solid rgb(162 177 201 / 26%);
	border-radius: 0.5rem;
	background: #07101e;
	box-shadow: 0 2rem 3rem rgb(0 0 0 / 40%);
	transform: rotateX(8deg) rotateY(-12deg) rotateZ(-3deg);
	transition: transform 450ms ease;
}

.work-card:hover .work-mockup {
	transform: rotateX(2deg) rotateY(-5deg) rotateZ(-1deg);
}

.work-card--editorial .work-mockup {
	transform: rotateX(8deg) rotateY(12deg) rotateZ(3deg);
}

.work-card--editorial:hover .work-mockup {
	transform: rotateX(2deg) rotateY(5deg) rotateZ(1deg);
}

.work-mockup__bar {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.65rem;
	border-bottom: 1px solid rgb(162 177 201 / 14%);
}

.work-mockup__bar i {
	width: 0.22rem;
	height: 0.22rem;
	border-radius: 50%;
	background: #7687a3;
}

.work-mockup__bar > span {
	width: 25%;
	height: 0.2rem;
	margin-left: auto;
	background: #34445e;
}

.work-mockup__body {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 8%;
	align-items: center;
	padding: 9% 8%;
}

.work-mockup__copy > * {
	display: block;
	height: 0.35rem;
	margin-bottom: 0.6rem;
	border-radius: 0.1rem;
	background: #e4edff;
}

.work-mockup__copy > span {
	width: 35%;
	height: 0.2rem;
	background: var(--vionario-color-cyan);
}

.work-mockup__copy > b {
	height: clamp(0.35rem, 1vw, 0.8rem);
}

.work-mockup__copy > b:nth-child(3) {
	width: 75%;
}

.work-mockup__copy > i {
	width: 32%;
	height: 0.65rem;
	margin-top: 1rem;
	background: var(--vionario-color-royal-blue);
}

.work-mockup__art {
	position: relative;
	aspect-ratio: 1;
	border: 1px solid rgb(66 232 255 / 20%);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #42e8ff, #287bff 35%, #101a40 70%);
	box-shadow: 0 0 40px rgb(40 123 255 / 25%);
}

.work-mockup__art span {
	position: absolute;
	inset: 12%;
	border: 1px solid rgb(245 249 255 / 35%);
	border-radius: 50%;
	transform: rotate(-25deg) scaleX(0.5);
}

.work-mockup__art span:nth-child(2) {
	transform: rotate(25deg) scaleX(0.5);
}

.work-mockup__art span:nth-child(3) {
	transform: rotate(90deg) scaleX(0.5);
}

.work-mockup__tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 5%;
	padding: 0 8% 8%;
}

.work-mockup__tiles span {
	aspect-ratio: 2.2;
	border: 1px solid rgb(162 177 201 / 12%);
	border-radius: 0.2rem;
	background: linear-gradient(130deg, #142440, #0c1729);
}

.work-card--editorial .work-mockup__art {
	border-radius: 1rem 1rem 45% 45%;
	background: linear-gradient(135deg, #c9d1fc, #7866ff 45%, #1c224d);
	transform: rotate(-15deg);
}

.work-card--editorial .work-mockup__copy > i {
	background: var(--vionario-color-violet);
}

.work-card__details {
	padding: 1.6rem 0.2rem 0;
}

.work-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.7rem 1.2rem;
	margin-bottom: 0.9rem;
	color: var(--vionario-color-muted);
	font-size: 0.77rem;
}

.status-label {
	display: inline-flex;
	width: fit-content;
	padding: 0.25rem 0.6rem;
	border: 1px solid rgb(162 177 201 / 25%);
	border-radius: 999px;
	color: var(--vionario-color-muted);
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.5;
}

.work-card h3 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.35rem, 2.5vw, 1.8rem);
	letter-spacing: -0.035em;
	line-height: 1.3;
}

.work-card__details > p {
	max-width: 45ch;
	margin: 0;
	color: var(--vionario-color-muted);
	font-size: 0.88rem;
}

.post-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgb(162 177 201 / 17%);
	border-radius: 1rem;
	background: var(--vionario-color-secondary);
	transition: border-color 220ms ease, transform 220ms ease;
}

.post-card:hover,
.post-card:focus-within {
	transform: translateY(-4px);
	border-color: rgb(66 232 255 / 35%);
}

.post-card__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1.8;
	border-bottom: 1px solid rgb(162 177 201 / 12%);
}

.post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__image--abstract {
	background: radial-gradient(ellipse at 30% 90%, rgb(40 123 255 / 34%), transparent 65%), #0b1730;
}

.post-card__image--abstract span {
	position: absolute;
	top: 25%;
	left: 25%;
	width: 60%;
	aspect-ratio: 1;
	border: 1px solid rgb(66 232 255 / 42%);
	border-radius: 50%;
	transform: rotate(-30deg) scaleY(0.5);
}

.post-card__image--abstract span:nth-child(2) {
	top: 10%;
	left: 15%;
	border-color: rgb(40 123 255 / 70%);
}

.post-card__image--abstract span:nth-child(3) {
	top: -5%;
	left: 5%;
	border-color: rgb(120 102 255 / 50%);
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.5rem;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	color: var(--vionario-color-muted);
	font-size: 0.75rem;
}

.post-card h2,
.post-card h3 {
	margin: 1rem 0 0.75rem;
	font-size: 1.35rem;
	letter-spacing: -0.035em;
	line-height: 1.3;
}

.post-card h2 a,
.post-card h3 a {
	color: var(--vionario-color-text);
	text-decoration: none;
}

.post-card__body > p {
	margin: 0 0 1.5rem;
	color: var(--vionario-color-muted);
	font-size: 0.9rem;
}

.post-card .text-link {
	align-self: flex-start;
	margin-top: auto;
	font-size: 0.85rem;
}

.closing-cta__panel {
	position: relative;
	overflow: hidden;
	padding: clamp(2rem, 7vw, 6rem);
	border: 1px solid rgb(40 123 255 / 45%);
	border-radius: 1.5rem;
	background: radial-gradient(ellipse at 90% 80%, rgb(40 123 255 / 30%), transparent 65%), linear-gradient(120deg, #0c1c3c, #071124);
}

.closing-cta__content {
	position: relative;
	z-index: 1;
	max-width: 46rem;
}

.closing-cta h2 {
	max-width: 13ch;
	margin: 0 0 1.4rem;
	font-size: clamp(2.2rem, 5.2vw, 4.5rem);
	font-weight: 550;
	letter-spacing: -0.055em;
	line-height: 1.06;
}

.closing-cta .lead {
	max-width: 42ch;
	margin-bottom: 2rem;
}

.closing-cta__orbit {
	position: absolute;
	top: -15%;
	right: -25%;
	width: 75%;
	aspect-ratio: 1;
	border: 1px solid rgb(66 232 255 / 25%);
	border-radius: 50%;
	box-shadow: 0 0 0 3rem rgb(40 123 255 / 7%), 0 0 0 6rem rgb(40 123 255 / 5%), 0 0 0 9rem rgb(40 123 255 / 3%);
	transform: rotate(-30deg) scaleX(0.6);
}

.page-intro {
	position: relative;
	overflow: hidden;
	padding: clamp(4.5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
	border-bottom: 1px solid rgb(162 177 201 / 15%);
	background: radial-gradient(ellipse at 90% 0, rgb(40 123 255 / 12%), transparent 60%);
}

.page-intro__grid {
	position: absolute;
	top: 0;
	right: 0;
	width: 50%;
	height: 100%;
	background-image: linear-gradient(rgb(162 177 201 / 6%) 1px, transparent 1px), linear-gradient(90deg, rgb(162 177 201 / 6%) 1px, transparent 1px);
	background-size: 4rem 4rem;
	mask-image: linear-gradient(90deg, transparent, #000);
}

.page-intro__inner {
	position: relative;
	max-width: 80rem;
}

.page-intro .display-title {
	max-width: 15ch;
	margin-block: 1.2rem 1.8rem;
	font-size: clamp(2.5rem, 6.8vw, 6.2rem);
	letter-spacing: -0.06em;
	line-height: 1.04;
}

.page-intro .lead {
	max-width: 48ch;
}

@media (max-width: 599px) {
	.work-card__visual {
		min-height: 15rem;
		padding-inline: 8%;
	}

	.service-card__top {
		margin-bottom: 2rem;
	}

	.closing-cta__orbit {
		top: 45%;
		right: -40%;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.service-card,
	.post-card,
	.work-mockup {
		transition: none;
	}

	.service-card:hover,
	.service-card:focus-within,
	.post-card:hover,
	.post-card:focus-within {
		transform: none;
	}

	.work-card:hover .work-mockup {
		transform: rotateX(8deg) rotateY(-12deg) rotateZ(-3deg);
	}

	.work-card--editorial:hover .work-mockup {
		transform: rotateX(8deg) rotateY(12deg) rotateZ(3deg);
	}
}
