.transactions-head + .deal-carousel { margin-top: 44px; }

.deal-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1px;
  margin-bottom: 18px;
}

.deal-controls p {
  margin: 0 18px 0 0;
  color: #9aa8b4;
  font-size: 11px;
  letter-spacing: .14em;
}

.deal-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid #3d4b59;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.deal-controls button:hover,
.deal-controls button:focus { background: #fff; color: #0b111b; outline: none; }

.deal-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #596775 transparent;
  background: transparent;
  padding-bottom: 20px;
}

.deal-grid::-webkit-scrollbar { height: 5px; }
.deal-grid::-webkit-scrollbar-track { background: #25313d; }
.deal-grid::-webkit-scrollbar-thumb { background: #697784; }

.deal-record {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 clamp(310px, 29vw, 430px);
  min-height: 470px;
  scroll-snap-align: start;
  background: linear-gradient(180deg,rgba(8,18,30,.12),rgba(8,18,30,.35) 44%,rgba(8,18,30,.94)),var(--deal-image) center/cover no-repeat;
  color: #fff;
  outline: none;
}

.deal-record .deal-bottom h3 { font-size: clamp(28px, 2.8vw, 42px); }

.deal-more {
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 30px;
  background: rgba(24,54,82,.96);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .3s, transform .4s;
}

.deal-more span { font-size: 10px; text-transform: uppercase; letter-spacing: .15em; color: #a9bfd0; }
.deal-more p { margin: 18px 0 22px; font: 400 23px/1.35 Manrope,sans-serif; letter-spacing: -.025em; }
.deal-more small { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.4); color: #d1dce5; font-size: 12px; }
.deal-record:hover .deal-more,.deal-record:focus .deal-more,.deal-record.active .deal-more { opacity: 1; transform: none; }

@media(max-width:900px){.deal-record{flex-basis:55vw}}
@media(max-width:600px){.transactions-head + .deal-carousel{margin-top:34px}.deal-controls{justify-content:space-between}.deal-controls p{margin-right:auto}.deal-record{flex-basis:88vw;min-height:430px}.deal-more{padding:25px}.deal-more p{font-size:21px}}

.deal.upper-brook {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 18, 30, .18) 0%, rgba(8, 18, 30, .34) 42%, rgba(8, 18, 30, .9) 100%),
    url("assets/upper-brook-street.png") center center / cover no-repeat;
  color: #fff;
}

.deal.upper-brook::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(24, 54, 82, .08);
  transition: background .35s ease;
}

.deal.upper-brook:hover::after { background: rgba(24, 54, 82, 0); }
.deal.upper-brook .deal-bottom > div { border-color: rgba(255, 255, 255, .62); }

.deal.longwood {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 18, 30, .12) 0%, rgba(8, 18, 30, .3) 44%, rgba(8, 18, 30, .9) 100%),
    url("assets/longwood-close.png") center center / cover no-repeat;
  color: #fff;
}

.deal.longwood::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(24, 54, 82, .08);
  transition: background .35s ease;
}

.deal.longwood:hover::after { background: rgba(24, 54, 82, 0); }
.deal.longwood .deal-bottom > div { border-color: rgba(255, 255, 255, .62); }

.deal.the-hale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 18, 30, .1) 0%, rgba(8, 18, 30, .3) 42%, rgba(8, 18, 30, .9) 100%),
    url("assets/the-hale.png") center center / cover no-repeat;
  color: #fff;
}

.deal.the-hale::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(24, 54, 82, .08);
  transition: background .35s ease;
}

.deal.the-hale:hover::after { background: rgba(24, 54, 82, 0); }
.deal.the-hale .deal-bottom > div { border-color: rgba(255, 255, 255, .62); }

.deal.temple-reach {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 18, 30, .1) 0%, rgba(8, 18, 30, .28) 42%, rgba(8, 18, 30, .9) 100%),
    url("assets/temple-reach.png") center center / cover no-repeat;
  color: #fff;
}

.deal.temple-reach::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(24, 54, 82, .08);
  transition: background .35s ease;
}

.deal.temple-reach:hover::after { background: rgba(24, 54, 82, 0); }
.deal.temple-reach .deal-bottom > div { border-color: rgba(255, 255, 255, .62); }

.deal.project-aqua {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 18, 30, .12) 0%, rgba(8, 18, 30, .3) 44%, rgba(8, 18, 30, .9) 100%),
    url("assets/project-aqua.png") center center / cover no-repeat;
  color: #fff;
}

.deal.project-aqua::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(24, 54, 82, .08);
  transition: background .35s ease;
}

.deal.project-aqua:hover::after { background: rgba(24, 54, 82, 0); }
.deal.project-aqua .deal-bottom > div { border-color: rgba(255, 255, 255, .62); }

.deal.hallsville {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 18, 30, .1) 0%, rgba(8, 18, 30, .3) 42%, rgba(8, 18, 30, .9) 100%),
    url("assets/hallsville-quarter.png") center center / cover no-repeat;
  color: #fff;
}

.deal.hallsville::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(24, 54, 82, .08);
  transition: background .35s ease;
}

.deal.hallsville:hover::after { background: rgba(24, 54, 82, 0); }
.deal.hallsville .deal-bottom > div { border-color: rgba(255, 255, 255, .62); }

.deal-client {
  margin: -13px 0 20px !important;
  font-size: 12px !important;
  line-height: 1.35;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(255, 255, 255, .9);
}

.deal-client span {
  margin-right: 7px;
  color: rgba(255, 255, 255, .62);
  text-transform: uppercase;
  letter-spacing: .12em;
}
