/* -- hero -- */

.hero {
	display: flex;
	align-items: stretch;
	gap: 48px;
	padding: 48px; /* the in-flow header already reserves its own 95px above this via normal flow */
}

/* Figma 751 | 48 | 505 at 1400; scales with the container (--rds-wrap) */
.hero__media {
	flex: 751 1 0;
	min-width: 0;
}

.hero__media a {
	display: block;
}

.hero__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 751 / 503;
	object-fit: cover;
}

.hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center; /* image height grows with the container: keep the text block together */
	gap: 34px;
	flex: 505 1 0;
	min-width: 0;
	max-width: 640px;
	padding: 36px 0;
}

.hero__top {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hero__eyebrow {
	margin: 0;
	font-size: 12px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--rds-beige);
}

.hero__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 48px;
	line-height: 50px;
	color: var(--rds-black);
}

.hero__divider {
	display: block;
}

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
}

.hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
	color: var(--rds-dark-grey);
	white-space: nowrap;
}

.hero__excerpt {
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
	color: var(--rds-black);
}

.hero__bottom {
	display: flex;
	align-items: center;
	gap: 24px;
}

.hero__bookmark {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	line-height: 0;
}

/* -- hero small -- */

.hero-small {
	/* full-bleed background: break out of .site-main's 1400px container to
	   span the full viewport width, while .hero-small__inner keeps the
	   cards on the grid. */
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	background: var(--rds-light-grey);
}

.hero-small__inner {
	display: flex;
	gap: 24px;
	max-width: var(--rds-wrap);
	margin: 0 auto;
	padding: 48px;
}

.hero-small__card {
	display: flex;
	align-items: center;
	gap: 24px;
	flex: 1 1 0;
}

.hero-small__media {
	display: block;
	flex: 1 1 0;
	min-width: 0;
	aspect-ratio: 308 / 192;
	overflow: hidden;
	border-radius: 4px;
}

.hero-small__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-small__content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 308px;
	flex-shrink: 0;
}

.hero-small__top {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hero-small__date {
	margin: 0;
	font-size: 12px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--rds-dark-grey);
}

.hero-small__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 30px;
	line-height: 34px;
	color: var(--rds-black);
}

.hero-small__bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding-top: 6px;
}

.hero-small__author {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
	color: var(--rds-dark-grey);
}

.hero-small__tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
	color: var(--rds-dark-grey);
}

.hero-small__bookmark {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	line-height: 0;
}

/* -- categories -- */

.categories {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 48px 48px 0;
	background: var(--rds-white);
}

.categories__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.categories__pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
}

.categories__pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border: 1px solid var(--rds-black);
	border-radius: 999px;
	font-size: 14px;
	line-height: 20px;
	color: var(--rds-black);
	white-space: nowrap;
	text-transform: capitalize; /* the shared 'menu-header-categories' titles are stored lowercase */
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.categories__pill:hover {
	border-color: var(--rds-black);
	background: var(--rds-black);
	color: var(--rds-white);
}

.categories__pill.is-active {
	background: var(--rds-black);
	border-color: var(--rds-black);
	color: var(--rds-white);
}

.categories__view-all {
	flex-shrink: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--rds-beige);
	white-space: nowrap;
}

.categories__divider {
	height: 1px;
	background: var(--rds-mid-grey);
}

/* -- shared section head ("SECTION TITLE ... View all →") -- */

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.section-head__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 24px;
	line-height: normal;
	text-transform: uppercase;
	color: var(--rds-black);
}

.section-head__view-all {
	flex-shrink: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--rds-beige);
	white-space: nowrap;
}

/* -- project card, reused by any portrait-image grid section -- */

.trending-projects {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px 48px 48px;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	width: 100%;
}

/* -- explore by sectors -- */

.explore-by-sectors {
	/* full-bleed background, same technique as .hero-small */
	width: 100vw;
	position: relative;
	left: 50%;
	margin-left: -50vw;
	background: var(--rds-light-grey);
}

.explore-by-sectors__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: var(--rds-wrap);
	margin: 0 auto;
	padding: 48px;
}

.sector-card {
	display: flex;
	flex-direction: column;
	background: var(--rds-white);
	border: 1px solid var(--rds-mid-grey);
}

.sector-card__media {
	aspect-ratio: 308 / 206;
	overflow: hidden;
	background: var(--rds-light-grey);
}

.sector-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sector-card__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	flex: 1 1 0;
	padding: 24px;
}

.sector-card__title {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 52px;
}

.sector-card__title span {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 20px;
	line-height: normal;
	color: var(--rds-black);
	text-transform: capitalize; /* category names are stored lowercase */
}

.sector-card__description {
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
	color: var(--rds-dark-grey);
}

.sector-card__count {
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
	color: var(--rds-beige);
}

.project-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%; /* cards in a grid row share one height, so the bottom rows line up */
}

.project-card__media {
	display: block;
	aspect-ratio: 308 / 348;
	overflow: hidden;
	border-radius: 4px;
	background: var(--rds-light-grey);
}

.project-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.project-card__content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
}

/* date + save button (Figma 2026-10: bookmark moved up to the date row) */
.project-card__head,
.hero-small__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 32px;
}

.project-card__top {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.project-card__date {
	margin: 0;
	font-size: 12px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--rds-dark-grey);
}

.project-card__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 20px;
	line-height: normal;
	color: var(--rds-black);
}

.project-card__bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-top: auto; /* pinned to the card bottom (client request 2026-10-07) */
	padding-top: 6px;
}

.project-card__author,
.hero-small__author {
	max-width: 100%;
}

.project-card__author span,
.hero-small__author span {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.project-card__author {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
	color: var(--rds-dark-grey);
}

.project-card__tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
	color: var(--rds-dark-grey);
}

.project-card__bookmark {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	line-height: 0;
}

.project-card--tall .project-card__media {
	aspect-ratio: 308 / 425;
}

/* -- projects around the world -- */

.projects-map {
	display: flex;
	align-items: center;
	gap: 36px;
	padding: 48px;
	background: var(--rds-white);
}

.projects-map__graphic {
	display: block; /* a link (opens the map view) */
	flex: 1 1 0;
	min-width: 0;
}

.projects-map__graphic img {
	display: block;
	width: 100%;
	height: auto;
}

.projects-map__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* without this, flex's default stretch makes the button fill the column width */
	gap: 36px;
	width: 419px;
	flex-shrink: 0;
}

.projects-map__text {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%; /* parent no longer stretches items (align-items: flex-start), so this needs to opt back in to keep wrapping at the column width */
}

.projects-map__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 48px;
	line-height: 50px;
	color: var(--rds-black);
}

.projects-map__divider {
	display: block;
}

.projects-map__description {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--rds-black);
}

/* -- latest projects -- */

.latest-projects {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 48px;
}

.latest-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	margin: 0 auto;
}

.latest-item {
	display: flex;
	align-items: center;
	gap: 24px;
}

.latest-item__media {
	display: block;
	flex: 1 1 0;
	min-width: 0;
	aspect-ratio: 529 / 355;
	overflow: hidden;
}

.latest-item__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.latest-item__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	flex: 1 1 0;
	min-width: 0;
	min-height: 355px;
	padding: 24px 0;
}

.latest-item__top {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.latest-item__title {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.latest-item__date {
	margin: 0;
	font-size: 12px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--rds-dark-grey);
}

.latest-item__title h3 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 30px;
	line-height: 34px;
	color: var(--rds-black);
}

.latest-item__tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
	color: var(--rds-dark-grey);
}

.latest-item__bottom {
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* without this, flex's default stretch widens the bookmark button to the full column, throwing off the centered hover overlay */
	gap: 18px;
}

.latest-item__bookmark {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	line-height: 0;
}

.latest-item__excerpt {
	margin: 0;
	width: 100%; /* parent no longer stretches items (align-items: flex-start), so this opts back in to keep wrapping at the column width */
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
	color: var(--rds-black);
}

.latest-projects__view-all {
	display: flex;
	justify-content: center;
	padding-top: 48px;
}

/* -- premium members banner --
   Image side = Figma (712 | 688 split, grey bleeds to both screen edges);
   text block = the client's "Become a member" sketch (2026-10-07). */

.premium-banner {
	display: flex;
	align-items: stretch;
	width: 100%;
}

.premium-banner__content {
	position: relative;
	display: flex;
	align-items: center;
	flex: 712 1 0;
	min-width: 0;
	min-height: 458px;
	padding: 48px;
	background: var(--rds-light-grey);
}

/* grey bleeds to the viewport's left edge without moving the content box */
.premium-banner__content::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 100%;
	width: 100vw;
	background: var(--rds-light-grey);
}

.premium-banner__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
	max-width: 540px;
}

.premium-banner__eyebrow {
	margin: 0 0 -12px; /* 12px to the title */
	font-size: 12px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--rds-black);
}

.premium-banner__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 48px;
	line-height: 52px;
	color: var(--rds-black);
}

.premium-banner__description {
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
	color: var(--rds-black);
}

.premium-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	padding-top: 12px;
}

.premium-banner__actions .button {
	justify-content: center;
	min-width: 190px;
}

.premium-banner__actions .button--outline {
	background: var(--rds-white);
}

.premium-banner__actions .button--outline:hover,
.premium-banner__actions .button--outline:focus-visible {
	background: #e8e3df;
}

.premium-banner__divider {
	display: block;
	width: 37px;
	height: 1px;
	margin-top: 12px;
	background: var(--rds-beige);
}

.premium-banner__note {
	margin: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--rds-dark-grey);
}

.premium-banner__media {
	/* object-fit: cover on the <img> clips it to this box; the ::after
	   paints the same grey to the right of the grid */
	position: relative;
	flex: 688 1 0;
	min-width: 0;
}

.premium-banner__media::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 100%;
	width: 100vw;
	background: var(--rds-light-grey);
}

.premium-banner__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -- hall of fame carousel --
   Figma 1.2-home-sticky-white / Hall of Fame at 1304 wide: 4 strips of 86,
   gaps of 24, middle image 864 × 575; grey band full-bleed. Images are
   placed by data-pos (assets/js/hall-of-fame.js) and slide between spots. */

.hall-of-fame {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 48px 48px 36px;
	background: var(--rds-light-grey);
	box-shadow: 0 0 0 100vmax var(--rds-light-grey);
	clip-path: inset(0 -100vmax);
}

.hof-slider {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	width: 100%;
}

.hof-track {
	position: relative;
	width: 100%;
	aspect-ratio: 1304 / 575;
	overflow: hidden;
}

.hof-image {
	--hof-strip: 6.595%; /* 86 / 1304 */
	--hof-step: 8.436%;  /* strip + 24px gap */
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: var(--hof-strip);
	overflow: hidden;
	border-radius: 4px;
	background: var(--rds-mid-grey);
	transition: left 0.6s ease, width 0.6s ease, opacity 0.6s ease;
}

.hof-image.no-anim {
	transition: none;
}

.hof-image__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hof-image[data-pos="-2"] { left: 0; }
.hof-image[data-pos="-1"] { left: var(--hof-step); }
.hof-image[data-pos="0"]  { left: calc(2 * var(--hof-step)); width: 66.258%; }
.hof-image[data-pos="1"]  { left: 84.969%; }
.hof-image[data-pos="2"]  { left: calc(84.969% + var(--hof-step)); }

/* parked off-screen, ready to slide in */
.hof-image:not([data-pos="-2"]):not([data-pos="-1"]):not([data-pos="0"]):not([data-pos="1"]):not([data-pos="2"]) {
	left: calc(-1 * var(--hof-step));
	opacity: 0;
	pointer-events: none;
}

.hof-image[data-pos="3"],
.hof-image[data-pos="4"],
.hof-image[data-pos="5"] {
	left: calc(84.969% + 2 * var(--hof-step)) !important;
}

.hof-image:not([data-pos="0"]) {
	cursor: pointer;
}

.hof-image:not([data-pos="0"]) .hof-image__img {
	transition: opacity 0.2s ease;
}

.hof-image:not([data-pos="0"]):hover .hof-image__img {
	opacity: 0.8;
}

.hof-slide {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	width: 100%;
	max-width: 642px;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.hof-slide.is-entering {
	opacity: 0;
}

.hof-slide[hidden] {
	display: none;
}

.hof-slide__title {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hof-slide .hero__bottom {
	padding-top: 18px;
}

.hall-of-fame .hero__bookmark {
	background: var(--rds-white); /* the band is grey already */
}

.hof-date {
	margin: 0;
	font-size: 12px;
	letter-spacing: 1.2px;
	color: var(--rds-dark-grey);
	text-transform: uppercase;
}

.hof-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 30px;
	line-height: 34px;
	color: var(--rds-black);
}

.hof-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
}

.hof-dot {
	appearance: none;
	padding: 0;
	width: 87px;
	height: 4px;
	border: 0;
	border-radius: 1px;
	background: var(--rds-beige);
	opacity: 0.1;
	cursor: pointer;
}

.hof-dot.is-active {
	opacity: 1;
}

.hof-arrows {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hof-arrow {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	line-height: 0;
}

.hof-arrow[data-hof-next] .rds-icon {
	transform: scaleX(-1); /* icon-next.svg is the same left-pointing chevron as icon-prev.svg — Figma mirrors it via a transform instead of a separate asset */
}

/* -- partner content -- */

.partner-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 48px; /* Figma: 48 top on every page (home, submit, about) */
}

/* -- bookmark hover: swap the outline icon for the solid-fill one --
   img can't take ::before/::after or a CSS fill, and icon-bookmark-saved.svg
   is a genuinely different (filled, not just recolored) shape, so this
   overlays it via the button and fades it in on hover instead. Covers every
   bookmark button on the homepage (hero, hero-small, project cards, latest
   list, Hall of Fame reuses .hero__bookmark). */
.hero__bookmark,
.hero-small__bookmark,
.project-card__bookmark,
.latest-item__bookmark {
	position: relative;
}

.hero__bookmark::after,
.hero-small__bookmark::after,
.project-card__bookmark::after,
.latest-item__bookmark::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/icon-bookmark-saved.svg") no-repeat center / contain;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.hero__bookmark:hover::after,
.hero-small__bookmark:hover::after,
.project-card__bookmark:hover::after,
.latest-item__bookmark:hover::after,
.hero__bookmark.is-saved::after,
.hero-small__bookmark.is-saved::after,
.project-card__bookmark.is-saved::after,
.latest-item__bookmark.is-saved::after {
	opacity: 1;
}

/* Figma 2026-10: the save icon sits in a light box (32px on cards and list
   rows, 44px next to the hero / Hall of Fame button) */
.hero__bookmark,
.hero-small__bookmark,
.project-card__bookmark,
.latest-item__bookmark {
	flex-shrink: 0;
	padding: 4px;
	border-radius: 4px;
	background: #f3f1ef;
	transition: background-color 0.15s ease;
}

.hero__bookmark {
	padding: 10px;
}

.hero__bookmark:hover,
.hero-small__bookmark:hover,
.project-card__bookmark:hover,
.latest-item__bookmark:hover {
	background: #e8e3df;
}

.hero-small__bookmark::after,
.project-card__bookmark::after,
.latest-item__bookmark::after {
	inset: 4px;
}

.hero__bookmark::after {
	inset: 10px;
}

/* favourited: the hover preview turns into the hint that a click removes it */
.hero__bookmark.is-saved:hover::after,
.hero-small__bookmark.is-saved:hover::after,
.project-card__bookmark.is-saved:hover::after,
.latest-item__bookmark.is-saved:hover::after {
	opacity: 0.5;
}

@media (max-width: 1100px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.categories {
		padding: 32px 24px 0;
	}

	.hero {
		flex-direction: column;
		align-items: stretch;
		padding: 24px;
	}

	.hero__media,
	.hero__content {
		flex: none;
		width: 100%;
		max-width: none;
	}

	.hall-of-fame {
		padding: 32px 24px;
	}

	.hero-small__inner {
		flex-direction: column;
		padding: 24px;
	}

	.explore-by-sectors__inner {
		padding: 32px 24px;
	}

	.projects-map {
		flex-direction: column;
		align-items: stretch;
		padding: 24px;
	}

	.projects-map__content {
		width: 100%;
	}

	.latest-projects {
		padding: 32px 24px;
	}

	.latest-list {
		width: 100%;
		padding: 0;
	}

	.latest-item {
		flex-direction: column;
		align-items: stretch;
	}

	.latest-item__media,
	.latest-item__content {
		flex: none;
		width: 100%;
	}

	.latest-item__content {
		min-height: 0;
	}

	.premium-banner {
		flex-direction: column;
	}

	.premium-banner__content {
		flex: none;
		width: 100%;
		min-height: 0;
		padding: 32px 24px;
	}

	.premium-banner__media {
		flex: none;
		width: 100%;
		height: 320px;
	}
}

@media (max-width: 560px) {
	.card-grid {
		grid-template-columns: 1fr;
	}
}

/* -- card hover (every page with project cards / rows): image fades
   slightly, title turns grey. Was list-pages only (listing.css). -- */

.project-card__image {
	transition: opacity 0.3s ease;
}

.project-card__media:hover .project-card__image,
.project-card__media:focus-visible .project-card__image {
	opacity: 0.8;
}

.project-card__title a {
	transition: color 0.2s ease;
}

.project-card__title a:hover,
.project-card__title a:focus-visible {
	color: #777777;
}

.latest-item__image {
	transition: opacity 0.3s ease;
}

.latest-item__media:hover .latest-item__image,
.latest-item__media:focus-visible .latest-item__image {
	opacity: 0.8;
}

.latest-item__title h3 a {
	transition: color 0.2s ease;
}

.latest-item__title h3 a:hover,
.latest-item__title h3 a:focus-visible {
	color: #777777;
}

/* -- phone layout, Figma "mobil" page 1.0-home_M (420 wide): 24px side
      gutter, 36px section padding. Only the homepage sections are scoped
      here; the shared cards keep their own sizes on other pages. -- */

@media (max-width: 600px) {
	/* hero_M: 3:2 image, 12 to the content; 18 between blocks */
	.hero {
		gap: 12px;
		padding: 24px 24px 32px;
	}

	.hero__image {
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.hero__content {
		gap: 18px;
		min-height: 0;
		padding: 0;
	}

	.hero__top {
		gap: 6px;
	}

	.hero__title {
		font-size: 42px;
		line-height: 48px;
	}

	.hero__meta {
		gap: 12px 18px;
	}

	.hero__meta-item {
		white-space: normal;
	}

	.hero__bottom {
		justify-content: space-between;
		margin-top: 6px;
	}

	/* hero small_M: cards stacked, image on top */
	.hero-small__inner {
		gap: 36px;
		padding: 36px 24px;
	}

	.hero-small__card {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.hero-small__media {
		flex: none;
		aspect-ratio: 372 / 232;
	}

	.hero-small__content {
		width: auto;
	}

	/* categories: one row of bigger pills that scrolls sideways to the
	   screen edge; no "View all" on mobile */
	.categories {
		padding: 36px 0 24px 24px;
	}

	.categories__pills {
		flex-wrap: nowrap;
		gap: 12px;
		overflow-x: auto;
		padding-right: 24px;
		scrollbar-width: none;
	}

	.categories__pills::-webkit-scrollbar {
		display: none;
	}

	.categories__pill {
		padding: 9px 18px;
		font-size: 16px;
		line-height: 22px;
		letter-spacing: 0.32px;
	}

	.categories__view-all {
		display: none;
	}

	.categories__divider {
		margin-right: 24px;
	}

	/* trending: 6 stacked cards, 372×420 image, 24px titles */
	.trending-projects {
		padding: 0 24px 36px;
	}

	.trending-projects .card-grid {
		gap: 36px;
	}

	.trending-projects .project-card:nth-child(n+7) {
		display: none;
	}

	.trending-projects .project-card__media {
		aspect-ratio: 372 / 420;
	}

	.trending-projects .project-card__title {
		font-size: 24px;
		line-height: 30.72px;
	}

	/* sideways-scrolling card rows (Popular categories 308 wide, Partners
	   Content 308×425 portrait), running out to the right screen edge */
	.explore-by-sectors__inner {
		padding: 36px 0 36px 24px;
	}

	.explore-by-sectors .section-head {
		padding-right: 24px;
	}

	.explore-by-sectors .card-grid,
	.partner-content .card-grid {
		display: flex;
		gap: 18px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 24px;
		padding-right: 24px;
		scrollbar-width: none;
	}

	.explore-by-sectors .card-grid::-webkit-scrollbar,
	.partner-content .card-grid::-webkit-scrollbar {
		display: none;
	}

	.explore-by-sectors .card-grid > *,
	.partner-content .card-grid > * {
		flex: 0 0 308px;
		scroll-snap-align: start;
	}

	.partner-content {
		padding: 36px 0 36px 24px;
	}

	.partner-content .section-head {
		padding-right: 24px;
	}

	/* projects around the world */
	.projects-map {
		gap: 24px;
		padding: 36px 24px;
	}

	.projects-map__content {
		gap: 24px;
	}

	.projects-map__text {
		gap: 18px;
	}

	.projects-map__title {
		font-size: 42px;
		line-height: 48px;
	}

	/* latest projects: list-element_M — tag and bookmark share a row,
	   excerpt below */
	.latest-projects {
		gap: 24px;
		padding: 0 24px 36px;
	}

	.latest-list {
		gap: 36px;
	}

	.latest-item {
		gap: 12px;
	}

	.latest-item__media {
		width: 100%;
		aspect-ratio: 3 / 2;
	}

	.latest-item__content {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 18px 12px;
		padding: 0;
	}

	.latest-item__top,
	.latest-item__bottom {
		display: contents;
	}

	.latest-item__title,
	.latest-item__excerpt {
		grid-column: 1 / -1;
	}

	.latest-item__bookmark,
	.latest-item__remove {
		grid-column: 2;
		grid-row: 2;
	}

	.latest-projects__view-all {
		padding-top: 24px;
	}

	/* Premium members_M */
	.premium-banner__content {
		padding: 36px 24px;
	}

	.premium-banner__title {
		font-size: 42px;
		line-height: 48px;
	}

	.premium-banner__actions {
		gap: 12px;
	}

	.premium-banner__actions .button {
		min-width: 0;
	}

	.premium-banner__description {
		font-size: 14px;
		line-height: 20px;
		letter-spacing: 0;
	}

	.premium-banner__media {
		height: auto;
		aspect-ratio: 420 / 280;
	}

	/* full width already: the grey bleeds only made the page overflow */
	.premium-banner__content::before,
	.premium-banner__media::after {
		display: none;
	}

	/* Hall of Fame: same card as the hero, smaller title, prev | dots | next */
	.hall-of-fame {
		padding: 36px 24px;
	}

	/* phone: big image + one strip per side */
	.hof-track {
		aspect-ratio: 372 / 300;
	}

	.hof-image {
		--hof-strip: 8%;
		--hof-step: 12%;
	}

	.hof-image[data-pos="-2"] { left: -12%; opacity: 0; }
	.hof-image[data-pos="-1"] { left: 0; }
	.hof-image[data-pos="0"]  { left: 12%; width: 76%; }
	.hof-image[data-pos="1"]  { left: 92%; }
	.hof-image[data-pos="2"]  { left: 104%; opacity: 0; }

	.hof-image[data-pos="3"],
	.hof-image[data-pos="4"],
	.hof-image[data-pos="5"] {
		left: 104% !important;
	}

	.hof-slide {
		gap: 12px;
	}

	.hof-slide .hof-title {
		font-size: 30px;
		line-height: 34px;
	}

	.hof-slide .hero__excerpt {
		font-size: 14px;
		line-height: 20px;
		letter-spacing: 0;
	}

	.hof-controls {
		gap: 16px;
	}

	.hof-arrows {
		display: contents;
	}

	.hof-arrow[data-hof-prev] {
		order: -1;
		margin-right: auto;
	}

	.hof-arrow[data-hof-next] {
		order: 1;
		margin-left: auto;
	}

	.hof-dot {
		width: 24px;
	}
}

/* -- scroll cues for the sideways rows (assets/js/scroll-rows.js) -- */

.scroll-progress {
	display: none;
}

@media (max-width: 600px) {
	.scroll-progress {
		display: block;
		position: relative;
		height: 4px;
		margin-right: 24px;
		border-radius: 1px;
		background: rgba(153, 133, 121, 0.1); /* beige at the HoF dot's 0.1 */
		overflow: hidden;
	}

	.scroll-progress[hidden] {
		display: none;
	}

	.scroll-progress__bar {
		height: 100%;
		border-radius: 1px;
		background: var(--rds-beige);
	}

	.categories__pills.can-scroll-right,
	.listing-tabs__list.can-scroll-right,
	.profile-sidebar__nav.can-scroll-right {
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent);
	}

	.categories__pills.can-scroll-left,
	.listing-tabs__list.can-scroll-left,
	.profile-sidebar__nav.can-scroll-left {
		-webkit-mask-image: linear-gradient(to right, transparent, #000 48px);
		mask-image: linear-gradient(to right, transparent, #000 48px);
	}

	.categories__pills.can-scroll-left.can-scroll-right,
	.listing-tabs__list.can-scroll-left.can-scroll-right,
	.profile-sidebar__nav.can-scroll-left.can-scroll-right {
		-webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 64px), transparent);
		mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 64px), transparent);
	}
}

/* -- dotted world map + pulsing markers (template-parts/world-map.php,
      assets/js/world-map.js moves them between land spots) -- */

.world-map {
	position: relative;
}

.world-map__dots {
	display: block;
	width: 100%;
	height: auto;
}

.world-map__marker {
	position: absolute;
	width: 2.945%; /* 25 of the 849 viewBox */
	transform: translate(-50%, -50%);
	transition: opacity 1.2s ease, transform 1.2s ease;
}

.world-map__marker--big {
	width: 4.829%; /* 41 / 849 */
}

.world-map__marker img {
	display: block;
	width: 100%;
	height: auto;
	animation: rds-marker-pulse 5.6s ease-in-out infinite;
}

.world-map__marker:nth-child(3n) img { animation-delay: -1.8s; animation-duration: 6.4s; }
.world-map__marker:nth-child(3n+1) img { animation-delay: -3.4s; }

.world-map__marker.is-out {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.3);
}

@keyframes rds-marker-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50%      { transform: scale(0.8); opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
	.world-map__marker img {
		animation: none;
	}
}

/* -- 404 (Figma 404, 4761:7178): text 529 | image 751×503, then the grey
      "Explore instead" band with the category pills -- */

.not-found__hero {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 77px 48px;
}

.not-found__content {
	display: flex;
	flex: 529 1 0;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.not-found__eyebrow {
	margin: 0;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--rds-beige);
}

.not-found__title {
	margin: -12px 0 0;
	font-family: var(--font-display);
	font-size: 48px;
	font-weight: 500;
	line-height: 50px;
}

.not-found__line {
	display: block;
	width: 37px;
	height: 1px;
	background: var(--rds-beige);
}

.not-found__text {
	margin: 0;
	max-width: 529px;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
}

.not-found__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 10px;
}

.not-found__media {
	display: block;
	flex: 751 1 0;
	min-width: 0;
	overflow: hidden;
	border-radius: 4px;
}

.not-found__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 751 / 503;
	object-fit: cover;
}

.not-found__explore {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 72px; /* white gap before the (also grey) newsletter band */
	padding: 24px 48px 48px;
	background: var(--rds-light-grey);
	box-shadow: 0 0 0 100vmax var(--rds-light-grey);
	clip-path: inset(0 -100vmax);
}

.not-found__explore .categories__pill {
	background: var(--rds-white);
}

.not-found__explore .categories__pill:hover {
	background: var(--rds-black);
}

@media (max-width: 900px) {
	.not-found__hero {
		flex-direction: column-reverse;
		align-items: stretch;
		padding: 24px;
	}

	.not-found__content,
	.not-found__media {
		flex: none;
	}

	.not-found__explore {
		padding: 24px 24px 36px;
	}
}

@media (max-width: 600px) {
	.not-found__title {
		font-size: 42px;
		line-height: 48px;
	}
}

/* -- sponsored hero (Figma 1.0-home-sponsored): beige band, white text -- */

/* Sponsored hero: default white background (client 2026-10-20 — the Figma's
   beige band is dropped), only the black "Sponsored" pill and the filled
   button set it apart. */

.hero__label {
	align-self: flex-start;
	padding: 8px 12px;
	border-radius: 999px;
	background: var(--rds-black);
	font-size: 14px;
	line-height: 20px;
	color: var(--rds-white);
}

/* icons inside black buttons are drawn black: flip them */
.button--filled .rds-icon {
	filter: invert(1);
}

/* -- promotional banner (PRD 13.3). Client 2026-11-12 (ID37): rounded
   light-beige box inside the grid (no full-bleed band), rounded image,
   left-aligned text + logo next to it, button right -- */

.promo-banner {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 24px 48px;
	padding: 12px 24px 12px 12px;
	border-radius: 8px;
	background: #f3f1ef;
}

.promo-banner__media {
	flex: 0 0 254px;
	align-self: stretch;
	overflow: hidden;
	border-radius: 6px;
}

.promo-banner__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 140px;
	object-fit: cover;
}

.promo-banner__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
	padding: 12px 0;
	text-align: left;
}

.promo-banner__body p {
	margin: 0;
}

.promo-banner__label {
	font-size: 11px;
	line-height: 14px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.6);
}

.promo-banner__text {
	font-size: 24px;
	font-weight: 600;
	line-height: 30px;
	color: var(--rds-black);
}

.promo-banner__subtext {
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
	color: var(--rds-dark-grey);
}

.promo-banner__logo {
	margin-top: 6px;
}

.promo-banner__logo-image {
	display: block;
	width: auto;
	max-width: 180px;
	height: auto;
	max-height: 28px;
	object-fit: contain;
}

.promo-banner__button {
	flex-shrink: 0;
}

@media (max-width: 1100px) {
	.promo-banner {
		margin: 24px;
	}

	.promo-banner__media {
		flex-basis: 200px;
	}
}

@media (max-width: 900px) {
	.promo-banner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px 12px 24px;
	}

	.promo-banner__media {
		flex: none;
		width: 100%;
		height: 180px;
	}

	.promo-banner__body {
		padding: 6px 12px 0;
	}

	.promo-banner__text {
		font-size: 22px;
		line-height: 28px;
	}

	.promo-banner__button {
		align-self: flex-start;
		margin: 0 12px;
	}
}

/* Popular categories cards: same image fade as the project cards */
.sector-card__image {
	transition: opacity 0.3s ease;
}

.sector-card:hover .sector-card__image,
.sector-card:focus-visible .sector-card__image {
	opacity: 0.8;
}

/* category label on cards / rows links to the category list */
a.project-card__tag,
a.hero-small__tag,
a.latest-item__tag,
a.map-preview__tag,
a.hero__meta-item {
	transition: color 0.2s ease;
}

a.project-card__tag:hover,
a.hero-small__tag:hover,
a.latest-item__tag:hover,
a.map-preview__tag:hover,
a.project-card__tag:focus-visible,
a.hero-small__tag:focus-visible,
a.latest-item__tag:focus-visible,
a.map-preview__tag:focus-visible,
a.hero__meta-item:hover,
a.hero__meta-item:focus-visible {
	color: #777777;
}

/* Featured projects strip on top of the project lists (archive.php): same
   grey band as on the homepage, with a small title */
.hero-small__title-row {
	max-width: var(--rds-wrap);
	margin: 0 auto;
	padding: 36px 48px 0;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--rds-beige);
}

.hero-small--titled .hero-small__inner {
	padding-top: 18px;
}

.listing .hero-small {
	margin-bottom: 48px;
}

@media (max-width: 1100px) {
	.hero-small__title-row {
		padding: 24px 24px 0;
	}
}

/* promotional banner on the project page, between the share row and Related */
.promo-banner--single {
	margin-top: 48px;
}

/* designer name on cards → the designer's page */
a.project-card__author,
a.hero-small__author {
	transition: color 0.2s ease;
}

a.project-card__author:hover,
a.hero-small__author:hover,
a.project-card__author:focus-visible,
a.hero-small__author:focus-visible {
	color: #777777;
}

/* pin + place on cards / rows (tracker ID 29), same look as the category label */
.project-card__location,
.hero-small__location,
.latest-item__location {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 0.32px;
	color: var(--rds-dark-grey);
	transition: color 0.2s ease;
}

.project-card__location span,
.hero-small__location span,
.latest-item__location span {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.project-card__location .rds-icon,
.hero-small__location .rds-icon,
.latest-item__location .rds-icon {
	flex: none;
}

a.project-card__location:hover,
a.hero-small__location:hover,
a.latest-item__location:hover,
a.project-card__location:focus-visible,
a.hero-small__location:focus-visible,
a.latest-item__location:focus-visible {
	color: #777777;
}

@media (max-width: 600px) {
	.latest-item__location {
		grid-column: 1 / -1;
	}
}

/* -- partner content (client 2026-11-12, ID31): "Partner" pill on the
      card image + brand logo / "In partnership with" row under it -- */

.partner-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	background: #f3f1ef;
	font-size: 13px;
	line-height: 18px;
	color: var(--rds-dark-grey);
	white-space: nowrap;
}

.project-card--partner .project-card__media {
	position: relative;
}

.project-card__partner-pill {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--rds-black);
}

.project-card__partner {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 44px;
	padding: 12px 0 0;
}

.project-card__partner-logo {
	flex-shrink: 0;
	display: block;
	width: auto;
	max-width: 130px;
	height: auto;
	max-height: 30px;
	object-fit: contain;
}

.project-card__partner-logo + .project-card__partner-text {
	padding-left: 14px;
	border-left: 1px solid var(--rds-mid-grey);
}

.project-card__partner-text {
	font-size: 13px;
	line-height: 17px;
	color: var(--rds-dark-grey);
}
