:root {
  --rm-teal: #14756f;
  --rm-ink: #1e2022;
  --rm-rust: #a64f2a;
  --rm-gold: #d5a11e;
}

html,
body {
  min-height: 100%;
}

body {
  color: #3c4043;
}

.body-inner {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#header,
#header .header-inner,
#header #header-wrap,
.mainMenu-open #header .header-inner,
.mainMenu-open #header #header-wrap {
  background: #050505 !important;
}

#header .header-inner,
#header #header-wrap {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#header #mainMenu nav > ul > li > a,
#header #mainMenu nav > ul > li.current > a,
#header #mainMenu nav > ul > li:hover > a,
#header #mainMenu nav > ul > li:focus > a {
  color: #ffffff !important;
}

#header #mainMenu nav > ul > li > a:hover,
#header #mainMenu nav > ul > li > a:focus {
  color: #f0c96a !important;
}

#header #mainMenu nav > ul > li .dropdown-menu {
  background-color: #101010 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

#header #mainMenu nav > ul > li .dropdown-menu > li > a {
  color: #f4f4f4 !important;
}

#header #mainMenu nav > ul > li .dropdown-menu > li > a:hover,
#header #mainMenu nav > ul > li .dropdown-menu > li > a:focus {
  color: #f0c96a !important;
}

#header .lines,
#header .lines::before,
#header .lines::after {
  background-color: #ffffff !important;
}

#header .x.toggle-active .lines {
  background-color: transparent !important;
}

#header .header-inner #logo,
#header #header-wrap #logo,
#header #logo {
  display: flex !important;
  align-items: center !important;
  float: left !important;
  width: auto !important;
  height: 80px !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  text-align: left !important;
}

#header .header-inner #logo a,
#header #header-wrap #logo a,
#logo a {
  display: inline-flex !important;
  align-items: center !important;
  height: 80px !important;
  max-width: 220px;
  overflow: visible;
  white-space: nowrap;
}

#header .header-inner #logo a > img.logo-default,
#header .header-inner #logo a > img.logo-dark,
#header #header-wrap #logo a > img.logo-default,
#header #header-wrap #logo a > img.logo-dark,
#header #logo a > img.logo-default,
#header #logo a > img.logo-dark {
  height: 52px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain;
  padding: 0 !important;
}

#header .header-inner #logo a > img.logo-default,
#header #header-wrap #logo a > img.logo-default,
#header #logo a > img.logo-default {
  display: none !important;
}

#header .header-inner #logo a > img.logo-dark,
#header #header-wrap #logo a > img.logo-dark,
#header #logo a > img.logo-dark {
  display: block !important;
}

.dark #header #logo a > img.logo-default,
#header.dark #logo a > img.logo-default {
  display: none !important;
}

.dark #header #logo a > img.logo-dark,
#header.dark #logo a > img.logo-dark {
  display: block !important;
}

.rm-hero {
  min-height: calc(100vh - 80px);
  background:
    radial-gradient(circle at 82% 28%, rgba(64, 59, 69, 0.95) 0%, rgba(43, 40, 47, 0.78) 32%, rgba(32, 34, 41, 0) 58%),
    linear-gradient(120deg, #2b282f 0%, #403b45 46%, #202229 100%);
  color: #f7f8f4;
}

.rm-hero h1 {
  color: #ffffff;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.rm-hero .lead {
  color: rgba(247, 248, 244, 0.86);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.rm-hero .rm-eyebrow {
  color: #f0c96a;
}

.rm-hero .btn {
  border-color: rgba(247, 248, 244, 0.88);
}

.rm-hero .btn-light {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
}

.rm-hero .btn-light:hover,
.rm-hero .btn-light:focus {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #1e2022;
}

.rm-portrait {
  position: relative;
  border: 1px solid rgba(240, 201, 106, 0.18);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.rm-portrait img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
}

.rm-hero-roles {
  color: #f0c96a;
  display: grid;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.rm-eyebrow {
  color: var(--rm-rust);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-item .portfolio-description h3 {
  letter-spacing: 0;
}

.rm-project-card .portfolio-item-wrap {
  background: #ffffff;
  border: 1px solid rgba(30, 32, 34, 0.1);
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(30, 32, 34, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.rm-project-card .portfolio-description {
  background: transparent !important;
  color: #3c4043;
  display: flex !important;
  flex: 1;
  flex-direction: column;
  opacity: 1 !important;
  padding: 24px !important;
  position: static !important;
  transform: none !important;
  visibility: visible !important;
}

.rm-project-card .portfolio-description > a,
.rm-project-card .rm-project-card-main {
  color: inherit;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.rm-project-card .portfolio-description h3 {
  color: #1e2022;
  font-size: 18px;
  line-height: 1.32;
  margin-bottom: 8px;
}

.rm-project-card .portfolio-description span {
  color: var(--rm-rust);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.rm-project-card .portfolio-description p {
  color: #586069;
  display: block !important;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 0;
  opacity: 1 !important;
}

.rm-project-card-dark .portfolio-item-wrap {
  background: #15191d;
  border-color: rgba(240, 201, 106, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.rm-project-card-dark .portfolio-description h3 {
  color: #ffffff;
}

.rm-project-card-dark .portfolio-description span {
  color: #f0c96a;
}

.rm-project-card-dark .portfolio-description p {
  color: rgba(247, 248, 244, 0.76);
}

.rm-project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.rm-project-card-actions .btn {
  border-color: rgba(240, 201, 106, 0.72) !important;
  color: #ffffff !important;
  font-size: 11px;
  letter-spacing: 0;
  margin: 0;
  padding: 6px 11px;
}

.rm-project-card-actions .btn:hover,
.rm-project-card-actions .btn:focus {
  background: #f0c96a !important;
  border-color: #f0c96a !important;
  color: #15191d !important;
}

.rm-portfolio-panel {
  align-items: center;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(20, 117, 111, 0.2), rgba(213, 161, 30, 0.12)),
    #1e2022;
  display: flex;
  height: 220px;
  justify-content: center;
  min-height: 220px;
}

.rm-portfolio-panel a {
  align-items: center;
  color: #fff !important;
  display: flex;
  font-size: 34px;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  letter-spacing: 0;
  width: 100%;
}

.rm-portfolio-panel span {
  border-bottom: 3px solid var(--rm-gold);
  color: #fff !important;
  padding-bottom: 8px;
}

.rm-portfolio-image-panel {
  background: #1e2022;
  overflow: hidden;
}

.rm-project-card .rm-portfolio-image-panel > a {
  display: block !important;
  height: 100%;
  padding: 0;
  width: 100%;
}

.rm-project-card .rm-portfolio-image-panel img {
  display: block;
  height: 100% !important;
  max-width: none;
  object-fit: cover !important;
  object-position: center;
  transform: scale(1);
  transition: transform 0.45s ease;
  width: 100% !important;
}

.rm-project-card:hover .rm-portfolio-image-panel img {
  transform: scale(1.04);
}

@media (max-width: 991px) {
  .rm-project-card .rm-portfolio-panel {
    height: 210px;
    min-height: 210px;
  }
}

@media (max-width: 575px) {
  .rm-project-card .rm-portfolio-panel {
    height: 190px;
    min-height: 190px;
  }
}

.rm-project-detail-image {
  background: #1e2022;
  border-radius: 4px;
  overflow: hidden;
}

.rm-project-detail-image img {
  display: block;
  height: auto;
  width: 100%;
}

.rm-clara-evolution {
  display: block;
}

.rm-clara-version {
  border-top: 1px solid rgba(30, 32, 34, 0.1);
  margin-top: 44px;
  padding-top: 44px;
}

.rm-clara-version-image {
  background: #f7f7f4;
  border-radius: 4px;
  margin: 0 0 28px;
  overflow: hidden;
}

.rm-clara-version-image img {
  display: block;
  height: auto;
  width: 100%;
}

.rm-clara-version-image figcaption {
  color: #6a737d;
  font-size: 13px;
  padding: 12px 16px;
}

.rm-clara-version-status {
  color: var(--rm-rust);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.rm-clara-version-body h3 {
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.rm-clara-version-body p {
  color: #586069;
  line-height: 1.65;
}

.rm-clara-version-body ul {
  margin-bottom: 0;
  padding-left: 18px;
}

.rm-clara-version-body li {
  color: #3c4043;
  margin-bottom: 8px;
}

.rm-clara-version-body li:last-child {
  margin-bottom: 0;
}

.post-item-description h3 {
  line-height: 1.35;
}

#portfolio.rm-row-grid,
#grants-preview.rm-row-grid,
.rm-row-grid {
  align-items: stretch;
  display: grid !important;
  height: auto !important;
}

#portfolio.rm-row-grid .portfolio-item,
#grants-preview.rm-row-grid .post-item,
.rm-row-grid .portfolio-item,
.rm-row-grid .post-item {
  left: auto !important;
  margin: 0 !important;
  position: static !important;
  top: auto !important;
  transform: none !important;
  width: auto !important;
}

.rm-row-grid .portfolio-item-wrap,
.rm-row-grid .post-item-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rm-row-grid .portfolio-description,
.rm-row-grid .post-item-description {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.rm-row-grid .portfolio-description > a {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.rm-row-grid .portfolio-description > a p,
.rm-row-grid .post-item-description p {
  margin-bottom: 0;
}

#portfolio.rm-project-grid,
#portfolio.rm-home-project-grid,
.rm-project-grid,
.rm-home-project-grid {
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#grants-preview.rm-grant-preview-grid,
.rm-grant-preview-grid {
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rm-project-grid .rm-portfolio-panel,
.rm-home-project-grid .rm-portfolio-panel {
  aspect-ratio: auto;
  height: 220px;
  min-height: 220px;
}

.rm-project-carousel {
  margin-bottom: 48px;
  overflow: visible;
}

.rm-project-carousel .owl-stage {
  display: flex;
}

.rm-project-carousel .owl-item {
  display: flex;
}

.rm-project-carousel .polo-carousel-item {
  display: flex;
  height: auto !important;
  width: 100%;
}

.rm-project-carousel .portfolio-item,
.rm-project-carousel .portfolio-item-wrap {
  height: 100%;
  width: 100%;
}

.rm-project-carousel .portfolio-item-wrap {
  min-height: 510px;
}

.rm-project-carousel .rm-portfolio-panel {
  aspect-ratio: auto;
  height: 220px;
  min-height: 220px;
}

@media (max-width: 991px) {
  .rm-project-grid .rm-portfolio-panel,
  .rm-home-project-grid .rm-portfolio-panel,
  .rm-project-carousel .rm-portfolio-panel {
    height: 210px;
    min-height: 210px;
  }

  .rm-project-carousel .portfolio-item-wrap {
    min-height: 500px;
  }
}

@media (max-width: 575px) {
  .rm-project-grid .rm-portfolio-panel,
  .rm-home-project-grid .rm-portfolio-panel,
  .rm-project-carousel .rm-portfolio-panel {
    height: 190px;
    min-height: 190px;
  }

  .rm-project-carousel .portfolio-item-wrap {
    min-height: auto;
  }
}

.rm-footer-note {
  color: #b8bec4;
}

.rm-appointment-timeline {
  margin-bottom: 0;
  padding-left: 0;
}

.rm-appointment-timeline:before {
  border-left-color: rgba(15, 17, 20, 0.2);
}

.rm-appointment-timeline .timeline-item {
  background: #ffffff;
  border: 1px solid rgba(15, 17, 20, 0.08);
  box-shadow: 0 14px 34px rgba(15, 17, 20, 0.07);
  margin-bottom: 28px;
  margin-top: 0;
  padding: 26px 30px 24px;
}

.rm-appointment-timeline .timeline-icon {
  background: #050505;
  color: #f0c96a;
}

.rm-appointment-timeline h3 {
  color: #111318;
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.rm-appointment-timeline h4 {
  color: #4a4f58;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.rm-appointment-timeline .timeline-item-date {
  color: #b28423;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.rm-appointment-timeline p {
  margin-bottom: 0;
}

.rm-publication-section {
  scroll-margin-top: 110px;
}

.rm-publication-section + .rm-publication-section {
  border-top: 1px solid rgba(15, 17, 20, 0.08);
  padding-top: 60px;
}

.rm-publication-authors {
  color: #4a4f58;
  font-weight: 600;
  margin-bottom: 8px;
}

.rm-publication-category-label {
  color: #999999;
}

.rm-publication-category-label i {
  margin-right: 4px;
}

.rm-publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.rm-publication-action {
  margin-top: 0;
}

.rm-project-related {
  border-top: 1px solid rgba(15, 17, 20, 0.1);
  padding-top: 24px;
}

.rm-project-related h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.rm-project-related-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rm-project-related-actions .btn {
  margin: 0;
}

.rm-nav-search span {
  display: none;
}

.rm-search-form {
  position: relative;
}

.rm-search-form .form-control {
  border-color: rgba(15, 17, 20, 0.14);
  border-radius: 6px;
  font-size: 18px;
  height: 58px;
  padding-left: 52px;
}

.rm-search-form i {
  color: #b28423;
  font-size: 20px;
  left: 20px;
  position: absolute;
  top: 19px;
  z-index: 2;
}

.rm-search-meta {
  color: #6c737c;
  margin-top: 14px;
}

.rm-search-results {
  display: grid;
  gap: 18px;
}

.rm-search-result {
  background: #ffffff;
  border: 1px solid rgba(15, 17, 20, 0.08);
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(15, 17, 20, 0.06);
  padding: 24px 26px;
}

.rm-search-result h3 {
  font-size: 21px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.rm-search-result p {
  margin-bottom: 0;
}

.rm-search-type {
  color: #b28423;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.rm-search-empty {
  background: #fbfbfb;
  border: 1px solid rgba(15, 17, 20, 0.08);
  border-radius: 6px;
  padding: 28px;
}

.rm-award-card {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid rgba(15, 17, 20, 0.08);
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(15, 17, 20, 0.07);
  display: flex;
  gap: 22px;
  height: 100%;
  padding: 28px;
}

.rm-award-icon {
  align-items: center;
  background: #050505;
  border-radius: 50%;
  color: #f0c96a;
  display: inline-flex;
  flex: 0 0 46px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.rm-award-date {
  color: #b28423;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.rm-award-card h3 {
  color: #111318;
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.rm-award-card h4 {
  color: #4a4f58;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2px;
}

.rm-award-location {
  color: #6c737c;
  margin-bottom: 14px;
}

#footer,
#footer .footer-content,
#footer .copyright-content {
  background: #050505 !important;
  color: #f4f4f4;
}

#footer {
  margin-top: auto;
}

#footer .copyright-content {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#footer .copyright-text,
#footer p,
#footer .widget .widget-title,
#footer .widget h4,
#footer a:not(.btn) {
  color: #f4f4f4 !important;
}

#footer a:not(.btn):hover,
#footer a:not(.btn):focus {
  color: #f0c96a !important;
}

@media (max-width: 991px) {
  #portfolio.rm-project-grid,
  #portfolio.rm-home-project-grid,
  #grants-preview.rm-grant-preview-grid,
  .rm-project-grid,
  .rm-home-project-grid,
  .rm-grant-preview-grid {
    grid-template-columns: 1fr;
  }

  #header .header-inner #logo,
  #header #header-wrap #logo,
  #header #logo {
    height: 80px !important;
  }

  #logo a {
    max-width: 140px;
  }

  #header .header-inner #logo a,
  #header #header-wrap #logo a,
  #header #logo > a {
    max-width: 140px;
  }

  #header .header-inner #logo a > img.logo-default,
  #header .header-inner #logo a > img.logo-dark,
  #header #header-wrap #logo a > img.logo-default,
  #header #header-wrap #logo a > img.logo-dark,
  #header #logo a .logo-default,
  #header #logo a .logo-dark {
    height: 42px !important;
    max-width: 120px !important;
  }

  .rm-hero {
    padding-top: 70px;
  }

  .rm-portrait {
    margin-top: 34px;
  }

  .rm-appointment-timeline .timeline-item {
    margin-left: 4.25rem;
    margin-right: 0;
    padding: 22px 22px 20px;
  }

  .rm-nav-search span {
    display: inline;
  }

  .rm-nav-search i {
    margin-right: 8px;
  }

  .rm-award-card {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  #logo a {
    max-width: 120px;
  }

  #header .header-inner #logo a,
  #header #header-wrap #logo a,
  #header #logo > a {
    max-width: 120px;
  }

  #header .header-inner #logo a > img.logo-default,
  #header .header-inner #logo a > img.logo-dark,
  #header #header-wrap #logo a > img.logo-default,
  #header #header-wrap #logo a > img.logo-dark,
  #header #logo a .logo-default,
  #header #logo a .logo-dark {
    height: 38px !important;
    max-width: 105px !important;
  }
}
