/* =========================================================
   RDS Projects – single project + "Our Projects" grid
   ========================================================= */
:root {
	--rds-green: #206f5e;       /* sampled from the Our Projects screenshot */
	--rds-green-dark: #14312b;
	--rds-black: #000;
	--rds-grey: #ececec;
	--rds-text: #111;
	--rds-body: "montserrat", system-ui, sans-serif;
	--rds-display: 'Arial Black', sans-serif;
	--rds-max: 1600px;
}

.rds-single, .rds-projects-archive, .rds-projects { font-family: var(--rds-body); color: var(--rds-text); }
.rds-single *, .rds-projects * { box-sizing: border-box; }
.rds-container { width: min(100% - 48px, var(--rds-max)); margin-inline: auto; }

.rds-eyebrow { margin: 0 0 8px; font: 800 12px/1.2 var(--rds-body); letter-spacing: .08em; text-transform: uppercase; color: var(--rds-green); }
.rds-heading { margin: 0 0 24px; font: 400 clamp(30px, 3.4vw, 44px)/1.05 var(--rds-display); text-transform: uppercase; color: #000; }

.rds-btn { display: inline-block; padding: 18px 32px; background: var(--rds-green); color: #fff; border-radius: 8px; font: 800 13px/1 var(--rds-display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: background .2s, transform .2s; }
.rds-btn:hover, .rds-btn:focus-visible { background: var(--rds-green-dark); color: #fff; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.rds-hero { position: relative; display: flex; align-items: center; min-height: clamp(460px, 56vw, 700px); background: #111 center / cover no-repeat; color: #fff; }
.rds-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 30%, rgba(0,0,0,0) 62%); }
.rds-hero__inner { position: relative; width: min(100% - 48px, var(--rds-max)); margin-inline: auto; padding: 64px 0; }
.rds-hero .rds-eyebrow { font-size: 14px; }
.rds-hero__title { margin: 0 0 40px; font: 400 clamp(32px, 4.4vw, 56px)/1.02 var(--rds-display); text-transform: uppercase; max-width: 640px; }
.rds-hero__title span { display: block; }
.rds-hero__title-white { color: #fff; }
.rds-hero__title-green { color: var(--rds-green); }
.rds-hero__meta { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; font-size: 16px; font-weight: 500; }
.rds-hero__meta li { display: flex; align-items: center; gap: 16px; }
.rds-hero__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid #fff; border-radius: 50%; }
.rds-hero__icon svg { width: 17px; height: 17px; }

/* ---------- Intro + before/after ---------- */
.rds-intro { padding: 72px 0 88px; }
.rds-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; align-items: center; }
.rds-intro__content { margin-bottom: 32px; font-size: 14px; font-weight: 500; line-height: 2.1; }
.rds-intro__content p { margin: 0 0 1em; }

.rds-ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; user-select: none; touch-action: pan-y; }
.rds-ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rds-ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.rds-ba__tag { position: absolute; bottom: 12px; padding: 12px 18px; border-radius: 6px; font: 400 12px/1 var(--rds-display); letter-spacing: .04em; text-transform: uppercase; }
.rds-ba__tag--before { left: 12px; background: #000; color: #fff; }
.rds-ba__tag--after { right: 12px; background: var(--rds-green); color: #fff; }
.rds-ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.rds-ba__handle svg { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; padding: 14px; transform: translate(-50%, -50%); background: #fff; color: #000; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.rds-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.rds-ba:focus-within .rds-ba__handle svg { outline: 3px solid var(--rds-green); outline-offset: 2px; }

/* ---------- Video ---------- */
.rds-video { padding: 0 0 88px; }
.rds-video__frame { position: relative; aspect-ratio: 16 / 7.7; overflow: hidden; background: #000; }
.rds-video__poster, .rds-video__player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.rds-video__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 38%); pointer-events: none; }
.rds-video__caption { position: absolute; left: 16px; bottom: 16px; z-index: 2; max-width: 80%; color: #fff; font-size: 11px; pointer-events: none; }
.rds-video__caption p { margin: 0; }
.rds-video__caption .rds-eyebrow { margin-bottom: 6px; font-family: var(--rds-display); font-weight: 400; }
.rds-video__frame.is-playing::after, .rds-video__frame.is-playing .rds-video__caption, .rds-video__frame.is-playing .rds-play { display: none; }

.rds-play { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; place-items: center; width: 110px; height: 110px; padding: 0; transform: translate(-50%, -50%); color: #fff; background: rgba(0,0,0,.25); border: 2px solid #fff; border-radius: 50%; cursor: pointer; transition: transform .2s, background .2s; }
.rds-play svg { width: 50px; height: 50px; margin-left: 8px; }
.rds-play:hover, .rds-play:focus-visible { background: var(--rds-green); transform: translate(-50%, -50%) scale(1.08); }
.rds-play--sm { width: 64px; height: 64px; pointer-events: none; }
.rds-play--sm svg { width: 32px; height: 32px; margin-left: 5px; }
.rds-gallery__item:hover .rds-play--sm { background: var(--rds-green); }

/* ---------- Gallery ---------- */
.rds-gallery { padding: 0 0 100px; }
.rds-gallery__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.rds-gallery__head .rds-heading { margin: 0; max-width: 420px; }
.rds-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.rds-filter { padding: 12px 22px; border: 0; border-radius: 8px; background: var(--rds-grey); color: #111; font: 400 16px/1 var(--rds-display); letter-spacing: .03em; cursor: pointer; transition: background .2s, color .2s; }
.rds-filter:hover { background: #d8d8d8; }
.rds-filter.is-active { background: var(--rds-green); color: #fff; }

.rds-gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rds-gallery__item { position: relative; display: block; aspect-ratio: 1 / .99; overflow: hidden; background: #ddd; }
.rds-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rds-gallery__item:hover img { transform: scale(1.04); }
.rds-gallery__item[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.rds-lb { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 56px 72px; background: rgba(0,0,0,.92); }
.rds-lb.is-open { display: flex; }
.rds-lb__stage { width: 100%; max-width: 1200px; max-height: 100%; display: grid; place-items: center; }
.rds-lb__stage img, .rds-lb__stage video { max-width: 100%; max-height: calc(100vh - 112px); }
.rds-lb__stage iframe { width: min(100%, 1100px); aspect-ratio: 16 / 9; border: 0; }
.rds-lb button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.rds-lb button:hover, .rds-lb button:focus-visible { background: var(--rds-green); }
.rds-lb__close { top: 16px; right: 16px; }
.rds-lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.rds-lb__next { right: 12px; top: 50%; transform: translateY(-50%); }
body.rds-lb-open { overflow: hidden; }

/* =========================================================
   "Our Projects" grid (archive + [rds_projects] shortcode)
   ========================================================= */
.rds-projects { width: min(100% - 48px, 1440px); margin: 0 auto; padding: 56px 0 80px; }
.rds-projects__heading { margin: 0 0 56px; text-align: center; color: var(--rds-green); font: 800 clamp(30px, 3vw, 40px)/1.1 var(--rds-body); text-transform: uppercase; }
.rds-projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }

.rds-card { position: relative; background: #000; border-bottom: 8px solid var(--rds-green); overflow: hidden; }
.rds-card__link { position: relative; display: block; aspect-ratio: 1 / .985; color: #fff; text-decoration: none; }
.rds-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rds-card__link::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.55) 62%, #000 100%); }
.rds-card__body { position: absolute; inset: auto 0 0; z-index: 2; display: block; padding: 0 24px 22px; text-align: center; }
.rds-card__title { margin: 0 0 12px; color: #fff; font: 700 clamp(22px, 2.3vw, 32px)/1.1 var(--rds-body); text-transform: uppercase; }
.rds-card__cta { display: inline-block; color: var(--rds-green); font: 700 14px/1 var(--rds-body); letter-spacing: .03em; text-transform: uppercase; transition: color .2s; }
.rds-card__link:hover .rds-card__img, .rds-card__link:focus-visible .rds-card__img { transform: scale(1.05); }
.rds-card__link:hover .rds-card__cta, .rds-card__link:focus-visible .rds-card__cta { color: #fff; }
.rds-card__link:focus-visible { outline: 3px solid var(--rds-green); outline-offset: -3px; }

.rds-projects .navigation.pagination { margin-top: 48px; text-align: center; }
.rds-projects .page-numbers { display: inline-block; min-width: 40px; margin: 0 3px; padding: 11px 14px; border-radius: 8px; background: var(--rds-grey); color: #111; font-weight: 700; text-decoration: none; }
.rds-projects .page-numbers.current, .rds-projects .page-numbers:hover { background: var(--rds-green); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.rds-gallery__grid { grid-template-columns: repeat(3, 1fr); }
	.rds-projects__grid { gap: 24px; }
}
@media (max-width: 860px) {
	.rds-intro { padding: 56px 0 64px; }
	.rds-intro__grid { grid-template-columns: 1fr; }
	.rds-hero::before { background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.25) 100%); }
	.rds-projects__grid { grid-template-columns: repeat(2, 1fr); }
	.rds-video__frame { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
	.rds-hero { align-items: flex-end; min-height: 560px; }
	.rds-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.rds-gallery__head { align-items: flex-start; }
	.rds-projects__grid { grid-template-columns: 1fr; }
	.rds-lb { padding: 64px 12px; }
	.rds-lb__prev { left: 4px; } .rds-lb__next { right: 4px; }
	.rds-play { width: 80px; height: 80px; }
	.rds-play svg { width: 36px; height: 36px; margin-left: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.rds-single *, .rds-projects * { transition: none !important; }
}

/* =========================================================
   v2 sections: Three Phases, Planning, Positive Outcome
   ========================================================= */
.rds-richtext { font-size: 14px; font-weight: 500; line-height: 2; }
.rds-richtext p { margin: 0 0 1.6em; }
.rds-richtext p:last-child { margin-bottom: 0; }
.rds-richtext strong { font-weight: 800; }

/* Three phases – black band with 3 white cards */
.rds-phases { margin: 0 0 88px; padding: 96px 0; background: #000; color: #fff; border-radius: 14px; }
.rds-phases__head { max-width: 650px; margin: 0 auto 56px; text-align: center; }
.rds-heading--light { color: #fff; margin-bottom: 16px; }
.rds-phases__intro { margin: 0; font-size: 12px; font-weight: 500; line-height: 2; color: #fff; }
.rds-phases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rds-phase { padding: 16px 18px 40px; background: #fff; color: var(--rds-text); border-radius: 6px; }
.rds-phase__badge { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 28px; border-radius: 50%; background: linear-gradient(180deg, var(--rds-green) 0%, var(--rds-green-dark) 100%); color: #fff; font: 400 12px/1 var(--rds-display); text-transform: uppercase; }
.rds-phase__title { margin: 0 0 28px; padding-bottom: 14px; position: relative; font: 400 clamp(15px, 1.2vw, 18px)/1.2 var(--rds-display); text-transform: uppercase; color: #111; }
.rds-phase__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 86px; height: 2px; background: var(--rds-green); }
.rds-phase .rds-richtext { font-size: 13px; line-height: 1.9; }

/* Image + text splits */
.rds-split { padding: 0 0 88px; }
.rds-split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; align-items: center; }
.rds-split__media img { display: block; width: 100%; height: auto; border-radius: 10px; }
.rds-split--planning .rds-split__media { padding-right: 24px; }
.rds-split--outcome .rds-split__text { padding-right: 24px; }
.rds-split--outcome .rds-richtext { margin-bottom: 32px; }

@media (max-width: 1024px) {
	.rds-phases__grid { gap: 16px; }
}
@media (max-width: 860px) {
	.rds-phases { padding: 64px 0; margin-bottom: 64px; border-radius: 10px; }
	.rds-phases__grid { grid-template-columns: 1fr; }
	.rds-split { padding-bottom: 64px; }
	.rds-split__grid { grid-template-columns: 1fr; gap: 28px; }
	.rds-split--planning .rds-split__media, .rds-split--outcome .rds-split__text { padding-right: 0; }
}
