/**
 * LegArt global styles.
 *
 * 1. Fonts
 * 2. Tokens
 * 3. Base
 * 4. Shared components
 * 5. Header
 * 6. Drawer
 * 7. Footer
 * 8. Content pages
 * 9. Scroll reveal
 */

/* 1. Fonts (self-hosted, latin and latin-ext subsets) ------------------- */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Italic for testimonial text; only downloaded on pages that use it. */
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Instrument Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Instrument Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Instrument Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Instrument Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400 500;
	font-display: swap;
	src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Tokens -------------------------------------------------------------- */

:root {
	--c-ink: #141a2a;
	--c-navy: #17223f;
	--c-navy-600: #1f2d52;
	--c-navy-700: #1d2a4b;
	--c-navy-900: #111a31;
	--c-gold: #b08d57;
	--c-gold-light: #e3cfa9;
	--c-gold-soft: #d2b98f;
	--c-gold-deep: #8a6c3e;
	--c-cream: #f6f4ef;
	--c-white: #fff;
	--c-text: #545b70;
	--c-text-soft: #636a7e;
	--c-nav: #3c4459;
	--c-line: rgba(23, 34, 63, 0.18);
	--c-line-soft: rgba(23, 34, 63, 0.08);

	--font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
	--font-serif: "Instrument Serif", Georgia, serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;

	--container: 1280px;
	--gutter: clamp(20px, 4vw, 48px);
	--section-space: clamp(88px, 11vw, 150px);

	--ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
	--ease-drawer: cubic-bezier(0.77, 0, 0.18, 1);
}

/* 3. Base ---------------------------------------------------------------- */

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--c-cream);
	color: var(--c-ink);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.has-drawer-open {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
address {
	margin: 0;
}

address {
	font-style: normal;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--c-navy-600);
	text-decoration: none;
}

/* Zero specificity so component link colours always win. */
:where(a:hover) {
	color: var(--c-gold);
}

button {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--c-gold);
	outline-offset: 3px;
}

::selection {
	background: var(--c-navy-600);
	color: var(--c-white);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus {
	top: 12px;
	left: 12px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip-path: none;
	background: var(--c-white);
	color: var(--c-navy);
	font-size: 14px;
	font-weight: 600;
}

/* Sizes match the design, where the 1280px content width excludes the gutters. */
.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* 4. Shared components --------------------------------------------------- */

.eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--c-gold-deep);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.eyebrow--light {
	color: var(--c-gold-soft);
}

.section-title {
	color: var(--c-navy);
	font-size: clamp(30px, 3.2vw, 46px);
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: pretty;
}

.section-title--light {
	color: inherit;
}

.section-lead {
	color: var(--c-text);
	font-size: 15.5px;
	line-height: 1.75;
}

.accent {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
}

.accent--gold {
	color: var(--c-gold-light);
}

.accent--deep {
	color: var(--c-gold-deep);
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 17px 26px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: background-color 0.3s, color 0.3s;
}

.btn--gold {
	background: var(--c-gold);
	color: var(--c-navy);
}

.btn--gold:hover {
	background: var(--c-gold-light);
	color: var(--c-navy);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 40px;
	padding: 8px 0;
	border-bottom: 1px solid var(--c-navy);
	color: var(--c-navy);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: color 0.3s, border-color 0.3s;
}

.link-arrow:hover {
	border-color: var(--c-gold);
	color: var(--c-gold-deep);
}

.link-arrow--light {
	border-bottom-color: rgba(255, 255, 255, 0.6);
	color: var(--c-white);
}

.link-arrow--light:hover {
	border-color: var(--c-gold-light);
	color: var(--c-gold-light);
}

.link-arrow--gold {
	gap: 28px;
	border-bottom-color: var(--c-gold);
	color: var(--c-gold-light);
	font-size: 12px;
	letter-spacing: 0.12em;
}

.link-arrow--gold:hover {
	border-color: var(--c-gold);
	color: var(--c-white);
}

/* Striped image placeholder used until photography is supplied. */
.placeholder {
	--ph-a: #ebe8e1;
	--ph-b: #e2dfd6;
	--ph-size: 12px;

	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(135deg, var(--ph-a) 0 var(--ph-size), var(--ph-b) var(--ph-size) calc(var(--ph-size) * 2));
}

.placeholder__label {
	color: #7f8496;
	font: 500 10.5px var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Filter chips. On narrow screens the row scrolls sideways instead of wrapping,
 * and theme.js fades the edge that still has chips behind it. */
.filter-bar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: clamp(28px, 3vw, 40px);
}

.filter-bar[hidden] {
	display: none;
}

.filter-chip {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--c-line);
	background: transparent;
	color: var(--c-nav);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.filter-chip[aria-pressed="true"],
.filter-chip[aria-current="true"] {
	border-color: var(--c-navy);
	background: var(--c-navy);
	color: var(--c-white);
}

.filter-chip__count {
	font: 500 11px var(--font-mono);
	letter-spacing: 0;
	opacity: 0.6;
}

@media (hover: hover) {
	.filter-chip:hover {
		border-color: var(--c-navy);
		color: var(--c-navy);
	}

	.filter-chip[aria-pressed="true"]:hover,
	.filter-chip[aria-current="true"]:hover {
		color: var(--c-white);
	}
}

@media (max-width: 767.98px) {
	.filter-bar {
		--fade-start: 0px;
		--fade-end: 0px;

		flex-wrap: nowrap;
		margin-inline: calc(-1 * var(--gutter));
		padding-inline: var(--gutter);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding-inline: var(--gutter);
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
		mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
	}

	.filter-bar::-webkit-scrollbar {
		display: none;
	}

	.filter-bar.has-more-start {
		--fade-start: 36px;
	}

	.filter-bar.has-more-end {
		--fade-end: 36px;
	}

	.filter-chip {
		scroll-snap-align: start;
	}
}

/* Person card: homepage carousel, people listing and related people. */
.person-card__link {
	display: flex;
	flex-direction: column;
	gap: 18px;
	color: var(--c-navy);
}

.person-card__link:hover {
	color: var(--c-navy);
}

.person-card__photo {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #e4e1d9;
}

.person-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 1s var(--ease-out);
}

.person-card__placeholder {
	--ph-a: #e9e6df;
	--ph-b: #e0ddd4;

	position: absolute;
	inset: 0;
	color: #9a9eab;
	font: 400 clamp(32px, 4vw, 48px) var(--font-serif);
	letter-spacing: 0.04em;
}

.person-card__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.person-card__role {
	color: var(--c-gold-deep);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.person-card__name {
	font-size: clamp(16px, 11px + 0.6vw, 19px);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
	transition: color 0.3s;
}

/* One line per degree. */
.person-card__education {
	display: flex;
	flex-direction: column;
	gap: 2px;
	color: var(--c-text-soft);
	font-size: 13.5px;
	line-height: 1.5;
}

@media (hover: hover) {
	.person-card__link:hover .person-card__img {
		transform: scale(1.04);
	}

	.person-card__link:hover .person-card__name {
		color: var(--c-gold-deep);
	}
}

@media (prefers-reduced-motion: reduce) {
	.person-card__img {
		transition: filter 0.6s ease;
	}

	.person-card__link:hover .person-card__img {
		transform: none;
	}
}

/* Pager of the paginated listing pages (Our People, Testimonials). */
.pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: clamp(56px, 7vw, 96px);
}

.pager__list {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pager__number,
.pager__step,
.pager__gap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
}

.pager__number {
	padding: 0 6px;
	border: 1px solid transparent;
	color: var(--c-navy);
	font: 500 13px var(--font-mono);
	transition: border-color 0.3s, color 0.3s;
}

.pager__number:hover {
	border-color: var(--c-line);
	color: var(--c-navy);
}

.pager__number.is-current {
	background: var(--c-navy);
	color: var(--c-white);
}

.pager__step {
	border: 1px solid rgba(23, 34, 63, 0.25);
	color: var(--c-navy);
	font: 18px Arial, Helvetica, sans-serif; /* Long arrow glyphs, as in the homepage carousel. */
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

a.pager__step:hover {
	border-color: var(--c-navy);
	background: var(--c-navy);
	color: var(--c-white);
}

.pager__step.is-disabled {
	opacity: 0.3;
}

.pager__gap {
	min-width: 24px;
	color: var(--c-text-soft);
	font: 500 13px var(--font-mono);
}

@media (max-width: 479.98px) {
	.pager__item.is-far {
		display: none;
	}
}

/* Square arrow buttons of the carousels (homepage people, About testimonials). */
.carousel-btn {
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(23, 34, 63, 0.25);
	background: transparent;
	color: var(--c-navy);
	font: 18px Arial, Helvetica, sans-serif; /* Long arrow glyphs, as in the design. */
	cursor: pointer;
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.carousel-btn:hover {
	background: var(--c-navy);
	color: var(--c-white);
}

.carousel-btn--next {
	border-color: var(--c-navy);
	background: var(--c-navy);
	color: var(--c-white);
}

.carousel-btn--next:hover {
	border-color: var(--c-gold);
	background: var(--c-gold);
}

/* Closing call to action (homepage, About and Expertise pages). */
.cta {
	position: relative;
	padding: clamp(88px, 10vw, 140px) 0;
	overflow: hidden;
	background: var(--c-navy-600);
	color: var(--c-white);
}

.cta__pattern {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 14px, rgba(255, 255, 255, 0) 14px 28px);
}

.cta__inner {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	align-items: end;
	gap: 56px;
}

.cta__title {
	font-size: clamp(36px, 4.4vw, 64px);
	font-weight: 300;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.cta__body {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.cta__text {
	max-width: 460px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 16px;
	line-height: 1.7;
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
}

/* Without supporting text (homepage) the button sits at the right, level
   with the middle of the title. Two columns from 960px, as wide as before. */
@media (min-width: 960px) {
	.cta--no-text .cta__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: center;
	}

	.cta--no-text .cta__body {
		align-items: flex-end;
	}
}

/* 5. Header -------------------------------------------------------------- */

.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 60;
	width: 100%;
	height: 2px;
	background: var(--c-gold);
	transform: scaleX(0);
	transform-origin: 0 50%;
	pointer-events: none;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--c-line-soft);
	background: rgba(255, 255, 255, 0.96);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: box-shadow 0.4s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 10px 30px -18px rgba(23, 34, 63, 0.35);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	height: 84px;
	transition: height 0.4s ease;
}

.site-header.is-scrolled .site-header__inner {
	height: 68px;
}

.site-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-logo__img {
	display: block;
	width: auto;
	height: 34px;
}

.is-inverted {
	filter: brightness(0) invert(1);
}

.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.primary-nav a {
	display: block;
	padding: 6px 0;
	border-bottom: 1px solid transparent;
	color: var(--c-nav);
	transition: color 0.3s, border-color 0.3s;
}

.primary-nav a:hover {
	color: var(--c-navy-600);
}

.primary-nav .current-menu-item > a {
	border-bottom-color: var(--c-gold);
	color: var(--c-navy-600);
}

.site-header__cta {
	flex-shrink: 0;
	padding: 12px 18px;
	background: var(--c-navy-600);
	color: var(--c-white);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: background-color 0.3s, color 0.3s;
}

.site-header__cta:hover {
	background: var(--c-gold);
	color: var(--c-navy);
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border: 0;
	background: none;
	color: var(--c-navy-600);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
}

.menu-toggle__icon {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 26px;
}

.menu-toggle__icon span {
	height: 1.5px;
	background: currentColor;
}

.menu-toggle__icon span:last-child {
	width: 65%;
}

@media (max-width: 1079.98px) {
	.primary-nav,
	.site-header__cta {
		display: none;
	}

	.menu-toggle {
		display: flex;
	}
}

/* Keep fixed and sticky elements below the WordPress toolbar. */
.admin-bar .site-header,
.admin-bar .scroll-progress,
.admin-bar .drawer {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header,
	.admin-bar .scroll-progress,
	.admin-bar .drawer {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

/* 6. Drawer -------------------------------------------------------------- */

.drawer-backdrop {
	position: fixed;
	inset: 0;
	z-index: 70;
	background: rgba(17, 26, 49, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s ease;
}

.drawer-backdrop.is-open {
	opacity: 1;
	pointer-events: auto;
}

.drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 80;
	display: flex;
	flex-direction: column;
	width: min(88vw, 440px);
	overflow-y: auto;
	background: var(--c-navy);
	color: var(--c-white);
	transform: translateX(-102%);
	transition: transform 0.8s var(--ease-drawer);
}

.drawer.is-open {
	box-shadow: 30px 0 80px -20px rgba(0, 0, 0, 0.5);
	transform: none;
}

.drawer__head {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	height: 85px;
	padding: 0 28px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer__logo {
	display: block;
	width: auto;
	height: 28px;
}

.drawer__close {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border: 0;
	background: none;
	color: var(--c-white);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
}

.drawer__close-icon {
	position: relative;
	width: 20px;
	height: 20px;
}

.drawer__close-icon::before,
.drawer__close-icon::after {
	position: absolute;
	top: 9px;
	left: 0;
	width: 20px;
	height: 1.5px;
	background: var(--c-gold-light);
	content: "";
	transform: rotate(45deg);
}

.drawer__close-icon::after {
	transform: rotate(-45deg);
}

.drawer__nav {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	justify-content: center;
	padding: 24px 28px;
}

.drawer__nav .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.drawer__nav a {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--c-white);
	font-size: clamp(24px, 6.5vw, 30px);
	font-weight: 300;
	letter-spacing: -0.01em;
	opacity: 0;
	transform: translateX(-28px);
	transition: opacity 0.2s, transform 0.2s, color 0.3s;
}

.drawer__nav a:hover,
.drawer__nav .current-menu-item > a {
	color: var(--c-gold-light);
}

.drawer.is-open .drawer__nav a {
	--delay: calc(0.25s + var(--i, 0) * 0.05s);

	opacity: 1;
	transform: none;
	transition: opacity 0.6s ease var(--delay), transform 0.8s var(--ease-drawer) var(--delay), color 0.3s;
}

.drawer__foot {
	display: flex;
	flex-shrink: 0;
	flex-direction: column;
	gap: 18px;
	padding: 24px 28px 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.2s;
}

.drawer.is-open .drawer__foot {
	opacity: 1;
	transform: none;
	transition: opacity 0.6s ease 0.55s, transform 0.8s ease 0.55s;
}

.drawer__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	background: var(--c-gold);
	color: var(--c-navy);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: background-color 0.3s;
}

.drawer__cta:hover {
	background: var(--c-gold-light);
	color: var(--c-navy);
}

.drawer__contact {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 13px;
}

.drawer__contact a {
	color: rgba(255, 255, 255, 0.7);
}

.drawer__contact a:hover {
	color: var(--c-gold-light);
}

@media (prefers-reduced-motion: reduce) {
	.drawer,
	.drawer-backdrop,
	.drawer__nav a,
	.drawer.is-open .drawer__nav a,
	.drawer__foot,
	.drawer.is-open .drawer__foot {
		transition: none;
	}
}

/* 7. Footer -------------------------------------------------------------- */

.site-footer {
	padding: 80px 0 32px;
	background: var(--c-navy-900);
	color: rgba(255, 255, 255, 0.7);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 48px;
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer-brand__logo {
	display: block;
	align-self: flex-start;
	width: auto;
	height: 32px;
}

.footer-brand__tagline {
	max-width: 260px;
	font-size: 13.5px;
	line-height: 1.7;
}

.footer-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	font-size: 13.5px;
	line-height: 1.7;
}

.footer-col__title {
	color: var(--c-gold-soft);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.7;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.footer-offices {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.footer-office strong {
	color: var(--c-white);
	font-weight: 600;
}

.footer-col__email {
	color: var(--c-white);
}

.footer-col__whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
}

.footer-col__whatsapp-icon {
	flex-shrink: 0;
	color: var(--c-gold-soft);
}

.footer-col__email:hover,
.footer-col__whatsapp:hover {
	color: var(--c-gold-light);
}

.social-links {
	display: flex;
	gap: 10px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	padding: 9px 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--c-white);
	font-size: 12px;
	letter-spacing: 0.04em;
	transition: border-color 0.3s, color 0.3s;
}

.social-links a:hover {
	border-color: var(--c-gold);
	color: var(--c-gold-light);
}

.social-links .social-links__icon-link {
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
}

.social-links__icon {
	display: block;
	width: 16px;
	height: 16px;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 20px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.55);
	font-size: 12px;
}

.back-to-top {
	color: var(--c-white);
}

.back-to-top:hover {
	color: var(--c-gold-light);
}

/* 8. Content pages ------------------------------------------------------- */

.page-shell {
	padding-block: clamp(64px, 8vw, 120px);
}

.page-shell > * {
	max-width: 760px;
}

/* Introduction of a listing page (Our People, Testimonials): eyebrow, title
 * and the page content as lead text. */
.page-intro {
	padding-block: clamp(64px, 8vw, 120px) clamp(40px, 5vw, 72px);
}

.page-intro__inner {
	display: grid;
	gap: 28px;
}

.page-intro__heading {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.page-intro__title {
	color: var(--c-navy);
	font-size: clamp(36px, 4.6vw, 64px);
	font-weight: 300;
	line-height: 1.08;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.page-intro__text {
	max-width: 540px;
	color: var(--c-text);
	font-size: 16px;
	line-height: 1.75;
}

.page-intro__text > * + * {
	margin-top: 1em;
}

.page-intro__text a {
	color: var(--c-navy-600);
	text-decoration: underline;
	text-decoration-color: var(--c-gold);
	text-underline-offset: 3px;
}

@media (min-width: 960px) {
	.page-intro__inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		align-items: end;
		gap: 64px;
	}
}

/* Centred hero of a designed page (Our Clients, Expertise, Careers): eyebrow, a
 * two-line title revealed line by line, and an optional lead. */
.page-hero {
	padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 104px);
}

.page-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(24px, 3vw, 36px);
	text-align: center;
}

.page-hero__title {
	color: var(--c-navy);
	font-size: clamp(40px, 5.6vw, 84px);
	font-weight: 300;
	line-height: 1.04;
	letter-spacing: -0.03em;
}

/* Room for descenders inside the masks. */
.page-hero__title .reveal-mask {
	margin-bottom: -0.12em;
	padding-bottom: 0.16em;
}

.page-hero__title .accent {
	font-size: 1.08em;
}

.page-hero__lead {
	max-width: 560px;
	color: #2a3147;
	font-size: clamp(16px, 1.4vw, 19px);
	font-weight: 300;
	line-height: 1.65;
	text-wrap: pretty;
}

/* Title and introduction stacked in the middle (Our People). */
.page-intro--center .page-intro__inner {
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	gap: 24px;
	text-align: center;
}

.page-intro--center .page-intro__text {
	max-width: 600px;
}

.entry__title {
	color: var(--c-navy);
	font-size: clamp(34px, 4vw, 54px);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.entry__header {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 40px;
}

.entry--empty {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.entry__thumbnail {
	margin-bottom: 40px;
}

.entry__thumbnail img {
	display: block;
	width: 100%;
}

.entry__content {
	color: #2a3147;
	font-size: 16.5px;
	line-height: 1.8;
}

.entry__content > * + * {
	margin-top: 1.25em;
}

.entry__content h2,
.entry__content h3 {
	margin-top: 1.8em;
	color: var(--c-navy);
	font-weight: 500;
	line-height: 1.3;
}

.entry__content a {
	color: var(--c-navy-600);
	text-decoration: underline;
	text-decoration-color: var(--c-gold);
	text-underline-offset: 3px;
}

.entry__content a:hover {
	color: var(--c-gold-deep);
}


/* 9. Scroll reveal --------------------------------------------------------
 * Elements start hidden only when JavaScript is available (html.js), and are
 * animated with keyframes so their own hover transitions stay untouched.
 */

.js [data-reveal="up"]:not(.is-revealed) {
	opacity: 0;
	transform: translateY(32px);
}

.js [data-reveal="mask"]:not(.is-revealed) {
	transform: translateY(105%);
}

.js [data-reveal="clip"]:not(.is-revealed) {
	clip-path: inset(0 0 100% 0);
}

.js [data-reveal="up"].is-revealed {
	animation:
		legart-fade 0.9s ease var(--reveal-delay, 0ms) backwards,
		legart-rise 1.1s var(--ease-out) var(--reveal-delay, 0ms) backwards;
}

.js [data-reveal="mask"].is-revealed {
	animation: legart-mask 1.1s var(--ease-out) var(--reveal-delay, 0ms) backwards;
}

.js [data-reveal="clip"].is-revealed {
	animation: legart-clip 1.3s cubic-bezier(0.7, 0, 0.2, 1) var(--reveal-delay, 0ms) backwards;
}

.reveal-mask {
	display: block;
	overflow: hidden;
}

[data-reveal="mask"] {
	display: block;
}

@keyframes legart-fade {
	from {
		opacity: 0;
	}
}

@keyframes legart-rise {
	from {
		transform: translateY(32px);
	}
}

@keyframes legart-mask {
	from {
		transform: translateY(105%);
	}
}

@keyframes legart-clip {
	from {
		clip-path: inset(0 0 100% 0);
	}

	to {
		clip-path: inset(0 0 0 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.js [data-reveal].is-revealed {
		animation: none;
	}
}
