:root {
  --rep-accent: #e3000f;
  --rep-ink: #171717;
  --rep-muted: #686868;
  --rep-line: #e7e7e7;
  --rep-surface: #ffffff;
  --rep-soft: #f7f7f7;
}

.rep-projects,
.rep-single {
  color: var(--rep-ink);
  font-family: inherit;
}

.rep-projects *,
.rep-single * {
  box-sizing: border-box;
}

.rep-single__hero-inner,
.rep-single__body {
	margin: 0 auto;
	max-width: 1170px;
	padding-left: 24px;
	padding-right: 24px;
}

.rep-projects__inner {
	margin: 0;
	max-width: none;
	padding-left: 10px;
	padding-right: 10px;
}

.rep-projects {
	background: var(--rep-surface);
	padding: 10px 0;
}

.rep-projects__title {
  color: var(--rep-ink);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
	margin: 0 0 10px;
	max-width: 850px;
}

.rep-projects__filters {
  display: flex;
  flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.rep-projects__filter {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rep-line);
  border-radius: 999px;
  color: var(--rep-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 18px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.rep-projects__filter:hover,
.rep-projects__filter.is-active {
  background: var(--rep-accent);
  border-color: var(--rep-accent);
  color: #fff;
}

.rep-projects__filter:focus-visible,
.rep-card__link:focus-visible,
.rep-single__cta-button:focus-visible,
.rep-single__gallery-item:focus-visible {
  outline: 3px solid rgba(227, 0, 15, 0.35);
  outline-offset: 3px;
}

.rep-projects__grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rep-card[hidden] {
  display: none;
}

.rep-card {
  border: 1px solid var(--rep-line);
  border-radius: 20px;
  min-width: 0;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.rep-card:hover {
  border-color: transparent;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.11);
  transform: translateY(-4px);
}

.rep-card__link {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.rep-card__media {
	align-items: center;
	background: var(--rep-soft);
	display: flex;
	justify-content: center;
	min-height: 210px;
	overflow: hidden;
	padding: 44px;
}

.rep-card__media--cover {
	aspect-ratio: 16 / 10;
	min-height: 0;
	padding: 0;
}

.rep-card__cover-image {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 260ms ease;
	width: 100%;
}

.rep-card:hover .rep-card__cover-image {
	transform: scale(1.02);
}

.rep-card__logo-image {
  height: auto;
  max-height: 92px;
  max-width: 210px;
  object-fit: contain;
  width: auto;
}

.rep-card__logo-fallback {
  color: var(--rep-ink);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

.rep-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.rep-card__title {
  color: var(--rep-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
}

.rep-card__format,
.rep-card__participants {
  color: var(--rep-muted);
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

.rep-card__participants {
  color: var(--rep-ink);
  font-weight: 650;
  margin-top: 6px;
}

.rep-projects__empty {
  grid-column: 1 / -1;
}

.rep-projects__pagination {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	padding-top: 10px;
}

.rep-projects__pagination[hidden] {
	display: none;
}

.rep-projects__page {
	align-items: center;
	appearance: none;
	background: #fff;
	border: 1px solid var(--rep-line);
	border-radius: 999px;
	color: var(--rep-ink);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	justify-content: center;
	min-height: 42px;
	min-width: 42px;
	padding: 10px 14px;
}

.rep-projects__page:hover,
.rep-projects__page.is-active {
	background: var(--rep-accent);
	border-color: var(--rep-accent);
	color: #fff;
}

.rep-projects__page:focus-visible {
	outline: 3px solid rgba(227, 0, 15, 0.35);
	outline-offset: 3px;
}

.rep-projects__page:disabled {
	cursor: default;
	opacity: 0.4;
}

.rep-projects__page:disabled:hover {
	background: #fff;
	border-color: var(--rep-line);
	color: var(--rep-ink);
}

.rep-single__hero {
  background: var(--rep-soft);
  padding: clamp(50px, 7vw, 94px) 0;
}

.rep-single__hero-inner {
  align-items: center;
  display: grid;
  gap: clamp(36px, 7vw, 96px);
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
}

.rep-single__client-logo {
  align-items: center;
  background: #fff;
  border-radius: 24px;
  display: flex;
  justify-content: center;
  min-height: 280px;
  padding: 54px;
}

.rep-single__client-logo-image {
  height: auto;
  max-height: 125px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.rep-single__client-logo span {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.rep-single__eyebrow,
.rep-single__cta-label {
  color: var(--rep-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.rep-single__title {
  color: var(--rep-ink);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
}

.rep-single__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.rep-single__facts span {
  background: #fff;
  border-radius: 999px;
  color: var(--rep-ink);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 15px;
}

.rep-single__body {
  padding-bottom: clamp(70px, 9vw, 120px);
  padding-top: clamp(60px, 8vw, 104px);
}

.rep-single__prose,
.rep-single__media,
.rep-single__testimonial {
  margin-bottom: clamp(54px, 7vw, 88px);
}

.rep-single__prose {
  max-width: 820px;
}

.rep-single__prose h2,
.rep-single__media h2,
.rep-single__testimonial h2,
.rep-single__cta h2 {
  color: var(--rep-ink);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 24px;
}

.rep-single__prose p,
.rep-single__prose li {
  color: #333;
  font-size: 18px;
  line-height: 1.7;
}

.rep-single__gallery {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rep-single__gallery-item {
  background: var(--rep-soft);
  border-radius: 18px;
  display: block;
  min-height: 280px;
  overflow: hidden;
}

.rep-single__gallery-item:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
}

.rep-single__gallery img {
  display: block;
  height: 100%;
  max-height: 680px;
  object-fit: cover;
  transition: transform 280ms ease;
  width: 100%;
}

.rep-single__gallery-item:hover img {
  transform: scale(1.015);
}

.rep-single__video {
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 18px;
  margin-top: 18px;
  overflow: hidden;
}

.rep-single__video iframe {
  height: 100%;
  width: 100%;
}

.rep-single__video > a {
  align-items: center;
  color: #fff;
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.rep-single__testimonial blockquote {
  border-left: 4px solid var(--rep-accent);
  color: var(--rep-ink);
  font-size: clamp(21px, 3vw, 30px);
  font-style: normal;
  line-height: 1.45;
  margin: 0;
  max-width: 900px;
  padding: 10px 0 10px 30px;
}

.rep-single__testimonial blockquote p {
  margin: 0;
}

.rep-single__cta {
  background: var(--rep-ink);
  border-radius: 26px;
  color: #fff;
  padding: clamp(34px, 6vw, 72px);
}

.rep-single__cta h2 {
  color: #fff;
  max-width: 670px;
}

.rep-single__cta-button {
  background: var(--rep-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  margin-top: 12px;
  padding: 16px 24px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.rep-single__cta-button:hover {
  background: #bd000c;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .rep-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rep-single__hero-inner {
    grid-template-columns: 1fr;
  }

  .rep-single__client-logo {
    min-height: 220px;
  }
}

@media (max-width: 620px) {
	.rep-projects__inner {
		padding-left: 10px;
		padding-right: 10px;
	}

	.rep-single__hero-inner,
	.rep-single__body {
		padding-left: 18px;
		padding-right: 18px;
	}

	.rep-projects__title {
		margin-bottom: 10px;
	}

	.rep-projects__filters {
		flex-wrap: nowrap;
		margin-left: -10px;
		margin-right: -10px;
		overflow-x: auto;
		padding: 0 10px 10px;
		scrollbar-width: thin;
  }

  .rep-projects__filter {
    flex: 0 0 auto;
  }

  .rep-projects__grid,
  .rep-single__gallery {
    grid-template-columns: 1fr;
  }

	.rep-card__media:not(.rep-card__media--cover) {
		min-height: 180px;
	}

  .rep-single__client-logo {
    min-height: 190px;
    padding: 38px;
  }

  .rep-single__gallery-item,
  .rep-single__gallery-item:first-child:nth-last-child(odd) {
    grid-column: auto;
    min-height: 230px;
  }

  .rep-single__prose p,
  .rep-single__prose li {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
	.rep-card,
	.rep-card__cover-image,
	.rep-single__gallery img,
  .rep-single__cta-button {
    transition: none;
  }
}
