.rgr-tps-grid,
.rgr-tps-portfolio,
.rgr-tps-project,
.rgr-tps-gallery {
  box-sizing: border-box;
}

.rgr-tps-grid *,
.rgr-tps-portfolio *,
.rgr-tps-project *,
.rgr-tps-gallery * {
  box-sizing: border-box;
}

.rgr-tps-portfolio {
  --rgr-ink: #111;
  --rgr-muted: #5f6561;
  --rgr-line: #e3e3e3;
  --rgr-paper: #f7f7f5;
  --rgr-red: #e10600;
  color: var(--rgr-ink);
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.rgr-tps-portfolio-hero {
  align-items: start;
  display: block;
  padding: 34px 0 18px;
}

.rgr-tps-eyebrow {
  color: var(--rgr-red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.rgr-tps-portfolio-hero h2 {
  color: var(--rgr-ink);
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.98;
  margin: 0 0 16px;
}

.rgr-tps-portfolio-hero p {
  color: var(--rgr-muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

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

.rgr-tps-stats div {
  background: #fff;
  border: 1px solid var(--rgr-line);
  border-radius: 8px;
  padding: 14px;
}

.rgr-tps-stats strong,
.rgr-tps-stats span {
  display: block;
}

.rgr-tps-stats strong {
  color: var(--rgr-ink);
  font-size: 26px;
  line-height: 1;
}

.rgr-tps-stats span {
  color: var(--rgr-muted);
  font-size: 13px;
  font-weight: 800;
  margin-top: 4px;
}

.rgr-tps-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding: 12px 0 10px;
}

.rgr-tps-service-filters {
  padding-top: 0;
  padding-bottom: 18px;
}

.rgr-tps-service-filters .rgr-tps-pill {
  font-size: 13px;
  padding: 8px 12px;
}

.rgr-tps-pill {
  background: #fff;
  border: 1px solid var(--rgr-line);
  border-radius: 999px;
  color: var(--rgr-ink);
  flex: 0 1 auto;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 14px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.rgr-tps-pill:hover {
  background: #fff5f4;
  border-color: var(--rgr-red);
  box-shadow: inset 0 0 0 1px var(--rgr-red);
  color: var(--rgr-red);
}

.rgr-tps-pill.is-active {
  background: var(--rgr-red);
  border-color: var(--rgr-red);
  color: #fff;
}

.rgr-tps-pill.is-active:hover {
  background: #c90500;
  border-color: #c90500;
  box-shadow: none;
  color: #fff;
}

.rgr-tps-portfolio-map {
  margin: 0 0 18px;
}

.rgr-tps-compact {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
  margin: 24px 0;
  padding: clamp(18px, 3vw, 28px);
}

.rgr-tps-compact-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rgr-tps-compact-header h2 {
  color: #111;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  margin: 0 0 8px;
}

.rgr-tps-compact-header p:last-child {
  color: #5f6561;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  max-width: 720px;
}

.rgr-tps-section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 10px 0 12px;
}

.rgr-tps-section-heading h3 {
  color: #111;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  margin: 0;
}

.rgr-tps-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0 60px;
}

.rgr-tps-grid-compact {
  gap: 14px;
  margin: 16px 0 0;
}

.rgr-tps-grid-compact .rgr-tps-card {
  box-shadow: none;
}

.rgr-tps-grid-compact .rgr-tps-card-body h3 {
  font-size: 16px;
}

.rgr-tps-grid-compact .rgr-tps-card-body {
  padding: 12px;
}

.rgr-tps-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 25, 23, 0.08);
  color: #111;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.rgr-tps-card:hover {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.rgr-tps-modal-open {
  overflow: hidden;
}

.rgr-tps-modal {
  align-items: center;
  background: rgba(8, 8, 8, 0.76);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  padding: 20px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 999999;
}

.rgr-tps-modal[aria-hidden="false"] {
  display: flex;
}

.rgr-tps-modal-panel {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  max-height: calc(100vh - 32px);
  max-width: 1160px;
  overflow: auto;
  position: relative;
  width: min(100%, 1160px);
}

.rgr-tps-modal-close {
  align-items: center;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
  z-index: 2;
}

.rgr-tps-modal-image {
  aspect-ratio: 16 / 10;
  background: #f4f4f4;
  display: block;
  height: auto;
  max-height: 58vh;
  object-fit: cover;
  width: 100%;
}

.rgr-tps-modal-body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.rgr-tps-modal-meta,
.rgr-tps-modal-service {
  color: #5f6561;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.rgr-tps-modal-title {
  color: #111;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  margin: 0;
}

.rgr-tps-popup-project {
  background: #f7f7f7;
  padding: 18px;
}

.rgr-tps-popup-project .rgr-tps-project-hero {
  border-radius: 10px;
  margin-top: 0;
}

.rgr-tps-popup-project .rgr-tps-gallery {
  margin-bottom: 0;
}

.rgr-tps-card img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.rgr-tps-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.rgr-tps-card-body .rgr-tps-card-meta {
  color: #5f6561;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.rgr-tps-card-body h3 {
  color: #111917;
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.rgr-tps-card-tag {
  align-self: start;
  background: #f7f7f5;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  color: #e10600;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.rgr-tps-project {
  color: #111;
  margin: 10px auto 54px;
  max-width: 1220px;
  width: 100%;
}

.rgr-tps-project-hero {
  align-items: stretch;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(340px, 0.82fr) minmax(480px, 1.18fr);
  margin: 10px 0 34px;
  overflow: hidden;
}

.rgr-tps-project-copy {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  min-height: 420px;
  padding: clamp(32px, 4.4vw, 58px);
  position: relative;
}

.rgr-tps-project-copy::before {
  background: #e10600;
  content: "";
  display: block;
  height: 4px;
  left: clamp(32px, 4.4vw, 58px);
  position: absolute;
  right: clamp(32px, 4.4vw, 58px);
  top: 0;
}

.rgr-tps-kicker {
  color: #e10600;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.rgr-tps-project-copy h2 {
  color: #111 !important;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.04;
  margin: 0;
  max-width: 700px;
}

.rgr-tps-project-summary {
  color: #252525;
  font-size: 16px;
  line-height: 1.6;
  max-width: 620px;
}

.rgr-tps-project-summary p {
  margin: 0 0 14px;
}

.rgr-tps-project-summary p:last-child {
  margin-bottom: 0;
}

.rgr-tps-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.rgr-tps-project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rgr-tps-project-badges span {
  background: #f7f7f7;
  border: 1px solid #dedede;
  border-radius: 999px;
  color: #111;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.rgr-tps-button {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  text-decoration: none;
}

.rgr-tps-button-primary {
  background: #e10600;
  border: 2px solid #e10600;
  color: #fff;
}

.rgr-tps-button-secondary {
  background: #fff;
  border: 2px solid #111;
  color: #111;
}

.rgr-tps-project-facts {
  background: #f6f6f6;
  color: #111;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rgr-tps-featured-photo {
  background: #e9e9e9;
  display: block;
}

.rgr-tps-featured-photo img {
  aspect-ratio: 16 / 10;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.rgr-tps-project-facts dl {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.rgr-tps-project-facts dl div {
  border-right: 1px solid #dedede;
  border-top: 1px solid #dedede;
  display: grid;
  gap: 4px;
  padding: 18px 22px;
}

.rgr-tps-project-facts dl div:last-child {
  border-right: 0;
}

.rgr-tps-project-facts dt {
  color: #e10600;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.rgr-tps-project-facts dd {
  color: #111;
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.rgr-tps-project-facts a {
  color: #111;
  text-decoration: underline;
}

.rgr-tps-gallery {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
  margin: 22px 0 0;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
}

.rgr-tps-gallery-header {
  align-items: start;
  border-bottom: 1px solid #e4e4e4;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.rgr-tps-gallery-header h2 {
  color: #111;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  margin: 0;
}

.rgr-tps-carousel {
  position: relative;
}

.rgr-tps-carousel-track {
  display: grid;
  gap: 16px;
  grid-auto-columns: minmax(300px, 36%);
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 4px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.rgr-tps-carousel-slide {
  background: #f4f4f4;
  border: 1px solid #e4e4e4;
  border-radius: 7px;
  box-shadow: none;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
}

.rgr-tps-gallery img {
  aspect-ratio: 16 / 11;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.rgr-tps-gallery a {
  display: block;
}

.rgr-tps-carousel-button {
  align-items: center;
  background: rgba(225, 6, 0, 0.94);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 34px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  z-index: 2;
}

.rgr-tps-carousel-prev {
  left: 12px;
}

.rgr-tps-carousel-next {
  right: 12px;
}

.rgr-tps-map-wrap {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  margin: 24px 0;
  overflow: hidden;
}

.rgr-tps-map {
  background: #f4f4f4;
  min-height: 420px;
  width: 100%;
}

.rgr-tps-map-empty {
  align-items: center;
  color: #555;
  display: flex;
  font-size: 15px;
  justify-content: center;
  min-height: 280px;
  padding: 20px;
  text-align: center;
}

.rgr-tps-map-popup {
  color: #111;
  max-height: 280px;
  max-width: 280px;
  min-width: 0;
  overflow-y: auto;
  width: 260px;
}

.rgr-tps-map-popup strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 2px;
}

.rgr-tps-map-popup em {
  color: #e10600;
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.rgr-tps-map-popup ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rgr-tps-map-popup li {
  border-top: 1px solid #eee;
  display: grid;
  gap: 2px;
  padding-top: 8px;
}

.rgr-tps-map-popup a {
  color: #111;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: none;
  word-break: normal;
}

.rgr-tps-map-popup span,
.rgr-tps-map-more {
  color: #666;
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.rgr-tps-map-more {
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .rgr-tps-portfolio-hero {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .rgr-tps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rgr-tps-project-hero {
    grid-template-columns: 1fr;
  }

  .rgr-tps-project-copy {
    min-height: 0;
  }

  .rgr-tps-project-facts {
    grid-template-rows: auto;
  }

  .rgr-tps-carousel-track {
    grid-auto-columns: minmax(280px, 78%);
  }
}

@media (max-width: 620px) {
  .rgr-tps-portfolio-hero {
    padding-top: 22px;
  }

  .rgr-tps-stats {
    grid-template-columns: 1fr;
  }

  .rgr-tps-compact-header {
    align-items: stretch;
    flex-direction: column;
  }

  .rgr-tps-grid {
    grid-template-columns: 1fr;
  }

  .rgr-tps-project-copy {
    padding: 20px;
  }

  .rgr-tps-project-actions,
  .rgr-tps-button {
    width: 100%;
  }

  .rgr-tps-gallery-header {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .rgr-tps-carousel-track {
    grid-auto-columns: 88%;
  }

  .rgr-tps-carousel-button {
    height: 40px;
    width: 40px;
  }
}
