/* Realify Pro — Cursor Image Trail section (self-contained; matches Relay palette). */

.realify-hero {
  --rh-bg: #0C2616;
  --rh-surface: #16401F;
  --rh-primary: #11341F;
  --rh-secondary: #CBDE6E;
  --rh-text: #F4F1E6;
  --rh-muted: rgba(244, 241, 230, 0.62);
  --rh-grid: rgba(203, 222, 110, 0.07);
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 90% at 50% -10%, var(--rh-surface) 0%, var(--rh-primary) 42%, var(--rh-bg) 100%);
  cursor: crosshair;
}

.realify-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--rh-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--rh-grid) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 92%);
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 30%, transparent 92%);
}
.realify-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 220px 40px rgba(7, 21, 12, 0.55);
}

.realify-hero__trail {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.realify-card {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  will-change: transform, opacity;
  transform: translate3d(-9999px, -9999px, 0);
  backface-visibility: hidden;
}
.realify-card__frame {
  padding: 7px;
  background: #fbf8ee;
  border-radius: 5px;
  box-shadow: 0 1px 1px rgba(8, 20, 12, 0.16), 0 10px 20px rgba(8, 20, 12, 0.3), 0 26px 46px rgba(8, 20, 12, 0.34);
}
.realify-card__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  background: #1d3a28;
}

.realify-hero__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vw 7vw;
  pointer-events: none;
}
.realify-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(10px, 1vw, 12.5px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--rh-secondary);
}
.realify-hero__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rh-secondary); }
.realify-hero__heading {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--rh-text);
  text-shadow: 0 2px 30px rgba(8, 20, 12, 0.45);
}
.realify-hero__heading em {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--rh-secondary);
}
.realify-hero__sub {
  margin: 28px 0 0;
  max-width: 34ch;
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.55;
  color: var(--rh-muted);
}
.realify-hero__hint {
  margin: 38px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rh-muted);
  font-weight: 500;
  transition: opacity 0.5s ease;
}
.realify-hero__ring {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--rh-secondary);
}
.realify-hero__ring::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rh-secondary);
  animation: realify-pulse 2.4s ease-in-out infinite;
}
.realify-hero.is-touched .realify-hero__hint { opacity: 0; }

@keyframes realify-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(2.6); opacity: 0.25; }
}

/* Mobile / no-hover: static scattered collage */
.realify-hero__collage { display: none; }
@media (hover: none), (max-width: 760px) {
  .realify-hero { cursor: default; min-height: 560px; overflow: hidden; }
  .realify-hero__trail, .realify-hero__hint { display: none; }
  .realify-hero__collage { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .realify-collage-item {
    position: absolute;
    padding: 5px;
    background: #fbf8ee;
    border-radius: 5px;
    box-shadow: 0 10px 22px rgba(8, 20, 12, 0.34), 0 2px 4px rgba(8, 20, 12, 0.2);
    opacity: 0;
    transform: translateY(14px) scale(0.96) rotate(var(--r, 0deg));
    animation: realify-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: var(--d, 0s);
  }
  .realify-collage-item img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
  .realify-hero__heading { font-size: clamp(34px, 11vw, 60px); }
}
@keyframes realify-rise { to { opacity: 1; transform: translateY(0) scale(1) rotate(var(--r, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .realify-hero__ring::after { animation: none; } }
