/* ============================================================
   ApplicationLink 2026 - token layer, base type, header, footer
   Design direction: applicationlink-2026
   ============================================================ */

:root {
	/* Ground and surfaces */
	--al-bg: #0D0D1B;
	--al-bg-alt: #0E0E1C;
	--al-surface: #16162A;
	--al-surface-deep: #0A0A15;

	/* Ink */
	--al-ink: #FFFFFF;
	--al-ink-soft: #F8F9FA;
	--al-muted: #999999;

	/* Accent. One orange. accent-deep is links and hover only. */
	--al-accent: #FC8207;
	--al-accent-deep: #CF6903;

	/* Halo. Purple belongs to the background layer only. */
	--al-halo-bg: #5151A9;
	--al-halo-bg-soft: rgba(81, 81, 169, 0.18);
	--al-halo-fg-soft: rgba(252, 130, 7, 0.22);

	--al-border: rgba(255, 255, 255, 0.1);

	/* Status */
	--al-success: #63E56A;
	--al-warning: #FF9933;
	--al-danger: #E3242B;
	--al-info: #17A2B8;

	/* Type */
	--al-font-display: 'Venera', 'Arial Narrow', sans-serif;
	--al-font-body: 'Gotham', 'Century Gothic', 'Segoe UI', sans-serif;

	/* Spacing */
	--al-space-xs: 8px;
	--al-space-sm: 16px;
	--al-space-md: 24px;
	--al-space-lg: 48px;
	--al-space-xl: 96px;

	/* One radius scale, held everywhere */
	--al-radius-sm: 6px;
	--al-radius-md: 12px;
	--al-radius-lg: 20px;

	/* One shared content container for every section */
	--al-container: 1200px;
	--al-gutter: 24px;
}

/* ------------------------------------------------------------
   Reset. Wrapped in :where() so specificity stays at 0,0,0 and
   any component rule wins. A bare "body h1, h2" reset would
   silently beat single class component rules.
   ------------------------------------------------------------ */

:where(*, *::before, *::after) {
	box-sizing: border-box;
}

:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol) {
	margin: 0;
	padding: 0;
}

:where(ul, ol) {
	list-style: none;
}

:where(img, picture, svg, video) {
	display: block;
	max-width: 100%;
	height: auto;
}

:where(button, input, select, textarea) {
	font: inherit;
	color: inherit;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--al-bg);
	color: var(--al-ink);
	font-family: var(--al-font-body);
	font-weight: 300;
	/* Never below 16px on mobile. */
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */

.al-display,
.al-h1,
.al-h2,
.al-h3 {
	font-family: var(--al-font-display);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.05;
	letter-spacing: 0.01em;
	color: var(--al-ink);
}

.al-h1 {
	/* Lower bound is 30px: measured as the largest size at which the hero
	   headline still holds to two lines in a 375px phone viewport. */
	font-size: clamp(1.875rem, 5.6vw, 5rem);
}

.al-h2 {
	font-size: clamp(1.75rem, 4vw, 3rem);
	line-height: 1.08;
}

.al-h3 {
	font-size: clamp(1.25rem, 2vw, 1.625rem);
	line-height: 1.15;
}

/* Italic display words need room or descenders clip at line-height 1.05. */
.al-display em,
.al-h1 em,
.al-h2 em {
	font-style: italic;
	line-height: 1.15;
	padding-bottom: 0.06em;
}

.al-subhead {
	font-family: var(--al-font-body);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.35;
	color: var(--al-ink);
}

/* Eyebrow. Rationed to at most one per three sections. */
.al-eyebrow {
	font-family: var(--al-font-body);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--al-accent);
	margin-bottom: var(--al-space-sm);
}

.al-lead {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--al-muted);
}

.al-prose p {
	max-width: 68ch;
	margin-bottom: 1.1em;
	color: var(--al-ink-soft);
}

.al-prose p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--al-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
	color: var(--al-accent-deep);
}

/* Visible focus everywhere. Accessibility is a stated requirement. */
:focus-visible {
	outline: 2px solid var(--al-accent);
	outline-offset: 3px;
}

.al-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------------
   Layout: one shared container for every section
   ------------------------------------------------------------ */

.al-container {
	width: 100%;
	max-width: var(--al-container);
	margin-inline: auto;
	padding-inline: var(--al-gutter);
}

.al-section {
	position: relative;
	padding-block: clamp(3rem, 8vw, var(--al-space-xl));
	overflow: clip;
}

/* ------------------------------------------------------------
   Halos. Purple sits on the background layer, orange on the
   foreground. Sizes and offsets vary on purpose, they are not
   on a grid.
   ------------------------------------------------------------ */

.al-halo {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
	filter: blur(48px);
}

.al-halo--purple {
	background: radial-gradient(circle, var(--al-halo-bg-soft) 0%, rgba(81, 81, 169, 0) 68%);
}

.al-halo--orange {
	background: radial-gradient(circle, var(--al-halo-fg-soft) 0%, rgba(252, 130, 7, 0) 66%);
}

.al-section > .al-container {
	position: relative;
	z-index: 1;
}

/* ------------------------------------------------------------
   Buttons. Dark ink on orange: 7.64 to 1. White on orange would
   be 2.52 to 1 and fail AA, so it is never used.
   ------------------------------------------------------------ */

.al-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.9rem 1.6rem;
	border: 1px solid transparent;
	border-radius: var(--al-radius-sm);
	font-family: var(--al-font-body);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.al-btn--primary {
	background-color: var(--al-accent);
	color: var(--al-bg);
}

.al-btn--primary:hover,
.al-btn--primary:focus-visible {
	background-color: var(--al-accent);
	color: var(--al-bg);
	box-shadow: 0 0 0 6px var(--al-halo-fg-soft);
}

.al-btn--primary:active {
	transform: translateY(1px);
}

.al-btn--ghost {
	background-color: transparent;
	color: var(--al-ink);
	border-color: var(--al-border);
}

.al-btn--ghost:hover,
.al-btn--ghost:focus-visible {
	color: var(--al-ink);
	border-color: var(--al-accent);
}

/* ------------------------------------------------------------
   Site header. One line at desktop.
   ------------------------------------------------------------ */

.al-header {
	position: relative;
	z-index: 30;
	border-bottom: 1px solid var(--al-border);
	background-color: var(--al-bg);
}

.al-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--al-space-md);
	min-height: 76px;
}

/* The wordmark is roughly 16:1, so a fixed height blows past a phone
   viewport. The width has to be bounded on the link itself: a percentage on
   the image would resolve against the image's natural 3800px and drag the
   shrink-to-fit link along with it. 415px equals 26px tall. */
.al-header__logo {
	display: block;
	flex: 0 1 415px;
	max-width: 415px;
	min-width: 0;
}

.al-header__logo img {
	width: 100%;
	height: auto;
}

.al-nav {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2vw, 2rem);
}

.al-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2vw, 2rem);
}

.al-nav__link {
	font-family: var(--al-font-body);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--al-ink);
	text-decoration: none;
	white-space: nowrap;
}

.al-nav__link:hover,
.al-nav__link:focus-visible {
	color: var(--al-accent);
}

/* Group triggers are buttons, not links: the groups are not pages. */
.al-nav__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	background: transparent;
	border: 0;
	padding: 0.4rem 0;
	cursor: pointer;
}

.al-nav__caret {
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
}

.al-nav__item {
	position: relative;
}

/* Dropdown opens on hover and on keyboard focus, so tabbing reaches it
   without any script. */
.al-nav__dropdown {
	position: absolute;
	top: 100%;
	left: 50%;
	translate: -50% 0;
	min-width: 240px;
	display: grid;
	gap: 0.15rem;
	padding: 0.6rem;
	margin-top: 0.55rem;
	background-color: var(--al-surface);
	border: 1px solid var(--al-border);
	border-radius: var(--al-radius-md);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.16s ease;
	z-index: 40;
}

.al-nav__item:hover > .al-nav__dropdown,
.al-nav__item:focus-within > .al-nav__dropdown {
	opacity: 1;
	visibility: visible;
}

/* Bridges the gap between trigger and panel so the pointer does not fall
   through while travelling down. */
.al-nav__dropdown::before {
	content: '';
	position: absolute;
	top: -0.6rem;
	left: 0;
	right: 0;
	height: 0.6rem;
}

.al-nav__dropdown a {
	display: block;
	padding: 0.5rem 0.65rem;
	border-radius: var(--al-radius-sm);
	font-size: 0.9375rem;
	color: var(--al-ink-soft);
	text-decoration: none;
	line-height: 1.35;
}

.al-nav__dropdown a:hover,
.al-nav__dropdown a:focus-visible {
	background-color: rgba(255, 255, 255, 0.05);
	color: var(--al-accent);
}

.al-btn--compact {
	padding: 0.6rem 1.1rem;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Menu trigger. Hidden at desktop, shown as a labelled button on
   small screens so it never reads as a bare icon. */
.al-menu-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	background: transparent;
	border: 1px solid var(--al-border);
	border-radius: var(--al-radius-sm);
	padding: 0.55rem 0.9rem;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--al-ink);
	cursor: pointer;
}

.al-menu-toggle__bars {
	display: block;
	width: 16px;
	height: 1.5px;
	background: currentColor;
	position: relative;
}

.al-menu-toggle__bars::before,
.al-menu-toggle__bars::after {
	content: '';
	position: absolute;
	left: 0;
	width: 16px;
	height: 1.5px;
	background: currentColor;
}

.al-menu-toggle__bars::before { top: -5px; }
.al-menu-toggle__bars::after { top: 5px; }

/* Full screen overlay menu. Same order as desktop. */
.al-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	flex-direction: column;
	background-color: var(--al-bg);
	overflow-y: auto;
	padding-bottom: var(--al-space-lg);
}

.al-overlay.is-open {
	display: flex;
}

.al-overlay__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	border-bottom: 1px solid var(--al-border);
}

.al-overlay__close {
	background: transparent;
	border: 1px solid var(--al-border);
	border-radius: var(--al-radius-sm);
	padding: 0.55rem 0.9rem;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--al-ink);
	cursor: pointer;
}

.al-overlay__group {
	border-bottom: 1px solid var(--al-border);
	padding-block: var(--al-space-md);
}

.al-overlay__group-title {
	font-family: var(--al-font-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.25rem;
	line-height: 1.1;
	color: var(--al-ink);
	margin-bottom: var(--al-space-sm);
}

.al-overlay__sub {
	display: grid;
	gap: 0.75rem;
}

.al-overlay__sub a {
	color: var(--al-ink-soft);
	text-decoration: none;
	font-size: 1rem;
}

.al-overlay__sub a:hover,
.al-overlay__sub a:focus-visible {
	color: var(--al-accent);
}

.al-overlay__cta {
	padding-top: var(--al-space-md);
}

body.al-menu-open {
	overflow: hidden;
}

@media (max-width: 991px) {
	.al-nav {
		display: none;
	}

	.al-menu-toggle {
		display: inline-flex;
	}
}

/* ------------------------------------------------------------
   Site footer. Both offices are listed.
   ------------------------------------------------------------ */

.al-footer {
	background-color: var(--al-surface-deep);
	border-top: 1px solid var(--al-border);
	padding-block: var(--al-space-lg) var(--al-space-md);
}

.al-footer__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--al-space-lg);
}

.al-footer__title {
	font-family: var(--al-font-body);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--al-accent);
	margin-bottom: var(--al-space-sm);
}

.al-footer__list {
	display: grid;
	gap: 0.6rem;
}

.al-footer__list a {
	color: var(--al-ink-soft);
	text-decoration: none;
	font-size: 0.9375rem;
}

.al-footer__list a:hover,
.al-footer__list a:focus-visible {
	color: var(--al-accent);
}

.al-office {
	display: flex;
	gap: 0.7rem;
	margin-bottom: var(--al-space-sm);
	font-size: 0.9375rem;
	color: var(--al-ink-soft);
}

.al-office svg {
	flex: 0 0 auto;
	margin-top: 0.25rem;
}

.al-office__label {
	display: block;
	font-weight: 700;
	color: var(--al-ink);
}

.al-social {
	display: flex;
	gap: 0.75rem;
	margin-top: var(--al-space-md);
}

.al-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--al-border);
	border-radius: 50%;
	color: var(--al-ink);
}

.al-social a:hover,
.al-social a:focus-visible {
	border-color: var(--al-accent);
	color: var(--al-accent);
}

.al-footer__base {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--al-space-md);
	flex-wrap: wrap;
	margin-top: var(--al-space-lg);
	padding-top: var(--al-space-md);
	border-top: 1px solid var(--al-border);
}

.al-footer__tagline {
	font-family: var(--al-font-display);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.875rem;
	color: var(--al-ink);
}

.al-footer__legal {
	display: flex;
	gap: var(--al-space-md);
	flex-wrap: wrap;
	font-size: 0.8125rem;
}

.al-footer__legal a {
	color: var(--al-muted);
	text-decoration: none;
}

.al-footer__legal a:hover,
.al-footer__legal a:focus-visible {
	color: var(--al-accent);
}

@media (max-width: 767px) {
	.al-footer__grid {
		grid-template-columns: 1fr;
		gap: var(--al-space-md);
	}
}

/* ------------------------------------------------------------
   Scroll reveal. Content is visible by default and only hidden
   once JS confirms it can reveal it again. Reduced motion and
   no-JS both render the finished state.
   ------------------------------------------------------------ */

.al-js .al-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.al-js .al-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.al-js .al-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
