@charset "utf-8";

@font-face {
	font-family: "NohHaeChan";
	src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10@1.0/ROEHOE-CHAN.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

.sub-page .hico-greeting {
	--greeting-red: #dc3323;
	--greeting-ink: #20201e;
	--greeting-muted: #686863;
	--greeting-line: #dcdcd7;
	position: relative;
	overflow: visible;
	padding: clamp(110px, 11vw, 170px) 0 clamp(100px, 11vw, 170px);
	color: var(--greeting-ink);
}

.sub-page .hico-greeting,
.sub-page .hico-greeting * {
	box-sizing: border-box;
}

.sub-page .hico-greeting__marquee {
	position: absolute;
	z-index: 0;
	top: clamp(6px, 2vw, 30px);
	left: 50%;
	width: 100vw;
	overflow: hidden;
	color: #f1f2f4;
	font-family: Pretendard, "Noto Sans KR", sans-serif;
	font-size: clamp(76px, 10vw, 160px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.045em;
	white-space: nowrap;
	transform: translateX(-50%);
	pointer-events: none;
	user-select: none;
}

.sub-page .hico-greeting__marquee-track {
	display: flex;
	width: max-content;
	gap: 6vw;
	animation: hicoGreetingMarquee 32s linear infinite;
	will-change: transform;
}

.sub-page .hico-greeting__marquee span {
	display: block;
}

.sub-page .hico-greeting__layout {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(390px, .82fr) minmax(520px, 1.18fr);
	grid-template-areas:
		"portrait heading"
		"portrait body"
		"portrait signature";
	align-items: start;
	gap: 0 clamp(64px, 7vw, 108px);
}

.sub-page .hico-greeting__message {
	display: contents;
}

.sub-page .hico-greeting__portrait {
	position: sticky;
	top: 120px;
	grid-area: portrait;
	width: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: 18px;
	background: #e7e5e0;
	animation: hicoGreetingReveal 720ms cubic-bezier(.22, 1, .36, 1) both;
}

.sub-page .hico-greeting__portrait img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.sub-page .hico-greeting__heading {
	grid-area: heading;
	padding-top: clamp(4px, 1vw, 14px);
	animation: hicoGreetingReveal 720ms 100ms cubic-bezier(.22, 1, .36, 1) both;
}

.sub-page .hico-greeting__eyebrow {
	margin: 0 0 17px;
	color: var(--greeting-red);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .11em;
}

.sub-page .hico-greeting__heading h2 {
	max-width: 760px;
	margin: 0;
	font-size: clamp(43px, 4.4vw, 64px);
	font-weight: 750;
	line-height: 1.17;
	letter-spacing: -.052em;
	word-break: keep-all;
}

.sub-page .hico-greeting__lead {
	margin: clamp(38px, 4vw, 56px) 0 0;
	padding-top: clamp(28px, 3vw, 38px);
	border-top: 2px solid var(--greeting-ink);
	font-size: clamp(21px, 1.8vw, 26px);
	font-weight: 650;
	line-height: 1.65;
	letter-spacing: -.025em;
	word-break: keep-all;
}

.sub-page .hico-greeting__body {
	grid-area: body;
	margin-top: clamp(44px, 5vw, 68px);
}

.sub-page .hico-greeting__body p {
	margin: 0;
	color: #50504c;
	font-size: 18px;
	font-weight: 450;
	line-height: 1.9;
	letter-spacing: -.012em;
	word-break: keep-all;
}

.sub-page .hico-greeting__body p + p {
	margin-top: 28px;
}

.sub-page .hico-greeting__signature {
	display: flex;
	grid-area: signature;
	align-items: baseline;
	justify-content: flex-end;
	gap: 20px;
	margin-top: clamp(54px, 6vw, 84px);
	padding-top: 27px;
	border-top: 1px solid var(--greeting-ink);
}

.sub-page .hico-greeting__signature span {
	color: var(--greeting-muted);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.sub-page .hico-greeting__signature strong {
	color: var(--greeting-ink);
	font-family: "NohHaeChan", cursive;
	font-size: clamp(43px, 4vw, 58px);
	font-weight: normal;
	line-height: 1;
	letter-spacing: -.04em;
}

@keyframes hicoGreetingMarquee {
	to {
		transform: translateX(calc(-50% - 3vw));
	}
}

@keyframes hicoGreetingReveal {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1100px) {
	.sub-page .hico-greeting__layout {
		grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr);
		gap: 0 52px;
	}

	.sub-page .hico-greeting__heading h2 {
		font-size: clamp(40px, 5vw, 54px);
	}
}

@media (max-width: 900px) {
	.sub-page .hico-greeting {
		padding-top: 116px;
	}

	.sub-page .hico-greeting__layout {
		grid-template-columns: 1fr;
		grid-template-areas:
			"heading"
			"portrait"
			"body"
			"signature";
		gap: 0;
	}

	.sub-page .hico-greeting__portrait {
		position: relative;
		top: auto;
		width: min(100%, 620px);
		margin-top: 54px;
	}

	.sub-page .hico-greeting__heading {
		max-width: 760px;
	}

	.sub-page .hico-greeting__body {
		margin-top: 58px;
	}
}

@media (max-width: 640px) {
	.sub-page .hico-greeting {
		padding: 88px 0 100px;
	}

	.sub-page .hico-greeting__marquee {
		top: 14px;
		font-size: 64px;
	}

	.sub-page .hico-greeting__heading h2 {
		font-size: clamp(35px, 10.5vw, 44px);
		line-height: 1.22;
	}

	.sub-page .hico-greeting__lead {
		margin-top: 32px;
		padding-top: 25px;
		font-size: 20px;
	}

	.sub-page .hico-greeting__portrait {
		margin-top: 42px;
		border-radius: 14px;
	}

	.sub-page .hico-greeting__body {
		margin-top: 44px;
	}

	.sub-page .hico-greeting__body p {
		font-size: 17px;
		line-height: 1.85;
	}

	.sub-page .hico-greeting__body p + p {
		margin-top: 24px;
	}

	.sub-page .hico-greeting__signature {
		display: grid;
		justify-content: end;
		gap: 13px;
		margin-top: 52px;
		text-align: right;
	}

	.sub-page .hico-greeting__signature strong {
		font-size: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sub-page .hico-greeting__marquee-track {
		animation: none;
	}

	.sub-page .hico-greeting__portrait,
	.sub-page .hico-greeting__heading {
		animation: none;
	}
}
