@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
	--ramae-bg: #07131f;
	--ramae-bg-soft: #0c1a29;
	--ramae-panel: rgba(11, 20, 31, 0.86);
	--ramae-panel-strong: rgba(7, 15, 24, 0.95);
	--ramae-line: rgba(188, 214, 255, 0.14);
	--ramae-line-strong: rgba(188, 214, 255, 0.2);
	--ramae-text: #f2f6fb;
	--ramae-muted: #a5b3c5;
	--ramae-cyan: #46d0cf;
	--ramae-blue: #6a8cff;
	--ramae-gold: #f0b14a;
	--ramae-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

body.home {
	background:
		radial-gradient(circle at top left, rgba(70, 208, 207, 0.15), transparent 30%),
		radial-gradient(circle at top right, rgba(106, 140, 255, 0.14), transparent 28%),
		linear-gradient(180deg, #050d15 0%, var(--ramae-bg) 28%, #091623 100%);
	color: var(--ramae-text);
	overflow-x: clip;
}

body.home .site-header,
body.home .main-header-bar,
body.home .ast-primary-header-bar {
	background: rgba(5, 11, 17, 0.86);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.home .site-header .ast-container,
body.home .main-header-bar .ast-container,
body.home .ast-primary-header-bar .ast-container {
	max-width: none;
	width: 100%;
	min-height: 0;
	padding-left: clamp(1rem, 2.4vw, 2.75rem);
	padding-right: clamp(0.9rem, 1.8vw, 1.6rem);
	padding-top: 0.35rem;
	padding-bottom: 0.35rem;
}

body.home .main-header-bar .ast-container,
body.home .ast-primary-header-bar .ast-container {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

body.home .site-branding,
body.home .ast-site-identity {
	margin-right: clamp(1rem, 2.4vw, 2.4rem);
}

body.home .main-header-bar-navigation {
	flex: 1 1 auto;
	margin-left: 0;
	display: flex;
	justify-content: center;
}

body.home .main-header-bar,
body.home .ast-primary-header-bar {
	min-height: 0;
}

body.home .main-header-menu {
	justify-content: flex-start;
	gap: clamp(0.6rem, 1.4vw, 1.35rem);
}

body.home .main-header-menu > .menu-item > .menu-link,
body.home .main-header-menu > .menu-item > .ast-menu-toggle {
	padding-top: 0.35rem;
	padding-bottom: 0.35rem;
	line-height: 1.1;
}

body.home .ast-container {
	max-width: none;
	width: 100%;
}

body.home .site-content,
body.home .site-main,
body.home #primary {
	margin-top: 0;
	padding-top: 0;
}

body.home .site-content {
	position: relative;
	z-index: 0;
}

body.home .site-content > .ast-container {
	max-width: none;
	width: 100%;
	padding-top: 0;
	padding-left: 0;
	padding-right: 0;
}

.ramae-home {
	position: relative;
	font-family: 'Manrope', sans-serif;
	color: var(--ramae-text);
}

.ramae-home::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 90%);
	opacity: 0.2;
}

.ramae-home a {
	color: inherit;
	text-decoration: none;
}

.ramae-home__shell {
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.ramae-home__hero,
.ramae-home__section {
	position: relative;
	padding: clamp(2.5rem, 5vw, 4.75rem) 0;
}

.ramae-home__hero {
	margin-top: 0;
	padding-top: clamp(5.25rem, 9vw, 7rem);
}

.ramae-home__hero::before,
.ramae-home__section--instagram::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 15% 20%, rgba(70, 208, 207, 0.14), transparent 25%),
		radial-gradient(circle at 82% 15%, rgba(106, 140, 255, 0.16), transparent 22%),
		linear-gradient(180deg, rgba(10, 18, 29, 0.2), rgba(10, 18, 29, 0.92));
}

.ramae-home__section::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	width: min(1180px, calc(100% - 2rem));
	transform: translateX(-50%);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.ramae-home__hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
	gap: clamp(1.5rem, 3.5vw, 3rem);
	align-items: start;
}

.ramae-home__eyebrow {
	margin: 0 0 1rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--ramae-cyan);
}

.ramae-home__hero-copy h1,
.ramae-home__section-head h2,
.ramae-home__process-grid h2,
.ramae-home__instagram-grid h2,
.ramae-home__contact-box h2 {
	margin: 0;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	line-height: 0.98;
	letter-spacing: -0.04em;
	color: #ffffff;
}

.ramae-home__hero-copy h1 {
	max-width: 12ch;
	font-size: clamp(3rem, 5.6vw, 5.8rem);
}

.ramae-home__section-head h2,
.ramae-home__process-grid h2,
.ramae-home__instagram-grid h2,
.ramae-home__contact-box h2 {
	font-size: clamp(2rem, 4vw, 3.8rem);
	max-width: 14ch;
}

.ramae-home__lede,
.ramae-home__section-head p,
.ramae-home__process-grid p,
.ramae-home__instagram-grid p,
.ramae-home__contact-box p,
.ramae-home__service-card p,
.ramae-home__project-overlay span {
	color: var(--ramae-muted);
	line-height: 1.75;
	font-size: 1rem;
}

.ramae-home__hero-copy {
	position: relative;
	padding: clamp(0.5rem, 1vw, 1rem) 0;
}

.ramae-home__cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin: 2rem 0 1.4rem;
}

.ramae-home__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: 0.88rem 1.35rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	font-weight: 800;
	letter-spacing: 0.01em;
	transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.ramae-home__button:hover,
.ramae-home__button:focus {
	transform: translateY(-1px);
}

.ramae-home__button--primary {
	background: linear-gradient(135deg, var(--ramae-cyan), var(--ramae-blue));
	color: #08101a;
	box-shadow: 0 18px 35px rgba(70, 208, 207, 0.22);
}

.ramae-home__button--ghost {
	background: rgba(255, 255, 255, 0.04);
	color: #f7fafe;
}

.ramae-home__pill-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ramae-home__pill-list li {
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(8, 15, 24, 0.52);
	color: #d8e6f8;
	font-size: 0.92rem;
}

.ramae-home__hero-visual {
	display: block;
	max-width: 640px;
	margin-left: auto;
}

.ramae-home__hero-figure,
.ramae-home__service-card,
.ramae-home__project-card,
.ramae-home__process-item,
.ramae-home__instagram-card,
.ramae-home__contact-box {
	background: var(--ramae-panel);
	border: 1px solid var(--ramae-line);
	box-shadow: var(--ramae-shadow);
}

.ramae-home__hero-figure {
	position: relative;
	overflow: hidden;
	margin: 0;
	border-radius: 32px;
	aspect-ratio: 16 / 10;
	background: transparent;
}

.ramae-home__hero-figure img,
.ramae-home__project-card img,
.ramae-home__instagram-card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ramae-home__hero-figure--large img {
	object-position: center 60%;
}

.ramae-home__hero-figure--large {
	min-height: 420px;
}

.ramae-home__hero-figure figcaption {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	padding: 0.55rem 0.8rem;
	border-radius: 999px;
	background: rgba(5, 11, 18, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.84rem;
	font-weight: 700;
	color: #ffffff;
}

.ramae-home__section-head {
	display: grid;
	gap: 1rem;
	margin-bottom: 2rem;
	max-width: 840px;
}

.ramae-home__section-head--compact {
	margin-bottom: 0;
}

.ramae-home__service-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.ramae-home__service-card,
.ramae-home__process-item {
	border-radius: 26px;
	padding: 1.35rem;
}

.ramae-home__service-card h3 {
	margin: 0.95rem 0 0.55rem;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.35rem;
	color: #fff;
}

.ramae-home__card-index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(70, 208, 207, 0.2), rgba(106, 140, 255, 0.2));
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 800;
}

.ramae-home__project-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 1rem;
}

.ramae-home__project-card {
	position: relative;
	overflow: hidden;
	min-height: 280px;
	border-radius: 28px;
	grid-column: span 6;
}

.ramae-home__project-card.is-tall {
	min-height: 360px;
	grid-row: span 2;
}

.ramae-home__project-card.is-wide {
	grid-column: span 12;
	min-height: 250px;
}

.ramae-home__project-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 12, 19, 0.05), rgba(5, 12, 19, 0.76));
}

.ramae-home__project-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 1.25rem;
}

.ramae-home__project-overlay p {
	margin: 0 0 0.35rem;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	color: #ffffff;
}

.ramae-home__project-overlay span {
	display: block;
	max-width: 28ch;
}

.ramae-home__process-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 1.25rem;
	align-items: start;
}

.ramae-home__process-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.ramae-home__process-item strong {
	display: inline-block;
	margin-bottom: 0.75rem;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.2rem;
	color: #fff;
}

.ramae-home__instagram-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
	gap: 1.25rem;
	align-items: stretch;
}

.ramae-home__instagram-card {
	display: grid;
	grid-template-columns: 112px 1fr;
	gap: 1rem;
	align-items: center;
	padding: 1rem;
	border-radius: 28px;
}

.ramae-home__instagram-card img {
	width: 112px;
	height: 112px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	object-fit: contain;
	padding: 0.35rem;
}

.ramae-home__instagram-card p,
.ramae-home__instagram-card strong {
	display: block;
}

.ramae-home__instagram-card strong {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 1.35rem;
	line-height: 1.2;
	color: #ffffff;
}

.ramae-home__contact-box {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem;
	border-radius: 30px;
	background: linear-gradient(135deg, rgba(70, 208, 207, 0.08), rgba(106, 140, 255, 0.12)), var(--ramae-panel-strong);
}

@media (max-width: 1080px) {
	.ramae-home__hero {
		margin-top: 0;
		padding-top: 2.5rem;
	}

	.ramae-home__hero-grid,
	.ramae-home__process-grid,
	.ramae-home__instagram-grid {
		grid-template-columns: 1fr;
	}

	.ramae-home__hero-visual {
		max-width: 100%;
	}

	.ramae-home__hero-figure--large {
		min-height: 340px;
	}

	body.home .main-header-bar-navigation {
		justify-content: flex-start;
	}

	body.home .main-header-menu {
		justify-content: flex-start;
	}

	body.home .main-navigation {
		width: 100%;
	}

	body.home .main-header-menu {
		margin: 0;
	}

	body.home .ast-header-break-point .main-navigation {
		width: 100%;
	}

	body.home .ast-header-break-point .main-header-menu {
		background: rgba(5, 11, 17, 0.96);
		border: 1px solid rgba(255, 255, 255, 0.08);
		border-radius: 20px;
		padding: 0.5rem 0;
		box-shadow: var(--ramae-shadow);
	}

	body.home .ast-header-break-point .main-navigation ul .menu-item .menu-link {
		color: #f6fbff;
	}

	body.home .ast-header-break-point .main-navigation ul .menu-item .menu-link:hover,
	body.home .ast-header-break-point .main-navigation ul .menu-item .menu-link:focus {
		color: var(--ramae-cyan);
	}

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

	.ramae-home__process-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.ramae-home__hero {
		margin-top: 0;
		padding-top: 2rem;
	}

	.ramae-home__shell {
		width: min(1180px, calc(100% - 1.2rem));
	}

	.ramae-home__hero-copy h1 {
		max-width: 100%;
		font-size: clamp(2.8rem, 16vw, 4.1rem);
	}

	.ramae-home__section-head h2,
	.ramae-home__process-grid h2,
	.ramae-home__instagram-grid h2,
	.ramae-home__contact-box h2 {
		max-width: 100%;
		font-size: clamp(1.8rem, 10vw, 2.6rem);
	}

	.ramae-home__service-grid,
	.ramae-home__project-grid {
		grid-template-columns: 1fr;
	}

	.ramae-home__project-card,
	.ramae-home__project-card.is-tall,
	.ramae-home__project-card.is-wide {
		grid-column: auto;
		grid-row: auto;
		min-height: 260px;
	}

	.ramae-home__hero-figure {
		aspect-ratio: 16 / 11;
	}

	.ramae-home__instagram-card {
		grid-template-columns: 1fr;
	}

	.ramae-home__instagram-card img {
		width: 100%;
		height: 220px;
	}

	.ramae-home__contact-box {
		align-items: flex-start;
	}

	body.home .site-content > .ast-container {
		padding-left: 0;
		padding-right: 0;
	}
}
