/* =====================================================================
   ZELOR STUDIO — PRO HERO SYSTEM  (shared across Home / About / Work / Contact)
   Awwwards-style: 3D cursor-reactive orb + animated grid floor + kinetic type.
   Aligned to the site header grid (.container-1750, 32px outer margin).
   Brand accent: #f1eb1c.  Content is never changed — only presentation.
   ===================================================================== */

:root {
  --zlr-brand: #f1eb1c;
  --zlr-brand-soft: rgba(241, 235, 28, 0.16);
  --zlr-ink: #ffffff;
  --zlr-muted: rgba(255, 255, 255, 0.66);
  --zlr-line: rgba(255, 255, 255, 0.08);
  /* Original side spacing: hero copy lines up under the header logo.
     Header = .px-50 (50px) wrapper + .container-1750 (max 1750, centred). */
  --zlr-hero-max: 1750px;
}

/* ---------------------------------------------------------------------
   1. SHELL — full-bleed stage, header-aligned inner grid
   --------------------------------------------------------------------- */
.zlr-hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 0%, rgba(241, 235, 28, 0.10), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(241, 235, 28, 0.05), transparent 60%),
    #060606;
  isolation: isolate;
}

/* Mirror the site HEADER layout so the hero copy starts under the logo:
   .zlr-hero__inner == header's .px-50 wrapper, .zlr-hero__wrap == .container-1750. */
.zlr-hero__inner {
  position: relative;
  z-index: 4;
  width: 100%;
  /* header outer margin (32px) + .px-50 (50px) = 82px */
  padding-inline: 82px;
  padding-block: clamp(140px, 18vh, 220px) clamp(72px, 10vh, 120px);
}
.zlr-hero__wrap {
  position: relative;
  max-width: var(--zlr-hero-max);  /* .container-1750 */
  margin-inline: auto;
  padding-inline: 31px;            /* bootstrap .row/.col-6 padding the logo sits in */
}
@media (max-width: 1199px) {
  .zlr-hero__inner { padding-inline: clamp(20px, 5vw, 60px); }
}
@media (max-width: 575px) {
  .zlr-hero__wrap { padding-inline: 12px; }
}

/* Two-column grid: copy left, 3D stage right (collapses on mobile). */
.zlr-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.zlr-hero--centered .zlr-hero__grid {
  grid-template-columns: minmax(0, 1fr);
  text-align: left;
}

/* ---------------------------------------------------------------------
   2. ANIMATED GRID FLOOR + glow layers (the "wow" backdrop)
   --------------------------------------------------------------------- */
.zlr-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* single faint grid mesh across the whole hero (the only background pattern) */
.zlr-hero__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: clamp(64px, 7vw, 96px) clamp(64px, 7vw, 96px);
  -webkit-mask-image: radial-gradient(130% 130% at 50% 35%, #000 45%, transparent 100%);
          mask-image: radial-gradient(130% 130% at 50% 35%, #000 45%, transparent 100%);
}

/* moving spotlight that follows the cursor (set via JS custom props) */
.zlr-hero__spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    480px 480px at var(--zlr-mx, 75%) var(--zlr-my, 35%),
    rgba(241, 235, 28, 0.14),
    transparent 65%
  );
  transition: background-position 0.2s ease;
}

/* ---------------------------------------------------------------------
   3. THE 3D ORB  (canvas particle sphere, cursor reactive)
   --------------------------------------------------------------------- */
.zlr-hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(260px, 38vw, 460px);
}

.zlr-hero__orb {
  position: relative;
  width: clamp(240px, 30vw, 440px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate3d(0, 0, 0);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.zlr-hero__orb canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* soft brand halo behind the orb */
.zlr-hero__orb::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,235,28,0.28), transparent 62%);
  filter: blur(28px);
  z-index: -1;
  animation: zlr-pulse 5.5s ease-in-out infinite;
}

@keyframes zlr-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50%      { opacity: 0.95; transform: scale(1.04); }
}

/* orbiting accent ring */
.zlr-hero__orb::after {
  content: "";
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  border: 1px solid rgba(241, 235, 28, 0.28);
  -webkit-mask-image: linear-gradient(120deg, #000 20%, transparent 60%);
          mask-image: linear-gradient(120deg, #000 20%, transparent 60%);
  animation: zlr-spin 12s linear infinite;
}

@keyframes zlr-spin {
  to { transform: rotate(360deg); }
}

/* small floating chips for extra depth */
.zlr-hero__chip {
  position: absolute;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #050505 !important;
  -webkit-text-fill-color: #050505 !important;
  background: var(--zlr-brand);
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(241, 235, 28, 0.25);
  animation: zlr-float 6s ease-in-out infinite;
}
.zlr-hero__chip--a { top: 6%;  left: -6%;  animation-delay: -1s; }
.zlr-hero__chip--b {
  bottom: 10%; right: -4%; animation-delay: -3s;
  color: #fff !important; -webkit-text-fill-color: #fff !important;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px); box-shadow: none;
}

@keyframes zlr-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ---------------------------------------------------------------------
   4. COPY BLOCK — kicker, kinetic heading, paragraph, CTA, meta
   --------------------------------------------------------------------- */
.zlr-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(18px, 2.4vh, 28px);
  padding: 8px 16px;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zlr-brand);
  background: var(--zlr-brand-soft);
  border: 1px solid rgba(241, 235, 28, 0.28);
  border-radius: 999px;
}
.zlr-hero__kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--zlr-brand);
  box-shadow: 0 0 12px var(--zlr-brand);
  animation: zlr-blink 1.8s ease-in-out infinite;
}
@keyframes zlr-blink { 0%,100%{opacity:1} 50%{opacity:.35} }

.zlr-hero__title {
  margin: 0 0 clamp(22px, 3vh, 34px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--zlr-ink);
  font-size: clamp(38px, 4.8vw, 84px);
}
/* each line on its own row; allow it to shrink-wrap, never clip */
.zlr-hero__title .zlr-line { display: block; overflow: hidden; white-space: nowrap; }
.zlr-hero__title .zlr-line > span {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  animation: zlr-rise 0.9s cubic-bezier(.16,1,.3,1) forwards;
}
.zlr-hero__title .zlr-line:nth-child(1) > span { animation-delay: 0.15s; }
.zlr-hero__title .zlr-line:nth-child(2) > span { animation-delay: 0.28s; }
.zlr-hero__title .zlr-line:nth-child(3) > span { animation-delay: 0.41s; }
.zlr-hero__title .zlr-accent { color: var(--zlr-brand); }

@keyframes zlr-rise {
  to { transform: translateY(0); opacity: 1; }
}

.zlr-hero__copy {
  max-width: 56ch;
  margin: 0 0 clamp(26px, 3.4vh, 38px);
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.6;
  color: var(--zlr-muted);
  opacity: 0;
  animation: zlr-fade 0.9s ease 0.55s forwards;
}

.zlr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
  opacity: 0;
  animation: zlr-fade 0.9s ease 0.7s forwards;
}

@keyframes zlr-fade { to { opacity: 1; } }

/* Primary CTA — keeps existing button classes working, just restyles inside hero.
   Force dark text on every nested node so theme/about CSS can't make it white. */
.zlr-hero__actions .tp-el-btn,
.zlr-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #060606 !important;
  -webkit-text-fill-color: #060606 !important;
  background: var(--zlr-brand) !important;
  background-color: var(--zlr-brand) !important;
  background-image: none !important;
  border: 1px solid var(--zlr-brand) !important;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.zlr-hero__actions .tp-el-btn *,
.zlr-hero__actions .tp-el-btn .elementor-button-text,
.zlr-hero__actions .tp-el-btn svg,
.zlr-hero__cta * {
  color: #060606 !important;
  -webkit-text-fill-color: #060606 !important;
  stroke: #060606 !important;
}
.zlr-hero__actions .tp-el-btn svg path { stroke: #060606 !important; }
.zlr-hero__actions .tp-el-btn:hover,
.zlr-hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(241, 235, 28, 0.32);
}

.zlr-hero__ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--zlr-ink);
  text-decoration: none;
  opacity: 0.86;
  transition: opacity .25s ease, gap .25s ease;
}
.zlr-hero__ghost:hover { opacity: 1; gap: 14px; color: var(--zlr-ink); }
.zlr-hero__ghost svg { transition: transform .25s ease; }
.zlr-hero__ghost:hover svg { transform: translateX(4px); }

/* scroll cue — anchored to the bottom-right edge of the hero grid,
   sitting on the same horizontal band as the action buttons */
.zlr-hero__scroll {
  position: absolute;
  right: 0;
  bottom: clamp(-8px, 0.5vh, 8px);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--zlr-muted);
}
.zlr-hero__scroll i {
  width: 1px; height: 30px; background: rgba(255,255,255,0.25);
  position: relative; overflow: hidden; display: inline-block;
}
.zlr-hero__scroll i::after {
  content: ""; position: absolute; inset: 0;
  background: var(--zlr-brand);
  animation: zlr-scroll 1.8s ease-in-out infinite;
}
@keyframes zlr-scroll {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ---------------------------------------------------------------------
   5. RESPONSIVE — collapse to single column, hide heavy decor on phones
   --------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* tablet and below: drop the 3D orb, single-column copy layout */
  .zlr-hero {
    min-height: auto;
    display: block;
  }
  .zlr-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .zlr-hero__stage { display: none !important; }
  .zlr-hero__chip { display: none; }
  .zlr-hero__inner {
    padding-block: clamp(170px, 22vh, 220px) clamp(96px, 12vh, 130px);
  }
  .zlr-hero__copy { max-width: none; }
  .zlr-hero__scroll { display: none; }
  .zlr-hero__title { font-size: clamp(44px, 8.5vw, 84px); }
  /* allow wrapping so long words never clip on tablet widths */
  .zlr-hero__title .zlr-line { white-space: normal; overflow: visible; }
}

@media (max-width: 600px) {
  .zlr-hero {
    min-height: auto;
    display: block;
  }
  .zlr-hero__inner {
    padding-block: 124px clamp(48px, 9vh, 72px);
  }
  /* hide the 3D orb / decorative stage on phones (client request) */
  .zlr-hero__stage { display: none !important; }
  .zlr-hero__chip { display: none; }
  .zlr-hero__grid { gap: 0; }
  /* let long words wrap instead of clipping on narrow screens */
  .zlr-hero__title { font-size: clamp(34px, 11vw, 56px); }
  .zlr-hero__title .zlr-line { white-space: normal; overflow: visible; }
  .zlr-hero__scroll { display: none; }
  .zlr-hero__actions { width: 100%; gap: 16px; }
  .zlr-hero__actions .tp-el-btn,
  .zlr-hero__cta { width: 100%; justify-content: center; }
  .zlr-hero__ghost { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------------
   6. ACCESSIBILITY — respect reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .zlr-hero *,
  .zlr-hero *::before,
  .zlr-hero *::after {
    animation: none !important;
    transition: none !important;
  }
  .zlr-hero__title .zlr-line > span { transform: none; opacity: 1; }
  .zlr-hero__copy, .zlr-hero__actions { opacity: 1; }
}
