/* ============================================================
   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);
}

.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: var(--rt-sans);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  font-stretch: 118%;
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1.1rem;
}

.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;
}

/* ---------- Filter bar ---------- */

.rt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rt-line);
}

.rt-segment {
  display: inline-flex;
  background: var(--rt-paper);
  border: 1px solid var(--rt-line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}

.rt-segment__btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-family: var(--rt-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rt-slate);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.rt-segment__btn:hover { color: var(--rt-ink); }

.rt-segment__btn.is-active {
  background: var(--rt-ink);
  color: #fff;
}

/* ---------- 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: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.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;
  filter: grayscale(100%);
  transform: scale(1.005);
  transition: filter 0.5s ease, 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 {
  filter: grayscale(0%);
  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);
}

/* ---------- 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 0 1.5rem;
}

.rt-empty a {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 1.8rem;
  background: var(--rt-ink);
  border-radius: 999px;
  font-family: var(--rt-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

/* ---------- 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__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 {
  outline: 2px solid var(--rt-brass);
  outline-offset: 2px;
}

/* ---------- 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-segment { width: 100%; justify-content: space-between; }
  .rt-segment__btn { flex: 1; justify-content: center; padding: 0 0.6rem; }

  .rt-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

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

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

@media (prefers-reduced-motion: reduce) {
  .rt *,
  .rt-lightbox * {
    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; }
}