/* ═══════════════════════════════════════════════════════
   ArcherLab — Nordic Candlelight × Sagittarius Theme
   "깊은 밤, 촛불을 켜고 고문서와 신기술을 연구하는
    은둔 고수의 비밀 서재"
   ═══════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ─────────────────────────────── */
:root {
	color-scheme: dark;

	/* 배경: 순수 검정 대신 깊이감 있는 짙은 네이비-차콜 */
	--bg: #0a0c14;
	--bg-soft: #111520;

	/* 텍스트: 눈부신 순백 대신 따뜻한 크림/상아 */
	--ink: #f0e8d8;
	--ink-soft: #a89e8c;

	/* 촛불 액센트: 앰버(호박색), 따뜻한 금색 */
	--primary: #d4953a;
	--primary-dark: #b07328;
	--accent: #e8b04a;
	--accent-soft: rgba(232, 176, 74, 0.15);

	/* 별빛: 궁수자리 별 강조 */
	--starlight: #f5deb3;
	--constellation: rgba(232, 176, 74, 0.6);

	/* 카드: 어두운 나무-가죽 질감의 다크 톤 */
	--card: #161a28;
	--card-border: rgba(232, 176, 74, 0.12);

	/* 라운드 & 그림자 */
	--radius-lg: 20px;
	--radius-sm: 12px;
	--shadow-lg: 0 32px 80px rgba(6, 4, 2, 0.6);
	--shadow-sm: 0 16px 40px rgba(6, 4, 2, 0.4);

	/* 촛불 글로우 */
	--glow-candle: 0 0 60px rgba(232, 176, 74, 0.15), 0 0 120px rgba(212, 149, 58, 0.08);
}

* {
	box-sizing: border-box;
}

/* ── 2. Body & Global ─────────────────────────────── */
html {
	touch-action: pan-x pan-y;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(232, 176, 74, 0.06) 0%, transparent 60%),
		radial-gradient(circle at 20% 80%, rgba(212, 149, 58, 0.04), transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(180, 140, 80, 0.03), transparent 50%),
		var(--bg);
}

body {
	margin: 0;
	font-family: "Pretendard", "Manrope", "SUIT", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: transparent;
	color: var(--ink);
	line-height: 1.7;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cline x1='12' y1='2' x2='12' y2='22' stroke='%23e8b04a' stroke-width='1.2' opacity='0.8'/%3E%3Cline x1='2' y1='12' x2='22' y2='12' stroke='%23e8b04a' stroke-width='1.2' opacity='0.8'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='%23e8b04a' stroke-width='1' opacity='0.6'/%3E%3Ccircle cx='12' cy='12' r='1.5' fill='%23e8b04a' opacity='0.9'/%3E%3C/svg%3E") 12 12, crosshair;
}

a {
	color: inherit;
	text-decoration: none;
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cline x1='14' y1='2' x2='14' y2='26' stroke='%23f5deb3' stroke-width='1.5' opacity='0.9'/%3E%3Cline x1='2' y1='14' x2='26' y2='14' stroke='%23f5deb3' stroke-width='1.5' opacity='0.9'/%3E%3Cline x1='5.5' y1='5.5' x2='22.5' y2='22.5' stroke='%23f5deb3' stroke-width='0.8' opacity='0.5'/%3E%3Cline x1='22.5' y1='5.5' x2='5.5' y2='22.5' stroke='%23f5deb3' stroke-width='0.8' opacity='0.5'/%3E%3Ccircle cx='14' cy='14' r='4' fill='none' stroke='%23f5deb3' stroke-width='1' opacity='0.7'/%3E%3Ccircle cx='14' cy='14' r='2' fill='%23e8b04a' opacity='1'/%3E%3C/svg%3E") 14 14, pointer;
}

/* ── 3. Header & Navbar ───────────────────────────── */
header {
	padding: clamp(1.2rem, 2.5vw, 2rem) clamp(2.5rem, 6vw, 8rem) clamp(0.8rem, 1.5vw, 1.2rem);
	display: grid;
	gap: clamp(1rem, 2vw, 1.5rem);
	position: relative;
	z-index: 200;
}

.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	font-weight: 800;
	font-size: 1.1rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink);
}

.logo-img {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: block;
	box-shadow: var(--glow-candle);
	transition: transform 200ms ease;
}

.logo:hover .logo-img {
	transform: translateY(-1px) scale(1.03);
}

.nav-links {
	display: flex;
	gap: clamp(1rem, 3vw, 2.6rem);
	font-weight: 600;
	color: var(--ink-soft);
}

.nav-links a {
	transition: color 0.25s ease;
	position: relative;
}

.nav-links a::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--accent);
	transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
	width: 100%;
}

.nav-links a:hover,
.nav-links a:focus-visible {
	color: var(--accent);
}

/* ── Custom Language Dropdown ─────────────────────── */
.lang-dropdown {
	position: relative;
	z-index: 100;
}

.lang-dropdown__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(240, 232, 216, 0.06);
	border: 1px solid var(--card-border);
	color: var(--ink);
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	border-radius: 999px;
	padding: 0.5rem 1rem;
	cursor: pointer;
	transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lang-dropdown__toggle:hover,
.lang-dropdown__toggle:focus-visible {
	border-color: var(--accent);
	background: rgba(232, 176, 74, 0.08);
	box-shadow: 0 0 16px rgba(232, 176, 74, 0.1);
	outline: none;
}

.lang-dropdown__icon {
	color: var(--accent);
	flex-shrink: 0;
}

.lang-dropdown__label {
	letter-spacing: 0.02em;
}

.lang-dropdown__chevron {
	color: var(--ink-soft);
	flex-shrink: 0;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-dropdown[data-open] .lang-dropdown__chevron {
	transform: rotate(180deg);
}

/* 드롭다운 메뉴 */
.lang-dropdown__menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	min-width: 160px;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	background: linear-gradient(150deg, rgba(22, 26, 40, 0.97), rgba(12, 14, 24, 0.99));
	border: 1px solid rgba(232, 176, 74, 0.2);
	border-radius: var(--radius-sm);
	box-shadow: 0 20px 50px rgba(6, 4, 2, 0.6), 0 0 40px rgba(232, 176, 74, 0.08);
	backdrop-filter: blur(16px);

	/* 닫힌 상태 */
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px) scale(0.96);
	transform-origin: top right;
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-dropdown[data-open] .lang-dropdown__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.lang-dropdown__item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.6rem 0.9rem;
	border-radius: 8px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ink-soft);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	user-select: none;
}

.lang-dropdown__item:hover {
	background: rgba(232, 176, 74, 0.12);
	color: var(--ink);
}

.lang-dropdown__item.active {
	color: var(--accent);
	background: rgba(232, 176, 74, 0.08);
	position: relative;
}

.lang-dropdown__item.active::after {
	content: "✓";
	margin-left: auto;
	font-size: 0.85rem;
	color: var(--accent);
}

.lang-dropdown__flag {
	font-size: 1.15rem;
	line-height: 1;
}

/* ── 4. CTA & Ghost Buttons ───────────────────────── */
.cta-btn {
	padding: 0.9rem 1.8rem;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: #fefaf0;
	font-weight: 700;
	letter-spacing: 0.02em;
	box-shadow: 0 12px 32px rgba(212, 149, 58, 0.3);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 20px 48px rgba(232, 176, 74, 0.4);
	filter: brightness(1.08);
}

.ghost-btn {
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	border: 1.5px solid rgba(232, 176, 74, 0.5);
	font-weight: 700;
	color: var(--accent);
	background: rgba(232, 176, 74, 0.06);
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
	background: rgba(232, 176, 74, 0.14);
	border-color: rgba(232, 176, 74, 0.85);
	color: #f5deb3;
	box-shadow: 0 0 20px rgba(232, 176, 74, 0.12);
}

/* ── 5. Hero Section ──────────────────────────────── */
.hero {
	display: grid;
	gap: clamp(1.8rem, 3.5vw, 2.8rem);
	max-width: 960px;
	position: relative;
}

.hero-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 600;
	width: fit-content;
	letter-spacing: 0.05em;
	border: 1px solid rgba(232, 176, 74, 0.2);
}

/* 헤드라인·레이블 폰트 통일 */
h1, h2, h3,
.logo, .cta-btn, .ghost-btn, .hero-tag,
.section-heading h2, .pill-card strong,
.feature-card h3, .stat strong {
	font-family: "Space Grotesk", "Pretendard", "Manrope", sans-serif;
	font-feature-settings: "ss01" on, "ss02" on;
}

.hero h1,
.hero h2 {
	font-size: clamp(2.6rem, 7vw, 4.6rem);
	line-height: 1.07;
	margin: 0;
	font-weight: 800;
	/* 촛불 빛에 비친 듯한 따뜻한 텍스트 그라디언트 */
	background: linear-gradient(135deg, var(--ink) 40%, var(--accent) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero p {
	margin: 0;
	font-size: clamp(1.05rem, 2.3vw, 1.32rem);
	color: var(--ink-soft);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.contact-actions {
	margin-top: 1.4rem;
}

/* ── 6. Main & Sections ───────────────────────────── */
main {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	padding: clamp(1rem, 2vw, 2rem) clamp(2.5rem, 6vw, 8rem) clamp(2rem, 4vw, 3rem);
	flex: 1;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
}

section {
	display: grid;
	gap: clamp(1.9rem, 4vw, 2.8rem);
}

.section-heading {
	display: grid;
	gap: 0.7rem;
	max-width: 720px;
}

.section-heading h2 {
	margin: 0;
	font-size: clamp(2.1rem, 4.5vw, 3.1rem);
	font-weight: 800;
	color: var(--ink);
}

.section-heading p {
	margin: 0;
	color: var(--ink-soft);
	font-size: clamp(1rem, 2vw, 1.18rem);
}

/* ── Category Tab Bar ─────────────────────────────── */
.tab-bar {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.4rem;
}

.tab-btn {
	padding: 0.42rem 1rem;
	border-radius: 999px;
	border: 1px solid var(--card-border);
	background: transparent;
	color: var(--ink-soft);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
	letter-spacing: 0.01em;
}

.tab-btn:hover {
	border-color: rgba(232, 176, 74, 0.4);
	color: var(--ink);
	background: rgba(232, 176, 74, 0.05);
}

.tab-btn.active {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent);
	box-shadow: 0 0 16px rgba(232, 176, 74, 0.1);
}

.hub-card[hidden] {
	display: none;
}

/* ── Hub Grid (Project Link Cards) ────────────────── */
.hub-grid {
	display: grid;
	gap: 1.2rem;
	grid-template-columns: repeat(4, 1fr);
}

.hub-card {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: auto auto;
	align-items: start;
	gap: 0;
	padding: 0;
	border-radius: var(--radius-lg);
	background: linear-gradient(
		165deg,
		rgba(26, 30, 46, 0.96) 0%,
		rgba(18, 22, 36, 0.98) 40%,
		rgba(12, 15, 26, 0.99) 100%
	);
	border: 1px solid var(--card-border);
	box-shadow:
		0 2px 4px rgba(0, 0, 0, 0.3),
		0 8px 24px rgba(0, 0, 0, 0.25),
		0 20px 48px rgba(6, 4, 2, 0.2),
		inset 0 1px 0 rgba(245, 222, 179, 0.06);
	text-decoration: none;
	overflow: hidden;
	position: relative;
	transition:
		box-shadow 0.4s ease,
		border-color 0.3s ease;
}

/* 상단 엣지 하이라이트 (입체감 강화) */
.hub-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	z-index: 4;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(232, 176, 74, 0.25) 30%,
		rgba(245, 222, 179, 0.4) 50%,
		rgba(232, 176, 74, 0.25) 70%,
		transparent
	);
	border-radius: 1px;
	pointer-events: none;
}

.hub-card:hover,
.hub-card:focus-visible {
	border-color: rgba(232, 176, 74, 0.5);
	box-shadow:
		0 4px 8px rgba(0, 0, 0, 0.35),
		0 12px 32px rgba(0, 0, 0, 0.3),
		0 28px 56px rgba(6, 4, 2, 0.25),
		0 0 40px rgba(232, 176, 74, 0.08),
		0 0 80px rgba(212, 149, 58, 0.04),
		inset 0 1px 0 rgba(245, 222, 179, 0.1);
	z-index: 2;
}

/* 이미지 영역 */
.hub-thumb-wrap {
	position: relative;
	overflow: hidden;
}

.hub-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	filter: brightness(0.82) saturate(0.85) contrast(1.02);
	transition: filter 0.45s ease, transform 0.45s cubic-bezier(0.03, 0.98, 0.52, 0.99);
	transform-origin: center center;
}

.hub-card:hover .hub-thumb {
	filter: brightness(1.05) saturate(1.1) contrast(1.03);
	transform: scale(1.06);
}

/* 이미지 하단 그림자 비네트 (자연스러운 경계) */
.hub-thumb-wrap::after,
.hub-card > .hub-thumb + .hub-body::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40%;
	background: linear-gradient(to top, rgba(12, 15, 26, 0.7), transparent);
	pointer-events: none;
	z-index: 1;
}

/* hub-thumb-wrap 이 없는 기존 구조용 fallback */
.hub-card > .hub-thumb {
	position: relative;
}

.hub-body {
	padding: 0.8rem 1rem 0.9rem;
	display: grid;
	gap: 0.3rem;
	align-content: center;
	position: relative;
	z-index: 2;
	background: linear-gradient(
		180deg,
		rgba(18, 22, 36, 0.0) 0%,
		rgba(18, 22, 36, 0.6) 15%,
		rgba(18, 22, 36, 0.95) 100%
	);
}

.hub-card strong {
	font-family: "Space Grotesk", "Pretendard", "Manrope", sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: 0.01em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	transition: color 0.3s ease;
}

.hub-card:hover strong {
	color: var(--starlight);
}

.hub-card p {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.8rem;
	line-height: 1.45;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ── Footer ───────────────────────────────────────── */
.footer-left {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: center;
}

.footer-contact {
	display: flex;
	gap: 1.2rem;
}

.footer-contact a {
	color: var(--accent);
	font-weight: 600;
	transition: color 0.2s ease;
}

.footer-contact a:hover {
	color: #f5deb3;
}

/* ── About Content ────────────────────────────────── */
.about-content {
	max-width: 720px;
	display: grid;
	gap: 1rem;
}

.about-content p {
	margin: 0;
	color: var(--ink-soft);
	line-height: 1.8;
}

/* ── Contact Row ──────────────────────────────────── */
.contact-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

/* ── Footer Simple ────────────────────────────────── */
.footer-simple {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	justify-content: space-between;
	align-items: center;
	color: rgba(240, 232, 216, 0.55);
	font-size: 0.95rem;
}

.footer-legal {
	display: flex;
	gap: 1.5rem;
}

.footer-legal a {
	color: rgba(240, 232, 216, 0.55);
	font-weight: 600;
	transition: color 0.2s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
	color: var(--accent);
}

/* ── 7. Pill Cards (Identity / Experiments) ─────── */
.pill-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pill-card {
	padding: 1.6rem 1.8rem;
	border-radius: var(--radius-lg);
	background: var(--card);
	border: 1px solid var(--card-border);
	box-shadow: var(--shadow-sm);
	display: grid;
	gap: 0.9rem;
	backdrop-filter: blur(6px);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 호버 시 촛불 글로우 */
.pill-card:hover {
	border-color: rgba(232, 176, 74, 0.3);
	box-shadow: var(--glow-candle);
}

.pill-card strong {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--accent);
}

.pill-card p {
	margin: 0;
	color: var(--ink-soft);
}

/* ── 8. Feature Cards ─────────────────────────────── */
.feature-grid {
	display: grid;
	gap: 1.2rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-card {
	background: linear-gradient(145deg, rgba(22, 26, 40, 0.94), rgba(14, 17, 30, 0.96));
	border-radius: var(--radius-lg);
	padding: 2.2rem 2rem;
	border: 1px solid var(--card-border);
	box-shadow: var(--shadow-sm);
	display: grid;
	gap: 1.1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	position: relative;
}

/* 호버 시 카드 테두리에 금빛 촛불 광원 */
.feature-card:hover {
	border-color: rgba(232, 176, 74, 0.35);
	box-shadow: var(--glow-candle), var(--shadow-sm);
}

.feature-card h3 {
	margin: 0;
	font-size: 1.35rem;
	letter-spacing: 0.01em;
	color: var(--ink);
}

.feature-card p {
	margin: 0;
	color: var(--ink-soft);
}

/* ── 9. Project Cards ─────────────────────────────── */
.project-grid {
	align-items: stretch;
}

.project-card {
	gap: 1.4rem;
}

.project-figure {
	margin: 0;
	display: grid;
	gap: 0.7rem;
}

.project-figure img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-sm);
	filter: sepia(0.08) saturate(0.9);
	transition: filter 0.3s ease;
}

.project-card:hover .project-figure img {
	filter: sepia(0) saturate(1);
}

.project-figure figcaption {
	margin: 0;
	color: rgba(240, 232, 216, 0.5);
	font-size: 0.9rem;
}

.project-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.project-links .ghost-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 48%;
	text-align: center;
}

/* ── 10. Philosophy Cards ─────────────────────────── */
.philosophy-card blockquote {
	font-style: italic;
	color: var(--accent);
	border-left: 3px solid var(--accent);
	padding-left: 1rem;
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.6;
}

/* ── 11. Guides Grid ──────────────────────────────── */
.guides-grid {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.guide-card {
	align-content: start;
}

/* ── 12. Articles (Longform) ──────────────────────── */
.longform {
	background: linear-gradient(145deg, rgba(22, 26, 40, 0.94), rgba(12, 15, 26, 0.97));
	border-radius: var(--radius-lg);
	padding: clamp(2rem, 4vw, 2.6rem);
	border: 1px solid var(--card-border);
	box-shadow: var(--shadow-sm);
	display: grid;
	gap: 1.6rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.longform:hover {
	border-color: rgba(232, 176, 74, 0.25);
	box-shadow: var(--glow-candle);
}

.longform header h3 {
	margin: 0;
	font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.article-meta {
	margin: 0.4rem 0 0;
	color: var(--ink-soft);
	font-size: 0.95rem;
}

.longform p {
	margin: 0;
	color: var(--ink-soft);
}

.insight-card {
	margin: 1.4rem 0 0;
	padding: 1.6rem;
	border-radius: var(--radius-lg);
	background: rgba(14, 17, 28, 0.85);
	border: 1px solid rgba(232, 176, 74, 0.25);
	box-shadow: 0 0 30px rgba(232, 176, 74, 0.06);
	display: grid;
	gap: 0.8rem;
}

.insight-card h4 {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--accent);
}

.insight-card ul {
	margin: 0;
	padding-left: 1.2rem;
	color: var(--ink-soft);
	display: grid;
	gap: 0.4rem;
}

.insight-card li {
	line-height: 1.5;
}

.insight-card--wide {
	margin-top: 1.8rem;
	padding: 1.9rem;
}

pre {
	margin: 1.4rem 0 0;
	padding: 1.2rem 1.4rem;
	background: rgba(10, 12, 20, 0.92);
	border-radius: var(--radius-sm);
	border: 1px solid rgba(232, 176, 74, 0.15);
	overflow-x: auto;
	box-shadow: inset 0 0 0 1px rgba(232, 176, 74, 0.06);
}

pre code {
	font-family: "IBM Plex Mono", "Fira Code", "Pretendard", monospace;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--ink);
}

/* ── 13. Stat Board ───────────────────────────────── */
.stat-board {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat {
	background:
		radial-gradient(circle at 24% 18%, rgba(232, 176, 74, 0.12), transparent 55%),
		linear-gradient(135deg, rgba(22, 26, 40, 0.94), rgba(10, 12, 20, 0.96));
	border-radius: var(--radius-lg);
	padding: 1.9rem;
	display: grid;
	gap: 0.35rem;
	color: var(--ink);
	border: 1px solid var(--card-border);
	transition: box-shadow 0.3s ease;
}

.stat:hover {
	box-shadow: var(--glow-candle);
}

.stat strong {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--accent);
}

/* ── 14. Testimonials / Signal Log ────────────────── */
.testimonial {
	background: linear-gradient(160deg, rgba(22, 26, 40, 0.96), rgba(12, 14, 24, 0.98));
	border-radius: var(--radius-lg);
	padding: clamp(2.2rem, 4vw, 3.2rem);
	box-shadow: var(--shadow-lg);
	display: grid;
	gap: 1.5rem;
	border: 1px solid var(--card-border);
	transition: border-color 0.3s ease;
}

.testimonial:hover {
	border-color: rgba(232, 176, 74, 0.25);
}

blockquote {
	margin: 0;
	font-size: clamp(1.15rem, 2.3vw, 1.5rem);
	color: rgba(240, 232, 216, 0.88);
	font-weight: 600;
	line-height: 1.8;
	letter-spacing: 0.01em;
	text-wrap: balance;
	border-left: 3px solid rgba(232, 176, 74, 0.5);
	padding-left: 1rem;
}

.quote-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.quote-meta img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 14px 28px rgba(232, 176, 74, 0.15);
	border: 2px solid rgba(232, 176, 74, 0.2);
}

.quote-author {
	display: block;
	font-weight: 600;
	color: var(--ink);
}

.quote-date,
.contact-mail-label,
code {
	font-family: "IBM Plex Mono", "Pretendard", "Noto Sans KR", monospace;
}

.quote-date {
	margin: 0;
	color: var(--ink-soft);
	text-transform: lowercase;
	letter-spacing: 0.02em;
}

/* ── 15. Contact Section ──────────────────────────── */
.contact-card {
	max-width: 720px;
	margin: 0 auto;
}

@media (min-width: 1024px) {
	.contact-card {
		margin: 0;
		max-width: none;
		width: 100%;
		justify-self: stretch;
	}
}

.contact-mail {
	display: inline-flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
}

.contact-mail-label {
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(240, 232, 216, 0.45);
}

.contact-mail-address {
	font-size: 1.32rem;
	font-weight: 700;
	color: var(--accent);
	background: var(--accent-soft);
	padding: 0.45rem 0.85rem;
	border-radius: var(--radius-sm);
	width: fit-content;
	box-shadow: inset 0 0 0 1px rgba(232, 176, 74, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	letter-spacing: 0.04em;
}

.contact-mail-address:hover,
.contact-mail-address:focus-visible {
	transform: translateY(-1px);
	box-shadow: inset 0 0 0 1px rgba(232, 176, 74, 0.5), 0 12px 24px rgba(232, 176, 74, 0.15);
}

.contact-meta {
	margin: 1.2rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.65rem;
	font-size: 0.95rem;
	color: var(--ink-soft);
}

.contact-meta div {
	display: grid;
	gap: 0.18rem;
	margin: 0;
}

.contact-meta dt {
	font-weight: 700;
	color: var(--ink);
}

.contact-meta dd {
	margin: 0;
}

.contact-note {
	margin: 0;
	color: var(--ink-soft);
	margin-top: 0.8rem;
}

/* ── 16. Footer ───────────────────────────────────── */
footer {
	background:
		radial-gradient(circle at 12% 8%, rgba(232, 176, 74, 0.06), transparent 52%),
		radial-gradient(circle at 88% 92%, rgba(212, 149, 58, 0.08), transparent 48%),
		rgba(8, 10, 18, 0.92);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	color: rgba(240, 232, 216, 0.9);
	padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 5vw, 5.5rem);
	position: relative;
	isolation: isolate;
	margin-top: auto;
}

footer::before {
	content: "";
	position: absolute;
	inset: 0;
	border-top: 1px solid rgba(232, 176, 74, 0.3);
	border-image: linear-gradient(90deg, rgba(232, 176, 74, 0.1), rgba(212, 149, 58, 0.45), rgba(232, 176, 74, 0.1)) 1;
	opacity: 0.85;
	pointer-events: none;
}

.footer-surface {
	position: relative;
	background: linear-gradient(150deg, rgba(22, 26, 40, 0.92), rgba(10, 12, 20, 0.96));
	border: 1px solid rgba(232, 176, 74, 0.12);
	border-radius: calc(var(--radius-lg) + 6px);
	padding: clamp(2.5rem, 5vw, 3.8rem);
	box-shadow: var(--shadow-lg);
	display: grid;
	gap: clamp(2rem, 5vw, 3rem);
	backdrop-filter: blur(12px);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	gap: clamp(1.8rem, 4vw, 3.5rem);
	align-items: flex-start;
}

.footer-brand {
	display: grid;
	gap: 1.4rem;
}

.footer-intro {
	margin: 0;
	color: rgba(240, 232, 216, 0.6);
	max-width: 360px;
	font-size: 0.95rem;
}

.footer-label {
	display: inline-block;
	font-family: "IBM Plex Mono", "Pretendard", monospace;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(232, 176, 74, 0.7);
	margin-bottom: 0.5rem;
}

.footer-column {
	display: grid;
	gap: 0.9rem;
}

.footer-nav {
	display: grid;
	gap: 0.6rem;
}

.footer-nav a {
	color: rgba(240, 232, 216, 0.65);
	font-weight: 600;
	transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
	color: var(--accent);
	transform: translateX(2px);
}

.footer-signal {
	display: grid;
	gap: 0.45rem;
	padding: 1.1rem 1.2rem;
	border-radius: var(--radius-sm);
	background: rgba(232, 176, 74, 0.06);
	border: 1px solid rgba(232, 176, 74, 0.15);
	box-shadow: 0 18px 36px rgba(232, 176, 74, 0.08);
	max-width: 320px;
}

.footer-signal-value {
	margin: 0;
	color: rgba(240, 232, 216, 0.6);
	font-size: 0.95rem;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 1.1rem;
	justify-content: space-between;
	color: rgba(240, 232, 216, 0.5);
	font-size: 0.95rem;
	border-top: 1px solid rgba(232, 176, 74, 0.08);
	padding-top: 1.5rem;
}

/* ── 17. Policy Pages ─────────────────────────────── */
.policy-page {
	background: var(--bg);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.policy-header {
	padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 5rem) 2rem;
	display: grid;
	gap: 0.8rem;
	max-width: 880px;
	margin: 0 auto;
}

.policy-header .logo {
	font-size: 0.95rem;
	letter-spacing: 0.08em;
}

.policy-updated {
	margin: 0;
	color: var(--ink-soft);
	font-size: 0.95rem;
}

.policy-content {
	padding: 0 clamp(1.5rem, 5vw, 5rem) clamp(4rem, 8vw, 6rem);
	max-width: 880px;
	margin: 0 auto;
	display: grid;
	gap: 2.8rem;
}

.policy-content section {
	background: var(--card);
	border-radius: var(--radius-lg);
	padding: 2rem 2.2rem;
	border: 1px solid var(--card-border);
	box-shadow: var(--shadow-sm);
}

.policy-content h2 {
	margin-top: 0;
	margin-bottom: 1.1rem;
	font-size: 1.6rem;
}

.policy-content p {
	margin: 0;
	color: var(--ink-soft);
}

.policy-footer {
	margin-top: auto;
	padding: 2rem;
	text-align: center;
	font-size: 0.95rem;
	color: var(--ink-soft);
}

.policy-footer a {
	color: var(--accent);
}

/* ── 18. Scroll Top Button ────────────────────────── */
.scroll-top {
	position: fixed;
	right: clamp(1rem, 4vw, 2.4rem);
	bottom: clamp(1.4rem, 5vw, 3.2rem);
	width: 3rem;
	height: 3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid rgba(232, 176, 74, 0.3);
	background: rgba(14, 17, 28, 0.92);
	color: var(--accent);
	font-size: 1.35rem;
	font-weight: 700;
	box-shadow: var(--glow-candle);
	backdrop-filter: blur(12px);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	z-index: 1200;
}

.scroll-top:is(:hover, :focus-visible) {
	transform: translateY(-2px);
	box-shadow: 0 0 40px rgba(232, 176, 74, 0.25);
	border-color: rgba(232, 176, 74, 0.6);
	color: #f5deb3;
}

.scroll-top:active {
	transform: translateY(0);
	box-shadow: 0 18px 32px rgba(6, 4, 2, 0.48);
}

.scroll-top[hidden] {
	display: none;
}

/* ═══════════════════════════════════════════════════════
   ★ Sagittarius Constellation Canvas
   ═══════════════════════════════════════════════════════ */
#constellation-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 10;
	opacity: 0.7;
}

header, main, footer {
	position: relative;
}

main, footer {
	z-index: 0;
}

/* 히어로 영역 뒤의 은은한 촛불 글로우 */
.hero::before {
	content: "";
	position: absolute;
	top: -60px;
	left: 50%;
	transform: translateX(-50%);
	width: 600px;
	height: 400px;
	background: radial-gradient(ellipse, rgba(232, 176, 74, 0.08) 0%, transparent 70%);
	pointer-events: none;
	z-index: -1;
}

/* 미세한 노이즈 텍스처 (거친 종이 질감) */
body::after {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
	pointer-events: none;
	opacity: 0.4;
}

/* ── 19. Cursor Follower — Targeting Lock-on ──────── */
.cursor-ring {
	position: fixed;
	top: 0;
	left: 0;
	width: 40px;
	height: 40px;
	pointer-events: none;
	z-index: 9999;
	opacity: 0;
	transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
	            height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
	            opacity 0.3s ease;
	will-change: transform;
}

/* 외곽 회전 링 */
.cursor-ring::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1.5px solid rgba(232, 176, 74, 0.6);
	border-radius: 50%;
	animation: cursorSpin 4s linear infinite;
	/* 점선 링 효과 */
	border-style: dashed;
	border-color: rgba(232, 176, 74, 0.5);
}

/* 내부 펄스 링 */
.cursor-ring::after {
	content: "";
	position: absolute;
	inset: 6px;
	border: 1px solid rgba(245, 222, 179, 0.4);
	border-radius: 50%;
	animation: cursorPulse 1.8s ease-in-out infinite;
}

/* 타겟팅 코너 브래킷 */
.cursor-corners {
	position: fixed;
	top: 0;
	left: 0;
	width: 40px;
	height: 40px;
	pointer-events: none;
	z-index: 9999;
	opacity: 0;
	transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
	            height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
	            opacity 0.3s ease;
	will-change: transform;
}

.cursor-corners span {
	position: absolute;
	width: 8px;
	height: 8px;
	border-color: var(--accent);
	border-style: solid;
	transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 왼쪽 위 */
.cursor-corners span:nth-child(1) {
	top: 0; left: 0;
	border-width: 2px 0 0 2px;
}
/* 오른쪽 위 */
.cursor-corners span:nth-child(2) {
	top: 0; right: 0;
	border-width: 2px 2px 0 0;
}
/* 왼쪽 아래 */
.cursor-corners span:nth-child(3) {
	bottom: 0; left: 0;
	border-width: 0 0 2px 2px;
}
/* 오른쪽 아래 */
.cursor-corners span:nth-child(4) {
	bottom: 0; right: 0;
	border-width: 0 2px 2px 0;
}

/* 활성 상태 (호버 시) */
.cursor-ring.active {
	opacity: 1;
	width: 52px;
	height: 52px;
}

.cursor-corners.active {
	opacity: 1;
	width: 52px;
	height: 52px;
}

.cursor-corners.active span {
	width: 10px;
	height: 10px;
}

/* 카드 호버 시 확대 */
.cursor-ring.active-card {
	opacity: 1;
	width: 70px;
	height: 70px;
}

.cursor-corners.active-card {
	opacity: 1;
	width: 70px;
	height: 70px;
}

.cursor-corners.active-card span {
	width: 12px;
	height: 12px;
}

@keyframes cursorSpin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes cursorPulse {
	0%, 100% {
		opacity: 0.4;
		transform: scale(1);
	}
	50% {
		opacity: 0.9;
		transform: scale(1.15);
	}
}

/* ── 20. Responsive ───────────────────────────────── */

/* ── 20-a. Tablet (≤768px) ─────────────────────────── */
@media (max-width: 768px) {
	.navbar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.nav-links {
		flex-wrap: wrap;
		gap: 0.65rem;
		font-size: 0.95rem;
	}

	.project-links .ghost-btn {
		flex-basis: 100%;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-actions .cta-btn,
	.hero-actions .ghost-btn {
		width: 100%;
		text-align: center;
	}

	main {
		gap: clamp(3.5rem, 8vw, 5rem);
	}

	.pill-grid,
	.feature-grid,
	.stat-board {
		grid-template-columns: repeat(2, 1fr);
	}

	/* 태블릿: 2열 */
	.hub-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.hub-card {
		margin-bottom: 0;
	}

	.hub-thumb {
		aspect-ratio: 1 / 1;
	}

	.hub-body {
		padding: 1rem 1.2rem;
	}

	.hub-card strong {
		font-size: 1rem;
	}

	.hub-card p {
		font-size: 0.82rem;
		line-height: 1.45;
	}

	.hero {
		text-align: left;
	}

	.quote-meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-surface {
		padding: 2.2rem 1.8rem 2.8rem;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-column {
		gap: 0.7rem;
		justify-items: center;
	}

	.footer-brand {
		justify-items: center;
		text-align: center;
	}

	.footer-bottom {
		justify-content: center;
		text-align: center;
	}
}

/* ── 20-b. Mobile (≤560px) ─────────────────────────── */
@media (max-width: 560px) {
	header {
		position: sticky;
		top: 0;
		z-index: 500;
		background:
			radial-gradient(ellipse at 50% 0%, rgba(232, 176, 74, 0.04) 0%, transparent 60%),
			rgba(10, 12, 20, 0.95);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		padding: 0.75rem 1.2rem;
		border-bottom: 1px solid rgba(232, 176, 74, 0.1);
	}

	footer {
		position: sticky;
		bottom: 0;
		z-index: 500;
		padding: 0.6rem 1.2rem;
		border-top: 1px solid rgba(232, 176, 74, 0.15);
		background: rgba(8, 10, 18, 0.97);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
	}

	footer::before {
		display: none;
	}

	.navbar {
		gap: 0.8rem;
	}

	.logo {
		font-size: 0.95rem;
		letter-spacing: 0.08em;
	}

	.hero h1,
	.hero h2 {
		font-size: clamp(2.2rem, 8vw, 3.2rem);
	}

	.hero p {
		font-size: 1rem;
	}

	main {
		padding: 0 1rem 2.5rem;
	}

	section {
		gap: 1rem;
	}

	/* ── 모바일 허브 그리드: 가로형 리스트 ── */
	.hub-grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	/* 모든 카드: 가로형(이미지 왼쪽 + 텍스트 오른쪽) */
	.hub-card {
		grid-template-columns: 100px 1fr;
		grid-template-rows: 1fr;
		align-items: center;
		border-radius: var(--radius-sm);
	}

	.hub-card::after {
		display: none;
	}

	.hub-thumb {
		aspect-ratio: 1 / 1;
		width: 100px;
		height: 100px;
		object-fit: cover;
		border-radius: var(--radius-sm) 0 0 var(--radius-sm);
	}

	.hub-card:hover .hub-thumb {
		transform: none;
	}

	.hub-body {
		padding: 0.7rem 1rem;
		align-content: center;
		background: transparent;
	}

	.hub-card strong {
		font-size: 0.95rem;
	}

	.hub-card p {
		font-size: 0.78rem;
		line-height: 1.4;
		/* 2줄까지만 표시 */
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.pill-card,
	.feature-card {
		padding: 1.4rem 1.5rem;
	}

	.stat strong {
		font-size: 1.7rem;
	}

	.contact-card .hero-actions {
		flex-direction: column;
	}

	.contact-card .hero-actions a {
		width: 100%;
	}

	.footer-nav {
		text-align: center;
	}

	.footer-simple {
		justify-content: center;
		text-align: center;
		flex-direction: column;
		gap: 0.8rem;
		font-size: 0.88rem;
	}

	.footer-left {
		justify-content: center;
		flex-direction: column;
		align-items: center;
	}

	.footer-signal {
		max-width: none;
	}
}

/* ── 20-c. Small Mobile (≤400px) ───────────────────── */
@media (max-width: 400px) {
	header {
		padding: 0.8rem 1rem;
	}

	main {
		padding: 0 0.8rem 2rem;
	}

	.hub-card {
		grid-template-columns: 80px 1fr;
	}

	.hub-card .hub-thumb {
		width: 80px;
		height: 80px;
	}

	.hub-card .hub-body {
		padding: 0.6rem 0.8rem;
	}

	.hub-card strong {
		font-size: 0.88rem;
	}

	.hub-card p {
		font-size: 0.75rem;
	}

	.footer-simple {
		font-size: 0.82rem;
	}
}

/* 검색엔진용 숨김 텍스트 클래스 */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
