/* ============================================================
   REDLINE MOTION V5
   Layout -> atmosphere -> feedback -> accessibility.
   Entry/scroll timing lives in anim.js. Nothing is hidden by CSS.
   ============================================================ */
:root {
  --rl-ease: cubic-bezier(.16, 1, .3, 1);
}

/* 01 / Layout. Animation never adds height or empty spacer nodes. */
body { position: relative; isolation: isolate; }
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 7, .78);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.rl-scrolled .nav {
  background: rgba(7, 7, 7, .94);
  border-bottom-color: rgba(215, 25, 32, .2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
}
.hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 68px;
  min-height: 0;
  padding: 72px 0 56px;
}
.hero > div:first-child { min-width: 0; }
.hero h1 {
  max-width: 760px;
  font-size: clamp(54px, 6.2vw, 96px);
  line-height: .86;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 12px;
  margin-top: 30px;
}
.hero .actions > .btn { white-space: nowrap; }
.hero > .hero-card { width: 100%; max-width: 430px; margin-left: auto; }
.hero + .pricing-section { padding-top: 55px; }
.hero-card,
.rh-hero-graphic {
  position: relative;
  --rl-x: 50%;
  --rl-y: 48%;
  transform: perspective(1100px) rotateX(var(--rl-rx, 0deg)) rotateY(var(--rl-ry, 0deg));
  transition: transform .45s var(--rl-ease), border-color .3s, box-shadow .3s;
}
.hero-card { border-color: rgba(255, 255, 255, .12); box-shadow: 0 34px 100px rgba(0, 0, 0, .42); }

/* 02 / Atmosphere. These layers stay inside their existing boxes. */
.hero-card::before,
.rh-hero-graphic::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(350px circle at var(--rl-x) var(--rl-y), rgba(239, 33, 48, .16), transparent 75%);
}
.hero-card > * { position: relative; }
.hero-card .mock { overflow: hidden; position: relative; }
.hero-card .mock::after {
  content: "";
  position: absolute;
  inset: -25% auto -25% -45%;
  width: 35%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: skewX(-18deg);
}
.rl-motion-ready .hero-card.rl-in-view .mock::after { animation: rl-scan 7.5s var(--rl-ease) 1.2s infinite; }
@keyframes rl-scan {
  0%, 58%, 100% { translate: 0 0; opacity: 0; }
  64% { opacity: 1; }
  82% { translate: 500% 0; opacity: 0; }
}
.rh-hero-graphic::after { z-index: 1; }
.rh-art-disk { z-index: 2; }
.rh-art-orbit { pointer-events: none; }
.rh-art-orbit::after {
  content: "";
  position: absolute;
  top: -4px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fb4c5b;
  box-shadow: 0 0 18px rgba(245, 44, 62, .7);
}
.rh-art-orbit.orbit-b::after { width: 5px; height: 5px; top: -3px; opacity: .55; }
.rl-motion-ready .rh-hero-graphic.rl-in-view .orbit-a { animation: rl-orbit 22s linear infinite; }
.rl-motion-ready .rh-hero-graphic.rl-in-view .orbit-b { animation: rl-orbit 34s linear reverse infinite; }
.rl-motion-ready .rh-hero-graphic.rl-in-view .rh-art-question { animation: rl-breathe 6s ease-in-out infinite alternate; }
@keyframes rl-orbit { to { rotate: 360deg; } }
@keyframes rl-breathe { from { scale: .985; } to { scale: 1.025; } }
.rl-paused *, .rl-paused *::before, .rl-paused *::after { animation-play-state: paused !important; }
.rl-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1000;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #c61928, #ff5865);
  box-shadow: 0 0 14px rgba(239, 33, 48, .35);
}

/* 03 / Hover and press. Reveal uses translate, hover uses transform. */
.btn, .rh-button, .business-product-btn, .noir-product-btn, .rp-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--rl-ease), border-color .25s, background .25s, box-shadow .3s;
}
.btn:hover, .rh-button:hover, .business-product-btn:hover, .noir-product-btn:hover, .rp-btn:hover { transform: translateY(-3px); }
.btn:active, .rh-button:active, .business-product-btn:active, .noir-product-btn:active, .rp-btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, .rh-button:focus-visible { outline: 2px solid #ff6975; outline-offset: 3px; }
.btn.primary:hover, .rh-button-primary:hover { box-shadow: 0 16px 42px rgba(215, 25, 32, .28); }
.btn::after, .rh-button-primary::after {
  content: "";
  position: absolute;
  top: -70%;
  left: -55%;
  width: 35%;
  height: 240%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: skewX(-20deg);
}
.btn:hover::after, .rh-button-primary:hover::after { left: 130%; transition: left .7s var(--rl-ease); }
.rl-press-light {
  position: absolute;
  left: var(--rl-press-x, 50%);
  top: var(--rl-press-y, 50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 111, 122, .35), transparent 70%);
  animation: rl-press .55s ease-out forwards;
}
@keyframes rl-press { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(16); opacity: 0; } }
.card { position: relative; overflow: hidden; transition: transform .4s var(--rl-ease), border-color .3s, box-shadow .3s; }
.card:hover { transform: translateY(-5px); border-color: rgba(215, 25, 32, .45); box-shadow: 0 25px 65px rgba(0, 0, 0, .3); }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(320px circle at var(--rl-x, 50%) var(--rl-y, 50%), rgba(215, 25, 32, .11), transparent 72%);
  transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card .preview img { transition: transform .8s var(--rl-ease); }
.card:hover .preview img { transform: scale(1.045); }
.services > div { position: relative; overflow: hidden; transition: background .3s; }
.services > div:hover { background: rgba(255, 255, 255, .02); }
.services > div::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--r), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .55s var(--rl-ease);
}
.services > div:hover::after { transform: scaleX(1); }
.rh-filter, .rh-qa > summary { position: relative; overflow: hidden; }
.rh-filter { transition: transform .25s var(--rl-ease), border-color .25s, background .25s, color .25s; }
.rh-filter:hover { transform: translateY(-2px); border-color: rgba(235, 48, 62, .65); }
.rh-search-box { transition: border-color .25s, box-shadow .35s, transform .35s var(--rl-ease); }
.rh-search-box:focus-within { transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(224, 24, 39, .11), 0 0 36px rgba(224, 24, 39, .12); }
.rh-qa { position: relative; transition: background .3s; }
.rh-qa:hover, .rh-qa[open] { background: linear-gradient(90deg, rgba(225, 25, 42, .055), transparent 75%); }
.rh-qa > summary { padding-inline: 10px 4px; }
.rh-qa > summary > span:first-child { transition: transform .3s var(--rl-ease); }
.rh-qa > summary:hover > span:first-child { transform: translateX(3px); }
.rh-answer { padding-left: 10px; }
#rh-questions, #contact, #packages { scroll-margin-top: 100px; }

/* 04 / Responsive and reduced motion. */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 370px); gap: 34px; }
  .hero h1 { font-size: clamp(52px, 7.2vw, 84px); }
  .hero .actions { gap: 12px 8px; }
  .hero .actions > .btn { padding-inline: 11px; font-size: 11px; }
}
@media (max-width: 850px) {
  .nav { position: relative; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 65px 0 42px; }
  .hero h1 { max-width: 100%; font-size: clamp(54px, 10vw, 82px); }
  .hero-card { display: none; }
  .hero + .pricing-section { padding-top: 42px; }
}
@media (max-width: 560px) {
  .hero { padding: 54px 0 36px; }
  .hero h1 { font-size: clamp(47px, 14.2vw, 68px); line-height: .87; }
  .hero .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .hero .actions > .btn { white-space: normal; text-align: center; }
  .hero .actions > .btn:last-child { grid-column: 1 / -1; }
}
@media (max-width: 380px) { .hero .actions { grid-template-columns: 1fr; } }
@media (hover: none), (pointer: coarse) {
  .card:hover, .btn:hover, .rh-button:hover, .rh-filter:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rl-motion-ready *, .rl-motion-ready *::before, .rl-motion-ready *::after { animation: none !important; }
  .hero-card, .rh-hero-graphic, .card:hover, .btn:hover, .rh-button:hover, .rh-filter:hover, .rh-search-box:focus-within { transform: none !important; }
  .rl-progress, .rl-press-light { display: none; }
  .btn::after, .rh-button-primary::after { content: none; }
  .btn, .rh-button, .rh-filter, .rh-search-box, .card, .hero-card, .rh-hero-graphic,
  .business-product-btn, .noir-product-btn, .rp-btn, .card .preview img, .rh-qa > summary > span:first-child { transition: none !important; }
  .business-product-btn:hover, .noir-product-btn:hover, .rp-btn:hover, .card:hover .preview img, .rh-qa > summary:hover > span:first-child { transform: none !important; }
}
