/* Homepage only. Preserve the full comparison frame and its baked-in labels. */
@property --hero-edge-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes hero-edge-orbit {
  to { --hero-edge-angle: 360deg; }
}
.garden-theme .hero.hero-video {
  padding: 0 0 clamp(36px, 5vw, 72px);
  overflow: visible;
  background: transparent;
}
.hero-video-stage {
  position: relative;
  width: min(100%, 1280px);
  margin-inline: auto;
  background: #080e20;
}
/* Without JavaScript the video has no poster attribute (it is set by an inline script), so show it as a background. */
html:not(.js) .hero-video-stage { background: #080e20 url(/assets/vanityfilter-home-hero-poster.webp) center / contain no-repeat; }
html:not(.js)[lang^="es"] .hero-video-stage { background-image: url(/assets/vanityfilter-home-hero-es-poster.webp); }
.hero-video-stage video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.hero-video-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #ffffff66;
  border-radius: 999px;
  background: #080e20ed;
  color: #fff;
  font: 500 .8rem/1.25 var(--font-body);
  cursor: pointer;
}
.hero-video-toggle[hidden] { display: none; }
.hero-video-toggle:hover { background: #203057; }
.hero-video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.hero-video-toggle .hero-pause-icon,
.hero-video-toggle.is-playing .hero-play-icon { display: none; }
.hero-video-toggle.is-playing .hero-pause-icon { display: block; }
.garden-theme .hero-video > .hero-video-content {
  position: relative;
  z-index: 1;
  width: calc(100% - 48px);
  max-width: 1180px;
  margin: clamp(-40px, -2.8vw, -12px) auto 0;
  padding: clamp(24px, 3.1vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  border: 1px solid #b5a4e338;
  border-radius: 18px;
  background: linear-gradient(125deg, #171827fa, #0e1423fa);
  box-shadow: 0 22px 60px #0005;
  transform: perspective(1400px) rotateX(var(--hero-tilt-x, 0deg)) rotateY(var(--hero-tilt-y, 0deg));
  transition: transform 240ms ease-out;
  isolation: isolate;
}
/* Mask the light to the edge so it never washes over copy or intercepts links. */
.hero-video-content::before,
.release-card::before,
.hero-edge-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(from var(--hero-edge-angle), transparent 0deg 235deg, #8975ec44 275deg, #ad94ff 315deg, #daf6ff 337deg, #ffffff 343deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: hero-edge-orbit 7s linear infinite;
}
.hero-edge-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  filter: blur(5px);
  opacity: .75;
}
.hero-edge-glow::before {
  inset: -3px;
  padding: 3px;
}
.hero-video-content.is-motion-paused::before,
.hero-video-content.is-motion-paused .hero-edge-glow::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero-video-content::before,
  .release-card::before,
  .hero-edge-glow::before { animation: none; }
  .garden-theme .hero-video > .hero-video-content { transform: none; transition: none; }
}
.garden-theme .hero-video h1 {
  margin: 15px 0 0;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.garden-theme .hero-video .sub {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.6;
}
.garden-theme .hero-video .hero-ctas { margin: 20px 0 0; gap: 10px; }
.garden-theme .hero-video .hero-ctas .btn { padding: 12px 17px; min-height: 48px; }
.garden-theme .hero-video .hero-ctas .btn:last-child {
  display: inline-flex;
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text);
}
.garden-theme .hero-video .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 16px 0 0;
  text-align: left;
  font-size: .66rem;
  letter-spacing: .035em;
}
.hero-video .hero-meta span + span::before { display: none; }
.hero-video .hero-specs { color: #c2bed2; text-decoration: underline; text-underline-offset: 3px; }
.hero-video-fallback { padding: 14px 24px 48px; text-align: center; }

/* Latest-release card: the hero's lit edge, art left, summary and actions right. */
.release-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(24px, 3.4vw, 46px);
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid #b5a4e338;
  border-radius: 18px;
  background: linear-gradient(125deg, #171827fa, #0e1423fa);
  box-shadow: 0 22px 60px #0005;
}
.release-card-art {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #080e20;
}
.release-card-copy .eyebrow { margin-bottom: 6px; }
.release-card-copy h2 {
  margin: 0 0 12px;
  font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1.12 var(--font-display);
  letter-spacing: -.035em;
}
.release-card-copy p { margin: 0; color: var(--dim); font-size: 1.02rem; line-height: 1.6; }
.release-card-copy .release-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.release-card-actions .btn { min-height: 48px; padding: 12px 20px; }
.release-card-actions .btn:last-child {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text);
}
@media (max-width: 800px) {
  .release-card { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 480px) {
  .release-card { padding: 18px; border-radius: 14px; }
  .release-card-copy .release-card-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .release-card-actions .btn { justify-content: center; }
}
@media (max-width: 800px) {
  .garden-theme .hero-video > .hero-video-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    width: calc(100% - 32px);
    padding: 26px;
  }
  .garden-theme .hero-video h1 { font-size: clamp(2rem, 5.8vw, 2.9rem); }
}
@media (max-width: 480px) {
  .hero-video-toggle { top: 8px; right: 8px; width: 44px; padding: 0; justify-content: center; }
  .hero-video-toggle [data-hero-toggle-label] { display: none; }
  .garden-theme .hero-video > .hero-video-content {
    width: calc(100% - 24px);
    margin-top: -10px;
    padding: 24px 20px;
    border-radius: 14px;
  }
  .garden-theme .hero-video .eyebrow { font-size: .58rem; letter-spacing: .09em; }
  .garden-theme .hero-video h1 { font-size: clamp(1.95rem, 8.2vw, 2.4rem); }
  .garden-theme .hero-video .sub { font-size: 1rem; }
  .garden-theme .hero-video .hero-ctas { display: grid; grid-template-columns: minmax(0, 1fr); }
  .garden-theme .hero-video .hero-ctas .btn { justify-content: center; }
}
