/* ============================================================
   Recent Transactions
   Scoped under .rt so nothing here touches the rest of the site.
   Save as: /assets/css/recent-transactions.css
   ============================================================ */

.rt {
  --rt-ink:    #0E1116;
  --rt-slate:  #5B6672;
  --rt-line:   #E4E7EB;
  --rt-wash:   #F5F7F8;
  --rt-paper:  #FFFFFF;
  --rt-accent: #0B4F6C;
  --rt-brass:  #B8912F;

  --rt-sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --rt-mono: 'IBM Plex Mono', ui-monospace, monospace;

  color: var(--rt-ink);
  font-family: var(--rt-sans);
}

@font-face {
  font-family: 'BM DoHyeon';
  src: url('/assets/fonts/BMDoHyeon-latin.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.rt {
  --rt-sans: 'BM DoHyeon', system-ui, sans-serif;
}
.rt *,
.rt *::before,
.rt *::after { box-sizing: border-box; }

/* ---------- Hero ---------- */

.rt-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--rt-ink);
}

.rt-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  opacity: 0.42;
}

.rt-hero__inner {
  position: relative;
  width: min(1240px, 92vw);
  margin: 0 auto;
  padding: 0 0 4rem;
}

.rt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--rt-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rt-brass);
  margin: 0 0 1.1rem;
}

.rt-eyebrow::before {
  content: '';
  width: 2.5rem;
  height: 1px;
  background: var(--rt-brass);
}

.rt-hero h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 56px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: normal;
  font-stretch: normal;
  max-width: 900px;
  color: white;
}

.rt-hero p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 20px;
  max-width: 720px;
}

.rt-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  letter-spacing: 0;
  line-height: 1.1;
}
.rt-hero h1 {
  font-stretch: normal;
}
.rt-hero p {
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.74);
  margin: 0;
}

/* ---------- Call to action band ---------- */

.rt-cta {
  background: var(--rt-ink);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.rt-cta__inner {
  width: min(1240px, 92vw);
  margin: 0 auto;
  padding: 2.4rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.rt-cta__text {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 500;
  font-stretch: 106%;
  letter-spacing: -0.015em;
  color: #fff;
}

.rt-cta__btn {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 2.1rem;
  background: var(--rt-brass);
  border-radius: 999px;
  font-family: var(--rt-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--rt-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rt-cta__btn:hover {
  background: #d4a838;
  transform: translateY(-2px);
  color: var(--rt-ink);
}

/* ---------- Body ---------- */

.rt-body {
  background: var(--rt-wash);
  padding: 3.5rem 0 6rem;
}

.rt-container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

/* ---------- Tile grid ----------
   No aspect-ratio and no object-fit. The graphics set their own
   height so nothing gets cropped off the top or bottom.
   -------------------------------- */

.rt-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.rt-card {
  position: relative;
  width: 100%;
}

.rt-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: var(--rt-paper);
  border: 1px solid var(--rt-line);
  border-radius: 0;
  overflow: hidden;
  cursor: zoom-in;
  font: inherit;
  line-height: 0;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.rt-tile img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.005);
  transition: transform 0.7s ease;
}

.rt-tile:hover,
.rt-tile:focus-visible {
  transform: translateY(-4px);
  border-color: var(--rt-ink);
}

.rt-tile:focus-visible {
  outline: 2px solid var(--rt-accent);
  outline-offset: 3px;
}

.rt-tile:hover img,
.rt-tile:focus-visible img {
  transform: scale(1.04);
}

.rt-tile__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rt-ink);
  color: #fff;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.rt-tile:hover .rt-tile__zoom,
.rt-tile:focus-visible .rt-tile__zoom {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Agent button on each deal ---------- */

.rt-agentbtn {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 38px;
  padding: 0 1.05rem 0 0.85rem;
  background: var(--rt-brass);
  border: 0;
  border-radius: 999px;
  font-family: var(--rt-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rt-ink);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(14,17,22,0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rt-agentbtn:hover {
  background: #d4a838;
  transform: translateY(-2px);
}

.rt-agentbtn:focus-visible {
  outline: 2px solid var(--rt-ink);
  outline-offset: 3px;
}

.rt-agentbtn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Agent contact card ---------- */

.rt-agent {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(14, 17, 22, 0.72);
}

.rt-agent[hidden] { display: none; }

.rt-agent__panel {
  position: relative;
  width: min(400px, 100%);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  background: var(--rt-paper);
  border-top: 4px solid var(--rt-brass);
  box-shadow: 0 30px 70px rgba(14,17,22,0.35);
}

.rt-agent__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--rt-slate);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.rt-agent__close:hover {
  background: var(--rt-wash);
  color: var(--rt-ink);
}

.rt-agent__close:focus-visible {
  outline: 2px solid var(--rt-accent);
  outline-offset: 2px;
}

.rt-agent__photo {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 999px;
  margin: 0 auto 1.25rem;
  display: block;
  background: var(--rt-wash);
}

.rt-agent__kicker {
  font-family: var(--rt-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rt-slate);
  margin: 0 0 0.4rem;
}

.rt-agent__name {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--rt-ink);
}

.rt-agent__title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--rt-slate);
  margin: 0.3rem 0 1.6rem;
}

.rt-agent__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rt-agent__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 1.2rem;
  background: var(--rt-ink);
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  word-break: break-all;
  transition: background 0.2s ease;
}

.rt-agent__link:hover {
  background: #23303d;
  color: #fff;
}

.rt-agent__link--email {
  background: transparent;
  border: 1px solid var(--rt-line);
  color: var(--rt-ink);
}

.rt-agent__link--email:hover {
  background: var(--rt-wash);
  color: var(--rt-ink);
}

.rt-agent__link:focus-visible {
  outline: 2px solid var(--rt-accent);
  outline-offset: 2px;
}

/* ---------- Empty state ---------- */

.rt-empty {
  padding: 5rem 2rem;
  text-align: center;
  background: var(--rt-paper);
  border: 1px dashed var(--rt-line);
}

.rt-empty p {
  font-size: 1.05rem;
  color: var(--rt-slate);
  margin: 0;
}

/* ---------- Lightbox ---------- */

.rt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 4rem);
  background: rgba(14, 17, 22, 0.94);
}

.rt-lightbox[hidden] { display: none; }

.rt-lightbox__img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.rt-lightbox__close {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rt-lightbox__close:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.55);
}

.rt-lightbox__agent {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 1.4rem;
  background: var(--rt-brass);
  border: 0;
  border-radius: 999px;
  font-family: var(--rt-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rt-ink);
  cursor: pointer;
  transition: background 0.2s ease;
}

.rt-lightbox__agent:hover { background: #d4a838; }
.rt-lightbox__agent[hidden] { display: none; }

.rt-lightbox__nav {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  margin: 0 clamp(0.5rem, 2vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.rt-lightbox__nav:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.55);
}

.rt-lightbox__close:focus-visible,
.rt-lightbox__nav:focus-visible,
.rt-lightbox__agent:focus-visible {
  outline: 2px solid var(--rt-brass);
  outline-offset: 2px;
}

.rt-body .rt-container {
  max-width: 1280px;
  padding-inline: 2rem;
}

.rt-grid {
  max-width: 1100px;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .rt-hero { min-height: 44vh; }
  .rt-hero__inner { padding-bottom: 2.5rem; }

  .rt-cta__inner { flex-direction: column; align-items: flex-start; }
  .rt-cta__btn { width: 100%; justify-content: center; padding: 0 1rem; font-size: 0.68rem; }

  .rt-grid { gap: 1.5rem; }

  .rt-tile__zoom { opacity: 1; transform: none; }

  .rt-agentbtn {
    left: 10px;
    bottom: 10px;
    height: 34px;
    font-size: 0.62rem;
    padding: 0 0.85rem 0 0.7rem;
  }

  .rt-lightbox__agent {
    top: auto;
    bottom: clamp(1rem, 4vw, 2rem);
    left: 50%;
    transform: translateX(-50%);
    height: 40px;
    font-size: 0.64rem;
  }

  .rt-lightbox__nav {
    position: absolute;
    bottom: clamp(4.5rem, 14vw, 6rem);
    margin: 0;
  }
  .rt-lightbox__nav--prev { left: 20%; }
  .rt-lightbox__nav--next { right: 20%; }
}

.rt-agent {
  --rt-ink:    #0E1116;
  --rt-slate:  #5B6672;
  --rt-line:   #E4E7EB;
  --rt-wash:   #F5F7F8;
  --rt-paper:  #FFFFFF;
  --rt-accent: #0B4F6C;
  --rt-brass:  #B8912F;
  --rt-mono: 'IBM Plex Mono', ui-monospace, monospace;

  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(14, 17, 22, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .rt *,
  .rt-lightbox *,
  .rt-agent * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .rt-tile:hover { transform: none; }
  .rt-tile:hover img { transform: none; }
  .rt-cta__btn:hover { transform: none; }
  .rt-agentbtn:hover { transform: none; }
}