/* Load after the existing site styles. All selectors are scoped to rev-.
   Parent owns intersection-managed playback and reduced-motion behavior.
   Videos are intentionally contained, never cropped. The in-card title rail
   reserves space above the full frame so authored video captions stay visible. */
.rev-section {
  box-sizing: border-box;
  width: min(var(--max, 1200px), calc(100% - var(--gutter, 32px) * 2));
  margin-inline: auto;
  padding-block: 88px;
  color: var(--text, #f5f5f6);
  font-family: Mulish, Arial, sans-serif;
  scroll-margin-top: 150px;
}
.rev-section *, .rev-section *::before, .rev-section *::after { box-sizing: border-box; }
.rev-section-heading { margin: 0 0 48px; text-align: center; }
.rev-section-title {
  margin: 0;
  font: 400 clamp(38px, 4.2vw, 60px)/1.13 'Inter Tight', Arial, sans-serif;
  text-wrap: balance;
}
.rev-section-title em, .rev-intro-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-style: italic;
}
.rev-intro { max-width: 800px; margin: 0 auto 52px; text-align: center; }
.rev-intro-title {
  margin: 0 0 22px;
  font: 400 clamp(30px, 3.2vw, 44px)/1.15 'Inter Tight', Arial, sans-serif;
  text-wrap: balance;
}
.rev-intro-text {
  margin: 0;
  color: var(--muted, #bbb0cd);
  font: 400 16px/1.7 Mulish, Arial, sans-serif;
  text-wrap: pretty;
}
/* Desktop sequence is exactly 3 / 2 / 3 / 2 / 1. */
.rev-card-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.rev-card {
  position: relative;
  display: block;
  grid-column: span 4;
  min-width: 0;
  height: clamp(400px, 36vw, 480px);
  padding-top: 72px;
  overflow: hidden;
  border: 1px solid #ffffff1c;
  border-radius: 12px;
  background: #16101f;
  color: #fff;
  text-decoration: none;
}
.rev-card--half { grid-column: span 6; }
.rev-card--full { grid-column: 1 / -1; height: auto; }
.rev-card-label {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  z-index: 1;
  margin: 0;
  color: #fff;
  font: 500 clamp(18px, 1.65vw, 22px)/1.2 'Inter Tight', Arial, sans-serif;
  text-wrap: balance;
}
.rev-video {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: contain;
  object-position: center;
  background: #16101f;
}
.rev-card--full .rev-video { height: auto; aspect-ratio: 16 / 9; }
.rev-card:focus-visible, .rev-demo:focus-visible { outline: 3px solid #c7b8ff; outline-offset: 5px; }
.rev-card:hover { border-color: #ad92ef; }
.rev-platform { padding-top: 88px; }
.rev-feature-list { display: grid; gap: 104px; margin-top: 64px; }
.rev-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  min-width: 0;
  scroll-margin-top: 150px;
}
.rev-feature-copy { grid-column: 1; grid-row: 1; min-width: 0; }
/* Intentionally empty: content is reserved for the user's future copy. */
.rev-copy-reserved { min-height: 184px; }
.rev-feature-media {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-width: 0;
  height: 540px;
  margin: 0;
  padding-top: 72px;
  overflow: hidden;
  border: 1px solid #ffffff1c;
  border-radius: 12px;
  background: #16101f;
}
.rev-feature--media-left .rev-feature-media { grid-column: 1; }
.rev-feature--media-left .rev-feature-copy { grid-column: 2; }
.rev-feature-media--landscape { height: auto; }
.rev-feature-media--landscape .rev-video { height: auto; aspect-ratio: var(--rev-video-ratio, 16 / 9); }
.rev-demo {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  padding: 7px 8px 7px 22px;
  border: 1px solid #9a7cff;
  border-radius: 999px;
  background: var(--orange, #673de6);
  color: #fff;
  font: 600 15px/1.2 'Inter Tight', Arial, sans-serif;
  text-decoration: none;
}
.rev-demo-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #673de6;
  transition: transform 180ms ease-out;
}
.rev-demo-arrow svg { display: block; width: 18px; height: 18px; }
.rev-demo:hover .rev-demo-arrow { transform: rotate(45deg); }
@media (max-width: 900px) {
  .rev-section { padding-block: 64px; }
  .rev-card-grid { gap: 14px; }
  .rev-card { padding-top: 76px; height: 400px; }
  .rev-card-label { left: 16px; right: 16px; font-size: 18px; }
  .rev-card--full { height: auto; }
  .rev-feature { gap: 30px; }
  .rev-feature-list { gap: 72px; }
  .rev-feature-media { height: 440px; }
  .rev-feature-media--landscape { height: auto; }
}
@media (max-width: 700px) {
  .rev-section { width: calc(100% - 36px); padding-block: 52px; }
  .rev-section-heading { margin-bottom: 32px; }
  .rev-intro { margin-bottom: 36px; }
  .rev-intro-text { font-size: 15px; }
  .rev-card-grid { grid-template-columns: 1fr; }
  .rev-card, .rev-card--half, .rev-card--full { grid-column: 1 / -1; }
  .rev-card { height: 480px; }
  .rev-card--full { height: auto; }
  .rev-card-label { top: 18px; left: 20px; right: 20px; font-size: 20px; }
  .rev-feature-list { margin-top: 40px; gap: 64px; }
  .rev-feature { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rev-feature .rev-feature-media { grid-column: 1; grid-row: 1; height: 480px; }
  .rev-feature .rev-feature-media--landscape { height: auto; }
  .rev-feature .rev-feature-copy { grid-column: 1; grid-row: 2; }
  .rev-copy-reserved { min-height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .rev-demo-arrow { transition: none; }
  .rev-demo:hover .rev-demo-arrow { transform: none; }
}
