/* ─── Hero ───────────────────────────────────────── */
.hero-section {
	height: 80vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	background-color: #000;
	position: relative;
}

/* Background fills the full section including behind the header */
.hero-background {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-background img,
.hero-background .hero-bg__poster,
.hero-background .hero-bg__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
}

.hero-background::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.45) 0%,
		rgba(0, 0, 0, 0.70) 50%,
		rgba(0, 0, 0, 0.85) 100%
	);
	z-index: 1;
}

/* Row 1: tagline left, Row 2: aside right — container width controls proximity */
.hero-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: space-between;
	padding: 0;
	gap: 0;
	width: min(1600px, 100vw - 40px);
	height: clamp(280px, 50vh, 440px);
	position: absolute;
	left: 50%;
	top: 55%;
	transform: translate(-50%, -50%);
}

/* Left column: sized to text width */
.hero-tagline {
	flex: none;
	width: fit-content;
	font-size: clamp(64px, 7.5vw, 120px);
	font-weight: var(--font-weight-bold);
	color: var(--text-white);
	letter-spacing: -0.03em;
	line-height: 1.05;
	white-space: nowrap;
	margin: 0;
}

.hero-tagline__prefix {
	display: inline;
	font-size: inherit;
	font-weight: inherit;
	color: var(--text-white);
}

/* Second row, cross from tagline text end */
.hero-aside {
	width: 600px;
	flex-shrink: 0;
	margin-left: auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.hero-aside__accent {
	display: block;
	width: 32px;
	height: 4px;
	background: var(--primary-red);
	margin-bottom: 10px;
}

.hero-subtitle {
	font-size: clamp(22px, 2.2vw, 34px);
	font-weight: var(--font-weight-bold);
	color: var(--text-white);
	line-height: 1.25;
	letter-spacing: -0.03em;
	margin: 0 0 20px;
}

.hero-desc {
	font-size: clamp(16px, 1.4vw, 22px);
	font-weight: var(--font-weight-regular);
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.6;
	letter-spacing: -0.01em;
	margin: 0 0 48px;
}

/* CTA: white text + red circle arrow */
.btn-hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	font-size: 18px;
	font-weight: var(--font-weight-bold);
	color: var(--text-white);
	background: none;
	padding: 0;
	text-decoration: none;
	letter-spacing: -0.08px;
}

.btn-hero-cta__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--primary-red);
	flex-shrink: 0;
	font-size: 20px;
	line-height: 1;
	color: var(--text-white);
}

.btn-hero-cta:hover .btn-hero-cta__arrow {
	background: #b01530;
}

/* ─── Hero Entrance Animations ───────────────────── */
@keyframes hero-tagline-reveal {
	0%   { opacity: 0; transform: translateY(140%); }
	100% { opacity: 1; transform: translateY(0%); }
}

@keyframes hero-tagline-shift-left {
	0%   { opacity: 0; transform: translateX(80px); }
	100% { opacity: 1; transform: translateX(0); }
}

@keyframes hero-aside-reveal {
	0%   { opacity: 0; transform: translateX(160px); }
	100% { opacity: 1; transform: translateX(0); }
}

/* Full width forces clean row break */
.hero-tagline-clip {
	width: 100%;
	animation: hero-tagline-shift-left 700ms cubic-bezier(0, -0.01, 0.01, 1) 1150ms 1 normal forwards;
}

.hero-tagline {
	flex: none;
	opacity: 0;
	animation: hero-tagline-reveal 900ms cubic-bezier(0.85, 0, 0, 1) 200ms 1 normal forwards;
}

.hero-aside {
	opacity: 0;
	animation: hero-aside-reveal 800ms cubic-bezier(0, -0.01, 0.01, 1) 1150ms 1 normal forwards;
}

/* Mobile: stack tagline then aside vertically, anchored to bottom */
@media (max-width: 768px) {
	.hero-section {
		height: calc(100svh - var(--header-h));
		min-height: 500px;
		justify-content: flex-end;
	}
	.hero-content {
		position: relative;
		left: auto;
		top: auto;
		transform: none;
		width: 100%;
		height: auto;
		flex-direction: column;
		flex-wrap: nowrap;
		align-content: flex-start;
		padding: 0 24px 56px;
		gap: 24px;
	}
	.hero-tagline-clip {
		width: 100%;
		animation: none;
	}
	.hero-tagline {
		width: auto;
		font-size: clamp(32px, 9vw, 52px);
		white-space: normal;
		animation: hero-tagline-reveal 900ms cubic-bezier(0.85, 0, 0, 1) 200ms 1 normal forwards;
	}
	.hero-aside {
		width: 100%;
		margin-left: 0;
		animation: hero-aside-reveal 800ms cubic-bezier(0, -0.01, 0.01, 1) 900ms 1 normal forwards;
	}
	.hero-subtitle {
		font-size: 18px;
	}
	.hero-desc {
		font-size: 15px;
		margin-bottom: 32px;
	}
}

/* keep old hero-title working if still used */
.hero-title {
	font-size: clamp(80px, 15vw, 200px);
	font-weight: var(--font-weight-regular);
	color: var(--text-white);
	letter-spacing: -0.02em;
}

/* ─── Brands Section ─────────────────────────────── */
.brands-section {
	padding: calc(var(--section-padding-y) / 2) 0;
	display: flex;
	flex-direction: column;
	gap: 49px;
}


.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 var(--section-padding);
}

.brands-scroll {
	display: flex;
	gap: 80px;
	padding: 0 var(--section-padding);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.brands-scroll::-webkit-scrollbar {
	display: none;
}

.brand-card {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-shrink: 0;
	scroll-snap-align: start;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-card:hover {
	transform: translateY(-4px);
}

.brand-image {
	width: 703px;
	height: 703px;
	border-radius: var(--radius);
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
	display: flex;
	align-items: flex-start;
	padding: 289px 228px;
}

.brand-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.brand-overlay {
	position: absolute;
	inset: 0;
	background: var(--overlay, rgba(220, 31, 62, 0.15));
	border-radius: var(--radius);
	transition: opacity 0.4s ease;
}

.brand-logo {
	position: relative;
	z-index: 1;
	width: 248px;
	height: 124.5px;
	object-fit: contain;
	transition: opacity 0.4s ease;
}

.brand-logo-text {
	position: relative;
	z-index: 1;
	font-size: 48px;
	font-weight: var(--font-weight-bold);
	color: var(--text-white);
	transition: opacity 0.4s ease;
}

.brand-image:hover .brand-overlay,
.brand-image:hover .brand-logo,
.brand-image:hover .brand-logo-text {
	opacity: 0;
}

.brand-content {
	width: 503px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.brand-description {
	font-size: 20px;
	font-weight: var(--font-weight-light);
	line-height: 1.5;
}

.btn-solid-red {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 16px 32px;
	background: var(--primary-red);
	color: #fff;
	font-size: 16px;
	font-weight: var(--font-weight-bold);
	border-radius: var(--radius);
	text-decoration: none;
	letter-spacing: -0.01em;
	transition: background 0.2s;
}

.btn-solid-red:hover {
	background: #b01530;
}

/* ─── Services Section ───────────────────────────── */
.services-section {
	background: var(--bg-light);
	padding: calc(var(--section-padding-y) * 0.6) var(--section-padding);
	display: flex;
	flex-direction: column;
	gap: 50px;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.services-header {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 33px;
}

.services-subtitle {
	font-size: 20px;
	font-weight: var(--font-weight-regular);
	line-height: 1.5;
	max-width: 700px;
}

.services-accordion {
	width: 100%;
	position: relative;
}

.service-item {
	border-top: 1px solid var(--text-dark);
	position: relative;
}

.service-item:last-child {
	border-bottom: 1px solid var(--text-dark);
}

.service-item-header {
	display: flex;
	gap: 40px;
	align-items: center;
	width: 100%;
	padding: 20px 8px;
	text-align: left;
	cursor: pointer;
	color: var(--text-dark);
	transition: opacity 0.2s;
}

.service-item-header:hover {
	opacity: 0.7;
}

.service-number {
	font-size: 16px;
	font-weight: var(--font-weight-light);
	color: var(--primary-red);
	flex-shrink: 0;
	min-width: 28px;
}

.service-title {
	font-size: clamp(36px, 5vw, 70px);
	font-weight: var(--font-weight-light);
	line-height: 1;
	flex: 1;
}

.service-toggle {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--text-dark);
}

.service-toggle-v {
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-item--active .service-toggle-v {
	transform: scaleY(0);
	opacity: 0;
}

.service-item-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
	            padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
	            opacity 0.4s ease;
	padding: 0 8px 0 76px;
	opacity: 0;
}

.service-item--active .service-item-body {
	max-height: 200px;
	padding: 0 8px 30px 76px;
	opacity: 1;
}

.service-description {
	font-size: 16px;
	font-weight: var(--font-weight-regular);
	max-width: 600px;
	line-height: 1.5;
}

/* Floating image that breaks out of layout */
.service-image-float {
	position: absolute;
	right: -40px;
	top: 50%;
	width: 380px;
	height: 320px;
	transform: translateY(-50%) rotate(var(--rotate, -6deg)) scale(0.9);
	border-radius: var(--radius);
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
	            transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 2;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-item--active .service-image-float {
	opacity: 1;
	transform: translateY(-50%) rotate(var(--rotate, -6deg)) scale(1);
}

.service-image-float img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ─── About / What We Are Section (scroll-driven) ── */
.about-scroll-wrapper {
	height: 400vh;
	position: relative;
}

.about-section {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
	z-index: 10;
}

.about-section.is-active {
	visibility: visible;
	pointer-events: auto;
}

.about-logo-scroll {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 39.524px;
	height: 45px;
	transform: translate(-50%, -50%) scale(1) rotate(0deg);
	will-change: transform;
	z-index: 2;
}

.about-logo-scroll svg {
	display: block;
	width: 100%;
	height: 100%;
}

.about-bg-fill {
	position: absolute;
	inset: 0;
	background: var(--primary-red);
	opacity: 0;
	z-index: 1;
	will-change: opacity;
}

.about-content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 93px;
	align-items: center;
	max-width: 1345px;
	padding: 0 var(--section-padding);
	opacity: 0;
	will-change: opacity;
}

.about-heading {
	font-size: 36px;
	font-weight: var(--font-weight-regular);
	color: var(--text-white);
}

.about-description {
	font-size: 40px;
	font-weight: var(--font-weight-light);
	color: var(--text-white);
	text-align: center;
	line-height: 1.3;
}

/* ─── Featured Work Section ──────────────────────── */
.work-section {
	padding: 80px var(--section-padding);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.work-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	margin-bottom: 0;
}

.work-icon {
	color: var(--text-dark);
}

.work-divider {
	width: 1px;
	height: 218px; /* 98px original + 120px gap to reach the first card */
	background: var(--text-dark);
}

.work-grid {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	gap: 24px;
	align-items: flex-start;
	margin-bottom: 120px;
}

/* All cards: isolate so GSAP transforms never bleed into neighbours */
.work-grid .project-card {
	isolation: isolate;
	overflow: hidden;
	border-radius: 16px;
}

/* All image containers */
.work-grid .project-card__image {
	height: auto;
	border-radius: 16px !important;
	overflow: hidden;
}

.work-grid .project-card__image img {
	border-radius: 0 !important;
	/* Natural dimensions — let aspect-ratio drive height */
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.work-grid .project-card__overlay {
	border-radius: inherit !important;
}

.work-grid .project-card__overlay-client,
.work-grid .project-card__overlay-title {
	opacity: 1;
}

/* Override base card widths inside work-grid */
.work-grid .project-card--large,
.work-grid .project-card--medium {
	width: 100%;
}

/* ── Masonry pattern: full → pair → full → pair … ── */

/* Full-width cards (1, 4, 7…): cinematic wide ratio */
.work-grid .project-card:nth-child(3n+1) {
	width: 100%;
}
.work-grid .project-card:nth-child(3n+1) .project-card__image {
	aspect-ratio: 16 / 7;
}
.work-grid .project-card:nth-child(3n+1) .project-card__overlay-title {
	font-size: 32px;
}

/* Pair cards (2+3, 5+6…): half width, preserve natural image ratio */
.work-grid .project-card:nth-child(3n+2),
.work-grid .project-card:nth-child(3n+3) {
	width: calc(50% - 12px);
}
.work-grid .project-card:nth-child(3n+2) .project-card__image,
.work-grid .project-card:nth-child(3n+3) .project-card__image {
	/* natural ratio per image — img drives the height */
	aspect-ratio: auto;
	min-height: 280px;
}
.work-grid .project-card:nth-child(3n+2) .project-card__overlay,
.work-grid .project-card:nth-child(3n+3) .project-card__overlay {
	padding: 20px 20px 24px;
}
.work-grid .project-card:nth-child(3n+2) .project-card__overlay-title,
.work-grid .project-card:nth-child(3n+3) .project-card__overlay-title {
	font-size: 18px;
}

/* GSAP owns initial state */
.work-grid [data-work-card] {
	will-change: transform, opacity;
}

/* ─── Clients Section ────────────────────────────── */
.clients-section {
	padding: calc(var(--section-padding-y) * 0.6) var(--section-padding);
}

.clients-inner {
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.clients-marquee {
	overflow: hidden;
	width: 100%;
}

.clients-track {
	display: flex;
	gap: 22px;
	width: max-content;
	animation: marquee-left 40s linear infinite;
	will-change: transform;
}

.client-logo {
	width: 412px;
	height: 214px;
	background: #f2f3f6;
	border-radius: var(--radius);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.client-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.client-logo-placeholder {
	font-size: 24px;
	font-weight: var(--font-weight-bold);
	color: var(--text-gray);
}

@keyframes marquee-left {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ─── Editorial Blockquote (homepage, between Trust and Resources) ── */
.editorial-blockquote {
	margin: 0;
	padding: var(--section-padding);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 48px;
	text-align: center;
}

.editorial-blockquote > * {
	max-width: 1100px;
}

.editorial-blockquote__quote {
	position: relative;
	margin: 0;
	font-size: 26px;
	font-weight: var(--font-weight-light);
	line-height: 1.5;
	color: var(--text-dark, inherit);
	padding: 0 60px;
	quotes: none;
}

.editorial-blockquote__quote::before,
.editorial-blockquote__quote::after {
	position: absolute;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 140px;
	line-height: 1;
	color: var(--primary-red);
	opacity: 0.9;
}

.editorial-blockquote__quote::before {
	content: "\201C";
	top: -10px;
	left: 0;
}

.editorial-blockquote__quote::after {
	content: "\201D";
	bottom: -70px;
	right: 0;
}

.editorial-blockquote__attribution {
	font-size: 14px;
	font-weight: var(--font-weight-regular);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.65;
	margin-top: 24px;
}

/* ─── Resources Section ──────────────────────────── */
.resources-section > .btn-underline {
	align-self: center;
}

.resources-section {
	padding: 60px var(--section-padding);
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.resources-section > .section-title {
	align-self: center;
}

.resources-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	width: 100%;
}

.resources-grid .resource-card__image {
	aspect-ratio: 16 / 9;
	max-height: 340px;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1200px) {
	.brand-image {
		width: 500px;
		height: 500px;
	}
	.editorial-blockquote__quote {
		font-size: 22px;
		padding: 0 48px;
	}
	.editorial-blockquote__quote::before,
	.editorial-blockquote__quote::after {
		font-size: 110px;
	}
	.resources-section {
		padding: 74px var(--section-padding);
	}
	.client-logo {
		width: 300px;
		height: 156px;
	}
	.work-section {
		padding: 100px var(--section-padding);
		gap: 80px;
	}
	.about-section {
		min-height: 800px;
	}
	.about-description {
		font-size: 32px;
	}
}

@media (max-width: 1024px) {
	.brands-scroll {
		gap: 40px;
	}
	.brand-image {
		width: 100%;
		max-width: 500px;
		height: 400px;
	}
	.service-image-float {
		display: none;
	}
	.service-item-body {
		padding: 0 8px 0 48px;
	}
	.service-item--active .service-item-body {
		padding: 0 8px 30px 48px;
	}
	.editorial-blockquote__quote {
		font-size: 20px;
		padding: 0 36px;
	}
	.editorial-blockquote__quote::before,
	.editorial-blockquote__quote::after {
		font-size: 90px;
	}
	.editorial-blockquote__quote::after {
		bottom: -50px;
	}
	.about-logo img {
		height: 300px;
	}
	.about-section {
		min-height: 700px;
	}
	.about-content {
		gap: 60px;
	}
	.resources-grid {
		gap: 30px;
	}
}

@media (max-width: 768px) {
	.about-scroll-wrapper {
		height: auto;
	}

	.brands-section {
		padding: 60px 0;
		gap: 30px;
	}
	.brands-scroll {
		gap: 24px;
		padding: 0 20px;
	}
	.brand-image {
		height: 300px;
	}
	.brand-content {
		padding: 24px 20px;
		gap: 14px;
	}
	.brand-logo-text {
		font-size: 32px;
	}
	.brand-description {
		font-size: 15px;
	}
	.btn-solid-red {
		font-size: 14px;
		padding: 11px 20px;
	}
	.section-header {
		flex-direction: column;
		gap: 20px;
		align-items: flex-start;
		padding: 0 20px;
	}
	.services-section {
		padding: 60px 20px;
		gap: 30px;
	}
	.service-item-header {
		gap: 16px;
		padding: 16px 4px;
	}
	.service-title {
		font-size: 28px;
	}
	.service-item-body {
		padding: 0 4px 0 32px;
	}
	.service-item--active .service-item-body {
		padding: 0 4px 20px 32px;
	}
	.about-section {
		min-height: 500px;
	}
	.about-heading {
		font-size: 28px;
	}
	.about-content {
		gap: 40px;
	}
	.about-description {
		font-size: 22px;
	}
	.about-logo img {
		height: 200px;
	}
	.work-section {
		padding: 60px 20px;
		gap: 0;
	}
	.work-divider {
		height: 88px; /* 48px original + 40px gap */
	}
	.work-grid {
		margin-bottom: 40px;
	}
	.clients-section {
		padding: 40px 20px;
	}
	.client-logo {
		width: 250px;
		height: 130px;
	}
	.editorial-blockquote {
		padding: 20px;
		gap: 32px;
		min-height: 80vh;
	}
	.editorial-blockquote__quote {
		font-size: 17px;
		padding: 0 24px;
		line-height: 1.5;
	}
	.editorial-blockquote__quote::before,
	.editorial-blockquote__quote::after {
		font-size: 70px;
	}
	.editorial-blockquote__quote::before {
		top: -5px;
	}
	.editorial-blockquote__quote::after {
		bottom: -40px;
	}
	.editorial-blockquote__attribution {
		font-size: 12px;
		margin-top: 32px;
	}
	.resources-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.resources-section {
		padding: 60px 20px;
		gap: 40px;
	}
}

/* ─── Responsive: 1680px+ ────────────────────────── */
@media (min-width: 1680px) {
	.hero-content {
		width: min(1800px, 100vw - 80px);
		height: clamp(320px, 50vh, 500px);
	}
	.hero-aside {
		width: 700px;
	}
	.services-subtitle {
		font-size: 22px;
		max-width: 820px;
	}
	.brand-description {
		font-size: 22px;
	}
}

/* ─── Responsive: 1920px+ ────────────────────────── */
@media (min-width: 1920px) {
	.hero-content {
		width: min(2000px, 100vw - 120px);
	}
	.hero-aside {
		width: 800px;
	}
	.services-subtitle {
		font-size: 24px;
		max-width: 920px;
	}
	.brand-content {
		width: 600px;
	}
	.brand-description {
		font-size: 24px;
	}
}

/* ─── Responsive: 2400px+ (cap content) ─────────── */
@media (min-width: 2400px) {
	.hero-content {
		width: min(2200px, 100vw - 200px);
	}
	.hero-aside {
		width: 900px;
	}
	.brands-scroll,
	.services-section,
	.work-section,
	.clients-section,
	.editorial-blockquote,
	.resources-section {
		max-width: var(--max-width, 2160px);
		margin-inline: auto;
	}
	.services-subtitle {
		font-size: 28px;
		max-width: 1100px;
	}
}
