.rms-section {
  --rms-bg: #11161e;
  --rms-panel: #0d1219;
  --rms-accent: #FF4D00;
  --rms-text: #ffffff;
  --rms-muted: rgba(255, 255, 255, 0.76);
  --rms-border: rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: clamp(56px, 5vw, 96px) 0 clamp(42px, 4vw, 76px);
  box-sizing: border-box;
  overflow: hidden;
  background: var(--rms-bg);
  color: var(--rms-text);
  font-family: inherit;
}

.rms-section *,
.rms-section *::before,
.rms-section *::after {
  box-sizing: border-box;
}

.rms-header {
  width: calc(100% - 40px);
  max-width: 1160px;
  margin: 0 auto clamp(40px, 4vw, 72px);
  text-align: center;
}

.rms-eyebrow {
  margin: 0 0 12px;
  color: var(--rms-accent);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rms-title {
  margin: 0;
  padding: 0;
  color: var(--rms-text);
  font-family: "Black Ops One", system-ui, sans-serif;
  font-size: clamp(30px, 3.1vw, 60px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rms-intro {
  max-width: 820px;
  margin: 20px auto 0;
  padding: 0;
  color: var(--rms-muted);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.55;
}

.rms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.rms-card {
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}

.rms-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #080b10;
}

.rms-image,
.rms-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.rms-image {
  max-width: none;
  object-fit: contain;
  object-position: center center;
  transform: scale(1.025);
  transition: transform 500ms ease, filter 300ms ease;
}

.rms-placeholder {
  background:
    radial-gradient(circle at 50% 46%, rgba(232,116,59, 0.18), transparent 24%),
    linear-gradient(145deg, #151b24, #090c11);
}

.rms-card:hover .rms-image {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.rms-caption {
  min-height: 150px;
  padding: 28px 30px 32px;
  background: transparent;
  text-align: center;
}

.rms-card-title {
  margin: 0;
  padding: 0;
  color: var(--rms-text);
  font-family: "Black Ops One", system-ui, sans-serif;
  font-size: clamp(21px, 1.55vw, 30px);
  line-height: 1.12;
  font-weight: 400;
  text-transform: uppercase;
}

.rms-card-text {
  margin: 14px 0 0;
  padding: 0;
  color: var(--rms-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .rms-caption {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 767px) {
  .rms-section {
    padding: 48px 0 40px;
  }

  .rms-header {
    width: calc(100% - 30px);
    margin-bottom: 34px;
  }

  .rms-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rms-card {
    border: 0;
  }

  .rms-section .rms-media {
    /* Override the saved desktop height (650px) on narrow screens. */
    height: clamp(220px, 75vw, 360px);
    min-height: 0;
    aspect-ratio: auto;
  }

  .rms-section .rms-image {
    object-fit: contain;
    object-position: center bottom;
    transform: none;
  }

  .rms-section .rms-caption {
    min-height: 0;
    padding: 10px 20px 24px;
  }

  .rms-section .rms-card-text {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rms-image {
    transition: none;
  }
}
