/*
    Aurora hero: your original artwork, brought to life with WebGL.
    The picture stays exactly as designed; only the light moves:
      - the light column streams downward continuously (flow-map, no loop point)
      - the curtain sways as it falls, dust floats in the beam
      - the mist drifts, the floor glows as the light lands, the wet floor ripples
    Layout knobs on .pdmh-hero:
      --scene-anchor-x   where the centre of the light sits across the screen (landscape)
      --scene-pos-y      which part of the picture to keep when a very wide screen crops it
      --scene-stacked: 1 portrait layout: picture on top, copy underneath
  */
  :root { color-scheme: dark; }
  *, *::before, *::after { box-sizing: border-box; }
  body { margin: 0; background: #030507; }

  body.pumraw-digital-marketing-page {
    overflow-x: hidden;
    background: #030507;
  }

  .pumraw-digital-marketing-layout {
    width: 100%;
    min-height: 100%;
    background: #030507;
  }

  .pumraw-elementor-content {
    position: relative;
    z-index: 10;
    width: 100%;
    background: #030507;
  }

  .pdmh-hero {
    --bg: #030507;
    --ink: #f4f6f9;
    --ink-soft: rgba(222, 227, 236, 0.74);
    --ink-mute: rgba(206, 212, 222, 0.66);
    --focus: #7ef0e0;
    --gutter: clamp(20px, 4.65vw, 96px);
    --gutter-r: clamp(20px, 2.95vw, 64px);
    --scene-anchor-x: 0.743;
    --scene-pos-y: 0.4;
    --scene-stacked: 0;
    --scene-end: 100%;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--bg);
    color: var(--ink);
    font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .pdmh-hero__img,
  .pdmh-hero__canvas {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
  }
  .pdmh-hero__img {
    object-fit: cover;
    object-position: 100% 40%;
    user-select: none;
    pointer-events: none;
  }
  .pdmh-hero__canvas {
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  .pdmh-hero__canvas.is-live { opacity: 1; }
  .pdmh-hero--stacked .pdmh-hero__img {
    -webkit-mask-image: linear-gradient(#000 93%, transparent);
    mask-image: linear-gradient(#000 93%, transparent);
  }

  .pdmh-hero__grounding {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: multiply;
  }

  .pdmh-hero__figure {
    position: absolute;
    z-index: 2;
    display: block;
    opacity: 0;
    transform: translateX(-50%);
    transform-origin: 50% 100%;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.45s ease;
    filter:
      saturate(0.92)
      contrast(1.035)
      drop-shadow(-3px 8px 7px rgba(0, 0, 0, 0.42))
      drop-shadow(0 2px 2px rgba(0, 0, 0, 0.58));
  }
  .pdmh-hero__figure.is-ready { opacity: 0.97; }

  .pdmh-hero__light-wrap {
    position: absolute;
    z-index: 3;
    display: block;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: saturate(1.12) brightness(1.04);
    transition: opacity 0.45s ease;
  }
  .pdmh-hero__light-wrap.is-live { opacity: 0.72; }

  .pdmh-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(3, 5, 7, 0.35) 0%, rgba(3, 5, 7, 0) 45%);
  }

  .pdmh-hero__inner {
    position: relative;
    z-index: 5;
    flex: 1;
    width: auto;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(28px, 4.2vh, 48px);
    padding-inline: var(--gutter);
    padding-block: clamp(40px, 9.3vh, 92px) clamp(36px, 6vh, 56px);
  }

  .pdmh-hero__eyebrow {
    margin: 0 0 clamp(14px, 2.4vh, 24px);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #5bbada;
  }

  .pdmh-hero__title {
    margin: 0;
    font-size: clamp(2.35rem, min(4.6vw, 9.7vh), 6.25rem);
    font-weight: 500;
    line-height: 1.01;
    letter-spacing: -0.025em;
    color: var(--ink);
    text-shadow:
      0 2px 2px rgba(0, 0, 0, 0.30),
      0 8px 24px rgba(0, 0, 0, 0.22);
  }
  .pdmh-hero__title span { display: block; }
  .pdmh-hero__accent { font: inherit; }
  .pdmh-hero__accent--blue { color: #5bbada; }
  .pdmh-hero__accent--violet { color: #6b46c2; }
  .pdmh-hero__accent--pink { color: #ff4dc4; }

  .pdmh-hero__lede {
    max-width: 30.5em;
    margin: 0 0 clamp(20px, 3.2vh, 30px);
    font-size: clamp(0.9375rem, 0.5vw + 0.72rem, 1.125rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink-soft);
  }

  /* Global Pumraw glow button — use this component for every site CTA. */
  .pdmh-glow-button {
    --button-blue: #5bbada;
    --button-cyan: #7ef0e0;
    --mx: 50%;
    --my: 50%;
    position: relative;
    isolation: isolate;
    display: inline-grid;
    place-items: center;
    min-width: 194px;
    min-height: 54px;
    padding: 0 27px;
    overflow: visible;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(244, 246, 249, 0.86);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.055em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateZ(0) scale(1);
    transition: color 300ms ease, transform 480ms cubic-bezier(.16, 1, .3, 1);
  }

  .pdmh-glow-button::before {
    content: "";
    position: absolute;
    z-index: -3;
    inset: -15px;
    border-radius: inherit;
    background: radial-gradient(78px 48px at var(--mx) var(--my), rgba(91,186,218,.55), rgba(91,186,218,.18) 42%, transparent 74%);
    filter: blur(15px);
    opacity: 0;
    transition: opacity 420ms ease;
    pointer-events: none;
  }

  .pdmh-glow-button__shell {
    position: absolute;
    z-index: -2;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 44%), rgba(2,5,8,.92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 10px 28px rgba(0,0,0,.26);
  }

  .pdmh-glow-button__shell::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: radial-gradient(58px 38px at var(--mx) var(--my), rgba(255,255,255,.95), rgba(126,240,224,.88) 14%, rgba(91,186,218,.68) 34%, transparent 72%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
  }

  .pdmh-glow-button__energy {
    position: absolute;
    z-index: 1;
    width: 112px;
    height: 112px;
    left: var(--mx);
    top: var(--my);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.96) 0 2%, rgba(126,240,224,.92) 4%, rgba(91,186,218,.76) 15%, rgba(45,121,255,.34) 34%, transparent 68%);
    filter: blur(5px) saturate(1.18);
    opacity: 0;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%) scale(.35);
    transition: opacity 280ms ease, transform 520ms cubic-bezier(.16, 1, .3, 1);
    pointer-events: none;
  }

  .pdmh-glow-button__energy::before,
  .pdmh-glow-button__energy::after {
    content: "";
    position: absolute;
    inset: 46% -64%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(91,186,218,.18) 18%, rgba(126,240,224,.92) 49%, rgba(255,255,255,.92) 52%, rgba(91,186,218,.22) 70%, transparent);
    filter: blur(.5px);
    transform: rotate(-8deg) scaleX(.45);
    transition: transform 650ms cubic-bezier(.16, 1, .3, 1);
  }

  .pdmh-glow-button__energy::after {
    inset: 51% -34%;
    height: 1px;
    opacity: .72;
    transform: rotate(9deg) scaleX(.32);
  }

  .pdmh-glow-button__label { position: relative; z-index: 2; text-shadow: 0 1px 1px rgba(0,0,0,.72); }
  .pdmh-glow-button:is(:hover, :focus-visible) { color: #fff; transform: translateZ(0) scale(1.05); }
  .pdmh-glow-button:is(:hover, :focus-visible)::before { opacity: 1; }
  .pdmh-glow-button:is(:hover, :focus-visible) .pdmh-glow-button__shell::after { opacity: 1; }
  .pdmh-glow-button:is(:hover, :focus-visible) .pdmh-glow-button__energy { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .pdmh-glow-button:is(:hover, :focus-visible) .pdmh-glow-button__energy::before { transform: rotate(-8deg) scaleX(1); }
  .pdmh-glow-button:is(:hover, :focus-visible) .pdmh-glow-button__energy::after { transform: rotate(9deg) scaleX(.78); }
  .pdmh-glow-button:focus-visible { outline: 2px solid var(--button-blue); outline-offset: 5px; }

  .pdmh-hero__scroll {
    position: absolute;
    right: var(--gutter-r);
    bottom: clamp(22px, 3.9vh, 34px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.55);
  }
  .pdmh-hero__scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
  .pdmh-hero__scroll i {
    position: relative;
    display: block;
    width: 1px;
    height: 42px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
  }
  .pdmh-hero__scroll i::after {
    content: "";
    position: absolute;
    inset: 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, #9ff5ea, transparent);
    animation: pdmh-scroll-cue 2.6s ease-in-out infinite;
  }
  @keyframes pdmh-scroll-cue {
    from { transform: translateY(-100%); }
    to   { transform: translateY(230%); }
  }

  /* Portrait screens: picture on top, copy stacked underneath */
  @media (max-aspect-ratio: 1/1) {
    .pdmh-hero { --scene-stacked: 1; --scene-end: 52%; }
    .pdmh-hero__inner {
      justify-content: flex-end;
      gap: clamp(22px, 3.4vh, 38px);
    }
    .pdmh-hero__title { font-size: clamp(2.2rem, 9.2vw, 4.4rem); }
    .pdmh-hero__scrim {
      background: linear-gradient(180deg,
        rgba(3, 5, 7, 0) calc(var(--scene-end) - 3%),
        rgba(3, 5, 7, 0.55) calc(var(--scene-end) + 4%),
        rgba(3, 5, 7, 0.88) 100%);
    }
  }

  @media (max-width: 480px) {
    .pdmh-hero__scroll { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    .pdmh-hero__scroll i::after { animation: none; transform: translateY(60%); }
    .pdmh-glow-button,
    .pdmh-glow-button::before,
    .pdmh-glow-button__shell::after,
    .pdmh-glow-button__energy,
    .pdmh-glow-button__energy::before,
    .pdmh-glow-button__energy::after { transition: none; }
  }

  /* Keep theme and Elementor global typography from resizing the hero. */
  body.pumraw-digital-marketing-page .pdmh-hero__inner {
    width: auto;
    max-width: none;
    margin: 0;
  }

  body.pumraw-digital-marketing-page .pdmh-hero__eyebrow {
    font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
  }

  body.pumraw-digital-marketing-page .pdmh-hero__title {
    width: auto;
    max-width: none;
    margin: 0;
    font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(2.35rem, min(4.6vw, 9.7vh), 6.25rem);
    font-weight: 500;
    line-height: 1.01;
    letter-spacing: -0.025em;
    text-transform: none;
  }

  body.pumraw-digital-marketing-page .pdmh-hero__accent {
    font: inherit;
    font-weight: inherit;
  }

  body.pumraw-digital-marketing-page .pdmh-hero__lede {
    font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(0.9375rem, 0.5vw + 0.72rem, 1.125rem);
    font-weight: 400;
    line-height: 1.6;
  }

  @media (max-aspect-ratio: 1/1) {
    body.pumraw-digital-marketing-page .pdmh-hero__title {
      font-size: clamp(2.2rem, 9.2vw, 4.4rem);
    }
  }
