.csh-hero {
  position: relative;
  height: var(--csh-desktop-height, 300vh);
  min-height: 120vh;
  background: #06070a;
  overflow: clip;
}

.csh-hero .csh-sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #06070a;
  isolation: isolate;
}

.csh-hero .csh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.csh-hero .csh-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0,0,0,var(--csh-overlay-opacity, 0.25));
  pointer-events: none;
}

.csh-hero .csh-content-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: var(--csh-align-items, initial);
  justify-content: var(--csh-justify-content, initial);
  pointer-events: none;
  padding: calc(clamp(24px, 5vw, 88px) + var(--csh-header-offset, 0px)) clamp(24px, 5vw, 88px) clamp(24px, 5vw, 88px);
  color: var(--csh-content-color, #fff);
}

.csh-hero .csh-content {
  max-width: var(--csh-content-max, 620px);
  pointer-events: auto;
  will-change: transform, opacity;
  box-sizing: border-box;
  --csh-content-shift-x: 0px;
  --csh-content-shift-y: 0px;
  padding: var(--csh-content-padding, 0);
  background: var(--csh-content-bg, transparent);
  border-radius: var(--csh-content-radius, 0);
}

.csh-hero .csh-eyebrow {
  margin: 0 0 14px;
  font-size: clamp(12px, 0.9vw, 15px);
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: inherit;
  opacity: 0.82;
}

.csh-hero .csh-title {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 760;
  color: inherit;
}

.csh-hero .csh-subtitle {
  margin: 0 0 28px;
  max-width: 720px;
  font-size: clamp(17px, 1.6vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: inherit;
  opacity: 0.88;
}

.csh-hero .csh-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--csh-button-gap, 12px);
}

.csh-hero .csh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--csh-button-bg, #fff);
  color: var(--csh-button-color, #111);
  text-decoration: none;
  font-weight: 650;
  line-height: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  transition: transform .2s ease, opacity .2s ease;
}

.csh-hero .csh-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.csh-hero .csh-button-secondary {
  background: rgba(255,255,255,.10);
  color: var(--csh-content-color, #fff);
  border: 1px solid rgba(255,255,255,.55);
}

.csh-hero .csh-button-ghost {
  background: transparent;
  color: var(--csh-content-color, #fff);
  box-shadow: none;
}

.csh-hero .csh-button-placeholder {
  cursor: default;
}

.csh-pos-center-left .csh-content-wrap { align-items: var(--csh-align-items, center); justify-content: var(--csh-justify-content, flex-start); text-align: left; }
.csh-pos-center .csh-content-wrap { align-items: var(--csh-align-items, center); justify-content: var(--csh-justify-content, center); text-align: center; }
.csh-pos-center-right .csh-content-wrap { align-items: var(--csh-align-items, center); justify-content: var(--csh-justify-content, flex-end); text-align: right; }
.csh-pos-bottom-left .csh-content-wrap { align-items: var(--csh-align-items, flex-end); justify-content: var(--csh-justify-content, flex-start); text-align: left; }
.csh-pos-bottom-center .csh-content-wrap { align-items: var(--csh-align-items, flex-end); justify-content: var(--csh-justify-content, center); text-align: center; }
.csh-pos-bottom-right .csh-content-wrap { align-items: var(--csh-align-items, flex-end); justify-content: var(--csh-justify-content, flex-end); text-align: right; }

.csh-preset-minimal-light {
  background: #f5f5f2;
}
.csh-preset-minimal-light .csh-sticky-stage {
  background: #f5f5f2;
}

.csh-preset-portfolio-dark .csh-content {
  backdrop-filter: saturate(130%) blur(0px);
}

.csh-preset-cinematic .csh-title {
  text-transform: uppercase;
  letter-spacing: -0.045em;
}
.csh-preset-cinematic .csh-subtitle {
  max-width: 560px;
}

.csh-debug-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.54);
  color: #fff;
  font: 12px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  backdrop-filter: blur(10px);
}

.csh-frame-slider {
  flex: 1;
  min-width: 120px;
}

.csh-debug-text {
  white-space: nowrap;
  opacity: .9;
}

@media (max-width: 767px) {
  .csh-hero {
    height: var(--csh-mobile-height, 220vh);
  }

  .csh-hero .csh-content-wrap {
    box-sizing: border-box;
    width: 100%;
    padding: calc(24px + var(--csh-header-offset, 0px)) 24px 24px;
  }

  .csh-hero .csh-content {
    /* Mobile safety: desktop fine X/Y offsets must not push the overlay off-screen.
       Elementor's mobile-specific generated CSS can still override these values. */
    --csh-content-shift-x: 0px;
    max-width: min(var(--csh-content-max, 620px), calc(100vw - 48px));
    width: min(var(--csh-content-max, 620px), calc(100vw - 48px));
  }

  .csh-hero .csh-eyebrow {
  margin: 0 0 14px;
  font-size: clamp(12px, 0.9vw, 15px);
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: inherit;
  opacity: 0.82;
}

.csh-hero .csh-title {
    font-size: clamp(38px, 13vw, 72px);
    letter-spacing: -0.055em;
  }

  .csh-hero .csh-subtitle {
    font-size: 17px;
  }

  .csh-hide-mobile-overlay .csh-content-wrap {
    display: none;
  }

  .csh-debug-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    font-size: 11px;
  }
}

.csh-hero .csh-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 3;
  pointer-events: none;
  opacity: 0.95;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px rgba(85,247,255,.55));
}

.csh-hero .csh-bg-overlay {
  z-index: 2;
}

.csh-hero .csh-content-wrap {
  z-index: 4;
}

.csh-debug-panel {
  z-index: 6;
}

.csh-hero .csh-floating-overlays {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.csh-hero .csh-floating-label {
  position: absolute;
  left: var(--csh-fl-x, 50%);
  top: var(--csh-fl-y, 50%);
  opacity: var(--csh-fl-op, 1);
  font-size: var(--csh-fl-size, 16px);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(560px, calc(100vw - 48px));
  padding: 0.65em 1em;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
  box-sizing: border-box;
  backdrop-filter: blur(10px) saturate(130%);
  box-shadow: 0 14px 44px rgba(0,0,0,0.22);
  text-shadow: 0 0 18px rgba(255,255,255,0.18);
}



.csh-hero .csh-floating-label-text-only {
  padding: 0;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
}

@media (max-width: 1024px) {
  .csh-hero .csh-floating-label {
    left: var(--csh-fl-tablet-x, var(--csh-fl-x, 50%));
    top: var(--csh-fl-tablet-y, var(--csh-fl-y, 50%));
    opacity: var(--csh-fl-tablet-op, var(--csh-fl-op, 1));
    font-size: var(--csh-fl-tablet-size, var(--csh-fl-size, 16px));
  }
}

@media (max-width: 767px) {
  .csh-hero .csh-floating-label {
    left: var(--csh-fl-mobile-x, var(--csh-fl-tablet-x, var(--csh-fl-x, 50%)));
    top: var(--csh-fl-mobile-y, var(--csh-fl-tablet-y, var(--csh-fl-y, 50%)));
    opacity: var(--csh-fl-mobile-op, var(--csh-fl-tablet-op, var(--csh-fl-op, 1)));
    font-size: var(--csh-fl-mobile-size, var(--csh-fl-tablet-size, var(--csh-fl-size, 16px)));
    max-width: calc(100vw - 32px);
    white-space: normal;
  }

  .csh-hero .csh-floating-hide-mobile {
    display: none;
  }
}

/* ------------------------------------------------------------
   Iván Neon Overlay Skin v0.2.10
   Integrated skin for the existing Creative Scroll Hero overlay.
   It only styles the existing .csh-content box, buttons and floating labels.
   It does not change loader, canvas, frames, sticky logic or JS scroll scrub.
------------------------------------------------------------ */
.csh-hero.csh-neon-overlay {
  --csh-neon-cyan: #57f7ff;
  --csh-neon-magenta: #d64cff;
  --csh-neon-purple: #8a65ff;
  --csh-neon-orange: #ff9d22;
  --csh-neon-muted: #b1b9cf;
}

.csh-hero.csh-neon-overlay .csh-content {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(87, 247, 255, 0.30);
  border-radius: var(--csh-neon-radius, 34px);
  background:
    radial-gradient(circle at 0% 0%, rgba(87, 247, 255, 0.18), transparent 31%),
    radial-gradient(circle at 100% 20%, rgba(214, 76, 255, 0.20), transparent 35%),
    linear-gradient(135deg, rgba(5, 8, 20, var(--csh-neon-box-opacity, 0.78)), rgba(18, 7, 35, calc(var(--csh-neon-box-opacity, 0.78) - 0.04)));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 42px rgba(214, 76, 255, 0.06),
    0 0 42px rgba(87, 247, 255, 0.10),
    0 30px 120px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(var(--csh-neon-blur, 18px)) saturate(1.18);
  -webkit-backdrop-filter: blur(var(--csh-neon-blur, 18px)) saturate(1.18);
  padding: var(--csh-neon-padding, clamp(28px, 5vw, 64px)) !important;
}

.csh-hero.csh-neon-intensity-low .csh-content {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 18px 70px rgba(0,0,0,0.34);
}

.csh-hero.csh-neon-intensity-medium .csh-content {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 42px rgba(214, 76, 255, 0.06),
    0 0 44px rgba(87, 247, 255, 0.12),
    0 28px 100px rgba(0, 0, 0, 0.42);
}

.csh-hero.csh-neon-intensity-high .csh-content {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 56px rgba(214, 76, 255, 0.08),
    0 0 62px rgba(87, 247, 255, 0.16),
    0 0 50px rgba(214, 76, 255, 0.10),
    0 34px 130px rgba(0, 0, 0, 0.46);
}

.csh-hero.csh-neon-grid .csh-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(87,247,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,76,255,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.35;
  mask-image: radial-gradient(circle at 58% 30%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 58% 30%, #000, transparent 72%);
}

.csh-hero.csh-neon-overlay .csh-content::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 24px;
  z-index: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--csh-neon-cyan), var(--csh-neon-magenta));
  box-shadow:
    0 0 22px rgba(87,247,255,0.55),
    0 0 28px rgba(214,76,255,0.35);
  opacity: 0.72;
  pointer-events: none;
}

.csh-hero.csh-neon-overlay .csh-content > * {
  position: relative;
  z-index: 2;
}

.csh-hero.csh-neon-overlay .csh-eyebrow {
  color: var(--csh-neon-cyan);
  letter-spacing: 0.28em;
  text-shadow: 0 0 20px rgba(87,247,255,0.38);
}

.csh-hero.csh-neon-overlay .csh-title {
  color: #fff;
  text-shadow:
    0 0 28px rgba(87,247,255,0.10),
    0 0 54px rgba(214,76,255,0.08);
}

.csh-hero.csh-neon-overlay .csh-subtitle {
  color: var(--csh-neon-muted);
  opacity: 0.96;
}

.csh-hero.csh-neon-buttons .csh-button {
  border: 1px solid rgba(87, 247, 255, 0.62);
  background:
    linear-gradient(90deg, rgba(87,247,255,0.12), rgba(214,76,255,0.10)),
    rgba(0,0,0,0.20);
  color: #fff;
  box-shadow:
    0 0 24px rgba(87,247,255,0.16),
    inset 0 0 22px rgba(214,76,255,0.10);
}

.csh-hero.csh-neon-buttons .csh-button:hover {
  transform: translateY(-2px);
  opacity: 1;
  border-color: var(--csh-neon-magenta);
  box-shadow:
    0 0 38px rgba(87,247,255,0.24),
    0 0 26px rgba(214,76,255,0.22),
    inset 0 0 24px rgba(214,76,255,0.16);
}

.csh-hero.csh-neon-buttons .csh-button-primary::after {
  content: "↗";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--csh-neon-cyan), var(--csh-neon-magenta));
  color: #050611;
  font-weight: 900;
  line-height: 1;
}

.csh-hero.csh-neon-overlay .csh-floating-label:not(.csh-floating-label-text-only) {
  border: 1px solid rgba(87, 247, 255, 0.26);
  background:
    radial-gradient(circle at 0% 0%, rgba(87, 247, 255, 0.12), transparent 36%),
    radial-gradient(circle at 100% 20%, rgba(214, 76, 255, 0.14), transparent 40%),
    rgba(8, 12, 26, 0.68) !important;
  box-shadow:
    0 0 32px rgba(87, 247, 255, 0.10),
    0 18px 55px rgba(0,0,0,0.26);
}

.csh-hero.csh-neon-overlay .csh-floating-label-text-only {
  text-shadow:
    0 0 18px rgba(87,247,255,0.38),
    0 0 28px rgba(214,76,255,0.22);
}

@media (max-width: 767px) {
  .csh-hero.csh-neon-overlay .csh-content {
    border-radius: min(var(--csh-neon-radius, 34px), 24px);
    padding: var(--csh-neon-padding, 28px 22px 54px) !important;
  }

  .csh-hero.csh-neon-overlay .csh-content::after {
    left: 22px;
    right: 22px;
    bottom: 18px;
  }

  .csh-hero.csh-neon-overlay .csh-eyebrow {
    letter-spacing: 0.18em;
  }
}
