/* ── Design tokens (landing only) ── */
.page-home-landing {
	--ink: #172038;
	--navy: #1E2A4A;
	--paper: #F5F6F1;
	--card: #FFFFFF;
	--gold: #E8A33D;
	--gold-deep: #C6841F;
	--teal: #1C7A72;
	--line: #DDE0DA;
	--muted: #5B6478;
	--radius-card: 18px;
	--radius-pill: 999px;
	--font-display: 'Niramit', sans-serif;
	--font-body: 'Niramit', sans-serif;
	--font-label: 'Niramit', sans-serif;
	--shadow-card: 0 12px 40px rgba(23, 32, 56, 0.08);
	--shadow-card-hover: 0 20px 48px rgba(23, 32, 56, 0.14);
	--header-h: 72px;
	color-scheme: light;
}

html:has(.page-home-landing) {
	scroll-behavior: smooth;
}

body.page-home-landing {
	margin: 0;
	padding: 0 !important;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
}

body.page-home-landing *,
body.page-home-landing *::before,
body.page-home-landing *::after {
	box-sizing: border-box;
}

/* Lock landing to light palette even if global dark mode is on */
[data-theme="dark"] body.page-home-landing {
	--ink: #172038;
	--navy: #1E2A4A;
	--paper: #F5F6F1;
	--card: #FFFFFF;
	--gold: #E8A33D;
	--gold-deep: #C6841F;
	--teal: #1C7A72;
	--line: #DDE0DA;
	--muted: #5B6478;
	background: var(--paper);
	color: var(--ink);
}

.page-home-landing img:not(.hl-brand__logo):not(.hl-emblem__logo) {
	max-width: 100%;
	height: auto;
}

.page-home-landing a:not(.hl-btn) {
	color: inherit;
}

/* ── Utilities ── */
.hl-container {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.hl-eyebrow {
	font-family: var(--font-label);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--teal);
}

.hl-display {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--navy);
	line-height: 1.2;
}

.hl-muted {
	color: var(--muted);
}

/* ── Buttons ── */
.hl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 26px;
	border-radius: var(--radius-pill);
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hl-btn:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.hl-btn--primary {
	background: var(--gold);
	color: var(--navy);
	border-color: var(--gold);
	box-shadow: 0 8px 24px rgba(232, 163, 61, 0.35);
}

.hl-btn--primary:hover {
	background: var(--gold-deep);
	border-color: var(--gold-deep);
	transform: translateY(-1px);
}

.hl-btn--ghost {
	background: transparent;
	color: var(--navy);
	border-color: var(--navy);
}

.hl-btn--ghost:hover {
	background: rgba(30, 42, 74, 0.06);
	transform: translateY(-1px);
}

.hl-btn--navy {
	background: var(--navy);
	color: #ffffff;
	border-color: var(--navy);
}

.hl-btn--navy:hover {
	background: #162038;
	border-color: #162038;
	color: #ffffff;
	transform: translateY(-1px);
}

.hl-btn--sm {
	min-height: 40px;
	padding: 8px 18px;
	font-size: 0.88rem;
}

/* ── Header ── */
.hl-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(245, 246, 241, 0.82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.hl-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--header-h);
}

.hl-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	flex-shrink: 0;
}

.hl-brand__mark {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--navy);
	color: var(--gold);
	font-family: var(--font-label);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	border: 2px solid rgba(232, 163, 61, 0.45);
}

.hl-brand__mark--logo {
	padding: 0;
	overflow: hidden;
	background: transparent;
	border: none;
}

.hl-brand__mark--logo .hl-brand__logo {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	object-position: center;
}

.hl-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.hl-brand__text strong {
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--navy);
}

.hl-brand__text span {
	font-size: 0.72rem;
	color: var(--muted);
}

.hl-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.hl-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hl-nav a {
	padding: 8px 14px;
	border-radius: var(--radius-pill);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--muted);
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease;
}

.hl-nav a:hover,
.hl-nav a.is-active {
	color: var(--navy);
	background: rgba(30, 42, 74, 0.06);
}

.hl-nav a:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

.hl-header__cta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.hl-header__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.hl-user-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 200px;
	padding: 6px 12px 6px 6px;
	border-radius: var(--radius-pill);
	background: var(--card);
	border: 1px solid var(--line);
	font-size: 0.86rem;
	font-weight: 500;
	color: var(--navy);
}

.hl-user-pill__avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--navy);
	color: var(--gold);
	font-family: var(--font-label);
	font-size: 0.78rem;
	font-weight: 700;
	flex-shrink: 0;
}

.hl-user-pill__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hl-user-dropdown {
	position: relative;
	display: inline-flex;
}

.hl-user-dropdown__toggle {
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

.hl-user-dropdown__caret {
	width: 0;
	height: 0;
	margin-left: 2px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid var(--muted);
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.hl-user-dropdown.is-open .hl-user-dropdown__caret {
	transform: rotate(180deg);
}

.hl-user-dropdown__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 60;
	min-width: 180px;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--card);
	box-shadow: var(--shadow-card-hover);
}

.hl-user-dropdown__item {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--navy);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.hl-user-dropdown__item:hover {
	background: var(--paper);
	color: var(--teal);
	text-decoration: none;
}

.hl-section--gallery {
	padding-top: 0;
	padding-bottom: 56px;
}

.hl-gallery-panel {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

#services .hl-gallery-panel {
	margin-top: 36px;
}

.hl-gallery-panel iframe {
	display: block;
	width: 100%;
	min-height: 420px;
	border: 0;
}

.hl-menu-toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--card);
	color: var(--navy);
	cursor: pointer;
}

.hl-menu-toggle:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}

/* ── Hero ── */
.hl-hero {
	padding: 56px 0 72px;
}

.hl-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 48px;
	align-items: center;
}

.hl-hero__copy {
	animation: hl-rise 0.9s ease both;
}

.hl-hero__copy .hl-eyebrow {
	margin-bottom: 14px;
}

.hl-hero__title {
	margin: 0 0 18px;
	font-size: clamp(2rem, 4.5vw, 3.15rem);
}

.hl-hero__lead {
	margin: 0 0 28px;
	font-size: 1.05rem;
	color: var(--muted);
}

.hl-hero__lead-line {
	display: block;
}

.hl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hl-hero__visual {
	display: flex;
	justify-content: center;
	animation: hl-rise 0.9s ease 0.12s both;
}

.hl-emblem-wrap {
	position: relative;
	width: min(360px, 88vw);
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	animation: hl-emblem-float 7s ease-in-out infinite;
}

.hl-emblem__logo {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36.25%;
	height: 36.25%;
	transform: translate(-50%, -50%);
	object-fit: contain;
	object-position: center;
	z-index: 2;
	pointer-events: none;
	border-radius: 50%;
}

.hl-emblem {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.hl-emblem__halo {
	animation: hl-emblem-halo 5s ease-in-out infinite;
	transform-origin: 0 0;
}

.hl-emblem__stage {
	transform-origin: 0 0;
}

.hl-emblem__ring {
	transform-origin: 0 0;
}

.hl-emblem__ring--outer {
	animation: hl-spin 26s linear infinite;
}

.hl-emblem__ring--mid {
	animation: hl-spin-rev 20s linear infinite;
}

.hl-emblem__ring--inner {
	animation: hl-spin 15s linear infinite;
}

.hl-emblem__core {
	transform-origin: 0 0;
	animation: hl-emblem-core 4.5s ease-in-out infinite;
}

.hl-emblem__core-ring {
	transform-origin: 0 0;
	animation: hl-emblem-core-ring 3s ease-in-out infinite;
}

.hl-emblem-wrap:hover {
	animation-duration: 4s;
}

.hl-emblem-wrap:hover .hl-emblem__ring--outer {
	animation-duration: 7s;
}

.hl-emblem-wrap:hover .hl-emblem__ring--mid {
	animation-duration: 5.5s;
}

.hl-emblem-wrap:hover .hl-emblem__ring--inner {
	animation-duration: 4s;
}

.hl-emblem-wrap:hover .hl-emblem__core {
	animation-duration: 2.2s;
}

.hl-emblem-wrap:hover::after {
	opacity: 1;
	transform: scale(1.06);
}

.hl-emblem-wrap::after {
	content: '';
	position: absolute;
	inset: 10%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(232, 163, 61, 0.18), transparent 68%);
	pointer-events: none;
	opacity: 0.75;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

@keyframes hl-emblem-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

@keyframes hl-emblem-halo {
	0%, 100% { opacity: 0.55; transform: scale(1); }
	50% { opacity: 0.9; transform: scale(1.04); }
}

@keyframes hl-emblem-core {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.045); }
}

@keyframes hl-emblem-core-ring {
	0%, 100% { opacity: 0.35; stroke-width: 1.5; }
	50% { opacity: 0.75; stroke-width: 2.2; }
}

@keyframes hl-spin-rev {
	from { transform: rotate(0deg); }
	to { transform: rotate(-360deg); }
}

@keyframes hl-rise {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes hl-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* ── Divider bar ── */
.hl-divider {
	background: var(--navy);
	height: 48px;
}

/* ── Stats bar ── */
.hl-stats {
	background: var(--navy);
	color: #e8ecf4;
	padding: 28px 0;
}

.hl-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.hl-stat {
	text-align: center;
	padding: 8px 12px;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hl-stat:last-child {
	border-right: 0;
}

.hl-stat__value {
	display: block;
	font-family: var(--font-label);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--gold);
	margin-bottom: 4px;
}

.hl-stat__label {
	font-size: 0.88rem;
	color: rgba(232, 236, 244, 0.82);
	line-height: 1.4;
}

/* ── Sections ── */
.hl-section {
	padding: 72px 0;
}

#docs {
	padding-top: 40px;
}

.hl-section__head {
	margin-bottom: 36px;
}

.hl-section__head h2 {
	margin: 8px 0 10px;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.hl-section__head p {
	margin: 0;
	max-width: 52ch;
}

/* ── Service cards ── */
.hl-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.hl-service-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 26px 24px 22px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hl-service-card:hover {
	transform: translateY(-4px);
	border-color: var(--gold);
	box-shadow: var(--shadow-card-hover);
}

.hl-service-card__icon {
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	color: var(--teal);
}

.hl-service-card__icon svg {
	width: 100%;
	height: 100%;
}

.hl-service-card h3 {
	margin: 0 0 8px;
	font-family: var(--font-display);
	font-size: 1.12rem;
	font-weight: 600;
	color: var(--navy);
}

.hl-service-card p {
	margin: 0 0 18px;
	flex: 1;
	font-size: 0.92rem;
	color: var(--muted);
}

.hl-service-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--navy);
	text-decoration: none;
}

.hl-service-card__link:hover {
	color: var(--gold-deep);
}

.hl-service-card__link:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ── Documents ── */
.hl-docs__panel {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	padding: 32px 36px;
}

.hl-docs__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 40px;
}

.hl-doc-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
}

.hl-doc-item:last-child {
	border-bottom: 0;
}

.hl-doc-item__num {
	flex-shrink: 0;
	font-family: var(--font-label);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--gold);
	line-height: 1;
	min-width: 2.2rem;
}

.hl-doc-item__body h3 {
	margin: 0 0 6px;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	color: var(--navy);
}

.hl-doc-item__body p {
	margin: 0 0 10px;
	font-size: 0.88rem;
	color: var(--muted);
}

.hl-doc-item__body a {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--teal);
	text-decoration: none;
}

.hl-doc-item__body a:hover {
	color: var(--navy);
	text-decoration: underline;
}

.hl-doc-item__body a:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ── Footer ── */
.hl-footer {
	background: var(--navy);
	color: rgba(232, 236, 244, 0.9);
	padding: 48px 0 28px;
}

.hl-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 32px;
	margin-bottom: 28px;
}

.hl-footer__brand strong {
	display: block;
	font-family: var(--font-display);
	font-size: 1.2rem;
	color: #fff;
	margin-bottom: 8px;
}

.hl-footer__brand p {
	margin: 0;
	font-size: 0.92rem;
	color: rgba(232, 236, 244, 0.75);
	max-width: 36ch;
}

.hl-footer__contact h3 {
	margin: 0 0 14px;
	font-family: var(--font-label);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold);
}

.hl-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hl-footer__list li {
	margin-bottom: 10px;
	font-size: 0.9rem;
	line-height: 1.5;
}

.hl-footer__list strong {
	color: #fff;
	font-weight: 600;
	margin-right: 6px;
}

.hl-footer__list a {
	color: rgba(232, 236, 244, 0.85);
	text-decoration: none;
}

.hl-footer__list a:hover {
	color: var(--gold);
}

.hl-footer__list a:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
	border-radius: 4px;
}

.hl-footer__copy {
	margin: 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.8rem;
	color: rgba(232, 236, 244, 0.55);
	text-align: center;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
	body.page-home-landing *,
	body.page-home-landing *::before,
	body.page-home-landing *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.hl-emblem,
	.hl-emblem-wrap,
	.hl-emblem__ring,
	.hl-emblem__core,
	.hl-emblem__halo,
	.hl-emblem__core-ring {
		animation: none !important;
	}
}

/* ── Responsive ── */
@media (max-width: 960px) {
	.hl-header__actions {
		display: none;
	}

	.hl-header__meta {
		flex-direction: column;
		align-items: stretch;
	}

	.hl-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	body.page-home-landing.nav-open .hl-header__actions {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0;
		padding: 12px 20px 16px;
		background: rgba(245, 246, 241, 0.97);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 32px rgba(23, 32, 56, 0.1);
	}

	body.page-home-landing.nav-open .hl-nav {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	body.page-home-landing.nav-open .hl-header__cta,
	body.page-home-landing.nav-open .hl-header__meta {
		width: 100%;
	}

	body.page-home-landing.nav-open .hl-header__cta .hl-btn,
	body.page-home-landing.nav-open .hl-header__meta .hl-btn {
		width: 100%;
	}

	body.page-home-landing.nav-open .hl-user-pill {
		max-width: none;
		width: 100%;
	}

	.hl-header {
		position: sticky;
	}

	.hl-header__inner {
		position: relative;
		flex-wrap: wrap;
	}

	.hl-hero__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.hl-hero__visual {
		order: -1;
	}

	.hl-emblem-wrap {
		width: min(280px, 78vw);
	}

	.hl-stats__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hl-stat:nth-child(2) {
		border-right: 0;
	}

	.hl-stat {
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		padding-bottom: 16px;
	}

	.hl-stat:nth-last-child(-n+2) {
		border-bottom: 0;
	}

	.hl-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.hl-docs__grid {
		grid-template-columns: 1fr;
	}

	.hl-footer__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.hl-container {
		width: min(1180px, calc(100% - 28px));
	}

	.hl-hero {
		padding-top: 36px;
		padding-bottom: 48px;
	}

	.hl-section {
		padding: 52px 0;
	}

	#docs {
		padding-top: 28px;
	}

	.hl-services__grid {
		grid-template-columns: 1fr;
	}

	.hl-stats__grid {
		grid-template-columns: 1fr;
	}

	.hl-stat {
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.hl-stat:last-child {
		border-bottom: 0;
	}

	.hl-docs__panel {
		padding: 22px 20px;
	}

	.hl-hero__actions {
		flex-direction: column;
	}

	.hl-hero__actions .hl-btn {
		width: 100%;
	}

	.hl-gallery-panel iframe {
		min-height: 260px;
	}
}
