/* ==========================================================================
   Startium header navigation
   Markup: template-parts/startium-header.php · JS: assets/js/startium-header.js
   Everything is scoped to .stn-header so it cannot leak into Elementor content,
   and is specific enough to override Hello Elementor's reset (button, a) and
   the Elementor kit (.elementor-kit-10 a / button).
   Breakpoints: desktop ≥ 1080 · tablet 700–1079 · phone < 700
   ========================================================================== */

/* ---------- Tokens ---------- */
.stn-header {
	--stn-navy: #192440; --stn-blue: #009FE3; --stn-blue-600: #0091CF; --stn-blue-50: #E6F5FC;
	--stn-white: #FFFFFF; --stn-offwhite: #F5F5F5; --stn-neutral-100: #EBEBEB; --stn-neutral-300: #B3B3B3;
	--stn-neutral-600: #666666; --stn-neutral-800: #373737; --stn-neutral-900: #222222; --stn-black: #111111;
	--stn-navy-15: rgba(25, 36, 64, 0.15); --stn-navy-15-solid: #D7D8DD;
	--stn-orange-50: #FEF6EF; --stn-orange-800: #845A35;

	--stn-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--stn-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--stn-ease-morph: cubic-bezier(0.32, 0.72, 0, 1);
	--stn-spring: linear(0, 0.0572, 0.1867, 0.3426, 0.4966, 0.6337, 0.7471, 0.8352, 0.8996, 0.9438, 0.9722, 0.9888, 0.9974, 1.0009, 1.0016, 1.0011, 1.0004, 0.9999, 0.9997, 0.9996, 0.9997, 0.9998, 0.9999, 1, 1);
	--nav-h: 76px; --gutter: 32px; --radius: 8px;
	--stn-admin: 0px;  /* WP admin bar height (logged-in users) */
	--stn-top: var(--stn-admin); /* live top of the header; JS updates it when menus open */

	/* Light navigation: every page except Studio */
	--nav-bg: var(--stn-white); --nav-border: var(--stn-navy-15-solid); --nav-fg: var(--stn-navy); --nav-hover: var(--stn-offwhite);
	--title: var(--stn-navy); --desc: var(--stn-neutral-600); --divider-soft: var(--stn-neutral-100);
	--tile-border: var(--stn-navy-15-solid); --tile-bg: var(--stn-white); --tile-fg: var(--stn-navy);
	--tile-hover-bg: var(--stn-blue-50); --tile-hover-border: var(--stn-blue-50); --tile-hover-fg: var(--stn-blue);
	--feature-bg: var(--stn-offwhite); --feature-hover: var(--stn-neutral-100);
	--logo-mark: #009FE3; --logo-word: #192440;
	color-scheme: light;
}
/* Dark navigation: Studio page only (set in PHP via data-theme) */
.stn-header[data-theme="dark"] {
	--nav-bg: var(--stn-black); --nav-border: var(--stn-neutral-900); --nav-fg: var(--stn-white); --nav-hover: var(--stn-neutral-900);
	--title: var(--stn-white); --desc: var(--stn-neutral-300); --divider-soft: var(--stn-neutral-900);
	--tile-border: var(--stn-neutral-800); --tile-bg: var(--stn-black); --tile-fg: var(--stn-white);
	--tile-hover-bg: var(--stn-blue); --tile-hover-border: var(--stn-blue); --tile-hover-fg: var(--stn-white);
	--feature-bg: var(--stn-neutral-900); --feature-hover: var(--stn-neutral-800);
	--logo-mark: #FFFFFF; --logo-word: #FFFFFF;
	color-scheme: dark;
}
@media (max-width: 1079px) { .stn-header { --nav-h: 72px; } }
@media (max-width: 699px)  { .stn-header { --nav-h: 64px; --gutter: 20px; } }

/* WordPress admin bar offsets */
.admin-bar .stn-header { --stn-admin: 32px; }
@media (max-width: 782px) { .admin-bar .stn-header { --stn-admin: 46px; } }
@media (max-width: 600px) { .admin-bar .stn-header { --stn-admin: 0px; } } /* admin bar scrolls away here */

/* ---------- Local reset ---------- */
.stn-header, .stn-header *, .stn-header *::before, .stn-header *::after { box-sizing: border-box; }
.stn-header { font-family: var(--stn-font); -webkit-font-smoothing: antialiased; line-height: 1.5; }
.stn-header a { color: inherit; text-decoration: none; }
.stn-header p { margin: 0; }
.stn-header ul { list-style: none; margin: 0; padding: 0; }
.stn-header svg { overflow: visible; }
.stn-header img { max-width: none; }
.stn-header button,
.stn-header button:hover,
.stn-header button:focus,
.stn-header button:active {
	font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; margin: 0;
	box-shadow: none; text-transform: none; letter-spacing: inherit; white-space: normal; cursor: pointer; width: auto;
}
.stn-header :focus-visible { outline: 2px solid var(--stn-blue); outline-offset: 2px; }
body.stn-locked { overflow: hidden; }

/* ---------- Icons ---------- */
.stn-header .stn-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stn-header .stn-icon-tile {
	flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
	border: 1px solid var(--tile-border); background: var(--tile-bg); color: var(--tile-fg);
	transition: color 260ms var(--stn-ease-out), background-color 260ms var(--stn-ease-out), border-color 260ms var(--stn-ease-out);
}
.stn-header .stn-chev { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 380ms var(--stn-ease-morph); }
.stn-header [aria-expanded="true"] > .stn-chev { transform: rotate(180deg); }
.stn-header .stn-flag { flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--tile-border); }
.stn-header .stn-flag svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.stn-header .stn-ext { width: 16px; height: 16px; margin-left: auto; color: var(--desc); }
.stn-header .stn-with-star { white-space: nowrap; }
.stn-header .stn-star { display: inline-block; width: 0.76em; height: 0.76em; margin-left: 0.06em; vertical-align: top; position: relative; top: -0.26em; fill: currentColor; stroke: currentColor; stroke-linejoin: round; }
.stn-header .stn-badge { display: inline-block; width: max-content; margin-top: 4px; padding: 3px 8px; border-radius: 6px; background: var(--stn-orange-50); color: var(--stn-orange-800); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.4; }

/* ---------- Button: arrow swaps sides on hover ---------- */
.stn-header .stn-btn {
	display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px;
	border-radius: var(--radius); background: var(--stn-blue); color: var(--stn-white);
	font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
	transition: background-color 300ms ease, transform 160ms var(--stn-ease-out);
}
.stn-header .stn-btn:hover, .stn-header .stn-btn:focus-visible { background: var(--stn-blue-600); color: var(--stn-white); }
.stn-header .stn-btn:active { transform: scale(0.97); }
.stn-header .stn-btn__arr { display: inline-flex; overflow: hidden; transition: width 450ms var(--stn-ease-out), margin 450ms var(--stn-ease-out), opacity 300ms ease; }
.stn-header .stn-btn__arr svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 450ms var(--stn-ease-out); }
.stn-header .stn-btn__arr:first-child { width: 0; opacity: 0; }
.stn-header .stn-btn__arr:first-child svg { transform: translateX(-10px); }
.stn-header .stn-btn__arr:last-child { width: 17px; margin-left: 10px; }
.stn-header .stn-btn:is(:hover, :focus-visible) .stn-btn__arr:first-child { width: 17px; margin-right: 10px; opacity: 1; }
.stn-header .stn-btn:is(:hover, :focus-visible) .stn-btn__arr:first-child svg { transform: none; }
.stn-header .stn-btn:is(:hover, :focus-visible) .stn-btn__arr:last-child { width: 0; margin-left: 0; opacity: 0; }
.stn-header .stn-btn:is(:hover, :focus-visible) .stn-btn__arr:last-child svg { transform: translateX(10px); }
.stn-header button.stn-btn--outline,
.stn-header button.stn-btn--outline:focus { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; font-size: 15px; font-weight: 500; line-height: 1; border-radius: var(--radius); background: transparent; color: var(--nav-fg); box-shadow: inset 0 0 0 1px var(--nav-fg); white-space: nowrap; }
.stn-header button.stn-btn--outline:hover, .stn-header button.stn-btn--outline:focus-visible { background: var(--nav-hover); color: var(--nav-fg); }

/* ---------- Header bar ---------- */
.stn-header {
	position: sticky; top: var(--stn-admin); z-index: 999; height: var(--nav-h);
	background: var(--nav-bg); border-bottom: 0; /* no bottom border (matches live site); scrolled state uses a soft shadow */
	/* smooth fade between transparent (top of page) and solid (scrolled) */
	transition: background-color 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
}
.stn-header .stn-inner {
	position: relative; max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 var(--gutter);
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.stn-header .stn-logo { justify-self: start; display: block; width: 144px; height: 28px; border-radius: 4px; }
.stn-header .stn-logo svg { display: block; width: 100%; height: 100%; }
.stn-header .stn-logo-mark, .stn-header .stn-logo-word { transition: fill 400ms ease; }
.stn-header .stn-logo-mark { fill: var(--logo-mark); }
.stn-header .stn-logo-word { fill: var(--logo-word); }

.stn-header .stn-list { display: flex; gap: 2px; }
.stn-header .stn-link,
.stn-header button.stn-link {
	position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
	border-radius: var(--radius); color: var(--nav-fg); font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
	transition: color 400ms ease, background-color 400ms ease;
}
.stn-header .stn-link:hover { color: var(--nav-fg); }
.stn-header .stn-link[aria-current],
.stn-header button.stn-link[aria-current] { color: var(--stn-blue); }
.stn-header .stn-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.stn-header .stn-hl {
	position: absolute; top: 0; left: 0; height: 40px; border-radius: var(--radius); background: var(--nav-hover);
	opacity: 0; pointer-events: none;
	transition: transform 380ms var(--stn-ease-morph), width 380ms var(--stn-ease-morph), opacity 200ms var(--stn-ease-out);
}
.stn-header .stn-hl.is-visible { opacity: 1; }
.stn-header .stn-hl.no-slide { transition-property: opacity; }

/* ---------- Transparent over the hero (Home, Studio, blog posts) ----------
   Only at the top of the page; turns solid (white, or black on Studio) once the user scrolls
   or opens the mobile drawer. Dropdowns opened at the top stay transparent: the card becomes
   frosted glass with white text (matches the live site).
   Pure CSS (data-transparent is set in PHP) so it is correct on the very first paint.
   Widths match where each page's hero slides under the header (Elementor -90px margin):
     data-transparent="tablet"  → 768px and up   (Studio, blog posts)
     data-transparent="desktop" → 1025px and up  (Home) */
@media (min-width: 768px) {
	.stn-header[data-transparent="tablet"]:not(.is-scrolled):not(.is-drawer-open) {
		/* bar */
		--nav-fg: var(--stn-white); --nav-hover: rgba(233, 233, 236, 0.31); --logo-word: #FFFFFF;
		/* dropdown card contents */
		--title: var(--stn-white); --desc: rgba(255, 255, 255, 0.72);
		--tile-bg: rgba(255, 255, 255, 0.08); --tile-border: rgba(255, 255, 255, 0.28); --tile-fg: var(--stn-white);
		--tile-hover-bg: var(--stn-blue); --tile-hover-border: var(--stn-blue); --tile-hover-fg: var(--stn-white);
		--feature-bg: rgba(255, 255, 255, 0.10); --feature-hover: rgba(255, 255, 255, 0.18);
		background-color: transparent; box-shadow: none;
	}
	/* Current page: white text on a translucent pill (blue text gets lost on photos) */
	.stn-header[data-transparent="tablet"]:not(.is-scrolled):not(.is-drawer-open) .stn-link[aria-current] {
		color: var(--stn-white); background: rgba(233, 233, 236, 0.31);
	}
	/* Frosted-glass dropdown card */
	.stn-header[data-transparent="tablet"]:not(.is-scrolled):not(.is-drawer-open) .stn-dropdown {
		background: rgba(233, 233, 236, 0.22); border-color: rgba(255, 255, 255, 0.18); box-shadow: none;
		-webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
	}
	/* lighter blue so overline links stay readable on the glass */
	.stn-header[data-transparent="tablet"]:not(.is-scrolled):not(.is-drawer-open) .stn-feature-overline { color: #8AD8FA; }
}
@media (min-width: 1025px) {
	.stn-header[data-transparent="desktop"]:not(.is-scrolled):not(.is-drawer-open) {
		--nav-fg: var(--stn-white); --nav-hover: rgba(233, 233, 236, 0.31); --logo-word: #FFFFFF;
		--title: var(--stn-white); --desc: rgba(255, 255, 255, 0.72);
		--tile-bg: rgba(255, 255, 255, 0.08); --tile-border: rgba(255, 255, 255, 0.28); --tile-fg: var(--stn-white);
		--tile-hover-bg: var(--stn-blue); --tile-hover-border: var(--stn-blue); --tile-hover-fg: var(--stn-white);
		--feature-bg: rgba(255, 255, 255, 0.10); --feature-hover: rgba(255, 255, 255, 0.18);
		background-color: transparent; box-shadow: none;
	}
	.stn-header[data-transparent="desktop"]:not(.is-scrolled):not(.is-drawer-open) .stn-link[aria-current] {
		color: var(--stn-white); background: rgba(233, 233, 236, 0.31);
	}
	.stn-header[data-transparent="desktop"]:not(.is-scrolled):not(.is-drawer-open) .stn-dropdown {
		background: rgba(233, 233, 236, 0.22); border-color: rgba(255, 255, 255, 0.18); box-shadow: none;
		-webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
	}
	/* lighter blue so overline links stay readable on the glass */
	.stn-header[data-transparent="desktop"]:not(.is-scrolled):not(.is-drawer-open) .stn-feature-overline { color: #8AD8FA; }
}
.stn-header.is-scrolled { box-shadow: 0 6px 24px -16px var(--stn-navy-15); }
.stn-header[data-theme="dark"].is-scrolled { box-shadow: none; }

/* ---------- Desktop dropdown: floating card that follows the menu ---------- */
.stn-header .stn-dropdown {
	--x: 0px; --w: 0px; --h: 0px;
	position: fixed; top: calc(var(--stn-top) + var(--nav-h) + 10px); left: 0; z-index: 60;
	width: var(--w); height: var(--h); overflow: hidden;
	background: var(--nav-bg); border: 1px solid var(--nav-border); border-radius: 18px;
	box-shadow: 0 16px 40px -12px var(--stn-navy-15);
	transform: translate3d(var(--x), -6px, 0) scale(0.97); transform-origin: var(--origin, 50%) top;
	opacity: 0; visibility: hidden;
	transition: opacity 160ms var(--stn-ease-out), transform 220ms var(--stn-ease-out), visibility 0s linear 220ms,
	            width 460ms var(--stn-spring), height 460ms var(--stn-spring);
}
.stn-header .stn-dropdown.is-open {
	opacity: 1; visibility: visible; transform: translate3d(var(--x), 0, 0) scale(1);
	transition: opacity 200ms var(--stn-ease-out), transform 460ms var(--stn-spring), visibility 0s,
	            width 460ms var(--stn-spring), height 460ms var(--stn-spring);
}
.stn-header[data-theme="dark"] .stn-dropdown { box-shadow: none; }
.stn-header .stn-panel {
	--from: 0px; position: absolute; top: 0; left: 0; width: max-content; padding: 12px;
	opacity: 0; transform: translateX(var(--from)); pointer-events: none;
	transition: opacity 240ms var(--stn-ease-out), transform 420ms var(--stn-ease-morph);
}
.stn-header .stn-panel:not(.is-active) { transition: opacity 120ms ease-out, transform 420ms var(--stn-ease-morph); }
.stn-header .stn-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.stn-header .stn-panel-grid { display: grid; gap: 12px; }
/* Dropdown width follows its content (works for any menu name from Appearance → Menus):
   up to 4 items = one column, 5+ items = two columns, image card = extra 248px column. */
.stn-header .stn-panel .stn-panel-grid { grid-template-columns: 300px; }
.stn-header .stn-panel--cols2 .stn-panel-grid { grid-template-columns: 600px; }
.stn-header .stn-panel--cols2 .stn-menu-items { grid-template-columns: 1fr 1fr; }
.stn-header .stn-panel--feature .stn-panel-grid { grid-template-columns: 300px 248px; }
.stn-header .stn-panel--cols2.stn-panel--feature .stn-panel-grid { grid-template-columns: 600px 248px; }
.stn-header .stn-panel-login .stn-panel-grid { grid-template-columns: 260px; }
.stn-header .stn-group-label { margin: 6px 10px 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--desc); }
.stn-header .stn-menu-items { display: grid; gap: 2px; }
.stn-header .stn-menu-item { display: flex; align-items: flex-start; gap: 14px; padding: 10px; border-radius: 12px; text-decoration: none; transition: background-color 200ms var(--stn-ease-out); }
.stn-header a.stn-menu-item:hover, .stn-header a.stn-menu-item:focus-visible { background: var(--nav-hover); }
.stn-header .stn-menu-item[aria-current] .stn-menu-title { color: var(--stn-blue); }
.stn-header a.stn-menu-item:is(:hover, :focus-visible, [aria-current]) .stn-icon-tile { color: var(--tile-hover-fg); background: var(--tile-hover-bg); border-color: var(--tile-hover-border); }
.stn-header .stn-menu-item.is-region { align-items: center; }
.stn-header .stn-menu-item.is-soon .stn-icon-tile { border-style: dashed; }
.stn-header .stn-menu-text { display: grid; gap: 3px; min-width: 0; }
.stn-header .stn-menu-title { color: var(--title); font-size: 15px; font-weight: 500; line-height: 1.35; }
.stn-header .stn-menu-desc { color: var(--desc); font-size: 13px; line-height: 1.45; }
.stn-header .stn-feature { height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 16px; border-radius: 12px; background: var(--feature-bg); text-decoration: none; transition: background-color 260ms var(--stn-ease-out); }
.stn-header .stn-feature:hover { background: var(--feature-hover); }
.stn-header .stn-feature > :not(.stn-feature-media) { padding: 0 8px; }
.stn-header .stn-feature-media { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; margin-bottom: 8px; background: var(--stn-navy); }
.stn-header .stn-feature-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transition: transform 700ms var(--stn-ease-out); }
.stn-header .stn-feature:is(:hover, :focus-visible) .stn-feature-media img { transform: scale(1.08); }
.stn-header .stn-feature-overline { color: var(--stn-blue); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.stn-header .stn-feature-title { display: block; color: var(--title); font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.stn-header .stn-feature-body { display: block; color: var(--desc); font-size: 13px; line-height: 1.5; }
@keyframes stn-rise { from { opacity: 0; transform: translateY(8px); } }
.stn-header .stn-panel.is-active .stn-stagger { animation: stn-rise 420ms var(--stn-ease-out) both; animation-delay: calc(var(--i, 0) * 28ms + 40ms); }

/* ---------- Burger → close (X) ---------- */
.stn-header .stn-toggle,
.stn-header button.stn-toggle {
	display: none; justify-self: end; position: relative; z-index: 2; width: 48px; height: 48px; margin-right: -12px; place-items: center;
	border-radius: var(--radius); color: var(--nav-fg); -webkit-tap-highlight-color: transparent;
	transition: color 300ms var(--stn-ease-out), background-color 160ms var(--stn-ease-out);
}
.stn-header button.stn-toggle:active { background: var(--nav-hover); }
.stn-header .stn-burger { position: relative; display: block; width: 22px; height: 16px; }
.stn-header .stn-burger i {
	position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
	transition: rotate 200ms var(--stn-ease-out), translate 200ms var(--stn-ease-out) 160ms, opacity 0s linear 160ms;
}
.stn-header .stn-burger i:nth-child(1) { top: 0; }
.stn-header .stn-burger i:nth-child(2) { top: 7px; }
.stn-header .stn-burger i:nth-child(3) { top: 14px; }
.stn-header.is-drawer-open .stn-burger i { transition: translate 180ms var(--stn-ease-out), rotate 280ms var(--stn-ease-morph) 150ms, opacity 0s linear 150ms; }
.stn-header.is-drawer-open .stn-burger i:nth-child(1) { translate: 0 7px; rotate: 45deg; }
.stn-header.is-drawer-open .stn-burger i:nth-child(2) { opacity: 0; }
.stn-header.is-drawer-open .stn-burger i:nth-child(3) { translate: 0 -7px; rotate: -45deg; }

/* ---------- Tablet / phone drawer ---------- */
.stn-header .stn-drawer {
	position: fixed; top: calc(var(--stn-top) + var(--nav-h)); left: 0; right: 0; bottom: 0; z-index: 998;
	display: flex; flex-direction: column; background: var(--nav-bg);
	visibility: hidden; clip-path: inset(0 0 100% 0);
	transition: clip-path 320ms cubic-bezier(0.65, 0, 0.35, 1) 80ms, visibility 0s linear 400ms;
}
.stn-header.is-drawer-open .stn-drawer { visibility: visible; clip-path: inset(0); transition: clip-path 460ms var(--stn-ease-morph), visibility 0s; }
.stn-header .stn-drawer-views, .stn-header .stn-drawer-cta { opacity: 0; translate: 0 -6px; transition: opacity 140ms var(--stn-ease-out), translate 200ms var(--stn-ease-out); }
.stn-header.is-drawer-open :is(.stn-drawer-views, .stn-drawer-cta) { opacity: 1; translate: 0 0; transition: opacity 260ms var(--stn-ease-out) 120ms, translate 420ms var(--stn-ease-out) 120ms; }
.stn-header.is-drawer-open .stn-drawer-view.is-root :is(.stn-drawer-list > li, .stn-drawer-foot) { animation: stn-rise 460ms var(--stn-ease-out) both; animation-delay: calc(140ms + var(--i, 0) * 40ms); }
.stn-header .stn-drawer-list > li:nth-child(2) { --i: 1; }
.stn-header .stn-drawer-list > li:nth-child(3) { --i: 2; }
.stn-header .stn-drawer-list > li:nth-child(4) { --i: 3; }
.stn-header .stn-drawer-list > li:nth-child(5) { --i: 4; }

.stn-header .stn-drawer-views { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.stn-header .stn-drawer-view {
	position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column; padding: 4px var(--gutter) 32px; background: var(--nav-bg);
	opacity: 0; visibility: hidden; transition: opacity 150ms var(--stn-ease-out), visibility 0s linear 150ms;
}
.stn-header .stn-drawer-view > * { width: 100%; max-width: var(--drawer-max, none); margin-inline: auto; }
.stn-header .stn-drawer-view.is-current { opacity: 1; visibility: inherit; transition: opacity 200ms var(--stn-ease-out), visibility 0s; }
@keyframes stn-drop-in { from { opacity: 0; transform: translateY(-8px); } }
.stn-header .stn-drawer-view.is-sub.is-current .stn-drawer-items > li { animation: stn-drop-in 300ms var(--stn-ease-out) both; animation-delay: calc(40ms + var(--i, 0) * 40ms); }
.stn-header .stn-drawer-items > li:nth-child(2) { --i: 1; }
.stn-header .stn-drawer-items > li:nth-child(3) { --i: 2; }
.stn-header .stn-drawer-items > li:nth-child(4) { --i: 3; }
.stn-header .stn-drawer-items > li:nth-child(5) { --i: 4; }
.stn-header .stn-drawer-items > li:nth-child(6) { --i: 5; }
.stn-header .stn-drawer-items > li:nth-child(7) { --i: 6; }

/* Top bar while a sub-menu is open: back arrow · section name · close X */
.stn-header .stn-back {
	position: absolute; inset: 0; z-index: 1; display: none; grid-template-columns: 48px 1fr 48px; align-items: center;
	padding: 0 var(--gutter); background: var(--nav-bg);
}
.stn-header.is-drawer-open:not([data-view="root"]) .stn-back { display: grid; animation: stn-fade-in 200ms var(--stn-ease-out) both; }
@keyframes stn-fade-in { from { opacity: 0; } }
.stn-header button.stn-back-btn { width: 44px; height: 44px; margin-left: -10px; display: grid; place-items: center; border-radius: 50%; color: var(--nav-fg); -webkit-tap-highlight-color: transparent; transition: background-color 160ms var(--stn-ease-out); }
.stn-header button.stn-back-btn:active { background: var(--nav-hover); }
.stn-header .stn-back-btn .stn-icon { width: 24px; height: 24px; stroke-width: 1.75; }
.stn-header .stn-back-title { color: var(--title); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; text-align: center; }

/* 1. Main menu rows */
.stn-header .stn-drawer-link,
.stn-header button.stn-drawer-link {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 0;
	color: var(--nav-fg); font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; text-decoration: none; text-align: left;
	-webkit-tap-highlight-color: transparent; transition: color 200ms var(--stn-ease-out);
}
.stn-header .stn-drawer-link:active,
.stn-header .stn-drawer-link[aria-current],
.stn-header button.stn-drawer-link[aria-expanded="true"] { color: var(--stn-blue); }
.stn-header .stn-drawer-link > .stn-chev { width: 18px; height: 18px; transform: rotate(-90deg); color: var(--desc); }
.stn-header .stn-drawer-link[aria-expanded="true"] > .stn-chev { transform: none; color: var(--stn-blue); }
.stn-header .stn-drawer-link[aria-current] > .stn-chev { color: var(--stn-blue); }
/* Solutions / Resources open in place (accordion), one at a time */
.stn-header .stn-acc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--stn-ease-morph); }
.stn-header .stn-acc > div { min-height: 0; overflow: hidden; margin-inline: -12px; padding-inline: 12px; }
.stn-header [aria-expanded="true"] + .stn-acc { grid-template-rows: 1fr; }
.stn-header .stn-acc .stn-drawer-items { padding: 0 0 12px; border-bottom: 0; }

/* 2. Sub-menu rows */
.stn-header .stn-drawer-items { margin: 0; padding: 12px 0 16px; display: grid; gap: 4px; border-bottom: 1px solid var(--divider-soft); }
.stn-header .stn-drawer-items:last-child { border-bottom: 0; }
.stn-header .stn-drawer-item {
	display: flex; align-items: center; gap: 14px; width: calc(100% + 24px); margin: 0 -12px; min-height: 56px; padding: 8px 12px;
	border-radius: 12px; text-decoration: none; -webkit-tap-highlight-color: transparent;
	transition: background-color 160ms var(--stn-ease-out), transform 160ms var(--stn-ease-out);
}
.stn-header a.stn-drawer-item:active { background: var(--nav-hover); transform: scale(0.985); }
.stn-header .stn-drawer-item .stn-icon-tile { width: 36px; height: 36px; border-radius: 10px; }
.stn-header .stn-drawer-item .stn-icon-tile .stn-icon { width: 18px; height: 18px; }
.stn-header .stn-drawer-item .stn-flag { width: 32px; height: 32px; }
.stn-header .stn-drawer-item .stn-menu-text { flex: 1; }
.stn-header .stn-drawer-item .stn-menu-title { font-size: 16px; font-weight: 500; line-height: 1.3; }
.stn-header .stn-drawer-item .stn-menu-desc { display: none; }
.stn-header .stn-drawer-item > .stn-chev { width: 16px; height: 16px; transform: rotate(-90deg); color: var(--desc); }
.stn-header .stn-drawer-item.is-soon { cursor: default; }
.stn-header .stn-drawer-item.is-soon .stn-icon-tile { border-style: dashed; }
.stn-header .stn-drawer-item.is-soon .stn-menu-title { color: var(--desc); }
.stn-header .stn-drawer-item[aria-current] { background: var(--nav-hover); }
.stn-header .stn-drawer-item[aria-current] .stn-menu-title,
.stn-header .stn-drawer-item[aria-current] > .stn-chev { color: var(--stn-blue); }
.stn-header a.stn-drawer-item:is(:active, [aria-current]) .stn-icon-tile { color: var(--tile-hover-fg); background: var(--tile-hover-bg); border-color: var(--tile-hover-border); }

/* Contact + social */
.stn-header .stn-drawer-foot { --i: 6; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--divider-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.stn-header .stn-drawer-label { margin: 0 0 8px; color: var(--stn-blue); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.stn-header .stn-drawer-text { color: var(--title); font-size: 15px; font-weight: 500; line-height: 1.6; }
.stn-header .stn-drawer-email { color: var(--title); font-size: 15px; font-weight: 500; line-height: 1.6; text-decoration: none; overflow-wrap: anywhere; transition: color 160ms var(--stn-ease-out); }
.stn-header .stn-drawer-email:is(:hover, :focus-visible, :active) { color: var(--stn-blue); }
.stn-header .stn-foot-follow { grid-column: 1 / -1; }
.stn-header .stn-drawer-social { margin: -12px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.stn-header .stn-drawer-social a {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px;
	color: var(--title); font-size: 15px; font-weight: 500; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color 160ms var(--stn-ease-out);
}
.stn-header .stn-drawer-social li:nth-child(n+3) a { border-top: 1px solid var(--divider-soft); }
.stn-header .stn-drawer-social .stn-chev { width: 16px; height: 16px; color: var(--desc); transform: rotate(-90deg); transition: transform 200ms var(--stn-ease-out), color 160ms var(--stn-ease-out); }
.stn-header .stn-drawer-social a:is(:hover, :focus-visible, :active) { color: var(--stn-blue); }
.stn-header .stn-drawer-social a:is(:hover, :focus-visible, :active) .stn-chev { color: var(--stn-blue); transform: rotate(-90deg) translateY(2px); }

/* 3. Bottom bar */
.stn-header .stn-drawer-cta { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--nav-bg); border-top: 1px solid var(--divider-soft); }
.stn-header .stn-drawer-cta > * { min-width: 0; }
.stn-header .stn-drawer-cta .stn-btn,
.stn-header .stn-drawer-cta button.stn-btn--outline { height: 52px; font-size: 16px; }
.stn-header .stn-drawer-cta button.stn-btn--outline[aria-expanded="true"] { background: var(--nav-hover); color: var(--stn-blue); box-shadow: inset 0 0 0 1px var(--stn-blue); }

/* Tablet: bigger type, centred column, two-column sub-menus with descriptions */
@media (min-width: 700px) {
	.stn-header { --drawer-max: 640px; }
	.stn-header .stn-drawer-view { padding-top: 16px; padding-bottom: 40px; }
	.stn-header .stn-drawer-link, .stn-header button.stn-drawer-link { min-height: 68px; font-size: 26px; }
	.stn-header .stn-back-title { font-size: 20px; }
	.stn-header .stn-drawer-items { grid-template-columns: 1fr 1fr; gap: 4px 24px; padding-top: 16px; }
	.stn-header .stn-drawer-item { min-height: 72px; }
	.stn-header .stn-drawer-item .stn-icon-tile { width: 40px; height: 40px; }
	.stn-header .stn-drawer-item .stn-menu-desc { display: block; font-size: 14px; line-height: 1.4; }
	.stn-header .stn-drawer-foot { margin-top: 40px; }
	.stn-header .stn-drawer-social { grid-template-columns: repeat(4, 1fr); }
	.stn-header .stn-drawer-social li:nth-child(n+3) a { border-top: 0; }
	.stn-header .stn-drawer-cta { grid-template-columns: repeat(2, minmax(0, 308px)); justify-content: center; padding-top: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 1080px) {
	.stn-header .stn-back { display: none !important; }
	.stn-header .stn-drawer { display: none; }
}
@media (max-width: 1079px) {
	.stn-header .stn-inner { grid-template-columns: 1fr auto; }
	.stn-header .stn-primary, .stn-header .stn-actions, .stn-header .stn-dropdown, .stn-header .stn-hl { display: none; }
	.stn-header .stn-toggle, .stn-header button.stn-toggle { display: grid; }
}
@media (max-width: 699px) { .stn-header .stn-logo { width: 129px; height: 25px; } }
@media (prefers-reduced-motion: reduce) {
	.stn-header *, .stn-header *::before, .stn-header *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
}
