/* Reed Portfolio — front end. Colors/font come from Portfolio → Settings via CSS variables. */

.rwp {
	--rwp-dark: #374414;
	--rwp-mid: #587320;
	--rwp-accent: #84a22e;
	--rwp-text: #334155;
	--rwp-font: Helvetica, "Helvetica Neue", Arial, sans-serif;
	--rwp-ink: #141a08;
	--rwp-paper: #f5f7ef;
	--rwp-line: #e3e8d6;
	--rwp-radius: 14px;
	--rwp-max: 1200px;
	font-family: var(--rwp-font);
	color: var(--rwp-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.rwp *, .rwp *::before, .rwp *::after { box-sizing: border-box; }
.rwp img { max-width: 100%; height: auto; display: block; }
.rwp h1, .rwp h2, .rwp h3 { font-family: var(--rwp-font); color: var(--rwp-dark); margin: 0; line-height: 1.1; }
.rwp a { text-decoration: none; }
.rwp-icon { width: 1em; height: 1em; flex: none; }

/* ---------- Buttons, chips, badges ---------- */
.rwp-btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .85em 1.4em; border-radius: 999px;
	background: var(--rwp-dark); color: #fff !important;
	font-weight: 700; font-size: 15px; letter-spacing: .02em;
	border: 2px solid var(--rwp-dark);
	transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.rwp-btn:hover { background: var(--rwp-mid); border-color: var(--rwp-mid); transform: translateY(-1px); }
.rwp-btn--sm { padding: .55em 1em; font-size: 13px; }
.rwp-btn--ghost { background: transparent; color: var(--rwp-dark) !important; }
.rwp-btn--ghost:hover { background: var(--rwp-dark); color: #fff !important; }
.rwp-btn--accent { background: var(--rwp-accent); border-color: var(--rwp-accent); color: var(--rwp-ink) !important; }
.rwp-btn--accent:hover { background: #fff; border-color: #fff; }
.rwp-btn--light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff !important; }
.rwp-btn--light:hover { background: #fff; color: var(--rwp-dark) !important; border-color: #fff; }

.rwp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rwp-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--rwp-dark); color: #fff; letter-spacing: .03em; }
.rwp-chip--ghost { background: transparent; color: var(--rwp-dark); border: 1px solid var(--rwp-line); font-weight: 600; }

.rwp-badge {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	padding: 7px 14px; border-radius: 999px;
	background: rgba(132,162,46,.14); color: var(--rwp-dark);
}
.rwp-badge--light { background: rgba(255,255,255,.12); color: #fff; }
.rwp-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rwp-accent); box-shadow: 0 0 0 0 rgba(132,162,46,.7); animation: rwp-pulse 2s infinite; }
@keyframes rwp-pulse { 70% { box-shadow: 0 0 0 8px rgba(132,162,46,0); } 100% { box-shadow: 0 0 0 0 rgba(132,162,46,0); } }

.rwp-kicker { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--rwp-accent); margin: 0 0 12px; }

/* ---------- Grid ---------- */
.rwp-grid-wrap { max-width: var(--rwp-max); margin: 0 auto; padding: 56px 20px; container-type: inline-size; }
.rwp-grid-head { text-align: center; margin-bottom: 28px; }
.rwp-grid-head__title { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 14px; }
.rwp-grid-head__intro { max-width: 620px; margin: 12px auto 0; font-size: 18px; }

.rwp-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; }
.rwp-filter button {
	font: 700 14px/1 var(--rwp-font); letter-spacing: .03em;
	padding: 10px 18px; border-radius: 999px; cursor: pointer;
	border: 2px solid var(--rwp-line); background: #fff; color: var(--rwp-dark);
	transition: all .2s;
}
.rwp-filter button:hover { border-color: var(--rwp-accent); }
.rwp-filter button.is-active { background: var(--rwp-dark); border-color: var(--rwp-dark); color: #fff; }

.rwp-grid { display: grid; gap: 16px; grid-template-columns: repeat(var(--cols, 3), 1fr); grid-auto-rows: 280px; grid-auto-flow: dense; }
.rwp-grid--cols-2 { --cols: 2; } .rwp-grid--cols-3 { --cols: 3; } .rwp-grid--cols-4 { --cols: 4; grid-auto-rows: 240px; } .rwp-grid--cols-5 { --cols: 5; grid-auto-rows: 220px; }

.rwp-tile {
	position: relative; overflow: hidden; border-radius: var(--rwp-radius);
	display: block; color: #fff !important; isolation: isolate;
	background: var(--rwp-dark);
	box-shadow: 0 1px 2px rgba(20,26,8,.08);
	transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, opacity .3s;
}
.rwp-tile--wide { grid-column: span 2; }
.rwp-tile--tall { grid-row: span 2; }
.rwp-tile.is-hidden { display: none; }
.rwp-tile:hover, .rwp-tile:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(20,26,8,.55); }
.rwp-tile:focus-visible { outline: 3px solid var(--rwp-accent); outline-offset: 3px; }

.rwp .rwp-tile__bg, .rwp .rwp-tile__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rwp .rwp-tile__bg img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.9); }
.rwp-tile:hover .rwp-tile__bg img { transform: scale(1.06); filter: saturate(1.05); }
.rwp-tile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,8,.25) 0%, rgba(20,26,8,.35) 45%, rgba(20,26,8,.85) 100%); transition: background .4s; }
.rwp-tile:hover .rwp-tile__shade { background: linear-gradient(180deg, rgba(55,68,20,.82), rgba(20,26,8,.94)); }

.rwp-tile__center { position: absolute; inset: 0 0 64px; display: grid; place-items: center; padding: 28px; transition: opacity .3s, transform .4s; }
.rwp-tile:hover .rwp-tile__center { opacity: 0; transform: translateY(-10px); }
.rwp-tile__logo img { max-height: 110px; max-width: 220px; width: auto; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.rwp-tile__logo.is-white img { filter: brightness(0) invert(1) drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.rwp-tile__name { font-size: clamp(20px, 2.2vw, 28px); overflow-wrap: anywhere; hyphens: auto; max-width: 100%; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: center; text-shadow: 0 2px 16px rgba(0,0,0,.5); line-height: 1.1; }

.rwp-tile__foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; transition: opacity .3s; }
.rwp-tile:hover .rwp-tile__foot { opacity: 0; }
.rwp-tile__meta { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rwp-tile__meta strong { font-size: 16px; letter-spacing: .02em; }
.rwp-tile__meta span { font-size: 13px; opacity: .8; }
.rwp-tile__go { width: 36px; height: 36px; border-radius: 50%; background: var(--rwp-accent); color: var(--rwp-ink); display: grid; place-items: center; flex: none; }
.rwp-tile__go .rwp-icon { width: 18px; height: 18px; }

.rwp-tile__hover { position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .45s cubic-bezier(.2,.7,.2,1); }
.rwp-tile:hover .rwp-tile__hover, .rwp-tile:focus-visible .rwp-tile__hover { opacity: 1; transform: none; }
.rwp-tile__tagline { font-size: 17px; font-weight: 700; line-height: 1.35; }
.rwp-tile__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rwp-tile__chips span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.rwp-tile__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--rwp-accent); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }

.rwp-empty { padding: 24px; border: 2px dashed var(--rwp-line); border-radius: var(--rwp-radius); text-align: center; }

/* Touch devices: no hover, so always show a little of the story */
@media (hover: none) {
	.rwp-tile__center { inset: 0 0 72px; }
}

/* ---------- Hero ---------- */
.rwp-hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; color: #fff; background: var(--rwp-dark); overflow: hidden; }
.rwp .rwp-hero__bg, .rwp .rwp-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rwp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,8,.35) 0%, rgba(20,26,8,.55) 50%, rgba(20,26,8,.92) 100%); }
.rwp-hero__inner { position: relative; z-index: 1; width: 100%; max-width: var(--rwp-max); margin: 0 auto; padding: 120px 20px 48px; }
.rwp-hero__back { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font-weight: 700; font-size: 14px; opacity: .85; position: absolute; top: 28px; left: 20px; }
.rwp-hero__back:hover { opacity: 1; color: var(--rwp-accent) !important; }
.rwp-hero__logo { display: inline-flex; background: #fff; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.rwp-hero__logo img { max-height: 64px; max-width: 200px; width: auto; }
.rwp .rwp-hero__title { color: #fff; font-size: clamp(36px, 6vw, 72px); font-weight: 700; letter-spacing: -1.5px; }
.rwp-hero__tagline { font-size: clamp(17px, 2vw, 21px); max-width: 720px; margin: 14px 0 0; opacity: .95; }
.rwp-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rwp-accent); }
.rwp-hero__meta span { opacity: .6; color: #fff; }

/* ---------- Jump nav ---------- */
.rwp-jump { position: sticky; top: var(--rwp-sticky-offset, 0px); z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rwp-line); }
.admin-bar .rwp-jump { top: calc(var(--rwp-sticky-offset, 0px) + 32px); }
.rwp-jump__inner { max-width: var(--rwp-max); margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.rwp-jump__inner::-webkit-scrollbar { display: none; }
.rwp-jump a { flex: none; padding: 16px 14px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rwp-text) !important; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.rwp-jump a:hover, .rwp-jump a.is-active { color: var(--rwp-dark) !important; border-bottom-color: var(--rwp-accent); }

/* ---------- Body ---------- */
.rwp-body { max-width: var(--rwp-max); margin: 0 auto; padding: 0 20px; }
.rwp-overview { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 48px; padding: 64px 0; border-bottom: 1px solid var(--rwp-line); }
.rwp-overview__story p { font-size: 18px; margin: 0 0 1em; }
.rwp-overview__story p:first-of-type:not(.rwp-kicker):not(.rwp-note) { font-size: 21px; color: var(--rwp-dark); }
.rwp-note { display: inline-block; font-size: 14px !important; padding: 6px 12px; border-radius: 8px; background: var(--rwp-paper); border-left: 3px solid var(--rwp-accent); }
.rwp-glance { background: var(--rwp-paper); border-radius: var(--rwp-radius); padding: 24px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.rwp-glance__row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rwp-line); font-size: 15px; }
.rwp-glance__row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.rwp-glance__row > span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rwp-mid); padding-top: 2px; }
.rwp-glance__row strong { color: var(--rwp-dark); text-align: right; }
.rwp-glance__row--stack { flex-direction: column; gap: 8px; }
.rwp-glance .rwp-btn { align-self: flex-start; margin-top: 4px; }

.rwp-section { padding: 64px 0; border-bottom: 1px solid var(--rwp-line); scroll-margin-top: 80px; }
.rwp-section:last-child { border-bottom: 0; }
.rwp-section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: end; margin-bottom: 28px; }
.rwp-section__head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; position: relative; padding-top: 18px; }
.rwp-section__head h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 2px; background: var(--rwp-accent); }
.rwp-section__intro p { margin: 0; font-size: 17px; }
.rwp-section__head:not(:has(.rwp-section__intro)) { grid-template-columns: 1fr; }
.rwp-section__more { margin: 24px 0 0; }

/* Results */
.rwp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.rwp-stat { background: var(--rwp-dark); color: #fff; border-radius: var(--rwp-radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.rwp-stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(132,162,46,.18); }
.rwp-stat__value { font-size: clamp(38px, 4.6vw, 56px); font-weight: 700; line-height: 1; color: var(--rwp-accent); letter-spacing: -1px; }
.rwp-stat__label { font-size: 15px; line-height: 1.4; opacity: .9; position: relative; }
.rwp-wins { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.rwp-wins li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--rwp-paper); border-radius: 12px; font-size: 16px; color: var(--rwp-dark); font-weight: 600; }
.rwp-wins .rwp-icon { color: var(--rwp-accent); width: 20px; height: 20px; margin-top: 2px; }

/* Galleries */
.rwp-gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rwp-gallery--shots { margin-top: 28px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.rwp-gallery--social { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rwp-gallery--social .rwp-gallery__item { aspect-ratio: 4 / 5; }
.rwp-gallery--branding .rwp-gallery__item { aspect-ratio: 1; background: var(--rwp-paper); }
.rwp-gallery--branding .rwp-gallery__item img { object-fit: contain; padding: 8%; }
.rwp-gallery--masonry { display: block; columns: 3 260px; column-gap: 14px; }
.rwp-gallery--masonry .rwp-gallery__item { break-inside: avoid; margin-bottom: 14px; aspect-ratio: auto; }
.rwp .rwp-gallery--masonry .rwp-gallery__item img { height: auto; position: static; }
.rwp-gallery__item { position: relative; display: block; overflow: hidden; border-radius: 10px; background: #eef1e6; cursor: zoom-in; }
.rwp .rwp-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.rwp .rwp-gallery--shots .rwp-gallery__item img { height: auto; }
.rwp-gallery__item:hover img { transform: scale(1.03); }
.rwp-gallery__item:focus-visible { outline: 3px solid var(--rwp-accent); outline-offset: 2px; }

/* Videos */
.rwp-videos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.rwp-videos--n1 { grid-template-columns: minmax(0, 900px); }
.rwp-video { margin: 0; }
.rwp-video--lead { grid-column: 1 / -1; }
.rwp-video--lead .rwp-video__frame { max-width: 100%; }
.rwp-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--rwp-ink); }
.rwp-video--9x16 .rwp-video__frame { aspect-ratio: 9 / 16; max-width: 340px; }
.rwp-video--1x1 .rwp-video__frame { aspect-ratio: 1; }
.rwp-video--4x5 .rwp-video__frame { aspect-ratio: 4 / 5; }
.rwp-video__frame iframe, .rwp-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rwp-video__play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.rwp .rwp-video__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; filter: brightness(.85); }
.rwp-video__play:hover img { transform: scale(1.03); filter: brightness(.7); }
.rwp-video__play:focus-visible { outline: 3px solid var(--rwp-accent); outline-offset: -3px; }
.rwp-video__btn { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--rwp-accent); color: var(--rwp-ink); display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(0,0,0,.5); transition: transform .25s; }
.rwp-video__btn .rwp-icon { width: 30px; height: 30px; margin-left: 4px; }
.rwp-video__play:hover .rwp-video__btn { transform: scale(1.1); }
.rwp-video--lead .rwp-video__btn { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.rwp-video figcaption { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.rwp-video figcaption strong { color: var(--rwp-dark); font-size: 16px; }
.rwp-video figcaption span { font-size: 14px; }

/* Websites */
.rwp-sites { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.rwp-site { border-radius: var(--rwp-radius); overflow: hidden; border: 1px solid var(--rwp-line); background: #fff; box-shadow: 0 20px 40px -28px rgba(20,26,8,.45); }
.rwp-site__browser { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--rwp-paper); border-bottom: 1px solid var(--rwp-line); }
.rwp-site__dots { display: flex; gap: 6px; } .rwp-site__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d3d9c4; }
.rwp-site__url { flex: 1; font-size: 12px; background: #fff; border-radius: 6px; padding: 4px 10px; color: var(--rwp-mid); font-weight: 600; }
.rwp-site__shot { aspect-ratio: 16 / 10; overflow: hidden; background: #eef1e6; }
.rwp-site__shot img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: transform 4s ease; }
.rwp-site:hover .rwp-site__shot img { transform: translateY(calc(-100% + 100px)); }
.rwp-site__info { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; }
.rwp-site__info > div { display: flex; flex-direction: column; }
.rwp-site__info strong { color: var(--rwp-dark); font-size: 17px; }
.rwp-site__info span { font-size: 14px; }

/* Testimonial */
.rwp-section--testimonial { padding: 72px 0; }
.rwp-quote { margin: 0 auto; max-width: 860px; text-align: center; position: relative; padding-top: 50px; }
.rwp-quote::before { content: "\201C"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 120px; line-height: 1; color: var(--rwp-accent); font-family: Georgia, serif; }
.rwp-quote blockquote { margin: 0; border: 0; padding: 0; }
.rwp-quote blockquote p { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.45; color: var(--rwp-dark); font-weight: 700; margin: 0 0 .6em; }
.rwp-quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.rwp-quote figcaption strong { color: var(--rwp-dark); }

/* Prev / next */
.rwp-pn { max-width: var(--rwp-max); margin: 0 auto; padding: 20px 20px 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.rwp-pn__card { position: relative; min-height: 160px; border-radius: var(--rwp-radius); overflow: hidden; display: flex; align-items: flex-end; padding: 22px; color: #fff !important; background: var(--rwp-dark); isolation: isolate; }
.rwp-pn__card:last-child:not(:first-child) { justify-content: flex-end; text-align: right; }
.rwp .rwp-pn__bg, .rwp .rwp-pn__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.rwp-pn__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,26,8,.3), rgba(20,26,8,.85)); }
.rwp-pn__card:hover .rwp-pn__bg img { transform: scale(1.05); }
.rwp-pn__txt { display: flex; flex-direction: column; }
.rwp-pn__txt small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rwp-accent); }
.rwp-pn__txt strong { font-size: 22px; }

/* Hire-me band */
.rwp-cta { background: var(--rwp-dark); color: #fff; position: relative; overflow: hidden; }
.rwp-cta::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(132,162,46,.35), transparent 70%); }
.rwp-cta__inner { position: relative; max-width: 860px; margin: 0 auto; padding: 80px 20px; text-align: center; }
.rwp .rwp-cta h2, .rwp-cta h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin: 18px 0 12px; }
.rwp-cta p { font-size: 18px; opacity: .9; margin: 0 auto 28px; max-width: 620px; }
.rwp-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.rwp-cta__links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin: 26px 0 0 !important; font-size: 15px !important; }
.rwp-cta__links a { color: #fff !important; opacity: .8; font-weight: 700; }
.rwp-cta__links a:hover { opacity: 1; color: var(--rwp-accent) !important; }

/* Embedded single (shortcode) */
.rwp-project--embedded .rwp-hero { border-radius: var(--rwp-radius); min-height: 360px; }

/* Lightbox */
.rwp-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(12,16,5,.96); display: flex; align-items: center; justify-content: center; padding: 40px 70px; }
.rwp-lightbox[hidden] { display: none; }
.rwp-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rwp-lightbox img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.rwp-lightbox figcaption { color: #fff; font-size: 15px; text-align: center; }
.rwp-lightbox button { all: unset; cursor: pointer; color: #fff; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); transition: background .2s; }
.rwp-lightbox button:hover, .rwp-lightbox button:focus-visible { background: var(--rwp-accent); color: var(--rwp-ink); }
/* Selectors include .rwp-lightbox so they outrank the "all: unset" reset above. */
.rwp-lightbox .rwp-lightbox__close { position: absolute; top: max(18px, env(safe-area-inset-top, 0px)); right: 18px; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.rwp-lightbox .rwp-lightbox__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 38px; line-height: 1; }
.rwp-lightbox .rwp-lightbox__nav[hidden] { display: none; }
.rwp-lightbox .rwp-lightbox__prev { left: 12px; } .rwp-lightbox .rwp-lightbox__next { right: 12px; }

/* ---------- Responsive ---------- */
/* Grid columns follow the space the grid actually has (works in narrow theme columns too) */
@container (max-width: 1000px) { .rwp-grid--cols-4, .rwp-grid--cols-5 { --cols: 3; } }
@container (max-width: 760px) { .rwp-grid { --cols: 2 !important; grid-auto-rows: 240px; } }
@container (max-width: 480px) { .rwp-grid { --cols: 1 !important; grid-auto-rows: 230px; gap: 12px; } .rwp-tile--wide { grid-column: auto; } .rwp-tile--tall { grid-row: auto; } }
@media (max-width: 860px) {
	.rwp-overview { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
	.rwp-section { padding: 48px 0; }
	.rwp-section__head { grid-template-columns: 1fr; gap: 12px; }
	.rwp-hero { min-height: 400px; }
}
@media (max-width: 560px) {
	.rwp-grid-wrap { padding: 40px 16px; }
	.rwp-body, .rwp-hero__inner, .rwp-jump__inner, .rwp-pn { padding-left: 16px; padding-right: 16px; }
	.rwp-hero__back { left: 16px; }
	.rwp-lightbox { padding: 60px 8px; }
	.rwp-lightbox .rwp-lightbox__nav { top: auto; bottom: 14px; margin: 0; }
	.rwp-gallery--masonry { columns: 2 140px; }
}
@media (prefers-reduced-motion: reduce) {
	.rwp *, .rwp *::before, .rwp *::after { transition: none !important; animation: none !important; }
}

/* Theme-proofing: page builders and themes often force img { height: auto }, which breaks cover images. */
.rwp .rwp-tile__bg img, .rwp .rwp-hero__bg img, .rwp .rwp-pn__bg img, .rwp .rwp-video__play img,
.rwp .rwp-gallery:not(.rwp-gallery--masonry):not(.rwp-gallery--shots) .rwp-gallery__item img {
	width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover;
}
.rwp .rwp-gallery--branding .rwp-gallery__item img { object-fit: contain; }
.rwp-quote blockquote::before, .rwp-quote blockquote::after { content: none !important; display: none !important; }
.rwp .rwp-quote blockquote { margin: 0; padding: 0; border: 0; background: none; }

/* Employer groups */
.rwp-group + .rwp-group { margin-top: 48px; }
.rwp-group__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--rwp-line); }
.rwp .rwp-group__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.rwp-group__sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rwp-mid); }
.rwp-group__sub span { opacity: .5; }
.rwp-group__blurb { margin: 0; max-width: 520px; font-size: 16px; }
.rwp-group.is-empty { display: none; }
.rwp-tile__via { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rwp-accent); }

/* Booklets & brochures */
.rwp-booklets { display: grid; gap: 36px 28px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: start; }
.rwp-booklet { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.rwp-booklet__cover {
	position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 4px 10px 10px 4px; overflow: hidden;
	background: var(--rwp-paper); cursor: zoom-in; isolation: isolate;
	box-shadow: 0 1px 0 var(--rwp-line), 6px 6px 0 -1px #fff, 6px 6px 0 0 var(--rwp-line), 0 22px 36px -22px rgba(20,26,8,.55);
	transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.rwp-booklet__cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,0)); pointer-events: none; }
.rwp .rwp-booklet__cover img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; object-position: top; }
.rwp-booklet__cover:hover, .rwp-booklet__cover:focus-visible { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 1px 0 var(--rwp-line), 8px 8px 0 -1px #fff, 8px 8px 0 0 var(--rwp-line), 0 30px 44px -22px rgba(20,26,8,.6); }
.rwp-booklet__cover:focus-visible { outline: 3px solid var(--rwp-accent); outline-offset: 4px; }
.rwp-booklet__badge { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(20,26,8,.78); color: #fff; }
.rwp-booklet__open { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: linear-gradient(180deg, rgba(20,26,8,0), rgba(20,26,8,.88)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.rwp-booklet__open .rwp-icon { width: 18px; height: 18px; }
.rwp-booklet__cover:hover .rwp-booklet__open, .rwp-booklet__cover:focus-visible .rwp-booklet__open { opacity: 1; transform: none; }
@media (hover: none) { .rwp-booklet__open { opacity: 1; transform: none; } }
.rwp-booklet__blank { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; font-weight: 700; font-size: 20px; color: var(--rwp-dark); }
.rwp-booklet figcaption { display: flex; flex-direction: column; gap: 3px; }
.rwp-booklet figcaption strong { color: var(--rwp-dark); font-size: 16px; }
.rwp-booklet figcaption span { font-size: 14px; line-height: 1.45; }
.rwp-booklet__pdf { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--rwp-mid) !important; }
.rwp-booklet__pdf:hover { color: var(--rwp-dark) !important; }
@media (max-width: 560px) { .rwp-booklets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }

/* DearFlip's own popup trigger stays in the page (so its script can open it) but out of sight. */
.rwp-booklet__dflip { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.rwp-booklet { position: relative; }
.rwp-booklet__cover--static { cursor: default; }

/* Some themes (Astra) lay page content out in a flex row, which shrank the portfolio to its content
   width and pushed it left. Make the portfolio fill the row so its own centering works. */
.rwp-archive, .rwp-project:not(.rwp-project--embedded) { flex: 1 1 100%; width: 100%; max-width: 100%; min-width: 0; }
.rwp-archive > .rwp-grid-wrap, .rwp-archive > .rwp-cta { width: 100%; }

/* Logo box on the company page */
.rwp-hero__logo--dark { background: var(--rwp-dark); }
.rwp-hero__logo--accent { background: var(--rwp-accent); }
.rwp-hero__logo--none { background: none; padding: 0; box-shadow: none; border-radius: 0; }
.rwp-hero__logo--none img { max-height: 90px; max-width: 260px; filter: drop-shadow(0 4px 16px rgba(0,0,0,.45)); }
