/* =========================================================
   Obidos Consulting — main stylesheet
   Brand: #1D1D1B dark / #EAEAEA light / #FFFFFF white
   Type:  Poppins 500 (headings, buttons) / Esteban 400 (body)
   ========================================================= */

/* ---- Fonts (self-hosted) ---- */
@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Poppins';
	src: url('../fonts/poppins-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Esteban';
	src: url('../fonts/esteban-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ---- Tokens ---- */
:root {
	--c-dark: #1d1d1b;
	--c-light: #eaeaea;
	--c-white: #fff;
	--c-black: #000;
	--f-heading: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--f-body: 'Esteban', Georgia, serif;
	--container: 1560px;
	--container-narrow: 1080px;
	--gutter: clamp(1.25rem, 4vw, 3.75rem);
	--section-pad: clamp(2.75rem, 5.5vw, 4.75rem);
}

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

/* ---- Motion: scroll reveals + smooth anchors ---- */
/* Elements start hidden only when JS is present, so no-JS users see content. */
.js .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
		transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: var(--reveal-delay, 0ms);
	will-change: opacity, transform;
}
.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}
[id] {
	scroll-margin-top: 2rem;
}
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
@media (prefers-reduced-motion: reduce) {
	.js .reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.hero__bg {
		transform: none !important;
	}
}
body {
	margin: 0;
	background: var(--c-dark);
	color: var(--c-white);
	font-family: var(--f-body);
	font-size: 1.108rem; /* ~17.7px */
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img {
	max-width: 100%;
	height: auto;
	display: block;
}
a {
	color: inherit;
	text-underline-offset: 3px;
}
figure,
blockquote {
	margin: 0;
}
ul {
	padding-left: 1.2em;
}
/* Squarespace-imported lists wrap each item's text in a <p> */
li > p {
	display: inline;
	margin: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-heading);
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.16rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.62rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.864rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	background: var(--c-white);
	color: var(--c-black);
	padding: 0.6em 1em;
}

/* ---- Layout helpers ---- */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}
.container--narrow {
	max-width: var(--container-narrow);
}
.section {
	padding-top: var(--section-pad);
	padding-bottom: var(--section-pad);
}
.section--dark {
	background: var(--c-dark);
	color: var(--c-white);
}
.section--light {
	background: var(--c-light);
	color: var(--c-dark);
}
.section--white {
	background: var(--c-white);
	color: var(--c-dark);
}
.section--center {
	text-align: center;
}
/* Lists inside centered sections: the block centers, items stay left-aligned.
   Excludes component lists (marquee, carousel) which manage their own layout. */
.section--center ul:not(.marquee__track):not(.carousel__track):not(.logo-grid) {
	display: inline-block;
	text-align: left;
	padding-left: 1.2em;
	margin-left: auto;
	margin-right: auto;
}
.section--page-top {
	padding-top: clamp(3.5rem, 7vw, 6rem);
}
.lead {
	font-size: clamp(1.3rem, 2.3vw, 1.864rem);
	font-family: var(--f-heading);
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 1em;
}

.cols {
	display: grid;
	gap: clamp(1.5rem, 3vw, 3rem);
}
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols--2 { grid-template-columns: repeat(2, 1fr); }

.rule {
	border: 0;
	border-top: 1px solid currentColor;
	opacity: 0.4;
	margin: clamp(2rem, 5vw, 4rem) auto;
	max-width: 640px;
}

/* ---- Buttons ---- */
.btn {
	display: inline-block;
	font-family: var(--f-heading);
	font-weight: 500;
	font-size: 0.89rem;
	letter-spacing: 0.02em;
	text-decoration: none;
	padding: 1.2em 2.25em;
	border: 0;
	border-radius: 0;
	transition: opacity 0.2s ease;
}
.btn:hover {
	opacity: 0.8;
}
.btn--dark {
	background: var(--c-dark);
	color: var(--c-white);
}
.btn--light {
	background: var(--c-white);
	color: var(--c-black);
}

/* ---- Social icons ---- */
.social-links {
	list-style: none;
	display: flex;
	gap: 0.9rem;
	padding: 0;
	margin: 1rem 0 0;
}
.social-links a {
	display: inline-flex;
	width: 1.35rem;
	height: 1.35rem;
	color: currentColor;
}
.social-links svg {
	width: 100%;
	height: 100%;
}
.social-links--header {
	margin: 0;
}

/* ---- Header ----
   Thin bar; the (unchanged-size) logo is absolutely placed so it overhangs
   the bar into the hero below, without forcing the bar taller. */
.site-header {
	position: relative;
	z-index: 20;
	background: var(--c-dark);
	color: var(--c-white);
}
.site-header__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
	min-height: 3.5rem;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2rem;
}
.site-logo {
	position: absolute;
	left: var(--gutter);
	top: 0.4rem;
	line-height: 0;
	z-index: 2;
}
.site-logo img {
	width: clamp(76px, 8vw, 100px);
	height: auto;
}
.site-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}
.site-nav__list {
	list-style: none;
	display: flex;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
}
.site-nav__list a {
	text-decoration: none;
	opacity: 0.95;
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
	text-decoration: underline;
	text-underline-offset: 6px;
}
/* Anchor links to home sections shouldn't read as "current page" */
.site-nav__list .menu-item-type-custom.current-menu-item > a:not(:hover) {
	text-decoration: none;
}
.nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 0.5rem;
	cursor: pointer;
}
.nav-toggle__bar {
	display: block;
	width: 26px;
	height: 2px;
	background: var(--c-white);
	margin: 6px 0;
	transition: transform 0.2s ease;
}
.nav-open .nav-toggle__bar:first-child {
	transform: translateY(4px) rotate(45deg);
}
.nav-open .nav-toggle__bar:last-child {
	transform: translateY(-4px) rotate(-45deg);
}

/* ---- Hero ---- */
.section--hero {
	position: relative;
	min-height: 74vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
/* Subtle depth: a faint radial wash that drifts on scroll (parallax). */
.hero__bg {
	position: absolute;
	inset: -20% -10% -10% -10%;
	background:
		radial-gradient(60% 55% at 78% 18%, rgba(255, 255, 255, 0.06), transparent 60%),
		radial-gradient(50% 50% at 12% 92%, rgba(255, 255, 255, 0.05), transparent 60%);
	pointer-events: none;
	z-index: 0;
}
.section--hero .container {
	width: 100%;
	position: relative;
	z-index: 1;
}
/* Content left, stats/awards bottom-right (facilitator-style). */
.hero__inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: clamp(2rem, 5vw, 5rem);
}
.hero__content {
	max-width: 44rem;
}
.hero-heading {
	max-width: 14em;
	margin: 0;
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	line-height: 1.03;
	letter-spacing: -0.01em;
}
.hero__subline {
	max-width: 30em;
	margin: 1.75rem 0 0;
	font-family: var(--f-heading);
	font-weight: 400;
	font-size: clamp(1.15rem, 1.9vw, 1.5rem);
	line-height: 1.4;
	opacity: 0.9;
}
.hero__cta {
	margin-top: 2.25rem;
}
.hero__aside {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	gap: 1.75rem;
	padding-bottom: 0.25rem;
}
.hero__award {
	margin: 0;
}
.badge {
	display: inline-block;
	font-family: var(--f-heading);
	font-weight: 500;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.55em 1.1em;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 100px;
}
.hero-stats {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1.6rem;
}
.hero-stat__value {
	display: block;
	font-family: var(--f-heading);
	font-weight: 500;
	font-size: clamp(1.9rem, 3vw, 2.9rem);
	line-height: 1;
	letter-spacing: -0.01em;
}
.hero-stat__affix {
	font-size: 0.6em;
	vertical-align: text-top;
	opacity: 0.85;
}
.hero-stat__label {
	display: block;
	margin-top: 0.4rem;
	font-family: var(--f-heading);
	font-weight: 400;
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.68;
}
/* Thin scroll cue line under the hero content. */
.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 1.75rem;
	width: 1px;
	height: 3rem;
	background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.5));
	z-index: 1;
}
@media (prefers-reduced-motion: no-preference) {
	.hero__scroll.is-visible {
		animation: heroScroll 2.4s ease-in-out infinite;
	}
}
@keyframes heroScroll {
	0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
	50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* ---- Section intro line ---- */
.section-intro {
	max-width: 46em;
	font-family: var(--f-heading);
	font-weight: 400;
	font-size: clamp(1.1rem, 1.7vw, 1.4rem);
	line-height: 1.45;
	margin: 0 0 clamp(2rem, 4vw, 3.5rem);
	opacity: 0.92;
}
.section--center .section-intro {
	margin-left: auto;
	margin-right: auto;
}

/* ---- Home: intro ---- */
.intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
.intro-grid .lead {
	max-width: 24em;
}
.intro-grid__contact-title {
	font-size: 1.1rem;
	margin-bottom: 0.75em;
}
/* Managing Director card (intro aside) */
.director-card__photo {
	width: 104px;
	height: 104px;
	border-radius: 50%;
	overflow: hidden;
	margin-bottom: 1.25rem;
}
.director-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
}
.director-card__role {
	font-family: var(--f-heading);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.65;
	margin: 0 0 0.25rem;
}
.director-card__name {
	font-family: var(--f-heading);
	font-weight: 500;
	font-size: 1.4rem;
	margin: 0 0 0.75rem;
}
.director-card__email {
	margin: 0;
}

/* ---- Home: capabilities ---- */
.capabilities {
	margin-top: clamp(3rem, 6.5vw, 6rem);
}
.capability__head {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.capability__num {
	flex: 0 0 auto;
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	font-family: var(--f-heading);
	font-weight: 500;
	font-size: 1.4rem;
	line-height: 1;
}
.capability__head h2,
.capability__head h3 {
	margin: 0;
	font-size: clamp(1.25rem, 1.9vw, 1.55rem);
}
/* On light sections the number badge needs a dark outline. */
.section--white .capability__num,
.section--light .capability__num {
	border-color: rgba(29, 29, 27, 0.3);
}
.capability__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.capability__list li {
	position: relative;
	padding-left: 1.4em;
	margin-bottom: 0.7em;
	line-height: 1.5;
	font-size: 1rem;
}
.capability__list li::before {
	content: '';
	position: absolute;
	left: 0.1em;
	top: 0.62em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.5;
}
/* Capabilities page: areas sit inside a padded section already. */
.capabilities-areas .capabilities {
	margin-top: 0;
}
.capabilities-projects h2 {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}
.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}
.project-card {
	display: flex;
	flex-direction: column;
	padding: 1.75rem;
	background: var(--c-white);
	border: 1px solid rgba(29, 29, 27, 0.12);
}
.project-card__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.15rem, 1.6vw, 1.4rem);
	line-height: 1.3;
}
.project-card__body {
	margin: 0 0 1.25rem;
	font-size: 0.98rem;
	line-height: 1.55;
}
.project-card__link {
	margin-top: auto;
	font-family: var(--f-heading);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	align-self: flex-start;
}
.project-card__link:hover {
	opacity: 0.7;
}

/* ---- Home: core offerings (diagonal split) ---- */
/* ---- Core offerings: a distinct framed triptych (3 service areas) ---- */
.core-offerings {
	background: var(--c-dark);
	color: var(--c-white);
	padding-top: var(--section-pad);
	padding-bottom: var(--section-pad);
	overflow: hidden;
}
.core-offerings__head {
	text-align: center;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.core-offerings__head .section-intro {
	margin-left: auto;
	margin-right: auto;
}
.core-offerings__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 1px solid rgba(255, 255, 255, 0.18);
}
.core-offering {
	position: relative;
	padding: clamp(1.75rem, 3.2vw, 3rem);
	border-right: 1px solid rgba(255, 255, 255, 0.18);
	transition: background 0.4s ease;
}
.core-offering:last-child {
	border-right: 0;
}
.js .core-offering:hover {
	background: rgba(255, 255, 255, 0.04);
}
/* Signature accent: a short rule at the top of each card that extends on
   hover — echoing the diagonal stroke of the logo / river motif. */
.core-offering::before {
	content: '';
	position: absolute;
	top: -1px;
	left: clamp(1.75rem, 3.2vw, 3rem);
	width: 32px;
	height: 2px;
	background: var(--c-white);
	opacity: 0.45;
	transition: width 0.4s ease, opacity 0.4s ease;
}
.js .core-offering:hover::before {
	width: 64px;
	opacity: 1;
}
.core-offering__num {
	display: block;
	font-family: var(--f-heading);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	opacity: 0.5;
}
.core-offering__icon {
	display: block;
	width: 3rem;
	height: 3rem;
	margin: 1.25rem 0 1.5rem;
	opacity: 0.9;
}
.core-offering__icon svg {
	width: 100%;
	height: 100%;
	transform-origin: 50% 50%;
}
/* Gentle "signal" pulse — suits the literal icons better than a spin. */
@media (prefers-reduced-motion: no-preference) {
	.core-offering__icon svg {
		animation: core-pulse 4.5s ease-in-out infinite;
	}
	.core-offering:nth-child(2) .core-offering__icon svg {
		animation-delay: 0.6s;
	}
	.core-offering:nth-child(3) .core-offering__icon svg {
		animation-delay: 1.2s;
	}
}
@keyframes core-pulse {
	0%, 100% { transform: scale(1); opacity: 0.85; }
	50%      { transform: scale(1.09); opacity: 1; }
}
.core-offering__title {
	font-size: clamp(1.3rem, 2vw, 1.7rem);
	line-height: 1.2;
	margin-bottom: 0.9rem;
}
.core-offering__body {
	font-size: 1rem;
	line-height: 1.55;
	opacity: 0.85;
}
.core-offering__body p {
	margin: 0;
}
.core-offerings__foot {
	text-align: center;
	margin-top: clamp(2rem, 4vw, 3rem);
}
.sectors-footnote {
	max-width: 640px;
	margin: 0 auto;
}

/* ---- Experience marquee ---- */
.marquee {
	margin: clamp(2rem, 4vw, 3.5rem) 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
	display: flex;
	align-items: flex-start;
	gap: clamp(2.5rem, 5vw, 5rem);
	width: max-content;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (prefers-reduced-motion: no-preference) {
	.marquee__track {
		animation: marquee 42s linear infinite;
	}
}
@keyframes marquee {
	to {
		transform: translateX(-50%);
	}
}
.marquee__item {
	flex: 0 0 190px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.marquee__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 88px;
}
.marquee__logo img {
	max-height: 78px;
	width: auto;
	max-width: 175px;
	object-fit: contain;
}
.marquee__caption {
	margin-top: 1rem;
	font-size: 0.82rem;
	line-height: 1.35;
	opacity: 0.8;
}
@media (prefers-reduced-motion: reduce) {
	.marquee {
		overflow-x: auto;
	}
}

/* ---- Testimonials carousel ---- */
.carousel {
	position: relative;
	max-width: 1120px;
	margin: clamp(2.5rem, 5vw, 4rem) auto clamp(2.5rem, 5vw, 4rem);
	padding: 0 clamp(2.5rem, 6vw, 4.5rem);
}
.carousel__viewport {
	position: relative;
}
/* All slides occupy the same grid cell, so the track auto-sizes to the
   tallest slide — no JS height measurement and no layout jump on change. */
.carousel__track {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
}
.carousel__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.carousel__slide.is-active {
	opacity: 1;
	visibility: visible;
}
.testimonial-slide {
	margin: 0;
	max-width: 62rem;
}
.testimonial-slide__quote {
	font-family: var(--f-heading);
	font-weight: 400;
	font-size: clamp(1.15rem, 2vw, 1.55rem);
	line-height: 1.4;
	margin: 0;
}
.testimonial-slide__quote::before {
	content: '\201C';
}
.testimonial-slide__quote::after {
	content: '\201D';
}
.testimonial-slide__cite {
	margin-top: 1.5rem;
	font-family: var(--f-heading);
	font-size: 0.95rem;
	opacity: 0.7;
}
.carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: inherit;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.carousel__nav:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.6);
}
.carousel__nav svg {
	width: 1.25rem;
	height: 1.25rem;
}
.carousel__nav--prev { left: 0; }
.carousel__nav--next { right: 0; }
.carousel__dots {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	margin-top: 2.25rem;
}
.carousel__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.carousel__dot.is-active {
	background: var(--c-white);
	transform: scale(1.15);
}

/* ---- Home: collaboration + what it means for you ---- */
.collab .lead {
	max-width: 30em;
	margin-left: auto;
	margin-right: auto;
}
.collab__body {
	max-width: 44em;
	margin: 0 auto 1.5em;
}

/* ---- Logo grid (experience) — fixed group, up to 5 columns ---- */
.logo-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	margin: clamp(2rem, 4vw, 3.5rem) 0;
	list-style: none;
	padding: 0;
	align-items: start;
}
.logo-grid--narrow {
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
}
.logo-grid__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.logo-grid__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 88px;
}
.logo-grid__logo img,
.logo-grid__item img {
	margin: 0 auto;
	max-height: 78px;
	width: auto;
	max-width: 175px;
	object-fit: contain;
}
.logo-grid__caption,
.logo-grid__item figcaption {
	margin-top: 1rem;
	font-size: 0.82rem;
	line-height: 1.35;
	opacity: 0.8;
}
@media (max-width: 900px) {
	.logo-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 560px) {
	.logo-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ---- Get in touch ---- */
.get-in-touch__body {
	max-width: 36em;
}
.section--center .get-in-touch__body {
	margin-left: auto;
	margin-right: auto;
}
.get-in-touch__body a {
	color: inherit;
}

/* ---- Team page ---- */
.team-intro .section-intro {
	margin-left: auto;
	margin-right: auto;
}
.team-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 3vw, 3rem);
	text-align: left;
}
.team-member__photo {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	margin-bottom: 1.25rem;
	background: var(--c-light);
}
.team-member__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
}
.team-member__photo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(29, 29, 27, 0.3);
	font-family: var(--f-heading);
	font-size: 3rem;
}
.team-member__name {
	margin: 0 0 0.5rem;
	font-size: clamp(1.2rem, 1.6vw, 1.4rem);
}
.team-member__bio {
	font-size: 1rem;
	line-height: 1.55;
}

/* ---- Experience: hero with background image ---- */
.experience-intro {
	position: relative;
	min-height: 44vh;
	display: flex;
	align-items: center;
	background-image:
		linear-gradient(rgba(29, 29, 27, 0.68), rgba(29, 29, 27, 0.86)),
		var(--hero-bg, url('../img/obidos-bg.avif'));
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.experience-intro .container {
	width: 100%;
}

/* ---- Experience: scrolling timeline ---- */
.timeline {
	position: relative;
}
.timeline__rail {
	position: absolute;
	left: 12px;
	top: 0.5rem;
	bottom: 0.5rem;
	width: 2px;
	background: rgba(29, 29, 27, 0.14);
	overflow: hidden;
}
.timeline__progress {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	background: var(--c-dark);
}
.timeline__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.timeline__item {
	position: relative;
	padding-left: 3.5rem;
	padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.timeline__item:last-child {
	padding-bottom: 0;
}
.timeline__dot {
	position: absolute;
	left: 3px;
	top: 0.3rem;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--c-white);
	border: 2px solid rgba(29, 29, 27, 0.3);
	z-index: 1;
	transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}
.timeline__item.is-active .timeline__dot {
	background: var(--c-dark);
	border-color: var(--c-dark);
	transform: scale(1.15);
}
.timeline__year {
	display: block;
	font-family: var(--f-heading);
	font-weight: 500;
	font-size: 1.05rem;
	letter-spacing: 0.02em;
	opacity: 0.55;
}
.timeline__title {
	margin: 0.15rem 0 0.7rem;
	font-size: clamp(1.4rem, 2.3vw, 2rem);
}
.timeline__body {
	max-width: 40em;
}
.timeline__image {
	margin-top: 1.5rem;
	max-width: 340px;
}

/* ---- Experience: testimonials grid ---- */
.quote-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(1.75rem, 3vw, 3rem);
	margin-top: clamp(2.5rem, 5vw, 4rem);
	text-align: left;
}
.quote-card {
	margin: 0;
	padding: clamp(1.75rem, 3vw, 2.5rem);
	border: 1px solid rgba(255, 255, 255, 0.16);
	display: flex;
	flex-direction: column;
}
.quote-card__mark {
	font-family: var(--f-heading);
	font-size: 3rem;
	line-height: 0.5;
	opacity: 0.35;
	margin-bottom: 0.75rem;
}
.quote-card__text {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.55;
}
.quote-card__cite {
	margin-top: 1.25rem;
	font-family: var(--f-heading);
	font-size: 0.9rem;
	opacity: 0.7;
}

/* Condensed variant — denser grid of smaller cards (About page). */
.quote-grid--condensed {
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.25rem, 2vw, 1.75rem);
	margin-top: clamp(2rem, 4vw, 3rem);
}
.quote-grid--condensed .quote-card {
	padding: clamp(1.35rem, 2vw, 1.75rem);
}
.quote-grid--condensed .quote-card__mark {
	font-size: 2rem;
	margin-bottom: 0.4rem;
}
.quote-grid--condensed .quote-card__text {
	font-size: 0.95rem;
	line-height: 1.5;
}
.quote-grid--condensed .quote-card__cite {
	margin-top: 0.9rem;
	font-size: 0.82rem;
}

/* ---- Insight (home blog highlights) ---- */
.insight h2 {
	text-align: center;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.insight-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.insight-card {
	display: flex;
	flex-direction: column;
	padding-top: 1.75rem;
	border-top: 2px solid var(--c-dark);
	transition: transform 0.3s ease;
}
.insight-card__title {
	margin: 0.25rem 0 0.75rem;
	font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}
.insight-card__title a {
	text-decoration: none;
}
.insight-card__title a:hover {
	text-decoration: underline;
}
.insight-card__excerpt {
	margin: 0 0 1.25rem;
	font-size: 1rem;
}
.js .insight-card:hover {
	transform: translateY(-4px);
}
.insight {
	text-align: center;
}
.insight .btn {
	margin-top: 0;
}

/* ---- Press & Publications ---- */
.press-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
	text-align: left;
}
/* Homepage band: cards keep a natural width and centre as a group, so one or
   two items sit in the middle rather than stretching across the row. */
.insight .press-grid {
	grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
	justify-content: center;
}
.press-card {
	display: flex;
}
.press-card__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 1.75rem;
	background: var(--c-white);
	border: 1px solid rgba(29, 29, 27, 0.12);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.25s ease;
}
/* Hover is an outline only — no lift, no shadow. The outline sits inside the
   border so nothing shifts. */
.js .press-card__link:hover,
.press-card__link:focus-visible {
	border-color: var(--c-dark);
	outline: 1px solid var(--c-dark);
	outline-offset: -1px;
}
.press-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 0.9rem;
	min-height: 32px;
	margin-bottom: 1rem;
	font-family: var(--f-heading);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.press-card__logo {
	display: inline-flex;
	align-items: center;
	margin-right: auto;
}
.press-card__logo-img {
	max-height: 46px;
	width: auto;
	max-width: 180px;
}
.press-card__publication {
	font-weight: 600;
	margin-right: auto;
}
.press-card__type {
	padding: 0.25em 0.7em;
	border: 1px solid rgba(29, 29, 27, 0.3);
	border-radius: 100px;
	opacity: 0.8;
}
.press-card__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.2rem, 1.7vw, 1.45rem);
	line-height: 1.3;
}
.press-card__excerpt {
	margin: 0 0 1.5rem;
	font-size: 0.98rem;
	line-height: 1.5;
}
.press-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem 0.9rem;
	margin-top: auto;
	font-family: var(--f-heading);
	font-size: 0.85rem;
}
.press-card__author {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
}
.press-card__avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	filter: grayscale(1);
}
.press-card__date {
	opacity: 0.65;
}
.press-card__cue {
	margin-left: auto;
	font-size: 0.8rem;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.js .press-card__link:hover .press-card__cue {
	opacity: 0.85;
	transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
	.press-card__cue {
		opacity: 0.85;
		transform: none;
	}
}

/* ---- Community page ---- */
/* ACE — featured partnership spotlight */
.ace-highlight__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: center;
	background: var(--c-dark);
	color: var(--c-white);
	padding: clamp(2rem, 5vw, 4rem);
}
.ace-highlight__card:has(.ace-highlight__aside) {
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}
.ace-highlight__eyebrow {
	margin-bottom: 1.5rem;
}
.ace-highlight__title {
	font-size: clamp(1.9rem, 3.6vw, 3rem);
	line-height: 1.1;
	margin: 0 0 1.25rem;
}
.ace-highlight__text {
	max-width: 52em;
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	line-height: 1.6;
}
.ace-highlight__text p {
	margin: 0 0 1rem;
}
.ace-highlight__text a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}
.ace-highlight__cta {
	margin-top: 1.75rem;
}
.ace-highlight__aside {
	display: flex;
	align-items: center;
	justify-content: center;
}
.ace-highlight__logo {
	max-width: 100%;
	height: auto;
	max-height: 200px;
	width: auto;
}

/* ---- About: the Obidos name / origin story ---- */
.origin__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: center;
}
.origin__grid--text-only {
	grid-template-columns: minmax(0, 1fr);
}
.origin__heading {
	font-size: clamp(1.9rem, 3.6vw, 3rem);
	line-height: 1.1;
	margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}
.origin__body {
	max-width: 46em;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.65;
}
.origin__body p {
	margin: 0 0 1.15rem;
}
.origin__body p:last-child {
	margin-bottom: 0;
}
.origin__image img {
	width: 100%;
	height: auto;
	filter: grayscale(1);
}

.community__lead {
	max-width: 22ch;
	margin: 0 0 clamp(2rem, 4vw, 3.5rem);
	font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.community-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6vw, 6rem);
	align-items: start;
}
.community__afc {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-top: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}
.community__logos {
	display: flex;
	flex-wrap: wrap;
	gap: 2.5rem;
	align-items: center;
	margin: 2.5rem 0 3rem;
}
.community__logos img {
	max-height: 48px;
	width: auto;
}

/* ---- Contact page ---- */
.contact__body {
	max-width: 34em;
}
.contact__email {
	font-size: 1.05em;
}

/* ---- Blog (light, insight-style cards) ---- */
.blog-archive .archive-header {
	text-align: center;
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(2.5rem, 4vw, 3.5rem);
	text-align: left;
}
.post-card {
	display: flex;
	flex-direction: column;
	padding-top: 1.75rem;
	border-top: 2px solid var(--c-dark);
	transition: transform 0.3s ease;
}
.js .post-card:hover {
	transform: translateY(-4px);
}
.post-card__categories {
	font-family: var(--f-heading);
	font-size: 0.9rem;
	margin: 0 0 0.5rem;
}
.post-card__categories a {
	text-decoration: none;
	opacity: 0.9;
}
.post-card__title {
	margin: 0.25rem 0 0.75rem;
	font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}
.post-card__title a {
	text-decoration: none;
}
.post-card__title a:hover {
	text-decoration: underline;
}
.post-card__excerpt {
	margin: 0 0 1.25rem;
	font-size: 1rem;
}
.post-card__more {
	font-size: 0.95rem;
	white-space: nowrap;
}
.pagination {
	margin-top: clamp(3rem, 6vw, 5rem);
	text-align: center;
	font-family: var(--f-heading);
}
.pagination .nav-links {
	display: flex;
	gap: 1.5rem;
	justify-content: center;
}

/* ---- Audio player: play symbol + waveform + timer pill ---- */
.audio-player {
	display: inline-flex;
}
.audio-player__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.85rem 0.35rem 0.6rem;
	border: 1px solid rgba(128, 128, 128, 0.4);
	border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	border-radius: 100px;
	background: none;
	color: inherit;
	cursor: pointer;
	line-height: 1;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.audio-player__toggle:hover {
	border-color: color-mix(in srgb, currentColor 60%, transparent);
	background: color-mix(in srgb, currentColor 8%, transparent);
}
.audio-player__play {
	display: inline-flex;
}
.audio-player__icon {
	width: 0.8rem;
	height: 0.8rem;
	display: block;
}
.audio-player__icon--pause,
.audio-player.is-playing .audio-player__icon--play {
	display: none;
}
.audio-player.is-playing .audio-player__icon--pause {
	display: block;
}
.audio-player__label {
	font-family: var(--f-heading);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}
.audio-player__wave {
	display: inline-flex;
	align-items: center;
	gap: 2.5px;
	height: 14px;
}
.audio-player__wave i {
	display: block;
	width: 3px;
	background: currentColor;
	border-radius: 1px;
}
.audio-player__wave i:nth-child(1) { height: 35%; }
.audio-player__wave i:nth-child(2) { height: 70%; }
.audio-player__wave i:nth-child(3) { height: 100%; }
.audio-player__wave i:nth-child(4) { height: 55%; }
.audio-player__wave i:nth-child(5) { height: 80%; }
.audio-player.is-playing .audio-player__wave i {
	animation: audio-wave 0.9s ease-in-out infinite;
}
.audio-player.is-playing .audio-player__wave i:nth-child(2) { animation-delay: 0.1s; }
.audio-player.is-playing .audio-player__wave i:nth-child(3) { animation-delay: 0.25s; }
.audio-player.is-playing .audio-player__wave i:nth-child(4) { animation-delay: 0.35s; }
.audio-player.is-playing .audio-player__wave i:nth-child(5) { animation-delay: 0.15s; }
@keyframes audio-wave {
	0%, 100% { height: 30%; }
	50% { height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.audio-player.is-playing .audio-player__wave i {
		animation: none;
	}
}
.audio-player__time {
	font-family: var(--f-heading);
	font-size: 0.76rem;
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
}
/* Card footer: Read More + listen pill on one row */
.post-card__footer {
	margin-top: auto;
	padding-top: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
/* Single post: centred pill under the meta */
.single-post .audio-player {
	display: flex;
	width: fit-content;
	margin: 0 auto clamp(2rem, 4vw, 3rem);
}

/* ---- Single post ---- */
.single-post__header {
	text-align: center;
	margin-bottom: clamp(2rem, 5vw, 4rem);
}
.single-post__meta {
	font-family: var(--f-heading);
	font-size: 0.95rem;
	opacity: 0.8;
	display: flex;
	gap: 1.5rem;
	justify-content: center;
}
.entry-content h2,
.entry-content h3 {
	margin-top: 1.6em;
}
.entry-content img {
	margin: 2rem auto;
}
.entry-content a {
	color: inherit;
}
.single-post__footer {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	text-align: center;
}

/* ---- Footer ---- */
.site-footer {
	background: var(--c-light);
	color: var(--c-dark);
	padding: var(--section-pad) 0;
}
.site-footer__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
.site-footer__title {
	margin-bottom: 1rem;
}
.site-footer__subtitle {
	margin-bottom: 1.25rem;
}
.site-footer__menu {
	list-style: none;
	padding: 0;
	margin: 1.25rem 0 0;
}
.site-footer__menu li {
	margin-bottom: 0.4em;
}
.site-footer__logos {
	display: flex;
	flex-wrap: nowrap;
	gap: 1.5rem;
	align-items: center;
}
.site-footer__logos img {
	max-height: 64px;
	width: auto;
	min-width: 0;
	flex: 0 1 auto;
	object-fit: contain;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
	.team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.logo-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.intro-grid,
	.community-grid,
	.cols--3,
	.cols--2 {
		grid-template-columns: 1fr;
	}
	.community__afc {
		grid-template-columns: 1fr;
	}
	.community__afc-image img {
		max-width: 320px;
	}
	.origin__grid {
		grid-template-columns: 1fr;
	}
	.origin__aside {
		max-width: 420px;
	}
	.ace-highlight__card:has(.ace-highlight__aside) {
		grid-template-columns: 1fr;
	}
	.ace-highlight__aside {
		order: -1;
		justify-content: flex-start;
	}
	.post-grid {
		grid-template-columns: 1fr;
	}
	.quote-grid {
		grid-template-columns: 1fr;
	}
	.quote-grid--condensed {
		grid-template-columns: repeat(2, 1fr);
	}
	.insight-grid {
		grid-template-columns: 1fr;
	}
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	/* Hero stacks: content, then stats/awards below (left-aligned). */
	.hero__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 2.5rem;
	}
	.hero__aside {
		align-items: flex-start;
		text-align: left;
	}
	.hero-stats {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 1.5rem 2.5rem;
	}

	/* Core offerings stack into a single column. */
	.core-offerings__grid {
		grid-template-columns: 1fr;
	}
	.core-offering {
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	}
	.core-offering:last-child {
		border-bottom: 0;
	}

	/* Mobile nav */
	.nav-toggle {
		display: block;
	}
	.site-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--c-dark);
		padding: 1.5rem var(--gutter) 2.5rem;
		flex-direction: column;
		align-items: flex-start;
		z-index: 99;
	}
	.site-header {
		position: relative;
	}
	.nav-open .site-nav {
		display: flex;
	}
	.site-nav__list {
		flex-direction: column;
		gap: 1.1rem;
		font-size: 1.15rem;
	}
}

@media (max-width: 600px) {
	.team-grid {
		grid-template-columns: 1fr;
	}
	.quote-grid--condensed {
		grid-template-columns: 1fr;
	}
	.section--hero {
		min-height: 66vh;
	}
	.single-post__meta {
		flex-direction: column;
		gap: 0.25rem;
	}
	.carousel {
		padding: 0;
	}
	.carousel__nav {
		display: none;
	}
}
