/* Header: floating glass pill. Becomes denser on scroll; mobile menu is a full-screen sheet. */
.site-header {
	position: fixed; z-index: 100; left: 0; right: 0; top: var(--header-top);
	padding: 0 var(--gutter);
	pointer-events: none;
	transition: top .5s var(--ease);
}
.site-header__bar {
	pointer-events: auto;
	position: relative;
	/* pill edges line up with the content column (bar padding ≈ 10px) */
	max-width: calc(var(--maxw) - 2 * var(--gutter) + 20px); height: var(--header-h); margin: 0 auto;
	display: flex; align-items: center; gap: 12px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(12, 16, 31, .34);
	border: 1px solid rgba(238, 241, 248, .07);
	-webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
	transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), height .5s var(--ease);
	animation: h-in 1s var(--ease) .1s both;
}
.site-header.is-scrolled { top: 10px; }
.site-header.is-scrolled .site-header__bar,
html.menu-open .site-header__bar {
	background: rgba(9, 12, 24, .78);
	border-color: rgba(238, 241, 248, .11);
	-webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px -18px rgba(0, 0, 0, .8);
}

/* Reading progress: a hairline along the bottom of the pill (native scroll timeline). */
.site-header__progress {
	position: absolute; left: 32px; right: 32px; bottom: -1px; height: 1px; pointer-events: none;
	background: linear-gradient(90deg, var(--amber), var(--blue-soft));
	transform-origin: left; transform: scaleX(0); opacity: 0;
}
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.site-header__progress { opacity: .85; animation: h-progress linear both; animation-timeline: scroll(root); }
	}
}
@keyframes h-progress { to { transform: scaleX(1); } }

@keyframes h-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Logo file has an opaque white ground, so it sits on its own white capsule. */
.brand {
	flex: none; display: flex; align-items: center;
	height: 44px; padding: 0 14px;
	background: #fff; border-radius: 999px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 6px 18px -8px rgba(0, 0, 0, .6);
}
.brand__logo { height: 30px; width: auto; }

/* nav */
.primary-nav { display: none; margin: 0 auto; }
.primary-nav ul { display: flex; gap: 2px; }
.primary-nav a {
	display: block; padding: 8px 14px; border-radius: 999px;
	font-size: 14.5px; font-weight: 500; letter-spacing: -.005em;
	color: var(--paper-dim);
	transition: color .25s, background-color .25s;
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--paper); background: rgba(238, 241, 248, .07); }
.primary-nav a[aria-current] { color: var(--paper); }

.header-actions { display: none; align-items: center; gap: 6px; flex: none; }
.link-track {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border-radius: 999px;
	font-size: 14.5px; font-weight: 500; color: var(--paper-dim);
	transition: color .25s, background-color .25s;
}
.link-track .icon-track, .header-track .icon-track { color: var(--cyan); }
.link-track:hover, .link-track:focus-visible { color: var(--paper); background: rgba(238, 241, 248, .07); }

/* hotline (desktop): phone in an amber ring + number */
.hotline {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 4px 14px 4px 4px; margin-right: 2px; border-radius: 999px;
	transition: background-color .25s;
}
.hotline:hover, .hotline:focus-visible { background: rgba(238, 241, 248, .07); }
.hotline__icon {
	position: relative; display: grid; place-items: center; flex: none;
	width: 34px; height: 34px; border-radius: 50%;
	color: var(--amber);
	background: rgba(255, 176, 84, .1); border: 1px solid rgba(255, 176, 84, .3);
	transition: background-color .3s, border-color .3s, box-shadow .4s var(--ease);
}
.hotline__icon .icon, .header-call .icon { width: 16px; height: 16px; }
.hotline:hover .hotline__icon, .hotline:focus-visible .hotline__icon { background: rgba(255, 176, 84, .18); border-color: rgba(255, 176, 84, .55); box-shadow: 0 0 18px -4px rgba(255, 176, 84, .6); }
.hotline:hover .hotline__icon .icon, .hotline:focus-visible .hotline__icon .icon { animation: ring .7s var(--ease); }
.hotline__text { display: grid; line-height: 1.15; }
.hotline__k { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-faint); }
.hotline__v { font-size: 14.5px; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes ring { 0%, 100% { rotate: 0deg; } 20% { rotate: -14deg; } 40% { rotate: 12deg; } 60% { rotate: -8deg; } 80% { rotate: 4deg; } }

/* mobile-only controls */
.header-call {
	display: grid; place-items: center; flex: none; margin-left: auto;
	width: 40px; height: 40px; border-radius: 50%;
	color: var(--amber); background: rgba(255, 176, 84, .1); border: 1px solid rgba(255, 176, 84, .3);
}
.header-call:active { background: rgba(255, 176, 84, .2); }
.header-track {
	display: inline-flex; align-items: center; gap: 7px;
	height: 40px; padding: 0 14px; border-radius: 999px;
	font-size: 14px; font-weight: 600;
	background: rgba(238, 241, 248, .06); border: 1px solid var(--line);
}
.menu-toggle {
	flex: none; display: grid; place-items: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--paper); color: var(--ink);
}
.menu-toggle__icon { position: relative; width: 16px; height: 10px; }
.menu-toggle__icon i {
	position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor;
	transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-toggle__icon i:first-child { top: 1px; }
.menu-toggle__icon i:last-child { top: 7.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { top: 4.25px; transform: rotate(-45deg); }

/* mobile menu sheet */
.mobile-menu {
	position: fixed; inset: 0; z-index: 90;
	background: rgba(5, 7, 14, .94);
	-webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
	visibility: hidden; opacity: 0;
	transition: opacity .45s var(--ease), visibility 0s .45s;
	overflow-y: auto; overscroll-behavior: contain;
}
html.menu-open .mobile-menu { visibility: visible; opacity: 1; transition: opacity .45s var(--ease), visibility 0s; }
.mobile-menu__inner {
	min-height: 100%;
	display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
	padding: calc(var(--header-top) + var(--header-h) + 28px) calc(var(--gutter) + 8px) 28px;
}
.mobile-menu__list li {
	border-bottom: 1px solid var(--line);
	opacity: 0; transform: translateY(10px);
	transition: opacity .5s var(--ease), transform .5s var(--ease);
}
html.menu-open .mobile-menu__list li { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i) * .04s); }
.mobile-menu__list a {
	display: flex; align-items: center; justify-content: space-between; padding: 16px 0;
	font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1;
}
.mobile-menu__list .arrow { color: var(--paper-faint); }
.mobile-menu__foot { display: grid; gap: 10px; opacity: 0; transition: opacity .5s var(--ease) .3s; }
html.menu-open .mobile-menu__foot { opacity: 1; }
.mobile-menu__call { margin-top: 8px; font-size: 14px; color: var(--paper-dim); text-align: center; }
.mobile-menu__call span { margin-right: 6px; }
.mobile-menu__call a { color: var(--paper); font-weight: 600; }

@media (min-width: 1100px) {
	.primary-nav, .header-actions { display: flex; }
	.header-call, .header-track, .menu-toggle, .mobile-menu { display: none; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
	.primary-nav a { padding: 8px 10px; }
	.link-track span { display: none; }
	.hotline__k { display: none; } /* keep the number, drop the label */
	.hotline { padding-right: 10px; }
}
@media (max-width: 1099px) {
	:root { --header-h: 58px; --header-top: 12px; }
	.site-header__bar { padding: 0 7px; gap: 8px; }
	.brand { height: 42px; padding: 0 12px; }
	.brand__logo { height: 28px; }
}
@media (max-width: 359px) {
	.header-track span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.site-header, .site-header__bar { animation: none; transition: none; }
	.hotline__icon .icon { animation: none !important; }
	.mobile-menu, html.menu-open .mobile-menu, .mobile-menu__list li, .mobile-menu__foot { transition: none; }
}
