/*
 * Brand & Content — warm editorial refinement.
 * Loaded after service-brand-content.css so the established route, semantic
 * markup and interaction hooks stay intact while the visual system becomes
 * lighter and more human.
 */

@property --bc-electric-angle {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

.trinovik-services-page--brand-content {
	--bc-bg: #f5f1ea;
	--bc-panel: #fff;
	--bc-paper: #fffdf9;
	--bc-ink: #25242b;
	--bc-muted: #65626c;
	--bc-faint: #88838d;
	--bc-line: rgba(37, 36, 43, .14);
	--bc-accent: #d633c5;
	--bc-accent-soft: #a62599;
	--bc-plum: #6f3c70;
	background: var(--bc-bg);
	color: var(--bc-ink);
}

.trinovik-services-page--brand-content .site {
	background: var(--bc-bg);
}

.bc-service {
	background:
		linear-gradient(90deg, rgba(37, 36, 43, .035) 1px, transparent 1px) 0 0 / 8.333vw 100%,
		var(--bc-bg);
	color: var(--bc-ink);
}

.bc-service__progress span {
	background: linear-gradient(90deg, #ee725e, var(--bc-accent));
	box-shadow: none;
}

.bc-section {
	padding-block: clamp(100px, 11vw, 170px);
	scroll-margin-top: 108px;
}

.bc-section::before {
	background-image:
		linear-gradient(rgba(37, 36, 43, .025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(37, 36, 43, .025) 1px, transparent 1px);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.bc-eyebrow {
	color: var(--bc-accent-soft);
	font-weight: 700;
}

.bc-section__intro h2,
.bc-approach__header h2 {
	color: var(--bc-ink);
	font-size: clamp(3rem, 5vw, 5.8rem);
	line-height: .94;
}

.bc-section__intro h2 em,
.bc-approach__header h2 em {
	color: var(--bc-accent);
	font-style: normal;
}

.bc-section__intro > p:last-of-type,
.bc-approach__header > p:last-child {
	color: var(--bc-muted);
	font-size: clamp(1rem, 1.08vw, 1.12rem);
}

/* Banner — one photographic anchor with a restrained mask reveal. */

.bc-hero {
	min-height: 100svh;
	padding-top: clamp(140px, 17vh, 190px);
	background:
		radial-gradient(circle at 88% 12%, rgba(214, 51, 197, .1), transparent 27%),
		linear-gradient(115deg, #fffdf9 0 54%, #eee7ee 54% 100%);
}

.bc-hero::after {
	background-image:
		linear-gradient(90deg, rgba(37, 36, 43, .04) 1px, transparent 1px),
		linear-gradient(rgba(37, 36, 43, .035) 1px, transparent 1px);
	mask-image: linear-gradient(to bottom, transparent 6%, #000 28%, #000 82%, transparent);
}

.bc-hero__inner {
	grid-template-columns: minmax(450px, .88fr) minmax(540px, 1.12fr);
	gap: clamp(45px, 6vw, 100px);
}

.bc-hero__copy h1 {
	max-width: 8ch;
	color: var(--bc-ink);
	font-size: clamp(4.7rem, 7.5vw, 8.7rem);
	line-height: .78;
}

.bc-hero__copy h1 em {
	margin-left: clamp(28px, 4vw, 70px);
	color: var(--bc-accent);
	font-style: normal;
}

.bc-hero__proposition {
	color: var(--bc-ink);
	font-size: clamp(1.4rem, 1.75vw, 2rem);
}

.bc-hero__description {
	max-width: 56ch;
	color: var(--bc-muted);
}

.bc-hero__capabilities li {
	border-color: rgba(166, 37, 153, .25);
	background: rgba(255, 255, 255, .6);
	color: #5c5861;
}

.bc-hero__collage {
	width: min(49vw, 790px);
	aspect-ratio: 1.02;
}

.bc-frame--hero {
	inset: 2% 0 2% 3%;
}

.bc-frame--hero i,
.bc-broken-frame i {
	border-color: rgba(166, 37, 153, .58);
}

.bc-fragment {
	border-color: rgba(37, 36, 43, .13);
	background: #e5ded8;
	box-shadow: 0 24px 70px rgba(37, 36, 43, .13);
}

.bc-fragment--portrait {
	top: 3%;
	right: 0;
	width: 88%;
	height: 82%;
	clip-path: inset(0 100% 0 0);
	transition: clip-path 1.15s cubic-bezier(.16, 1, .3, 1), transform 1.15s cubic-bezier(.16, 1, .3, 1);
}

.bc-hero.is-ready .bc-fragment--portrait {
	clip-path: inset(0);
}

.bc-fragment--portrait img {
	object-position: 57% center;
	filter: saturate(.72) contrast(.96) brightness(1.08);
}

.bc-fragment--hands {
	display: none;
}

.bc-fragment--editorial {
	top: auto;
	bottom: 1%;
	left: 0;
	width: 45%;
	height: auto;
	min-height: 170px;
	padding: 25px;
	background: #fff;
	color: var(--bc-ink);
}

.bc-fragment--editorial span,
.bc-fragment--type small {
	color: var(--bc-accent-soft);
}

.bc-fragment--editorial strong {
	color: var(--bc-ink);
}

.bc-fragment--type {
	right: 3%;
	bottom: 1%;
	left: auto;
	width: 29%;
	background: #ee725e;
	color: #fff;
}

.bc-fragment--type small {
	color: rgba(255, 255, 255, .82);
}

.bc-fragment--swatches {
	top: 3%;
	right: auto;
	left: 0;
	width: 11%;
	background: #fff;
}

.bc-fragment--number {
	top: 5%;
	right: 3%;
	color: rgba(255, 255, 255, .72);
}

.bc-hero__scroll {
	color: var(--bc-ink);
}

.bc-hero__scroll i {
	border-color: rgba(37, 36, 43, .35);
}

/* What we solve — centred statement followed by a glass-card reveal. */

.bc-solve {
	background: #f5f1ea;
}

.bc-solve__layout {
	display: block;
}

.bc-solve__intro {
	position: relative;
	top: auto;
	max-width: 980px;
	margin: 0 auto clamp(64px, 8vw, 112px);
	text-align: center;
}

.bc-solve__intro > p:last-child {
	max-width: 760px;
	margin-inline: auto;
}

.bc-solve__states {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.bc-solve-state {
	--bc-electric-angle: 0deg;
	--bc-electric-delay: 0s;
	isolation: isolate;
	min-height: 360px;
	padding: clamp(24px, 2.6vw, 38px);
	border: 1px solid rgba(255, 255, 255, .76);
	border-radius: 26px;
	background: rgba(255, 255, 255, .46);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .92),
		0 22px 62px rgba(37, 36, 43, .07);
	-webkit-backdrop-filter: blur(20px) saturate(130%);
	backdrop-filter: blur(20px) saturate(130%);
	opacity: 0;
	transform: translateX(150px) scale(.98);
	transition:
		opacity .7s ease,
		transform .9s cubic-bezier(.16, 1, .3, 1),
		border-color .45s ease,
		box-shadow .45s ease;
}

.bc-solve-state::before,
.bc-solve-state::after {
	position: absolute;
	content: "";
	pointer-events: none;
}

.bc-solve-state::before {
	inset: -2px;
	z-index: 2;
	padding: 2px;
	border-radius: 27px;
	background: conic-gradient(
		from var(--bc-electric-angle),
		#d633c5 0 9%,
		transparent 15% 27%,
		#f07b58 35% 47%,
		transparent 54% 65%,
		#754cff 73% 84%,
		transparent 92% 100%
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	filter: drop-shadow(0 0 5px rgba(216, 51, 197, .62));
	animation: bc-electric-border 5.5s linear infinite;
	animation-delay: var(--bc-electric-delay);
}

.bc-solve-state::after {
	inset: -5px;
	z-index: -1;
	border-radius: 30px;
	background: conic-gradient(
		from var(--bc-electric-angle),
		rgba(216, 51, 197, .72),
		transparent 24%,
		rgba(240, 123, 88, .65) 42%,
		transparent 61%,
		rgba(117, 76, 255, .66) 79%,
		transparent
	);
	filter: blur(13px);
	opacity: .42;
	animation:
		bc-electric-border 5.5s linear infinite,
		bc-electric-pulse 2.4s ease-in-out infinite;
	animation-delay: var(--bc-electric-delay);
}

.bc-solve-state:nth-child(even) {
	transform: translateX(150px) scale(.98);
}

.bc-solve-state:nth-child(2) {
	--bc-electric-delay: -1.2s;
	transition-delay: .09s;
}

.bc-solve-state:nth-child(3) {
	--bc-electric-delay: -2.4s;
	transition-delay: .18s;
}

.bc-solve-state:nth-child(4) {
	--bc-electric-delay: -3.6s;
	transition-delay: .27s;
}

.bc-solve-state.is-active {
	opacity: 1;
	transform: none;
	border-color: rgba(216, 45, 198, .18);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .96),
		0 24px 68px rgba(37, 36, 43, .08),
		0 10px 34px rgba(216, 45, 198, .06);
}

.bc-solve-state h3 {
	color: var(--bc-ink);
	font-size: clamp(2rem, 2.8vw, 3.25rem);
	line-height: 1;
}

.bc-solve-state > p {
	color: var(--bc-muted);
	line-height: 1.66;
}

.bc-state-number {
	color: var(--bc-accent-soft);
}

@keyframes bc-electric-border {
	to {
		--bc-electric-angle: 360deg;
	}
}

@keyframes bc-electric-pulse {
	0%,
	100% {
		opacity: .28;
	}

	50% {
		opacity: .5;
	}
}

/* Capabilities — an editorial index with alternating parallax-like depth. */

.bc-capabilities {
	background: #fff;
}

.bc-capabilities__layout {
	grid-template-columns: minmax(300px, .65fr) minmax(620px, 1.35fr);
	gap: clamp(60px, 8vw, 130px);
}

.bc-capabilities__intro {
	top: 80px;
	display: flex;
	min-height: calc(100vh - 80px);
	flex-direction: column;
	justify-content: center;
	padding-block: 48px;
}

.bc-capability {
	min-height: 330px;
	margin-block: 20px;
	padding: 52px clamp(22px, 3vw, 48px);
	border: 1px solid rgba(255, 255, 255, .78);
	border-radius: 24px;
	background: rgba(255, 255, 255, .48);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .88),
		0 14px 44px rgba(37, 36, 43, .045);
	-webkit-backdrop-filter: blur(18px) saturate(135%);
	backdrop-filter: blur(18px) saturate(135%);
	opacity: .24;
	transform: translateX(70px);
	transition:
		opacity .7s ease,
		transform .8s cubic-bezier(.16, 1, .3, 1),
		border-color .45s ease,
		background .45s ease,
		box-shadow .45s ease;
}

.bc-capability:nth-child(even) {
	transform: translateX(-28px);
}

.bc-capability.is-active {
	opacity: 1;
	transform: none;
}

.bc-capability.is-current {
	border-color: rgba(216, 45, 198, .34);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(249, 226, 248, .66)),
		rgba(255, 255, 255, .64);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .96),
		0 24px 64px rgba(216, 45, 198, .14),
		0 8px 24px rgba(37, 36, 43, .06);
}

.bc-capability h3 {
	color: var(--bc-ink);
	font-size: clamp(2.1rem, 3.3vw, 3.8rem);
}

.bc-capability > p {
	max-width: 60ch;
	color: var(--bc-ink);
}

.bc-capability__icon {
	width: clamp(58px, 5vw, 82px);
	height: clamp(58px, 5vw, 82px);
	flex: 0 0 auto;
	object-fit: contain;
}

/* Approach — a calm four-step system rather than a dark tunnel. */

.bc-approach {
	background:
		linear-gradient(90deg, rgba(37, 36, 43, .03) 1px, transparent 1px) 0 0 / 25% 100%,
		#eee7ee;
}

.bc-approach__header {
	grid-template-columns: 1.08fr .92fr;
}

.bc-approach__system {
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.bc-approach__frame {
	display: none;
}

.bc-approach__steps {
	gap: clamp(14px, 1.5vw, 24px);
}

.bc-approach-step {
	position: relative;
	overflow: hidden;
	min-height: 430px;
	padding: clamp(30px, 3vw, 44px);
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 24px;
	background: rgba(255, 255, 255, .38);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .9),
		0 18px 48px rgba(37, 36, 43, .055);
	-webkit-backdrop-filter: blur(18px) saturate(130%);
	backdrop-filter: blur(18px) saturate(130%);
	opacity: 1;
	transform: none;
	transition:
		opacity .55s ease,
		transform .75s cubic-bezier(.16, 1, .3, 1),
		background .55s ease,
		border-color .55s ease,
		box-shadow .55s ease;
}

.bc-service.has-motion .bc-approach-step {
	opacity: .46;
	transform: translateY(26px);
}

.bc-approach-step::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: var(--bc-accent);
	transition: width .65s cubic-bezier(.16, 1, .3, 1);
}

.bc-service.has-motion .bc-approach-step.is-active {
	opacity: .76;
	transform: none;
}

.bc-service.has-motion .bc-approach-step.is-past {
	opacity: .68;
}

.bc-service.has-motion .bc-approach-step.is-current {
	opacity: 1;
	border-color: rgba(216, 45, 198, .32);
	background:
		linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(249, 226, 248, .56)),
		rgba(255, 255, 255, .48);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .96),
		0 24px 58px rgba(37, 36, 43, .08),
		0 10px 32px rgba(216, 45, 198, .1);
}

.bc-service.has-motion .bc-approach-step.is-current::before {
	width: 100%;
}

.bc-approach-step h3 {
	margin-top: 48px;
	color: var(--bc-ink);
	font-size: clamp(2.1rem, 2.8vw, 3.25rem);
}

.bc-approach-step strong {
	color: var(--bc-ink);
}

.bc-approach-step p {
	color: var(--bc-muted);
}

/* Closing invitation. */

.trinovik-services-page--brand-content .services-cta {
	isolation: isolate;
	overflow: hidden;
	min-height: clamp(300px, 24vw, 380px);
	margin-top: clamp(64px, 8vw, 120px);
	margin-bottom: clamp(64px, 8vw, 120px);
	padding: clamp(32px, 3.6vw, 54px);
	border: 0;
	border-radius: clamp(20px, 2vw, 32px);
	background-image: url("../images/ui/brand-content-cta-background.png");
	background-position: center;
	background-size: cover;
	color: #fff;
	box-shadow: 0 28px 75px rgba(12, 11, 22, .16);
}

.trinovik-services-page--brand-content .services-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(5, 10, 22, .95) 0%, rgba(5, 10, 22, .86) 38%, rgba(5, 10, 22, .36) 72%, rgba(5, 10, 22, .16) 100%),
		linear-gradient(0deg, rgba(5, 10, 22, .28), transparent 62%);
}

.trinovik-services-page--brand-content .services-cta__copy,
.trinovik-services-page--brand-content .services-cta__button {
	position: relative;
	z-index: 1;
}

.trinovik-services-page--brand-content .services-cta__copy > p {
	margin-bottom: 20px;
	color: #f174e3;
}

.trinovik-services-page--brand-content .services-cta__copy h2 {
	max-width: 16ch;
	color: #fff;
	font-size: clamp(2.8rem, 4.4vw, 5.4rem);
	line-height: .94;
}

.trinovik-services-page--brand-content .services-cta__copy h2 em {
	color: #f174e3;
	font-style: normal;
}

.trinovik-services-page--brand-content .services-cta__copy > span {
	max-width: 58ch;
	margin-top: 24px;
	color: rgba(255, 255, 255, .72);
}

.trinovik-services-page--brand-content .services-cta__button {
	min-width: 245px;
	border-color: rgba(255, 255, 255, .9);
	background: #fff;
	color: #171622;
	box-shadow: 0 14px 34px rgba(5, 10, 22, .24);
}

.trinovik-services-page--brand-content .services-cta__button:hover,
.trinovik-services-page--brand-content .services-cta__button:focus-visible {
	border-color: #f174e3;
	background: #f174e3;
	color: #171622;
}

@media (max-width: 1080px) {
	.bc-hero__inner {
		grid-template-columns: minmax(390px, .9fr) minmax(400px, 1.1fr);
	}

	.bc-solve__layout,
	.bc-capabilities__layout {
		grid-template-columns: minmax(280px, .68fr) minmax(430px, 1.32fr);
		gap: 48px;
	}

	.bc-solve__states {
		grid-template-columns: 1fr;
	}

	.bc-solve-state:nth-child(even) {
		transform: translateX(120px) scale(.98);
	}

	.bc-solve-state.is-active {
		transform: none;
	}
}

@media (max-width: 900px) {
	.bc-hero {
		background: linear-gradient(180deg, #fffdf9 0 58%, #eee7ee 58% 100%);
	}

	.bc-hero__copy h1 {
		font-size: clamp(4rem, 14vw, 7rem);
	}

	.bc-hero__collage {
		width: min(100%, 720px);
	}

	.bc-solve__layout,
	.bc-capabilities__layout {
		display: block;
	}

	.bc-solve__intro,
	.bc-capabilities__intro {
		position: relative;
		top: auto;
	}

	.bc-capabilities__intro {
		display: block;
		min-height: 0;
		padding-block: 0;
		margin-bottom: 78px;
	}

	.bc-solve__states {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bc-solve-state,
	.bc-solve-state:nth-child(even),
	.bc-capability,
	.bc-capability:nth-child(even) {
		opacity: 1;
		transform: none;
	}

	.bc-approach__header {
		grid-template-columns: 1fr;
	}

	.bc-approach-step {
		border-color: var(--bc-line);
	}

	.bc-service.has-motion .bc-approach-step {
		opacity: 1;
		transform: none;
	}

	.trinovik-services-page--brand-content .services-cta {
		grid-template-columns: 1fr;
		align-items: end;
		gap: 34px;
		min-height: 420px;
		background-position: 58% center;
	}

	.trinovik-services-page--brand-content .services-cta::before {
		background: linear-gradient(90deg, rgba(5, 10, 22, .96) 0%, rgba(5, 10, 22, .82) 64%, rgba(5, 10, 22, .36) 100%);
	}

	.trinovik-services-page--brand-content .services-cta__button {
		justify-self: start;
	}
}

@media (max-width: 600px) {
	.bc-section {
		padding-block: 82px;
	}

	.bc-section__intro h2,
	.bc-approach__header h2 {
		font-size: clamp(2.6rem, 11.8vw, 3.7rem);
		line-height: .98;
	}

	.bc-hero {
		padding-top: 120px;
	}

	.bc-hero__copy h1 {
		font-size: clamp(3.7rem, 18vw, 5rem);
		line-height: .8;
	}

	.bc-hero__copy h1 em {
		margin-left: 0;
	}

	.bc-hero__collage {
		aspect-ratio: .88;
	}

	.bc-fragment--portrait {
		width: 94%;
		height: 72%;
	}

	.bc-fragment--editorial {
		width: 62%;
		min-height: 145px;
	}

	.bc-fragment--type {
		display: none;
	}

	.bc-fragment--swatches {
		width: 16%;
	}

	.bc-solve__states {
		grid-template-columns: 1fr;
	}

	.bc-solve-state {
		min-height: 340px;
	}

	.bc-capability {
		min-height: 360px;
	}

	.bc-approach-step {
		min-height: auto;
	}

	.trinovik-services-page--brand-content .services-cta {
		min-height: 430px;
		margin-block: 48px;
		padding: 30px 24px;
		border-radius: 18px;
		background-position: 62% center;
	}

	.trinovik-services-page--brand-content .services-cta__copy h2 {
		font-size: clamp(2.7rem, 12vw, 4rem);
	}

	.trinovik-services-page--brand-content .services-cta__button {
		width: 100%;
		min-width: 0;
		justify-content: space-between;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bc-fragment--portrait {
		clip-path: inset(0) !important;
	}

	.bc-solve-state::before,
	.bc-solve-state::after {
		animation: none;
	}
}
