/* ==========================================================================
   CARUK Konsalting – main stylesheet (mobile-first)
   Design tokens come from theme.json (--wp--preset--*). Measurements follow
   the original Webflow site; spacing is unified via --section-space.
   Breakpoints: 768 / 992 / 1280 / 1440
   ========================================================================== */

/* Fonts (self-hosted, variable 300–700) ---------------------------------- */
@font-face {
	font-family: "Fustat";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/fustat-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: "Fustat";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/fustat-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;
}

/* Local aliases ---------------------------------------------------------- */
:root {
	--c-primary: var(--wp--preset--color--primary, #0e1d68);
	--c-primary-hover: var(--wp--preset--color--primary-hover, #283ca0);
	--c-accent: var(--wp--preset--color--accent, #7f94ff);
	--c-ink: var(--wp--preset--color--ink, #080f30);
	--c-ink-2: var(--wp--preset--color--ink-2, #0c1132);
	--c-navy-1: var(--wp--preset--color--navy-1, #0b1548);
	--c-navy-2: var(--wp--preset--color--navy-2, #091033);
	--c-muted: var(--wp--preset--color--muted, #8c93b9);
	--c-muted-dark: var(--wp--preset--color--muted-dark, #7581bd);
	--c-soft: var(--wp--preset--color--soft, #c4c7d8);
	--c-line: var(--wp--preset--color--line, #d1d6ed);
	--c-ghost: var(--wp--preset--color--ghost, #d7dcf1);
	--c-surface: var(--wp--preset--color--surface, #f2f3f7);
	--c-border-dark: var(--wp--preset--color--border-dark, #465391);
	--c-white: #fff;

	--fs-xs: var(--wp--preset--font-size--xs, 0.75rem);
	--fs-sm: var(--wp--preset--font-size--sm, 1rem);
	--fs-md: var(--wp--preset--font-size--md, 1.35rem);
	--fs-lg: var(--wp--preset--font-size--lg, 1.75rem);
	--fs-h4: var(--wp--preset--font-size--h-4, 1.5rem);
	--fs-h3: var(--wp--preset--font-size--h-3, 2rem);
	--fs-h2: var(--wp--preset--font-size--h-2, 2.85rem);
	--fs-h1: var(--wp--preset--font-size--h-1, 3.75rem);
	--fs-display: var(--wp--preset--font-size--display, 22rem);

	--gutter: var(--wp--preset--spacing--gutter, clamp(1rem, 4vw, 4rem));
	--section-space: clamp(3.5rem, 2.5rem + 3.5vw, 5.5rem);

	/* Spacing scale (one rhythm for every block) */
	--sp-xs: 0.5rem;                                  /* label ↔ text, icon ↔ text */
	--sp-s: 1rem;                                     /* items in a list, card inner */
	--sp-m: 1.5rem;                                   /* title → text → button */
	--sp-l: clamp(2rem, 1.5rem + 1.5vw, 3rem);         /* head → content, between groups */
	--sp-xl: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);      /* columns of two-column layouts */
	--grid-gap: clamp(1rem, 0.75rem + 1vw, 1.5rem);    /* cards and tiles */
	--card-pad: clamp(1.25rem, 1rem + 1vw, 2rem);      /* padding inside cards/boxes */
	--wide: 1440px;
	--radius: 1rem;
	--radius-pill: 50px;
	--header-h: 5.5rem;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--dark-bg: linear-gradient(198deg, var(--c-navy-1), var(--c-navy-2));
}

/* Base ------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--wp--preset--font-family--base, "Fustat", system-ui, sans-serif);
	font-size: var(--fs-sm);
	line-height: 1.5;
	color: var(--c-ink);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote {
	margin: 0;
}

/* Long words (e.g. "(PREMIUM/EXECUTIVE)") must never cause horizontal scroll on phones. */
h1,
h2,
h3 {
	overflow-wrap: anywhere;
	hyphens: auto;
}

ul[class],
ol[class] {
	list-style: none;
	padding: 0;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 1rem;
	left: 1rem;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1.25rem;
	clip: auto;
	background: var(--c-white);
	color: var(--c-primary);
	border-radius: var(--radius-pill);
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.25);
}

.site-main:focus {
	outline: none;
}

/* Layout ----------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--wide);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--section-space);
}

/* Two light sections in a row share one gap instead of doubling it */
.section:not(.section--dark) + .section:not(.section--dark) {
	padding-top: 0;
}

.section--dark {
	background: var(--dark-bg);
	color: var(--c-soft);
}

.section--dark + .section--dark {
	padding-top: 0;
}

/* Dark sections with their own background start a new block: keep the full top gap. */
.section--dark + .section--dark.services,
.section--dark + .section--dark.partners {
	padding-top: var(--section-space);
}

.section__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 4rem);
}

.section__head--center {
	align-items: center;
	text-align: center;
}

.section__head--center .section__lead {
	max-width: 52rem;
}

/* Typography ------------------------------------------------------------- */
.title {
	font-size: var(--fs-h2);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.04em;
	color: var(--c-primary);
	text-wrap: balance;
}

.title__accent {
	color: var(--c-muted);
}

.section--dark .title,
.title--on-dark {
	color: var(--c-white);
}

.section--dark .title__accent,
.title--on-dark .title__accent {
	color: var(--c-muted-dark);
}

.text-md {
	font-size: var(--fs-md);
	font-weight: 300;
	line-height: 1.4;
	letter-spacing: -0.015em;
	color: var(--c-ink);
}

.section--dark .text-md {
	color: var(--c-soft);
}

.text-lg {
	font-size: var(--fs-lg);
	line-height: 1.22;
	color: var(--c-primary);
}

.text-sm {
	font-size: var(--fs-sm);
	font-weight: 300;
	line-height: 1.5;
}

.pill {
	display: inline-block;
	padding: 0.625rem 1.25rem;
	font-size: 0.85rem;
	line-height: 1;
	color: var(--c-ink);
	background: var(--c-white);
	border-radius: var(--radius-pill);
	box-shadow: 0 2px 5px rgb(0 0 0 / 0.2);
}

.section--dark .pill {
	color: var(--c-white);
	background: rgb(255 255 255 / 0.1);
	box-shadow: none;
}

/* Buttons & links -------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.9375rem 1.875rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	border-radius: var(--radius-pill);
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn--primary {
	color: var(--c-white);
	background: var(--c-primary);
}

.btn--primary:hover {
	background: var(--c-primary-hover);
}

.btn--light {
	color: var(--c-ink-2);
	background: var(--c-white);
}

.btn--light:hover {
	color: var(--c-white);
	background: var(--c-primary-hover);
}

.btn--hero {
	font-weight: 500;
	color: var(--c-ink-2);
	background: var(--c-white);
}

.btn--hero:hover {
	color: var(--c-white);
	background: rgb(117 129 189 / 0.4);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--c-primary);
	text-decoration: none;
}

.section--dark .arrow-link {
	color: var(--c-white);
	font-weight: 300;
}

.arrow-link .icon {
	transition: transform 0.2s var(--ease);
}

.arrow-link:hover .icon {
	transform: translateX(4px);
}

/* Header & navigation ---------------------------------------------------- */
.site-header {
	position: relative;
	z-index: 50;
	background: var(--dark-bg);
	color: var(--c-soft);
}

.has-hero .site-header {
	position: absolute;
	inset: 0 0 auto;
	background: transparent;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--wide);
	margin-inline: auto;
	padding: 1rem var(--gutter);
}

.brand {
	display: inline-flex;
	align-items: center;
	flex: none;
	text-decoration: none;
	color: var(--c-white);
}

.brand__logo {
	width: 64px;
	height: auto;
}

.brand__name {
	font-size: 1.25rem;
	font-weight: 600;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	color: var(--c-white);
	background: rgb(255 255 255 / 0.08);
	border: 0;
	border-radius: 12px;
	cursor: pointer;
}

.nav-toggle__bars {
	position: relative;
	display: block;
	width: 22px;
	height: 14px;
}

.nav-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
	position: absolute;
	inset: 100% 0 auto;
	display: none;
	height: calc(100svh - 5rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0.5rem var(--gutter) 2rem;
	background: rgb(11 21 72 / 0.96);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.primary-nav.is-open {
	display: block;
}

.menu__item {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.menu__link {
	display: block;
	padding: 1rem 0;
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--c-soft);
	text-decoration: none;
	transition: color 0.2s;
}

.menu__link:hover,
.menu__item.is-current > .menu__link {
	color: var(--c-white);
}

.menu__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--c-soft);
	background: none;
	border: 0;
	cursor: pointer;
}

.menu__chevron {
	transition: transform 0.2s var(--ease);
}

.menu__toggle[aria-expanded="true"] .menu__chevron {
	transform: rotate(180deg);
}

.menu__sub {
	display: none;
	flex-basis: 100%;
	margin: 0 0 1rem;
	padding: 0.25rem 0 0 1rem;
}

.menu__item--has-sub.is-open > .menu__sub {
	display: block;
}

.menu__sublink {
	display: block;
	padding: 0.75rem 0;
	font-weight: 300;
	color: var(--c-white);
	text-decoration: none;
}

.menu__sublink:hover {
	color: var(--c-accent);
}

/* Hero (front page) ------------------------------------------------------ */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100svh;
	padding: 8rem 0 3rem;
	color: var(--c-white);
	background-color: var(--c-navy-1);
	isolation: isolate;
}

.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__inner {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.hero__main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2rem;
}

.hero__title {
	max-width: 70rem;
	font-size: var(--fs-h1);
	font-weight: 500;
	line-height: 1.07;
	letter-spacing: -0.017em;
	color: var(--c-white);
	text-wrap: balance;
}

.hero__title .title__accent {
	color: var(--c-accent);
}

.hero__bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
}

.hero__text {
	order: -1;
	max-width: 28rem;
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.6;
	color: rgb(255 255 255 / 0.85);
}

.consult-cta {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	max-width: 100%;
	min-height: 64px;
	padding: 0.5rem 1.5rem 0.5rem 0.5rem;
	color: var(--c-white);
	text-decoration: none;
	background: rgb(0 0 0 / 0.15);
	border-radius: 100px;
	transition: background-color 0.25s var(--ease);
}

.consult-cta:hover {
	background: rgb(255 255 255 / 0.12);
}

.consult-cta__avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.consult-cta__dot {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: rgb(255 255 255 / 0.15);
	border-radius: 50%;
}

.consult-cta__dot::after {
	content: "";
	width: 10px;
	height: 10px;
	background: #3ee07a;
	border-radius: 50%;
	animation: caruk-pulse 2s infinite;
}

@keyframes caruk-pulse {
	0% { box-shadow: 0 0 0 0 rgb(62 224 122 / 0.6); }
	70% { box-shadow: 0 0 0 10px rgb(62 224 122 / 0); }
	100% { box-shadow: 0 0 0 0 rgb(62 224 122 / 0); }
}

.consult-cta__text {
	font-size: 0.95rem;
	line-height: 1.3;
}

/* Intro + big word ------------------------------------------------------- */
.intro {
	display: flex;
	justify-content: flex-end;
	padding-top: var(--section-space);
}

.intro__text {
	max-width: 50rem;
}

.intro__text .title__accent {
	color: var(--c-muted);
}

.big-word {
	padding-block: clamp(1rem, 3vw, 2rem);
	overflow: hidden;
}

.big-word__text {
	font-size: var(--fs-display);
	font-weight: 500;
	line-height: 0.9;
	letter-spacing: -0.03em;
	color: var(--c-ghost);
	text-align: center;
	white-space: nowrap;
	user-select: none;
}

/* About ------------------------------------------------------------------ */
.about__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2rem;
}

.about__body .title,
.about__body .text-md {
	max-width: 62rem;
}

.about__image {
	width: 100%;
	margin-top: 1rem;
	border-radius: 15px;
	object-fit: cover;
}

/* Industries ------------------------------------------------------------- */
.industries__grid {
	display: grid;
	gap: 3rem;
}

.industries__desc {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2rem;
}

.industries__list {
	display: flex;
	flex-direction: column;
}

.industries__item {
	padding-block: 0.9rem;
	font-size: var(--fs-md);
	font-weight: 300;
	line-height: 1.37;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--c-soft);
	border-bottom: 1px solid rgb(255 255 255 / 0.2);
}

.industries__more {
	margin-top: 1rem;
}

.industries__image {
	width: 100%;
	max-width: 600px;
	margin-left: auto;
	border-radius: 15px;
}

/* Services list ---------------------------------------------------------- */
.services__list {
	border-top: 1px solid rgb(255 255 255 / 0.2);
}

.service {
	position: relative;
	display: grid;
	grid-template-columns: 2.5rem 1fr;
	gap: 0.75rem 1rem;
	padding: 2rem 0.25rem;
	color: var(--c-soft);
	text-decoration: none;
	border-bottom: 1px solid rgb(255 255 255 / 0.2);
}

.service::after {
	content: "";
	position: absolute;
	inset: auto 0 -1px;
	height: 1px;
	background: var(--c-white);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s var(--ease);
}

.service:hover::after,
.service:focus-visible::after {
	transform: scaleX(1);
}

.service__num {
	grid-row: span 3;
	padding-top: 0.4rem;
	font-size: 0.8rem;
	color: var(--c-soft);
}

.service__title {
	font-size: var(--fs-h4);
	font-weight: 500;
	line-height: 1.23;
	color: var(--c-soft);
	transition: color 0.2s;
}

.service:hover .service__title {
	color: var(--c-white);
}

.service__text {
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.45;
}

.service__more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--c-white);
	font-weight: 300;
	letter-spacing: 0.06em;
}

/* Case study cards ------------------------------------------------------- */
.cases__head {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-bottom: clamp(2rem, 1.5rem + 2vw, 4rem);
}

.cases__head .section__head {
	margin-bottom: 0;
}

.cases__head-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
}

.cases__list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.case-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--c-surface);
	border-radius: var(--radius);
}

.case-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.case-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.case-card:hover .case-card__media img {
	transform: scale(1.03);
}

.case-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.5rem;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.tag {
	padding: 0.5rem 1rem;
	font-size: var(--fs-xs);
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-white);
	background: var(--c-primary);
	border-radius: 2rem;
}

.case-card__title {
	font-size: var(--fs-h3);
	font-weight: 500;
	line-height: 1.125;
	letter-spacing: -0.03em;
	color: var(--c-primary);
}

.case-card__title a {
	text-decoration: none;
}

.case-card__title a:hover {
	text-decoration: underline;
}

.case-card .text-sm {
	color: var(--c-ink);
}

/* Team marquee ----------------------------------------------------------- */
.team-strip {
	--card-w: 200px;
	position: relative;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.team-strip__track {
	display: flex;
	width: max-content;
	animation: caruk-marquee var(--marquee-duration, 60s) linear infinite;
}

.team-strip:hover .team-strip__track,
.team-strip:focus-within .team-strip__track {
	animation-play-state: paused;
}

.team-strip__group {
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0 1rem 0 0;
}

@keyframes caruk-marquee {
	to { transform: translateX(-50%); }
}

.member {
	display: flex;
	flex: none;
	flex-direction: column;
	gap: 0.75rem;
	width: var(--card-w);
}

.member__photo {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	background: var(--c-surface);
	border-radius: 15px;
}

.member__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

/* Name left, icon links (LinkedIn, CV) grouped on the right. */
.member__head .member__name {
	margin-right: auto;
}

.member__name {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--c-ink);
}

.member__linkedin {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--c-primary);
}

.member__meta {
	font-size: 0.95rem;
	line-height: 1.45;
	color: rgb(8 15 48 / 0.6);
}

/* Benefits bento --------------------------------------------------------- */
.bento {
	display: grid;
	gap: 1rem;
}

.bento__cell {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.5rem;
	background: rgb(255 255 255 / 0.05);
	border: 1px solid var(--c-border-dark);
	border-radius: var(--radius);
}

.bento__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.bento__title {
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.33;
	color: var(--c-white);
}

.bento__tag {
	padding: 0.25rem 0.5rem;
	font-size: 0.85rem;
	color: #a3a6b7;
	background: rgb(255 255 255 / 0.1);
	border-radius: 0.2rem;
}

.bento__text {
	font-size: 1rem;
	line-height: 1.5;
	color: var(--c-soft);
}

.metric {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.metric__value {
	flex: none;
	font-size: 3.25rem;
	line-height: 1;
	color: var(--c-white);
}

.metric__value--xl {
	font-size: clamp(3.25rem, 2.5rem + 2.5vw, 5rem);
}

.metric__label {
	font-size: 1rem;
	line-height: 1.5;
	color: var(--c-soft);
}

.bento__image {
	width: 100%;
	max-width: 260px;
	margin-inline: auto;
}

/* Partners logo strip ---------------------------------------------------- */
.partners__highlight {
	font-weight: 400;
	color: #8083a8;
}

.logo-strip {
	position: relative;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-strip__track {
	display: flex;
	width: max-content;
	animation: caruk-marquee var(--marquee-duration, 40s) linear infinite;
}

.logo-strip:hover .logo-strip__track,
.logo-strip:focus-within .logo-strip__track {
	animation-play-state: paused;
}

.logo-strip__group {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	padding: 0.25rem 1rem 0.25rem 0;
}

/* Logos sit on light tiles so dark and colored logos stay visible on the dark background */
.logo-strip__link {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 140px;
	height: 80px;
	padding: 0.75rem 1rem;
	background: rgb(255 255 255 / 0.92);
	border-radius: 0.75rem;
	transition: background-color 0.2s, transform 0.2s var(--ease);
}

.logo-strip__link:hover,
.logo-strip__link:focus-visible {
	background: var(--c-white);
	transform: translateY(-2px);
}

.logo-strip__link img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Testimonials ----------------------------------------------------------- */
.testimonials {
	position: relative;
	--photo-w: 330px;
}

.testimonials__panel {
	display: grid;
	gap: 2rem;
}

.testimonials__panel:focus-visible {
	outline-offset: 8px;
}

.testimonials__photo {
	width: 100%;
	max-width: var(--photo-w);
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius);
}

.testimonials__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 2rem;
}

.testimonials__tab {
	position: relative;
	width: 60px;
	height: 60px;
	padding: 0;
	overflow: hidden;
	background: var(--c-surface);
	border: 1px solid transparent;
	border-radius: 0.5rem;
	cursor: pointer;
}

.testimonials__tab img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.testimonials__tab::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgb(31 46 122 / 0.5);
	transition: opacity 0.3s;
}

.testimonials__tab[aria-selected="true"] {
	border-color: var(--c-primary);
}

.testimonials__tab[aria-selected="true"]::after,
.testimonials__tab:hover::after {
	opacity: 0;
}

.quote__text {
	font-size: clamp(1.25rem, 1rem + 1vw, 2rem);
	font-weight: 300;
	line-height: 1.2;
	color: var(--c-ink);
}

.quote__text--long {
	font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
	line-height: 1.45;
}

.quote__author {
	margin-top: 1.5rem;
}

.quote__name {
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--c-primary);
}

.quote__role {
	margin-top: 0.25rem;
	color: rgb(8 15 48 / 0.7);
}

.testimonials__panel[hidden] {
	display: none;
}

/* FAQ -------------------------------------------------------------------- */
.faq {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 1180px;
	margin-inline: auto;
}

.faq__item {
	border: 1px solid var(--c-line);
	border-radius: 2rem;
	transition: box-shadow 0.25s var(--ease);
}

.faq__item[open] {
	box-shadow: 0 6px 24px rgb(14 29 104 / 0.1);
}

.faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0.5rem 0.5rem 1.5rem;
	font-size: 1.15rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.03em;
	color: var(--c-ink-2);
	list-style: none;
	cursor: pointer;
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: var(--c-white);
	background: var(--c-primary);
	border-radius: 50%;
	transition: transform 0.25s var(--ease);
}

.faq__item[open] .faq__icon {
	transform: rotate(45deg);
}

.faq__answer {
	padding: 0 1.5rem 1.5rem;
	color: rgb(8 15 48 / 0.7);
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
	color: var(--c-soft);
	background-color: var(--c-navy-2);
	background-image: var(--footer-bg, var(--dark-bg));
	background-position: center;
	background-size: cover;
}

.footer-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2.5rem;
	padding-top: clamp(3rem, 2rem + 3vw, 4rem);
	padding-bottom: clamp(3rem, 2rem + 3vw, 4rem);
}

.footer-cta__title {
	max-width: 56rem;
}

.site-footer__divider {
	height: 1px;
	margin: 0;
	background: rgb(255 255 255 / 0.15);
	border: 0;
}

.site-footer__main {
	display: grid;
	gap: 2.5rem;
	padding-block: 3rem;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.site-footer__contact {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.site-footer__email {
	font-size: clamp(1.35rem, 1rem + 1vw, 1.8rem);
	line-height: 1.1;
	color: var(--c-white);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.site-footer__email:hover {
	text-decoration: underline;
}

.site-footer__phone {
	color: var(--c-white);
	text-decoration: none;
}

.socials {
	display: flex;
	gap: 0.75rem;
}

.socials__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	color: var(--c-white);
	background: rgb(255 255 255 / 0.12);
	border-radius: 0.6rem;
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	transition: background-color 0.25s var(--ease);
}

.socials__link:hover {
	background: rgb(255 255 255 / 0.24);
}

.footer-nav__title {
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--c-white);
}

.footer-nav__list a {
	display: inline-block;
	padding-block: 0.45rem;
	color: var(--c-soft);
	text-decoration: none;
}

.footer-nav__list a:hover {
	color: var(--c-white);
}

.site-footer__copy {
	padding-block: 1.25rem;
	font-size: 0.875rem;
	color: var(--c-soft);
}

/* Page hero (all inner pages, case studies, events) ---------------------- */
.page-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(24rem, 62vh, 40rem);
	padding: 8rem 0 3rem;
	color: var(--c-white);
	background: var(--dark-bg);
	isolation: isolate;
}

.page-hero--image {
	min-height: clamp(28rem, 80vh, 52rem);
}

.page-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-hero--image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgb(9 16 51 / 0.75), rgb(9 16 51 / 0.15) 70%);
}

.page-hero__inner {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.page-hero__main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
}

.page-hero .pill {
	color: var(--c-white);
	background: rgb(255 255 255 / 0.12);
	box-shadow: none;
}

.page-hero__title {
	max-width: 62rem;
	font-size: var(--fs-h1);
	font-weight: 500;
	line-height: 1.07;
	letter-spacing: -0.017em;
	color: var(--c-white);
	text-wrap: balance;
}

.page-hero__title .title__accent {
	color: var(--c-accent);
}

.page-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	font-size: 1.05rem;
	color: rgb(255 255 255 / 0.85);
}

.page-hero__meta li + li::before {
	content: "·";
	margin-right: 1.5rem;
	margin-left: -0.75rem;
}

.page-hero__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.page-hero__text {
	max-width: 34rem;
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.6;
	color: rgb(255 255 255 / 0.85);
}

.tags--on-dark .tag {
	background: rgb(255 255 255 / 0.18);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.page-cover {
	padding-top: var(--section-space);
}

.page-cover__image {
	width: 100%;
	max-height: 680px;
	object-fit: cover;
	border-radius: var(--radius);
}

.container--narrow {
	max-width: calc(900px + 2 * var(--gutter));
}

/* Formatted text (richtext fields and editor content) */
.rich > * + * {
	margin-top: 0.9em;
}

.rich ul,
.entry-content ul {
	padding-left: 0;
	list-style: none;
}

.rich li,
.entry-content li {
	position: relative;
	padding-left: 1.4em;
}

.rich li + li,
.entry-content li + li {
	margin-top: 0.4em;
}

.rich li::before,
.entry-content li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 0.2em;
	width: 0.45em;
	height: 0.45em;
	background: var(--c-primary-hover);
	border-radius: 50%;
}

.rich strong {
	font-weight: 600;
}

.entry-content {
	max-width: 860px;
	font-size: 1.125rem;
	line-height: 1.7;
}

.entry-content > * + * {
	margin-top: 1.25em;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2em;
	font-weight: 500;
	line-height: 1.2;
	color: var(--c-primary);
}

.entry-content a {
	color: var(--c-primary-hover);
}

/* Reveal on scroll (JS adds .is-visible; without JS everything is visible) */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   ≥ 768px
   ========================================================================== */
@media (min-width: 768px) {
	.brand__logo {
		width: 88px;
	}

	.hero__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.hero__text {
		order: 0;
	}

	.industries__grid {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}

	.industries__image {
		grid-column: 1 / -1;
	}

	.service {
		grid-template-columns: 3rem minmax(0, 1fr);
		gap: 0.75rem 1.5rem;
		padding: 2.5rem 1rem;
	}

	.case-card {
		flex-direction: row;
	}

	.case-card__media {
		flex: 0 0 50%;
		aspect-ratio: auto;
		min-height: 420px;
	}

	.case-card__body {
		flex: 1;
		justify-content: center;
		padding: 2rem;
	}

	.team-strip {
		--card-w: 230px;
	}

	.bento {
		grid-template-columns: 1fr 1fr;
	}

	.testimonials__panel {
		grid-template-columns: minmax(0, var(--photo-w)) minmax(0, 1fr);
		gap: 3rem;
		align-items: start;
	}

	/* Thumbnails sit above the quote, to the right of the photo */
	.testimonials__tabs {
		position: absolute;
		top: 0;
		left: calc(var(--photo-w) + 3rem);
		margin: 0;
	}

	.testimonials__tabs + .testimonials__panel .quote,
	.testimonials__tabs ~ .testimonials__panel .quote {
		padding-top: calc(60px + 2rem);
	}

	.faq__question {
		padding-left: 2.5rem;
		font-size: 1.15rem;
	}

	.faq__icon {
		width: 55px;
		height: 55px;
	}

	.faq__answer {
		padding: 0 4rem 1.5rem 2.5rem;
	}

	.site-footer__main {
		grid-template-columns: 1fr auto;
		align-items: start;
	}

	.footer-cta {
		gap: 3rem;
	}
}

/* ==========================================================================
   ≥ 992px – desktop navigation and wide layouts
   ========================================================================== */
@media (min-width: 992px) {
	.site-header__inner {
		padding: 2rem var(--gutter) 1rem;
	}

	.has-hero .site-header__inner {
		padding-top: 3rem;
	}

	.brand__logo {
		width: 120px;
	}

	.nav-toggle {
		display: none;
	}

	.primary-nav {
		position: static;
		display: block;
		height: auto;
		overflow: visible;
		padding: 0;
		background: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.menu {
		display: flex;
		align-items: center;
		gap: 0.25rem;
	}

	.menu__item {
		flex-wrap: nowrap;
		border: 0;
	}

	.menu__link {
		padding: 0.75rem 0.5rem;
		font-size: 1rem;
	}

	.menu__toggle {
		width: 28px;
		height: 44px;
		margin-left: -0.25rem;
	}

	.menu__sub {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 15rem;
		margin: 0;
		padding: 0.5rem;
		background: rgb(14 20 49 / 0.92);
		-webkit-backdrop-filter: blur(5px);
		backdrop-filter: blur(5px);
		border-radius: 0.5rem;
		box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
	}

	.menu__item--has-sub:hover > .menu__sub,
	.menu__item--has-sub:focus-within > .menu__sub {
		display: block;
	}

	.menu__sublink {
		padding: 0.65rem 0.75rem;
		border-radius: 0.35rem;
	}

	.menu__sublink:hover {
		color: var(--c-white);
		background: rgb(255 255 255 / 0.08);
	}

	.hero {
		padding-bottom: 4rem;
	}

	.hero__main {
		align-items: center;
		text-align: center;
	}

	.hero__title {
		margin-inline: auto;
	}

	.hero__inner {
		gap: 5.5rem;
	}

	.intro__text {
		width: 60%;
	}

	.service {
		grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.3fr);
		align-items: center;
		gap: 1rem 2rem;
	}

	.service__num {
		grid-row: auto;
		padding-top: 0;
	}

	.service__more {
		grid-column: 3;
	}

	.cases__head {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 4rem;
	}

	.cases__head > :first-child {
		flex: 1 1 55%;
	}

	.cases__head-text {
		flex: 1 1 40%;
	}

	/* Stacked sticky cards */
	.cases__list {
		gap: 2rem;
	}

	.case-card {
		position: sticky;
		top: calc(2rem + var(--i, 0) * 1.5rem);
		box-shadow: 0 -8px 30px rgb(14 29 104 / 0.08);
	}

	.case-card__media {
		min-height: 580px;
	}

	.case-card__body {
		padding: 2.5rem;
	}

	.bento {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-areas:
			"e d c"
			"e a c"
			"e a c"
			"e b b";
	}

	.bento__cell {
		padding: 2rem;
	}

	.bento__cell:nth-child(1) { grid-area: a; }
	.bento__cell:nth-child(2) { grid-area: b; }
	.bento__cell:nth-child(3) { grid-area: c; }
	.bento__cell:nth-child(4) { grid-area: d; }
	.bento__cell:nth-child(5) { grid-area: e; }

	.logo-strip__link {
		width: 180px;
		height: 96px;
	}

	.logo-strip__group {
		gap: 1.5rem;
		padding-right: 1.5rem;
	}

	.site-footer__main {
		gap: 4rem;
	}
}

/* ≥ 1280px ---------------------------------------------------------------- */
@media (min-width: 1280px) {
	.team-strip {
		--card-w: 270px;
	}
}

/* ==========================================================================
   Page sections (inner pages)
   ========================================================================== */

/* Text + image */
.text-media__grid {
	display: grid;
	gap: 2.5rem;
	align-items: center;
}

.text-media__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
}

.text-media__num {
	font-size: 1rem;
	color: var(--c-muted);
}

.text-media__lead {
	font-weight: 400;
}

.text-media__text {
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.6;
}

.text-media__image {
	width: 100%;
	border-radius: var(--radius);
	object-fit: cover;
}

/* Features */
.features__wrap {
	display: grid;
	gap: 2rem;
}

.features__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
}

.features__intro .section__head {
	margin-bottom: 0;
}

.features--grid .features__intro,
.features--logos .features__intro {
	align-items: center;
}

.features__body {
	display: grid;
	gap: 2rem;
}

.features__list {
	display: grid;
	gap: 1rem;
}

.feature {
	display: flex;
	gap: 1rem;
	padding: 1.5rem;
	background: var(--c-surface);
	border-radius: var(--radius);
}

.features--list .feature {
	padding: 1.25rem 0;
	background: none;
	border-bottom: 1px solid var(--c-line);
	border-radius: 0;
}

.features--logos .feature {
	flex-direction: column;
	align-items: flex-start;
}

.feature__check {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--c-white);
	background: var(--c-primary);
	border-radius: 50%;
}

.feature__media {
	display: flex;
	align-items: center;
	height: 72px;
}

.feature__image {
	width: auto;
	max-width: 160px;
	max-height: 72px;
	object-fit: contain;
}

.feature__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	min-width: 0;
}

.feature__title {
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--c-primary);
}

.feature__text {
	color: rgb(8 15 48 / 0.75);
}

.features__image img {
	width: 100%;
	border-radius: var(--radius);
	object-fit: cover;
}

.features__more {
	display: flex;
	justify-content: center;
	margin-top: 2.5rem;
}

/* Steps (timeline) */
.steps__intro {
	display: grid;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.steps__meta {
	padding: 1.25rem 1.5rem;
	background: var(--c-surface);
	border-radius: var(--radius);
}

.steps__list {
	position: relative;
	display: grid;
	gap: 2rem;
	counter-reset: step;
}

.steps__list::before {
	content: "";
	position: absolute;
	top: 24px;
	bottom: 24px;
	left: 23px;
	width: 2px;
	background: linear-gradient(var(--c-primary), var(--c-line));
}

.step {
	position: relative;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 1.25rem;
}

.step__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	font-size: 0.85rem;
	color: var(--c-white);
	background: var(--c-primary);
	border: 4px solid var(--c-white);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--c-line);
}

.step__title {
	margin-bottom: 0.5rem;
	padding-top: 0.6rem;
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.25;
	color: var(--c-primary);
}

.step__text {
	color: rgb(8 15 48 / 0.75);
}

/* Logos on light background */
.logos-section__title {
	margin-bottom: 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	color: var(--c-muted);
}

.logo-strip--light .logo-strip__link {
	background: var(--c-surface);
}

/* Gallery */
.gallery--row {
	display: flex;
	gap: 1rem;
	padding-bottom: 0.75rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
}

.gallery--row .gallery__item {
	flex: 0 0 min(85%, 520px);
	scroll-snap-align: start;
}

.gallery--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 1rem;
}

.gallery__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
}

/* Single quote */
.quote--single {
	padding: clamp(1.5rem, 1rem + 2vw, 3rem);
	background: var(--c-surface);
	border-radius: var(--radius);
}

.quote--single .quote__author {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.quote__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.quote--single .quote__name,
.quote--single .quote__role {
	display: block;
}

.quote--single .quote__name {
	font-size: 1.2rem;
}

/* Team grid + founder */
.team-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem 1rem;
}

.team-grid .member,
.founder .member {
	width: auto;
}

.founder {
	display: grid;
	gap: 2rem;
	margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
	padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
	border-bottom: 1px solid var(--c-line);
}

.founder__text {
	font-style: italic;
}

/* Cards (case studies, events) */
.cards {
	display: grid;
	gap: 1.5rem;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--c-surface);
	border-radius: var(--radius);
	transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover {
	box-shadow: 0 12px 30px rgb(14 29 104 / 0.12);
	transform: translateY(-3px);
}

.card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	padding: 0.4rem 0.9rem;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--c-ink);
	background: #3ee07a;
	border-radius: 2rem;
}

.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1.5rem;
}

.card__title {
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--c-primary);
}

.card__title--sm {
	font-size: 1.25rem;
}

.card__title a {
	text-decoration: none;
}

/* Whole card is clickable via the title link */
.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card__title a:focus-visible {
	outline: none;
}

.card:focus-within {
	outline: 2px solid var(--c-accent);
	outline-offset: 3px;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	font-size: 0.95rem;
	color: rgb(8 15 48 / 0.65);
}

.card__more {
	margin-top: auto;
}

/* Events */
.events-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 2.5rem;
}

.events-filter__btn {
	min-height: 44px;
	padding: 0.6rem 1.25rem;
	color: var(--c-primary);
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-pill);
	cursor: pointer;
}

.events-filter__btn[aria-pressed="true"] {
	color: var(--c-white);
	background: var(--c-primary);
	border-color: var(--c-primary);
}

.events-group + .events-group {
	margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.events-group__title {
	margin-bottom: 1.5rem;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 500;
	color: var(--c-primary);
}

.events-empty {
	padding: 1.5rem;
	color: rgb(8 15 48 / 0.7);
	background: var(--c-surface);
	border-radius: var(--radius);
}

.card[hidden] {
	display: none;
}

/* Event program */
.event-program {
	display: grid;
	gap: 2rem;
}

/* Case study content */
.entry-content--case .pill {
	margin-top: 2.5rem;
}

.entry-content--case > .pill:first-child {
	margin-top: 0;
}

.entry-content--case h2 {
	font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
}

/* Forms */
.form-section__grid {
	display: grid;
	gap: 2.5rem;
}

.contact-person {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--c-line);
}

.contact-person__photo {
	flex: 0 0 auto;
	width: 7.5rem;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 50%;
	background: var(--c-surface);
}

.contact-person__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.contact-person__body {
	flex: 1 1 14rem;
	display: grid;
	gap: 0.35rem;
}

.contact-person__name {
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--c-primary);
}

.contact-person__role,
.contact-person__exp {
	color: var(--c-muted);
}

.contact-list {
	display: grid;
	gap: 1.25rem;
}

.contact-list li {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.contact-list__label {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-muted);
}

.contact-list a {
	font-size: 1.25rem;
	color: var(--c-primary);
	text-decoration: none;
}

.contact-list a:hover {
	text-decoration: underline;
}

.cform {
	display: grid;
	gap: 1.25rem;
	padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
	background: var(--c-surface);
	border-radius: var(--radius);
}

.cform__row {
	display: grid;
	gap: 1.25rem;
}

.cform__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.cform label,
.cform legend {
	font-weight: 500;
	color: var(--c-ink);
}

.cform .req {
	color: #b3261e;
}

.cform input[type="text"],
.cform input[type="email"],
.cform input[type="tel"],
.cform select,
.cform textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	font: inherit;
	color: var(--c-ink);
	background: var(--c-white);
	border: 1px solid #b9bfdc;
	border-radius: 0.75rem;
}

.cform textarea {
	min-height: 140px;
	resize: vertical;
}

.cform input:focus-visible,
.cform select:focus-visible,
.cform textarea:focus-visible {
	outline: 2px solid var(--c-primary-hover);
	outline-offset: 1px;
	border-color: var(--c-primary-hover);
}

.cform fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.cform__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin-top: 0.5rem;
}

.cform__choices label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	font-weight: 400;
}

.cform__choices input {
	width: 20px;
	height: 20px;
	accent-color: var(--c-primary);
}

.cform__hint {
	font-size: 0.9rem;
	color: rgb(8 15 48 / 0.65);
}

.cform__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cform .btn {
	justify-self: start;
	border: 0;
	cursor: pointer;
}

.cform-notice {
	margin-bottom: 1.25rem;
	padding: 1rem 1.25rem;
	border-radius: 0.75rem;
}

.cform-notice--ok {
	color: #0b5130;
	background: #dcf5e6;
	border: 1px solid #9fdcb8;
}

.cform-notice--error {
	color: #7a1a14;
	background: #fde7e5;
	border: 1px solid #f2b3ad;
}

.cform__error {
	font-size: 0.9rem;
	color: #b3261e;
}

/* CTA band */
.cta-band__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	text-align: center;
}

@media (min-width: 768px) {
	.features--grid .features__list,
	.features--logos .features__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.features--list .features__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 3rem;
	}

	.gallery--grid {
		gap: 1.25rem;
	}

	.team-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2.5rem 1.5rem;
	}

	.founder {
		grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
		align-items: start;
		gap: 3rem;
	}

	.cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cform__row {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 992px) {
	.page-hero {
		padding: 11rem 0 4rem;
	}

	.text-media__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 4rem;
	}

	.text-media--right .text-media__media {
		order: 2;
	}

	.text-media--top .text-media__grid,
	.text-media--no-image .text-media__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.text-media--no-image .text-media__body {
		max-width: 62rem;
	}

	.features--grid .features__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* A list of exactly three items fits one row (e.g. "Zašto prisustvovati" on Događaji). */
	.features--list .features__list:has(> .feature:nth-child(3):last-child) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.features--logos .features__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.features--side .features__wrap {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: 4rem;
		align-items: start;
	}

	.features--side .features__intro {
		position: sticky;
		top: 2rem;
	}

	.features--with-image .features__body {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		align-items: start;
	}

	.features--with-image .features__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.steps__intro {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 3rem;
		align-items: start;
	}

	.steps__list {
		max-width: 62rem;
	}

	.team-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.cards--events {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.event-program {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
		gap: 4rem;
		align-items: start;
	}

	.form-section--split .form-section__grid {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: 4rem;
		align-items: start;
	}
}

/* ==========================================================================
   Event cards, gallery, mobile menu overlay
   ========================================================================== */
.card__media {
	background: var(--c-navy-1);
}

.card__category {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	padding: 0.4rem 0.9rem;
	font-size: var(--fs-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-white);
	background: rgb(14 29 104 / 0.85);
	border-radius: 2rem;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.card__text {
	color: rgb(8 15 48 / 0.75);
}

.card__facts {
	display: grid;
	gap: var(--sp-xs);
	font-size: 0.95rem;
	color: rgb(8 15 48 / 0.75);
}

.card__facts li {
	display: flex;
	align-items: center;
	gap: var(--sp-xs);
}

.card__facts svg {
	flex: none;
	color: var(--c-primary-hover);
}

.gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--grid-gap);
}

.gallery__link {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
}

.gallery__image {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.4s var(--ease);
}

.gallery__link:hover .gallery__image {
	transform: scale(1.04);
}

.primary-nav__brand {
	display: none;
}

@media (max-width: 991.98px) {
	/* Full-screen menu with the logo on top */
	.primary-nav {
		position: fixed;
		inset: 0;
		z-index: 60;
		height: 100svh;
		padding: 1.25rem var(--gutter) 2.5rem;
		background: rgb(11 21 72 / 0.98);
	}

	.primary-nav__brand {
		display: flex;
		justify-content: center;
		padding: 0.5rem 0 var(--sp-l);
		margin-bottom: var(--sp-s);
		border-bottom: 1px solid rgb(255 255 255 / 0.1);
	}

	.primary-nav__brand .brand__logo {
		width: 96px;
	}

	.nav-toggle {
		position: relative;
		z-index: 70;
	}

	.nav-open body {
		overflow: hidden;
	}
}

@media (min-width: 768px) {
	.gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.gallery {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.form-section__grid--split {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: var(--sp-xl);
		align-items: start;
	}
}

/* Team member cards link to the member page (whole card clickable) */
.member {
	position: relative;
}

.member__link {
	color: inherit;
	text-decoration: none;
}

.member__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.member__link:hover {
	text-decoration: underline;
}

.member__photo {
	transition: transform 0.4s var(--ease);
}

.member:hover .member__photo {
	transform: scale(1.02);
}

.member__linkedin {
	position: relative;
	z-index: 1; /* stays clickable above the card link */
}

.member:focus-within {
	outline: 2px solid var(--c-accent);
	outline-offset: 4px;
	border-radius: 15px;
}

.member__link:focus-visible {
	outline: none;
}

/* Single team member */
.person__grid {
	display: grid;
	gap: var(--sp-xl);
}

.person__card {
	display: flex;
	flex-direction: column;
	gap: var(--sp-m);
}

.person__photo {
	width: 100%;
	max-width: 420px;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--radius);
}

.person__facts {
	display: grid;
	gap: var(--sp-s);
}

.person__facts li {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 1.05rem;
}

.person__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-xs);
}

.person__link {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-xs);
	min-height: 44px;
	padding: 0.4rem 1rem 0.4rem 0.4rem;
	color: var(--c-primary);
	text-decoration: none;
	background: var(--c-surface);
	border-radius: var(--radius-pill);
	transition: background-color 0.2s, color 0.2s;
}

.person__link:hover {
	color: var(--c-white);
	background: var(--c-primary);
}

.person__link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--c-white);
	background: var(--c-primary);
	border-radius: 50%;
}

.person__link:hover .person__link-icon {
	color: var(--c-primary);
	background: var(--c-white);
}

.person__link-icon .icon {
	width: 18px;
	height: 18px;
}

.member__more {
	min-height: 0;
	font-size: 0.95rem;
}

.person__bio-title {
	margin-bottom: var(--sp-m);
}

.person__back {
	margin-top: var(--sp-l);
}

.arrow-link--back .icon {
	transform: rotate(180deg);
}

.arrow-link--back:hover .icon {
	transform: rotate(180deg) translateX(4px);
}

@media (min-width: 992px) {
	.person__grid {
		grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
		align-items: start;
	}

	.person__card {
		position: sticky;
		top: 2rem;
	}
}

/* ==========================================================================
   Rhythm: one spacing scale for all blocks (overrides the values above)
   ========================================================================== */
.section__head {
	gap: var(--sp-m);
	margin-bottom: var(--sp-l);
}

.cases__head {
	gap: var(--sp-l);
	margin-bottom: var(--sp-l);
}

.about__body,
.industries__desc,
.text-media__body,
.features__intro,
.cases__head-text,
.cta-band__inner,
.hero__bottom,
.page-hero__bottom,
.steps__intro,
.footer-cta {
	gap: var(--sp-m);
}

.hero__main {
	gap: var(--sp-l);
}

.page-hero__main {
	gap: var(--sp-s);
}

.page-hero__inner {
	gap: var(--sp-l);
}

.hero__inner {
	gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
}

.industries__grid,
.text-media__grid,
.event-program,
.form-section__grid,
.testimonials__panel,
.founder,
.site-footer__main {
	gap: var(--sp-xl);
}

.features__wrap,
.features__body {
	gap: var(--sp-l);
}

.features__list,
.cards,
.cases__list,
.bento,
.faq {
	gap: var(--grid-gap);
}

.team-grid {
	gap: var(--sp-l) var(--grid-gap);
}

.feature,
.card__body,
.case-card__body,
.bento__cell,
.steps__meta,
.events-empty,
.cform,
.quote--single {
	padding: var(--card-pad);
}

.features--list .feature {
	padding: var(--sp-m) 0;
}

.feature,
.card__body,
.case-card__body,
.member {
	gap: var(--sp-s);
}

.bento__cell {
	gap: var(--sp-m);
}

.features__more {
	margin-top: var(--sp-l);
}

.events-filter {
	margin-bottom: var(--sp-l);
}

.events-group + .events-group {
	margin-top: var(--sp-xl);
}

.events-group__title,
.logos-section__title,
.testimonials__tabs {
	margin-bottom: var(--sp-m);
}

.steps__intro {
	margin-bottom: var(--sp-l);
}

.steps__list {
	gap: var(--sp-l);
}

.service {
	padding: var(--sp-l) var(--sp-s);
}

.faq__question {
	padding: var(--sp-xs) var(--sp-xs) var(--sp-xs) var(--card-pad);
}

.faq__answer {
	padding: 0 var(--card-pad) var(--card-pad);
}

.cform,
.cform__row {
	gap: var(--sp-m);
}

.cform-notice {
	margin-bottom: var(--sp-m);
}

.founder {
	margin-bottom: var(--sp-l);
	padding-bottom: var(--sp-l);
}

.footer-cta {
	padding-block: var(--section-space);
}

.site-footer__main {
	padding-block: var(--sp-l);
}

.rich > * + *,
.entry-content > * + * {
	margin-top: 1em;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.75em;
}

/* Buttons: one size everywhere */
.btn,
.events-filter__btn {
	min-height: 48px;
}

.btn {
	padding: 0.875rem 1.75rem;
}

@media (min-width: 768px) {
	.faq__answer {
		padding-right: calc(var(--card-pad) + 55px);
	}
}

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
	}

	/* Marquees become scrollable rows without the duplicated copy */
	.team-strip,
	.logo-strip {
		overflow-x: auto;
		mask-image: none;
	}

	.team-strip__track,
	.logo-strip__track {
		animation: none;
	}

	.team-strip__group[aria-hidden="true"],
	.logo-strip__group[aria-hidden="true"] {
		display: none;
	}
}
