@font-face {
	font-family: 'CormorantInfant';
	src: url('../draggable-grid-assets/public/Cormorant_Infant/static/CormorantInfant-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Rota';
	src: url('../draggable-grid-assets/public/Rota/Rota-Regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'BlostaScript';
	src: url('../draggable-grid-assets/public/BlostaScript/BlostaScript.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--primary: #15373D;
	--secondary: #E0DAD3;
}

.home-template {
	/* background: #0c0b0a; */
	color: #f6f0e8;
}

.home-hero {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	display: grid;
	align-items: stretch;
}

.home-hero__media {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.home-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: saturate(0.95);
}

.home-hero__vignette {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55));
	pointer-events: none;
}

.home-hero__overlay-image {
	position: absolute;
	bottom: 70px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	pointer-events: none;
	width: 25%;
}

.home-hero__overlay-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

.home-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	padding: clamp(24px, 5vw, 64px);
	padding-inline: clamp(32px, 6vw, 96px);
	min-height: 100vh;
}

.home-hero__copy {
	max-width: 60%;
}

.home-hero__title {
	font-size: clamp(34px, 5vw, 62px);
	line-height: 3.5;
	margin: 0 0 14px 0;
	letter-spacing: 1px;
	color: #f7f2ea;
	text-align: center;
	font-weight: 100;
}

.home-hero__subtext {
	font-family: 'Rota', 'Helvetica Neue', Arial, sans-serif;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0;
	color: #d9d1c6;
	text-align: center;
}

.home-hero__scroll {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	backdrop-filter: blur(4px);
	background: rgba(12, 11, 10, 0.35);
	margin-bottom: clamp(12px, 4vw, 32px);
}

.home-hero__scroll-line {
	display: block;
	width: 1px;
	height: 20px;
	background: #f6f0e8;
	position: relative;
}

.home-hero__scroll-line::after {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -4px;
	border-left: 1px solid #f6f0e8;
	border-bottom: 1px solid #f6f0e8;
	width: 8px;
	height: 8px;
	transform: translateX(-55%) rotate(-45deg);
}

@media (max-width: 900px) {

	.home-hero__title{
		line-height: 1.5;
	}

	.home-hero__content {
		flex-direction: column;
		justify-content: flex-end;
        align-items: flex-start;
		gap: 20px;
		padding-bottom: 100px;
	}

	.home-hero__copy {
		max-width: 100%;
	}

	.home-hero__scroll {
		align-self: flex-start;
	}
	
	.home-hero__overlay-image {
		bottom: 40px;
		max-width: 100%;
		width: 57%;
	}
	
	.home-hero__overlay-image img {
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	.home-hero__title {
		font-size: clamp(32px, 8vw, 46px);
	}

	.home-hero__subtext {
		font-size: 12px;
		letter-spacing: 0.12em;
	}
	
	.home-hero__overlay-image {
		bottom: 30px;
		max-width: 80%;
	}
}

/* About CTA Section */
.home-about {
	background: var(--primary);
	color: var(--secondary);
	padding: clamp(60px, 8vw, 100px) 0;
	/* border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
}

.home-about__container {
	margin: 0 auto;
	padding: 0 clamp(32px, 6vw, 96px);
}

.home-about__title {
	font-family: 'CormorantInfant', 'Times New Roman', serif;
	font-size: clamp(36px, 4vw, 54px);
	line-height: 1.15;
	margin: 0 0 24px 0;
	letter-spacing: -0.01em;
	color: var(--secondary);
    font-weight: normal;
}

.home-about__description {
	font-family: 'Rota', 'Helvetica Neue', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.75;
	letter-spacing: 0.02em;
	margin: 0 0 32px 0;
	color: var(--secondary);
	max-width: 600px;
    font-weight: normal;
}

.home-about__cta {
	display: inline-block;
}

.home-about__cta-link,
.home-about__cta-text {
	font-family: 'Rota', 'Helvetica Neue', Arial, sans-serif;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--secondary);
	text-decoration: none;
	display: inline-block;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--secondary);
	transition: opacity 0.3s ease, border-color 0.3s ease;
}

.home-about__cta-link:hover {
	opacity: 0.8;
	border-color: rgba(224, 218, 211, 0.7);
}

@media (max-width: 768px) {
	.home-about {
		padding: clamp(48px, 6vw, 80px) 0;
	}

	.home-about__title {
		font-size: clamp(28px, 5vw, 44px);
		margin-bottom: 20px;
	}

	.home-about__description {
		font-size: 13px;
		line-height: 1.7;
		margin-bottom: 24px;
	}

	.home-about__cta-link,
	.home-about__cta-text {
		font-size: 11px;
	}
}

/* ========================================
   Full Width CTA Section
======================================== */
.home-fullwidth-cta {
	position: relative;
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-align: center;
}

.home-fullwidth-cta__bg {
	position: absolute;
	pointer-events: none;
	overflow: hidden;
}

.home-fullwidth-cta__bg-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-fullwidth-cta__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(12, 11, 10, 0.75) 0%,
		rgba(12, 11, 10, 0.5) 50%,
		rgba(12, 11, 10, 0.75) 100%
	);
}

.home-fullwidth-cta__content {
	position: relative;
	z-index: 2;
	max-width: 900px;
	margin: 0 auto;
}

.home-fullwidth-cta__title {
	font-family: 'CormorantInfant', serif;
	font-size: clamp(40px, 7vw, 80px);
	font-weight: 400;
	line-height: 1.2;
	color: var(--secondary);
	margin: 0 0 clamp(24px, 3vw, 40px) 0;
	letter-spacing: 0.02em;
}

.home-fullwidth-cta__description {
	font-family: 'Rota', sans-serif;
	font-size: clamp(16px, 1.8vw, 22px);
	line-height: 1.6;
	color: rgba(246, 240, 232, 0.9);
	margin: 0 0 clamp(32px, 4vw, 48px) 0;
	font-weight: 300;
}

.home-fullwidth-cta__cta {
	display: flex;
	justify-content: center;
	align-items: center;
}

.home-fullwidth-cta__cta-link,
.home-fullwidth-cta__cta-text {
	font-family: 'Rota', monospace;
	font-size: clamp(11px, 1vw, 13px);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 500;
	padding: 16px 48px;
	border: 1px solid rgba(246, 240, 232, 0.4);
	background: transparent;
	color: var(--secondary);
	text-decoration: none;
	display: inline-block;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(4px);
}

.home-fullwidth-cta__cta-link::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(246, 240, 232, 0.1),
		transparent
	);
	transition: left 0.6s ease;
}

.home-fullwidth-cta__cta-link:hover {
	border-color: var(--secondary);
	background: rgba(224, 218, 211, 0.08);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.home-fullwidth-cta__cta-link:hover::before {
	left: 100%;
}

@media (max-width: 1024px) {
	.home-fullwidth-cta {
		min-height: 50vh;
		padding: clamp(60px, 8vw, 100px) 5%;
	}

	.home-fullwidth-cta__title {
		font-size: clamp(32px, 6vw, 48px);
	}

	.home-fullwidth-cta__description {
		font-size: clamp(14px, 1.8vw, 18px);
	}

	.home-fullwidth-cta__cta-link,
	.home-fullwidth-cta__cta-text {
		padding: 14px 40px;
		font-size: 11px;
	}
}

@media (max-width: 640px) {
	.home-fullwidth-cta {
		min-height: 50vh;
		padding: 60px 5%;
	}

	.home-fullwidth-cta__title {
		font-size: 32px;
		margin-bottom: 20px;
	}

	.home-fullwidth-cta__description {
		font-size: 14px;
		margin-bottom: 32px;
	}

	.home-fullwidth-cta__cta-link,
	.home-fullwidth-cta__cta-text {
		padding: 12px 32px;
		font-size: 10px;
	}
}

/* Content Sections */
.content-section {
	background: var(--primary);
	color: var(--secondary);
	padding: clamp(60px, 8vw, 100px) 0;
	/* border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
}

.content-section__container {
	max-width: 1400px;
	/* margin: 0 auto; */
	padding: 0 clamp(32px, 6vw, 96px);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(40px, 6vw, 80px);
	align-items: center;
}

.content-section--grid-left .content-section__container {
	grid-template-columns: 1fr 1fr;
}

.content-section--grid-right .content-section__container {
	grid-template-columns: 1fr 1fr;
}

.content-section--text-left .content-section__container {
	grid-template-columns: 1fr 1.2fr;
}

.content-section--text-right .content-section__container {
	grid-template-columns: 1.2fr 1fr;
}

.content-section--reverse .content-section__container {
	direction: rtl;
}

.content-section--reverse .content-section__text,
.content-section--reverse .content-section__media {
	direction: ltr;
}

.content-section__text {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.content-section__title {
	font-family: 'CormorantInfant', 'Times New Roman', serif;
	font-size: clamp(36px, 4vw, 54px);
	line-height: 1.15;
	margin: 0 0 24px 0;
	letter-spacing: -0.01em;
	color: var(--secondary);
}

.content-section__media .content-section__title {
	margin-bottom: 24px;
}

.content-section__description {
	font-family: 'Rota', 'Helvetica Neue', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.75;
	letter-spacing: 0.02em;
	margin: 0 0 24px 0;
	color: var(--secondary);
}

.content-section__description p {
	margin: 0 0 1em 0;
}

.content-section__description p:last-child {
	margin-bottom: 0;
}

.content-section__description strong {
	font-weight: 600;
}

.content-section__description em {
	font-style: italic;
}

.content-section__description ul,
.content-section__description ol {
	margin: 1em 0;
	padding-left: 1.5em;
}

.content-section__description p:last-child {
	margin-bottom: 0;
}

.content-section__description strong {
	font-weight: 600;
}

.content-section__description em {
	font-style: italic;
}

.content-section__description ul,
.content-section__description ol {
	margin: 1em 0;
	padding-left: 1.5em;
}

.content-section__cta {
	display: inline-block;
}

.content-section__cta-link,
.content-section__cta-text {
	font-family: 'Rota', 'Helvetica Neue', Arial, sans-serif;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--secondary);
	text-decoration: none;
	display: inline-block;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--secondary);
	transition: opacity 0.3s ease, border-color 0.3s ease;
}

.content-section__cta-link:hover {
	opacity: 0.8;
	border-color: rgba(224, 218, 211, 0.7);
}

/* Grid Masonry Styles */
.content-section__grid {
	display: grid;
	gap: clamp(16px, 3vw, 24px);
}

/* Default 2-column grid */
.content-section--grid-left .content-section__grid,
.content-section--grid-right .content-section__grid {
	grid-template-columns: repeat(2, 1fr);
	grid-auto-rows: minmax(200px, auto);
}

/* Single image layout - Full width single image */
.content-section--images-1 .content-section__grid {
	grid-template-columns: 1fr !important;
	grid-template-areas: "a" !important;
}

.content-section--images-1 .content-section__grid-item {
	min-height: 500px;
}

.content-section--images-1 .content-section__grid-item:nth-child(1) {
	grid-area: a;
}

/* 3 images layout - Large image on left spanning 2 rows, 2 smaller on right */
.content-section--images-3 .content-section__grid {
	grid-template-columns: 2fr 1fr !important;
	grid-template-rows: 1fr 1fr !important;
	grid-template-areas:
		"b a"
		"b c" !important;
}

.content-section--images-3 .content-section__grid-item:nth-child(1) {
	grid-area: b;
}

.content-section--images-3 .content-section__grid-item:nth-child(2) {
	grid-area: a;
}

.content-section--images-3 .content-section__grid-item:nth-child(3) {
	grid-area: c;
}

/* 4 images layout - Faux masonry with organic staggered look */
.content-section--images-4 .content-section__grid {
	grid-template-columns: 1fr 1fr 2fr !important;
    grid-template-rows: 150px 100px 120px !important;
    grid-template-areas: "a a b b"
		"a a b b"
		"c c d d"
		"c c d d" !important;
}

.content-section--images-4 .content-section__grid-item:nth-child(1) {
	grid-area: a;
	margin-top: -40px;
}

.content-section--images-4 .content-section__grid-item:nth-child(2) {
	grid-area: b;
}

.content-section--images-4 .content-section__grid-item:nth-child(3) {
	grid-area: c;
	margin-top: -20px;
}

.content-section--images-4 .content-section__grid-item:nth-child(4) {
	grid-area: d;
}

/* Text-based layouts keep single column */
.content-section--text-left .content-section__grid,
.content-section--text-right .content-section__grid {
	grid-template-columns: 1fr;
}

.content-section__grid-item {
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.3);
}

.content-section__grid-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.content-section__grid-item:hover img {
	transform: scale(1.02);
}

@media (max-width: 1024px) {
	.content-section__container {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.content-section--grid-left .content-section__container,
	.content-section--grid-right .content-section__container,
	.content-section--text-left .content-section__container,
	.content-section--text-right .content-section__container {
		grid-template-columns: 1fr;
	}

	/* Reset masonry layouts to simple grid on tablet */
	.content-section--images-3 .content-section__grid,
	.content-section--images-4 .content-section__grid {
		grid-template-rows:110px 40px 10px !important;
		margin-top: 10px;
	}

	/* .content-section--images-3 .content-section__grid-item,
	.content-section--images-4 .content-section__grid-item {
		grid-column: auto !important;
		grid-row: auto !important;
	} */

	.content-section--images-1 .content-section__grid-item {
		min-height: 400px;
	}
}

@media (max-width: 640px) {
	.content-section {
		padding: clamp(40px, 6vw, 60px) 0;
	}

	.content-section__title {
		font-size: clamp(28px, 5vw, 40px);
	}

	.content-section__description {
		font-size: 13px;
	}

	.content-section__container {
		gap: 20px;
	}

	/* Stack all images vertically on mobile */
	/* .content-section--images-3 .content-section__grid,
	.content-section--images-4 .content-section__grid {
		grid-template-columns: 1fr !important;
	} */

	.content-section--images-1 .content-section__grid-item {
		min-height: 300px;
	}
}

/* ============================================
   GSAP ANIMATION ENHANCEMENTS
   ============================================ */

/* Ensure smooth animations */
.home-template * {
	will-change: auto;
}

/* Improve parallax performance */
.home-hero__image,
.content-section__grid-item img {
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

/* Image container overflow for parallax */
.content-section__grid-item {
	overflow: hidden;
	position: relative;
}

.content-section__grid-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: center;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CTA Shimmer effect */
.home-about__cta-link,
.content-section__cta-link {
	position: relative;
	overflow: hidden;
	display: inline-block;
}

.cta-shimmer {
	position: absolute;
	top: 0;
	left: -50px;
	width: 30px;
	height: 100%;
	background: linear-gradient(90deg, 
		transparent 0%, 
		rgba(255, 255, 255, 0.3) 50%, 
		transparent 100%);
	pointer-events: none;
	transform: skewX(-20deg);
}

/* Scroll progress bar */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #E0DAD3, #15373D);
	transform-origin: left;
	transform: scaleX(0);
	z-index: 9999;
	pointer-events: none;
}

/* Text blur support */
.home-about__title,
.content-section__title,
.home-about__description,
.content-section__description {
	will-change: filter, transform;
}

/* Enhanced focus states for accessibility */
.home-about__cta-link:focus,
.content-section__cta-link:focus {
	outline: 2px solid #E0DAD3;
	outline-offset: 4px;
}

/* Smooth scroll behavior */
html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	
	.home-template * {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.home-fullwidth-cta__cta-link:hover {
		transform: none;
	}
}

/* Loading state - prevent FOUC */
.home-template.is-loading {
	opacity: 0;
}

.home-template.is-loaded {
	opacity: 1;
	transition: opacity 0.6s ease;
}

/* Enhanced hero content positioning for parallax */
.home-hero__content {
	position: relative;
	z-index: 2;
	will-change: transform;
}

/* Improve text rendering during animations */
.home-hero__title,
.home-hero__subtext {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Grid item scale on hover - smoother transition */
.content-section__grid-item {
	cursor: pointer;
}

/* Vignette fade effect */
.home-hero__vignette {
	will-change: opacity;
	transition: opacity 0.3s ease;
}

/* Luxury entrance animations prep */
.home-hero__title,
.home-hero__subtext,
.home-hero__scroll {
	opacity: 0;
	transform: translateY(30px);
}

.home-hero__title{
	font-family: 'BlostaScript';
}

/* Content fade-in prep - sections stay visible, content animates */
.home-about,
.content-section {
	opacity: 1;
}

.home-about__container > *,
.content-section__text > *,
.content-section__media {
	opacity: 1;
}
