/* Arisence Prime: styling for the native Elementor Home (containers + core widgets).
   Selectors are kept below Elementor's own per-element rules, so every colour, font and
   size can still be changed from the Elementor panel. */

/* ---------- Hero with background video ---------- */
/* The poster sits under the video, so the first paint is never black; the video then fades in
   once frames are really playing (class set by prime.js). Without JS it still appears after 4 s. */
.elementor .an-hero { position: relative; color: #fff; background: #0b0b0d url(../video/hero-poster.jpg) center / cover no-repeat; }
.elementor .an-hero .elementor-background-video-hosted { opacity: 0; transition: opacity 1.3s ease; will-change: opacity; animation: an-vshow 0s linear 4s forwards; }
.elementor .an-hero .elementor-background-video-hosted.is-playing { opacity: 1; }
.elementor-editor-active .an-hero .elementor-background-video-hosted { opacity: 1; animation: none; }
@keyframes an-vshow { to { opacity: 1; } }
.elementor .an-hero .elementor-background-overlay { background-image: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); }
.an-vbtn { position: absolute; right: 24px; bottom: 24px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(11,11,13,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; padding: 0; transition: background .25s, border-color .25s; }
.an-vbtn:hover, .an-vbtn:focus-visible { background: rgba(11,11,13,.8); border-color: #fff; }
.an-vbtn i { position: absolute; inset: 0; margin: auto; width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; box-sizing: border-box; }
.an-vbtn.is-paused i { border: 0; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid #fff; margin-left: 17px; }
.elementor-editor-active .an-vbtn { display: none; }
@media (max-width: 767px) { .an-vbtn { right: 14px; bottom: 14px; width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .elementor .an-hero .elementor-background-video-hosted { transition: none; opacity: 1; animation: none; } }
.elementor .an-hero .elementor-background-video-container { z-index: 0; }
.elementor .an-hero > .e-con-inner, .elementor .an-hero > .e-con { position: relative; z-index: 2; }
.elementor .an-hero__copy { width: 100%; }
.elementor .an-kicker.elementor-widget-text-editor { font: 500 16px/1.4 var(--font-body); color: rgba(255,255,255,.82); }
.elementor .an-h1 .elementor-heading-title { font: 600 clamp(40px, 6.4vw, 96px)/1.03 var(--font-display); letter-spacing: -.02em; color: #fff; max-width: 15ch; text-shadow: 0 2px 40px rgba(0,0,0,.3); }
.elementor .an-hero__lead.elementor-widget-text-editor { font: 400 clamp(16px, 1.4vw, 20px)/1.55 var(--font-body); color: rgba(255,255,255,.88); max-width: 60ch; }

/* The four "what we do" cards on the video */
.elementor .an-cap { background: rgba(11,11,13,.55); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 10px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.elementor .an-cap__img { flex: 0 0 92px; width: 92px; }
.elementor .an-cap__img img { width: 92px; height: 66px; object-fit: cover; border-radius: 6px; display: block; }
.elementor .an-cap__t .elementor-heading-title { font: 600 16px/1.25 var(--font-display); color: #fff; }
.elementor .an-cap__s.elementor-widget-text-editor { font: 400 13px/1.3 var(--font-body); color: rgba(255,255,255,.7); }
.elementor .an-cap__s p, .elementor .an-kicker p { margin: 0; }

/* ---------- Shared type ---------- */
.elementor .an-h2 .elementor-heading-title { font: 600 clamp(30px, 3.6vw, 52px)/1.1 var(--font-display); letter-spacing: -.015em; color: var(--graphite, #0b0b0d); max-width: 22ch; }
.elementor .an-dark .an-h2 .elementor-heading-title, .elementor .an-h2--on-photo .elementor-heading-title { color: #fff; }
.elementor .an-lead.elementor-widget-text-editor { font: 400 clamp(16px, 1.25vw, 19px)/1.65 var(--font-body); color: var(--muted, #6a6e75); max-width: 62ch; }
.elementor .an-dark .an-lead.elementor-widget-text-editor, .elementor .an-lead--on-photo.elementor-widget-text-editor { color: rgba(255,255,255,.82); }
.elementor .an-lead p { margin: 0; }

/* ---------- Buttons ---------- */
.elementor .an-btn .elementor-button { font: 500 15px/1 var(--font-body); padding: 16px 28px; border-radius: 999px; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s; }
.elementor .an-btn--red .elementor-button { background: var(--red, #d92b1c); color: #fff; }
.elementor .an-btn--red .elementor-button:hover { background: var(--red-deep, #871b11); color: #fff; }
.elementor .an-btn--ghost .elementor-button { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.elementor .an-btn--ghost .elementor-button:hover { background: #fff; color: #0b0b0d; }
.elementor .an-btn--dark .elementor-button { background: #0b0b0d; color: #fff; }
.elementor .an-btn--dark .elementor-button:hover { background: var(--red, #d92b1c); color: #fff; }

/* ---------- Intro ---------- */
.elementor .an-list .elementor-icon-list-item { padding: 6px 0; }
.elementor .an-list .elementor-icon-list-icon i { color: var(--red, #d92b1c); font-size: 15px; }
.elementor .an-list .elementor-icon-list-text { font: 500 17px/1.4 var(--font-body); color: var(--text, #1a1a1d); }
.elementor .an-photo img { width: 100%; display: block; object-fit: cover; border-radius: 8px; }
.elementor .an-photo--lg img { aspect-ratio: 3 / 2; }
.elementor .an-photo--sm img { aspect-ratio: 4 / 3; }
.elementor .an-pair > .elementor-widget { flex: 1 1 0; min-width: 0; }

/* ---------- Numbers ---------- */
.elementor .an-counter .elementor-counter { text-align: left; }
.elementor .an-counter .elementor-counter-number-wrapper { font: 600 clamp(40px, 5vw, 70px)/1 var(--font-display); color: #fff; letter-spacing: -.02em; }
.elementor .an-counter .elementor-counter-title { font: 400 15px/1.4 var(--font-body); color: var(--on-dark-muted, #a4a7ae); margin-top: 10px; }

/* ---------- Cards ---------- */
.elementor .an-card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; }
.elementor .an-card__img--prod img { aspect-ratio: 1 / 1; object-fit: contain; background: #17171a; padding: 14px; }
.elementor .an-card__t .elementor-heading-title { font: 600 clamp(19px, 1.6vw, 24px)/1.2 var(--font-display); color: var(--graphite, #0b0b0d); }
.elementor .an-dark .an-card__t .elementor-heading-title { color: #fff; }
.elementor .an-card__t a { color: inherit; }
.elementor .an-card__p.elementor-widget-text-editor { font: 400 15px/1.6 var(--font-body); color: var(--muted, #6a6e75); }
.elementor .an-dark .an-card__p.elementor-widget-text-editor { color: var(--on-dark-muted, #a4a7ae); }
.elementor .an-card__p p { margin: 0; }

/* ---------- Plant band ---------- */
.elementor .an-plant { color: #fff; }
.elementor .an-plant > .e-con-inner, .elementor .an-plant > .e-con { position: relative; z-index: 2; }

/* ---------- Photo wall ---------- */
.elementor .an-wall__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 8px; }

/* ---------- Header sits over the hero: let clicks pass through while editing ---------- */
.elementor-editor-active .hdr, .elementor-editor-active .topbar { pointer-events: none; }
.elementor-editor-active .an-hero { min-height: 640px; }
