body {
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  word-break: keep-all;
}
h1, h2, h3, h4, .text-balance {
  text-wrap: balance;
}
.tabular-nums {
  font-variant-numeric: tabular-nums;
}
/* Infinite Marquee Animation */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: flex;
  width: 200%;
  animation: marquee 30s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}
.mask-linear {
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .animate-marquee {
    animation: none;
    width: 100%;
  }
}
/* Smooth spring button click feel */
.spring-btn {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.spring-btn:active {
  transform: scale(0.97);
}
/* Scroll Reveal Title Animation — blur + slide-up + settle */
.scroll-reveal-title {
  opacity: 0;
  transform: translateY(34px) scale(0.97);
  filter: blur(8px);
  letter-spacing: 0.06em;
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    letter-spacing 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}
.scroll-reveal-title.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  letter-spacing: normal;
}
/* Staggered reveal for inner heading lines */
.scroll-reveal-title > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal-title.revealed > * {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal-title.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal-title.revealed > *:nth-child(2) { transition-delay: 0.18s; }
.scroll-reveal-title.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal-title.revealed > *:nth-child(4) { transition-delay: 0.42s; }
/* Animated modern title accent underline bar */
.title-accent-bar {
  display: block;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #10b981);
  border-radius: 9999px;
  margin-top: 8px;
  transition: width 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}
.scroll-reveal-title.revealed .title-accent-bar,
.title-accent-bar.expanded {
  width: 56px;
}
.text-center .title-accent-bar {
  margin-left: auto;
  margin-right: auto;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal-title,
  .scroll-reveal-title > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .title-accent-bar {
    width: 56px !important;
    transition: none !important;
  }
}

/* ── Certification popup: certificate(상장) gold deco ─────────────── */
.cert-frame {
	border: 1px solid #d8bd6a;
	background: #ffffff;
	box-shadow:
		inset 0 0 0 4px #ffffff,
		inset 0 0 0 6px rgba(216, 189, 106, .55),
		0 24px 60px -18px rgba(120, 86, 10, .4);
}
.cert-frame > *:not(.seal-wrap):not(.cert-close) {
	position: relative;
	z-index: 1;
}
.seal-wrap {
	position: absolute;
	top: 26px;
	left: 22px;
	width: 96px;
	z-index: 0;
	opacity: .4;
	pointer-events: none;
}
.seal-ribbon {
	display: flex;
	justify-content: center;
	gap: 3px;
	margin-top: -12px;
}
.seal-ribbon i {
	display: block;
	width: 18px;
	height: 36px;
	background: linear-gradient(180deg, #c0392b 0%, #96231a 100%);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
	transform: skewX(-7deg);
}
.seal-ribbon i:last-child {
	transform: skewX(7deg);
}
.cert-headline {
	display: inline-block;
	margin-top: 8px;
	padding: 5px 16px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .03em;
	color: #8a6a14;
	border-top: 1px solid #d4af37;
	border-bottom: 1px solid #d4af37;
	background: linear-gradient(180deg, rgba(212, 175, 55, .1), rgba(212, 175, 55, .04));
}
.cert-frame::before,
.cert-frame::after {
	content: "";
	position: absolute;
	width: 54px;
	height: 54px;
	pointer-events: none;
}
.cert-frame::before {
	top: 12px;
	left: 12px;
	border-top: 2px solid #c9a227;
	border-left: 2px solid #c9a227;
}
.cert-frame::after {
	bottom: 12px;
	right: 12px;
	border-bottom: 2px solid #c9a227;
	border-right: 2px solid #c9a227;
}
.gold-seal {
	position: relative;
	width: 88px;
	height: 88px;
	margin: 0 auto;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle at 32% 26%, #fff6c9 0%, #f3d66b 28%, #d4af37 55%, #a9821f 80%, #8a6a14 100%);
	box-shadow:
		0 6px 18px rgba(150, 110, 15, .5),
		inset 0 2px 5px rgba(255, 255, 255, .75),
		inset 0 -4px 8px rgba(110, 78, 8, .65);
}
.gold-seal::before {
	content: "";
	position: absolute;
	inset: 7px;
	border-radius: 50%;
	border: 2px solid rgba(255, 244, 200, .9);
	box-shadow: inset 0 0 8px rgba(110, 78, 8, .55);
}
.gold-seal::after {
	content: "";
	position: absolute;
	top: 9%;
	left: 16%;
	width: 46%;
	height: 26%;
	border-radius: 50%;
	background: linear-gradient(rgba(255, 255, 255, .85), rgba(255, 255, 255, 0));
	filter: blur(1px);
}
.gold-seal > span {
	font-family: "Noto Serif KR", serif;
	font-size: 34px;
	font-weight: 900;
	line-height: 1;
	color: #7a5a10;
	text-shadow: 0 1px 0 #fff3c4, 0 -1px 1px rgba(90, 64, 8, .6);
}
