 :root {
	--bg: #f4f6fb;
	--surface: #ffffff;
	--surface-soft: #eef2f8;
	--text: #10213f;
	--muted: #66728a;
	--brand: #17315f;
	--brand-2: #214f8d;
	--border: rgba(16, 33, 63, 0.12);
	--shadow: 0 20px 50px rgba(17, 35, 67, 0.08);
	--radius-xl: 28px;
	--radius-lg: 20px;
	--radius-md: 16px;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Manrope', system-ui, sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(33, 79, 141, 0.08), transparent 28%),
		radial-gradient(circle at top right, rgba(23, 49, 95, 0.08), transparent 24%),
		linear-gradient(180deg, #fbfcff 0%, #f4f6fb 45%, #eef2f8 100%);
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -3rem;
	z-index: 1080;
	padding: 0.75rem 1rem;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	text-decoration: none;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 1rem;
}

.site-nav {
	backdrop-filter: blur(18px);
	background: rgba(249, 250, 253, 0.88);
	border-bottom: 1px solid rgba(16, 33, 63, 0.08);
}

.brand-mark,
.footer-brand {
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--brand);
	text-decoration: none;
}

.navbar .nav-link {
	color: var(--muted);
	font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
	color: var(--brand);
}

.language-switch {
	font-size: 0.9rem;
	font-weight: 700;
}

.language-switch a {
	color: var(--muted);
	text-decoration: none;
}

.language-switch a.is-active {
	color: var(--brand);
}

.section-pad {
	padding: 5.5rem 0;
}

.hero-section {
	padding-top: 4.5rem;
	min-height: calc(100vh - 76px);
	display: flex;
	align-items: center;
}

.eyebrow,
.section-label {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--brand-2);
}

.section-label::before {
	content: '';
	width: 22px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
}

.display-title {
	font-size: clamp(2.6rem, 5vw, 4.8rem);
	line-height: 0.95;
	letter-spacing: -0.05em;
	font-weight: 800;
	max-width: 12ch;
}

.hero-lead,
.section-copy,
.timeline-item p,
.work-card p,
.contact-point span,
.footer-copy {
	color: var(--muted);
}

.hero-lead {
	font-size: 1.08rem;
	line-height: 1.8;
	max-width: 56ch;
}

.quote-box {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.quote-line {
	width: 3px;
	height: 44px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--brand-2), var(--brand));
}

.quote-box p {
	margin: 0;
	font-style: italic;
	color: var(--muted);
}

.btn-primary {
	--bs-btn-bg: var(--brand);
	--bs-btn-border-color: var(--brand);
	--bs-btn-hover-bg: #0f2346;
	--bs-btn-hover-border-color: #0f2346;
	--bs-btn-active-bg: #0f2346;
	--bs-btn-active-border-color: #0f2346;
	box-shadow: 0 14px 30px rgba(23, 49, 95, 0.18);
}

.btn-outline-primary {
	--bs-btn-color: var(--brand);
	--bs-btn-border-color: rgba(23, 49, 95, 0.3);
	--bs-btn-hover-bg: rgba(23, 49, 95, 0.08);
	--bs-btn-hover-border-color: rgba(23, 49, 95, 0.55);
	--bs-btn-hover-color: var(--brand);
}

.portrait-card,
.feature-book,
.timeline-panel,
.work-card,
.contact-card,
.gallery-card,
.mini-info-card,
.metric-card {
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.84);
	box-shadow: var(--shadow);
}

.portrait-card {
	position: relative;
	border-radius: 2rem;
	overflow: hidden;
	padding: 1rem;
}

.portrait-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(15, 35, 70, 0.08) 100%);
	pointer-events: none;
}

.portrait-image {
	width: 100%;
	aspect-ratio: 0.9;
	object-fit: cover;
	border-radius: 1.5rem;
	filter: grayscale(100%) contrast(1.05);
}

.portrait-badge {
	position: absolute;
	left: 1.5rem;
	bottom: 1.25rem;
	padding: 0.8rem 1rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	box-shadow: 0 16px 35px rgba(15, 35, 70, 0.14);
}

.portrait-badge span,
.stat-value,
.work-icon {
	font-weight: 800;
	color: var(--brand);
}

.portrait-badge small {
	display: block;
	color: var(--muted);
}

.hero-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.metric-card {
	padding: 1rem 1.1rem;
	border-radius: var(--radius-md);
}

.metric-card strong,
.stat-value {
	display: block;
	font-size: 1.5rem;
	line-height: 1;
}

.metric-card span,
.stat-label {
	color: var(--muted);
	font-size: 0.92rem;
}

.section-muted {
	background: rgba(236, 240, 247, 0.55);
}

.section-title {
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	letter-spacing: -0.04em;
	font-weight: 800;
	line-height: 1.15;
}

.mini-info-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.mini-info-card {
	padding: 1rem;
	border-radius: 1rem;
}

.mini-info-card span {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
	margin-bottom: 0.4rem;
}

.mini-info-card strong {
	font-weight: 700;
}

.timeline-panel {
	border-radius: 1.5rem;
	padding: 1.5rem;
}

.timeline-list {
	position: relative;
	margin-top: 1.25rem;
	padding-left: 1rem;
}

.timeline-list::before {
	content: '';
	position: absolute;
	left: 12px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(180deg, rgba(23, 49, 95, 0.8), rgba(23, 49, 95, 0.18));
}

.timeline-item {
	position: relative;
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 1rem;
	padding-bottom: 1.25rem;
}

.timeline-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	margin-top: 0.45rem;
	background: var(--brand);
	border: 3px solid #fff;
	box-shadow: 0 0 0 3px rgba(23, 49, 95, 0.12);
	z-index: 1;
}

.timeline-year {
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--brand-2);
	margin-bottom: 0.25rem;
}

.timeline-item h4,
.work-card h3 {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.feature-book {
	border-radius: 2rem;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	align-items: stretch;
}

.feature-book-cover {
	min-height: 100%;
	background:
		radial-gradient(circle at 25% 25%, rgba(23, 49, 95, 0.15), transparent 40%),
		linear-gradient(135deg, #f3efe7 0%, #e7eef8 100%);
	display: grid;
	place-items: center;
	padding: 2rem;
}

.cover-layers {
	width: min(330px, 100%);
	aspect-ratio: 0.8;
	background: linear-gradient(180deg, #203c68, #16284a);
	border-radius: 1.8rem;
	padding: 1rem;
	box-shadow: 0 35px 60px rgba(16, 33, 63, 0.22);
	transform: rotate(-4deg);
}

.cover-front {
	height: 100%;
	border-radius: 1.4rem;
	background:
		radial-gradient(circle at top, rgba(255, 255, 255, 0.34), transparent 35%),
		linear-gradient(180deg, #f7f0df 0%, #efd7b8 100%);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.65rem;
	color: #6d4c2c;
}

.cover-front span {
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cover-front strong {
	font-size: 2.2rem;
	line-height: 0.95;
	font-weight: 800;
	color: #17315f;
}

.cover-front small {
	color: #6a5a49;
}

.feature-book-copy {
	padding: clamp(1.5rem, 4vw, 3rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.section-intro {
	max-width: 760px;
}

.work-card {
	border-radius: 1.5rem;
	padding: 1.5rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover,
.gallery-card:hover,
.contact-card:hover,
.metric-card:hover {
	transform: translateY(-4px);
}

.work-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 1rem;
	display: grid;
	place-items: center;
	background: rgba(23, 49, 95, 0.08);
	margin-bottom: 1rem;
}

.work-card a,
.text-link {
	color: var(--brand);
	font-weight: 700;
	text-decoration: none;
}

.stats-band {
	padding: 2.4rem 0;
	color: #fff;
	background: linear-gradient(135deg, #10213f 0%, #17315f 100%);
}

.stat-value {
	color: #fff;
	font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.stat-label {
	color: rgba(255, 255, 255, 0.74);
}

.gallery-card {
	margin: 0;
	border-radius: 1.25rem;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card img {
	width: 100%;
	aspect-ratio: 1.05;
	object-fit: cover;
	display: block;
}

.gallery-card figcaption {
	padding: 0.9rem 1rem;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--text);
}

.contact-points {
	display: grid;
	gap: 1rem;
}

.contact-point {
	padding: 1rem 1.1rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid var(--border);
}

.contact-point span {
	display: block;
	margin-bottom: 0.25rem;
}

.contact-point strong {
	font-size: 1rem;
}

.contact-card {
	border-radius: 1.5rem;
	padding: 1.5rem;
}

.form-control {
	border-radius: 0.95rem;
	border-color: rgba(16, 33, 63, 0.12);
	min-height: 3rem;
	background: #fbfcff;
}

.form-control:focus {
	border-color: rgba(23, 49, 95, 0.45);
	box-shadow: 0 0 0 0.2rem rgba(23, 49, 95, 0.08);
}

.site-footer {
	padding: 2.5rem 0 2rem;
	border-top: 1px solid rgba(16, 33, 63, 0.08);
	background: rgba(251, 252, 255, 0.72);
}

.footer-nav {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin: 1rem 0;
}

.footer-nav a {
	color: var(--muted);
	text-decoration: none;
	font-weight: 600;
}

.footer-copy {
	margin-bottom: 0;
	font-size: 0.9rem;
}

.back-to-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	width: 3rem;
	height: 3rem;
	border: 0;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	box-shadow: 0 16px 34px rgba(23, 49, 95, 0.28);
	opacity: 0;
	pointer-events: none;
	transform: translateY(14px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 1030;
}

.back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 991.98px) {
	.hero-section {
		min-height: auto;
		padding-top: 3rem;
	}

	.hero-metrics,
	.mini-info-grid,
	.feature-book {
		grid-template-columns: 1fr;
	}

	.feature-book-cover {
		min-height: 320px;
	}
}

@media (max-width: 767.98px) {
	.section-pad {
		padding: 4rem 0;
	}

	.display-title {
		max-width: 100%;
	}

	.quote-box {
		align-items: flex-start;
	}

	.timeline-panel,
	.contact-card,
	.work-card {
		padding: 1.25rem;
	}

	.hero-metrics {
		gap: 0.75rem;
	}
}

.contents-page {
	position: relative;
}

.contents-hero {
	padding-bottom: 2.5rem;
}

.contents-summary-card {
	padding: 1.5rem;
	border-radius: 1.5rem;
	background: linear-gradient(135deg, rgba(23, 49, 95, 0.96), rgba(33, 79, 141, 0.88));
	color: #fff;
	box-shadow: 0 26px 60px rgba(23, 49, 95, 0.2);
}

.contents-summary-card span {
	display: block;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.8;
}

.contents-summary-card strong {
	display: block;
	font-size: clamp(2.5rem, 6vw, 4rem);
	line-height: 1;
	margin: 0.75rem 0 0.5rem;
}

.contents-summary-card p {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.7;
}

.contents-chip-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}

.filter-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.7rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(23, 49, 95, 0.12);
	background: rgba(255, 255, 255, 0.76);
	backdrop-filter: blur(10px);
	color: var(--brand);
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.filter-pill:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(23, 49, 95, 0.12);
	background: #fff;
}

.filter-pill.is-active {
	background: var(--brand);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 14px 30px rgba(23, 49, 95, 0.2);
}

.catalog-empty,
.catalog-group {
	padding: 1.5rem;
	border-radius: 1.6rem;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.84);
	box-shadow: var(--shadow);
}

.catalog-group + .catalog-group {
	margin-top: 1.5rem;
}

.catalog-group-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	flex-wrap: wrap;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(16, 33, 63, 0.08);
}

.catalog-count,
.catalog-subcount {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	background: rgba(23, 49, 95, 0.08);
	color: var(--brand);
	font-size: 0.9rem;
	font-weight: 700;
}

.catalog-subsection {
	padding: 1.2rem 0 0;
}

.catalog-subtitle {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.catalog-card {
	overflow: hidden;
	border-radius: 1.3rem;
	border: 1px solid rgba(16, 33, 63, 0.1);
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 18px 45px rgba(17, 35, 67, 0.08);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.catalog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 55px rgba(17, 35, 67, 0.12);
}

.catalog-card-image {
	width: 100%;
	height: 210px;
	object-fit: cover;
	display: block;
}

.catalog-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 210px;
	background: linear-gradient(135deg, rgba(23, 49, 95, 0.95), rgba(33, 79, 141, 0.72));
	color: #fff;
	font-size: 2.4rem;
	font-weight: 800;
	letter-spacing: -0.05em;
}

.catalog-card-body {
	padding: 1.25rem;
}

.catalog-meta {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	margin-bottom: 0.8rem;
	color: var(--muted);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.catalog-meta small {
	font-size: 0.78rem;
	white-space: nowrap;
}

.catalog-card-body h4 {
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.35;
	margin-bottom: 0.75rem;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.catalog-card-body p {
	color: var(--muted);
	line-height: 1.7;
	margin-bottom: 1rem;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.catalog-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.catalog-actions a {
	color: var(--brand);
	font-weight: 800;
	text-decoration: none;
}

.catalog-actions-link {
	color: var(--brand);
	font-weight: 800;
	text-decoration: none;
}

.catalog-actions-muted {
	color: var(--muted);
	font-weight: 700;
}

.contents-detail-section {
	padding-top: 3.5rem;
}

.detail-card {
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: 1.6rem;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--shadow);
}

.detail-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
}

.detail-title {
	line-height: 1.15;
}

.detail-image {
	width: 100%;
	height: 210px;
	object-fit: cover;
	border-radius: 1rem;
	border: 1px solid rgba(16, 33, 63, 0.1);
}

.detail-gallery {
	position: relative;
}

.detail-gallery-nav {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}

.detail-gallery-btn {
	width: 2.1rem;
	height: 2.1rem;
	border: 1px solid rgba(23, 49, 95, 0.18);
	background: rgba(255, 255, 255, 0.92);
	color: var(--brand);
	border-radius: 999px;
	font-size: 1.3rem;
	line-height: 1;
	font-weight: 700;
}

.detail-gallery-track {
	display: flex;
	gap: 0.9rem;
	overflow-x: auto;
	padding-bottom: 0.35rem;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.detail-slide {
	flex: 0 0 clamp(220px, 30vw, 360px);
	scroll-snap-align: start;
}

.detail-text p {
	margin: 0;
	color: var(--text);
	line-height: 1.8;
	font-size: 1.04rem;
	white-space: normal;
	word-break: break-word;
}

.detail-source {
	margin: 0;
	color: var(--muted);
}

.detail-file-box {
	padding: 1rem;
	border: 1px solid rgba(16, 33, 63, 0.1);
	border-radius: 1rem;
	background: rgba(244, 247, 253, 0.72);
}

.detail-preview-frame {
	width: 100%;
	min-height: 68vh;
	border: 1px solid rgba(16, 33, 63, 0.12);
	border-radius: 0.9rem;
	background: #fff;
}

.detail-preview-image,
.detail-preview-video {
	width: 100%;
	border-radius: 0.9rem;
	border: 1px solid rgba(16, 33, 63, 0.12);
	background: #fff;
}

.office-preview-container {
	border: 1px solid rgba(16, 33, 63, 0.12);
	border-radius: 0.9rem;
	background: #fff;
	padding: 1rem;
	min-height: 380px;
	overflow: auto;
}

.office-preview-loading {
	color: var(--muted);
	font-weight: 600;
}

.office-preview-container table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.office-preview-container th,
.office-preview-container td {
	border: 1px solid rgba(16, 33, 63, 0.12);
	padding: 0.45rem 0.55rem;
	vertical-align: top;
}

.office-preview-container th {
	background: rgba(23, 49, 95, 0.08);
	font-weight: 700;
}

@media (max-width: 575.98px) {
	.contents-summary-card,
	.catalog-group,
	.catalog-empty {
		padding: 1.15rem;
	}

	.catalog-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.35rem;
	}

	.catalog-card-image,
	.catalog-card-placeholder {
		height: 190px;
	}

	.catalog-card-body {
		padding: 1rem;
	}

	.catalog-card-body h4 {
		font-size: 0.98rem;
		-webkit-line-clamp: 2;
	}

	.catalog-card-body p {
		font-size: 0.92rem;
		line-height: 1.55;
		-webkit-line-clamp: 3;
	}

	.catalog-actions a,
	.catalog-actions-muted {
		font-size: 0.92rem;
	}

	.detail-image {
		height: 165px;
	}

	.detail-slide {
		flex-basis: 78vw;
	}

	.detail-preview-frame {
		min-height: 58vh;
	}
}
