
  /* Load Poppins so the front end matches the editor. This only makes
     the font available, it does not apply Poppins to anything outside
     .wwep-hero below. */
  

  .wwep-hero{
    /* -------- Editable settings ---------------------------- */
    --wwep-image: url("https://pjhestateplanning.co.uk/wp-content/uploads/2026/11/About-us-people-banner-optimised.jpg.webp"); /* background image (also the video failover) */
    --wwep-radius: clamp(22px, 3vw, 40px); /* corner rounding               */
    --wwep-gutter: clamp(12px, 3vw, 32px); /* space to the screen edges     */
    --wwep-min-height: 76svh;          /* hero height (min 560px enforced)   */
    --wwep-container: 1200px;          /* text column alignment width        */
    --wwep-teal: #2a9d8f;              /* main brand tint                    */
    --wwep-teal-deep: #0f5f58;         /* deeper tint behind the text        */
    --wwep-mint: #7fe0cf;              /* soft highlight glow                */
      --wwep-cta-bg: #ffffff;
    --wwep-cta-text: #0a0f0d;
    --wwep-cta-hover-bg: #1fb9a8;      /* teal on hover (matches brand button) */
    --wwep-cta-hover-text: #ffffff;
    --wwep-tint-strength: .7;          /* 0 = image only, 1 = full tint       */
    --wwep-grain-opacity: .06;         /* subtle film grain, 0–1             */
    --wwep-font: "Poppins","Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,Helvetica,Arial,sans-serif;

    /* -------- Fine grain texture (static, no motion) -------- */
    --wwep-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

    /* -------- Glass panel (desktop only) --------------------- */
    --wwep-glass-bg: linear-gradient(135deg, rgba(6,28,26,.55) 0%, rgba(6,28,26,.35) 100%);
    --wwep-glass-border: rgba(255,255,255,.18);
    --wwep-glass-blur: 22px;
    --wwep-glass-radius: clamp(18px, 2.4vw, 30px);
    --wwep-glass-shadow: 0 24px 60px -20px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.14);

    /* -------- Structure (leave as-is) --------------------- */
    position:relative;
    display:flex;
    align-items:center;
    margin:var(--wwep-gutter);
    min-height:560px;
    min-height:max(560px, var(--wwep-min-height));
    border-radius:var(--wwep-radius);
    overflow:hidden;
    isolation:isolate;
    font-family:var(--wwep-font);
    color:#fff;
  }

  /* scoped reset: only inside the hero */
  .wwep-hero *,
  .wwep-hero *::before,
  .wwep-hero *::after{
    box-sizing:border-box;
    margin:0;
    padding:0;
    border:0;
    background:none;
    font:inherit;
    color:inherit;
    text-align:left;
    text-decoration:none;
    line-height:1.4;
  }
  .wwep-hero a,
  .wwep-hero a:hover,
  .wwep-hero a:focus,
  .wwep-hero a:visited{text-decoration:none;}

  /* Layer 1: your uploaded image */
  .wwep-hero__image{
    position:absolute;
    inset:0;
    z-index:-3;
    background-color:#1d4f49;
    background-image:var(--wwep-image);
    background-size:cover;
    background-position:center right;
  }

  /* Layer 1b: background YouTube video (tablet + desktop only).
     Sits on top of the image, which stays underneath as the failover.
     It stays invisible until it is actually playing, so a slow, blocked
     or missing video simply leaves the image showing. The script below
     sizes the iframe so it always covers the hero with no black bars. */
  .wwep-hero__video{
    position:absolute;
    inset:0;
    z-index:-3;
    overflow:hidden;
    opacity:0;
    transition:opacity .8s ease;
    pointer-events:none;
  }
  .wwep-hero__video iframe{
    position:absolute;
    top:50%;
    left:50%;
    width:100%;
    height:100%;
    transform:translate(-50%,-50%);
    border:0;
  }
  .wwep-hero.is-video-playing .wwep-hero__video{opacity:1}
  /* the image is hidden behind the video, so stop its Ken Burns drift */
  .wwep-hero.is-video-playing .wwep-hero__image{animation:none}

  /* Layer 2: soft, airy teal mesh tint.
     Deeper on the text side, fading to clear so the photo stays bright. */
  .wwep-hero__gradient{
    position:absolute;
    inset:0;
    z-index:-2;
    background-image:
      radial-gradient(ellipse 55% 60% at 0% 0%, rgba(127,224,207,.55), transparent 70%),
      radial-gradient(ellipse 50% 60% at 10% 100%, rgba(42,157,143,.7), transparent 70%),
      radial-gradient(ellipse 45% 45% at 95% 5%, rgba(127,224,207,.35), transparent 70%),
      linear-gradient(100deg, var(--wwep-teal-deep) 0%, var(--wwep-teal) 38%, rgba(42,157,143,.25) 68%, rgba(42,157,143,0) 100%);
    background-repeat:no-repeat;
    opacity:var(--wwep-tint-strength);
  }
  /* very fine grain for a premium, non-flat finish */
  .wwep-hero__gradient::after{
    content:"";
    position:absolute;
    inset:0;
    background-image:var(--wwep-noise);
    background-size:220px 220px;
    opacity:var(--wwep-grain-opacity);
    mix-blend-mode:overlay;
  }

  /* Layer 3: gentle readability wash on the text side */
  .wwep-hero__scrim{
    position:absolute;
    inset:0;
    z-index:-1;
    background:linear-gradient(90deg,rgba(6,38,34,.38) 0%,rgba(6,38,34,.18) 40%,rgba(6,38,34,0) 65%);
  }

  /* ===== CONTENT ===== */
  .wwep-hero__content{
    position:relative;
    width:100%;
    padding-block:clamp(36px, 5vw, 64px);
    padding-inline:clamp(22px, 6vw, 72px);
  }
  .wwep-hero__text{
    width:100%;
    max-width:var(--wwep-container);
    margin-inline:auto;
  }

  /* ===== 50+ YEARS BADGE =====
     Sits above the headline: a large white-to-mint "50+" beside a short
     label, split by a thin line, on a frosted pill. Static (no count-up),
     so it always shows the real figure. Edit it in the HTML below. */
  .wwep-hero__badge{
    display:inline-flex;
    align-items:center;
    gap:14px;
    margin-bottom:24px;
    padding:12px 24px;
    border-radius:999px;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.24);
    box-shadow:0 12px 28px -16px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12);
  }
  .wwep-hero__badge-num{
    font-size:2.4rem;
    font-weight:700;
    line-height:1;
    letter-spacing:-.03em;
    color:var(--wwep-mint);
    background:linear-gradient(120deg, #ffffff 0%, var(--wwep-mint) 70%);
    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    padding-right:14px;
    border-right:1px solid rgba(255,255,255,.28);
  }
  .wwep-hero__badge-label{
    font-size:.95rem;
    font-weight:500;
    line-height:1.35;
    color:rgba(255,255,255,.95);
  }
  .wwep-hero__badge-label strong{
    display:block;
    font-size:1.05rem;
    font-weight:700;
    color:#ffffff;
  }

  .wwep-hero__text h1{
    font-size:clamp(2.1rem, 6vw, 3.75rem);
    line-height:1.1;
    font-weight:600;
    letter-spacing:-.015em;
    margin-bottom:26px;
    max-width:15ch;
    text-shadow:0 2px 24px rgba(6,38,34,.25);
  }

  .wwep-hero__sub{
    font-size:clamp(1rem, 1.15rem + .3vw, 1.2rem);
    line-height:1.7;
    color:rgba(255,255,255,.94);
    max-width:44ch;
    margin-bottom:18px;
    text-wrap:pretty;
  }
  .wwep-hero__sub:last-of-type{margin-bottom:0}
  .wwep-hero__sub strong{font-weight:700;color:#fff}

  .wwep-hero__cta{
    display:inline-block;
    margin-top:26px;
    padding:16px 34px;
    background:var(--wwep-cta-bg);
    color:var(--wwep-cta-text);
    font-size:1rem;
    font-weight:600;
    text-decoration:none;
    border-radius:999px;
    transition:transform .18s ease,background-color .18s ease,color .18s ease,box-shadow .18s ease;
    box-shadow:0 10px 24px -12px rgba(6,38,34,.45);
  }
  .wwep-hero__cta:hover,
  .wwep-hero__cta:focus-visible{
    transform:translateY(-2px);
    background:var(--wwep-cta-hover-bg);
    color:var(--wwep-cta-hover-text);
    box-shadow:0 14px 30px -12px rgba(31,185,168,.7);
  }
  .wwep-hero__cta:focus-visible{
    outline:3px solid #a7f3d0;
    outline-offset:3px;
  }

  /* ===== TESTIMONIALS (modern card style) =====
     All the cards share one grid cell, stacked on top of each other.
     The box is therefore always as tall as the tallest card, at every
     screen size, with no height measuring in JavaScript, so a card can
     never spill out of its box or be cut off on phones. */
  .wwep-hero__testimonials{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    margin-top:40px;
    max-width:46ch;
  }
  .wwep-testimonial{
    grid-area:1 / 1;
    position:relative;
    min-width:0;
    opacity:0;
    visibility:hidden;
    transform:translateY(10px) scale(.99);
    transition:opacity .5s ease,transform .5s ease,visibility 0s linear .5s;
    pointer-events:none;
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:22px 24px 20px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.24);
    border-radius:18px;
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
  }
  .wwep-testimonial.is-active{
    opacity:1;
    visibility:visible;
    transform:translateY(0) scale(1);
    pointer-events:auto;
    transition:opacity .5s ease,transform .5s ease,visibility 0s;
  }
  /* Quotes are written short enough to sit on two full lines, no
     truncation. min-height keeps every card the same height. */
  .wwep-testimonial__quote{
    font-size:1rem;
    line-height:1.55;
    min-height:calc(1.55em * 2);
    color:#fff;
    font-style:normal;
    font-weight:500;
    text-wrap:balance;
  }
  .wwep-testimonial__meta{
    display:flex;
    align-items:center;
    gap:12px;
  }
  .wwep-testimonial__who{
    margin-right:auto;
    font-size:.85rem;
  }
  .wwep-testimonial__author{
    font-weight:600;
    color:#fff;
  }
  /* review source logo (Trustpilot / Google) in place of stars */
  .wwep-testimonial__logo{
    flex:none;
    display:flex;
    align-items:center;
    line-height:0;
  }
  .wwep-testimonial__logo img{
    display:block;
    height:20px;
    width:auto;
  }
  /* the Google logo has "Reviews" in small type under it, so show it a little
     larger than the Trustpilot logo to keep that line readable */
  .wwep-testimonial__logo--google img{
    height:30px;
  }

  /* ===== IMAGE FRAMING: desktop only =====
     Zooms and shifts the photo right so the people holding hands sit clear
     of the glass panel instead of being covered by it. Tablet (<=900px)
     and mobile keep their existing positioning untouched. */
  @media (min-width:901px){
    .wwep-hero__image{
      background-size:130%;
      background-position:85% 40%;
    }
  }

  /* ===== GLASS PANEL: desktop/tablet only, text + CTA + testimonials =====
     Left untouched on phones (<=600px) so mobile keeps its existing look. */
  @media (min-width:601px){
    .wwep-hero__glass{
      display:inline-block;
      background:var(--wwep-glass-bg);
      -webkit-backdrop-filter:blur(var(--wwep-glass-blur)) saturate(160%);
      backdrop-filter:blur(var(--wwep-glass-blur)) saturate(160%);
      border:1px solid var(--wwep-glass-border);
      border-radius:var(--wwep-glass-radius);
      box-shadow:var(--wwep-glass-shadow);
      padding:clamp(28px, 4vw, 48px) clamp(26px, 4vw, 52px);
    }
  }

  /* ===== DESKTOP ANIMATION =====
     Slow, subtle motion on desktop only (>=901px). Tablet and mobile stay
     static, and everything is switched off for reduced-motion users. */
  @media (min-width:901px) and (prefers-reduced-motion:no-preference){
    /* gentle Ken Burns drift on the photo */
    .wwep-hero__image{
      animation:wwep-kenburns 28s ease-in-out 1.2s infinite alternate; /* starts after the glass is in */
      will-change:transform;
    }
    /* teal mesh slowly floats and breathes */
    .wwep-hero__gradient{
      inset:-12%;
      animation:wwep-drift 22s ease-in-out 1.2s infinite alternate; /* starts after the glass is in */
      will-change:transform;
    }
    /* glass panel + contents fade up on load, staggered */
    .wwep-hero__glass{
      animation:wwep-rise .9s cubic-bezier(.2,.7,.2,1) both;
    }
    .wwep-hero__glass > .wwep-hero__badge,
    .wwep-hero__glass > h1,
    .wwep-hero__glass > .wwep-hero__sub,
    .wwep-hero__glass > .wwep-hero__cta,
    .wwep-hero__glass > .wwep-hero__testimonials{
      animation:wwep-rise .8s cubic-bezier(.2,.7,.2,1) both;
    }
    .wwep-hero__glass > .wwep-hero__badge{animation-delay:.1s}
    .wwep-hero__glass > h1{animation-delay:.2s}
    .wwep-hero__glass > .wwep-hero__sub{animation-delay:.35s}
    .wwep-hero__glass > .wwep-hero__cta{animation-delay:.5s}
    .wwep-hero__glass > .wwep-hero__testimonials{animation-delay:.65s}

    /* light sheen that sweeps across the glass every few seconds */
    .wwep-hero__glass{
      position:relative;
      overflow:hidden;
      isolation:isolate;
    }
    /* glint that travels along the panel's outline only */
    .wwep-hero__glass::after{
      content:"";
      position:absolute;
      inset:0;
      border-radius:inherit;
      padding:1px;
      background:linear-gradient(100deg,
        transparent 0%, transparent 40%,
        rgba(255,255,255,.55) 50%,
        transparent 60%, transparent 100%) no-repeat;
      background-size:250% 100%;
      background-position:130% 0;
      opacity:0; /* hidden until its first sweep */
      -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite:xor;
      mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
      pointer-events:none;
      animation:wwep-edge 8s cubic-bezier(.45,.05,.25,1) 1.8s infinite;
    }
  }

  @keyframes wwep-kenburns{
    from{transform:scale(1) translate3d(0,0,0)}
    to{transform:scale(1.07) translate3d(-1.5%,-1%,0)}
  }
  @keyframes wwep-drift{
    0%{transform:translate3d(0,0,0) rotate(0deg) scale(1)}
    50%{transform:translate3d(4%,-3%,0) rotate(2deg) scale(1.05)}
    100%{transform:translate3d(-3%,3%,0) rotate(-2deg) scale(1.02)}
  }
  @keyframes wwep-rise{
    from{opacity:0;transform:translateY(18px)}
    to{opacity:1;transform:translateY(0)}
  }
  /* outline sweep takes ~3.2s, then rests so it feels calm, not busy */
  @keyframes wwep-edge{
    0%{background-position:130% 0;opacity:0}
    6%{opacity:1}
    34%{opacity:1}
    40%,100%{background-position:-30% 0;opacity:0}
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width:900px){
    .wwep-hero__scrim{
      background:linear-gradient(180deg,rgba(6,38,34,.1) 0%,rgba(6,38,34,.3) 55%,rgba(6,38,34,.5) 100%);
    }
    .wwep-hero__image{background-position:center;}
  }

  @media (max-width:600px){
    .wwep-hero{
      --wwep-min-height:78svh;
      align-items:flex-end;
    }
    /* phone: no video, keep the existing static design */
    .wwep-hero__video{display:none}
    /* phone: static navy grunge texture instead of photo + tint */
    .wwep-hero__image{
      background-image:none;
      background-color:#0b2135;
    }
    .wwep-hero__gradient{
      background-image:
        var(--wwep-noise),
        radial-gradient(ellipse 60% 50% at 15% 15%, #1c4a72, transparent 60%),
        radial-gradient(ellipse 55% 50% at 85% 25%, rgba(10,30,49,.95), transparent 60%),
        radial-gradient(ellipse 60% 55% at 30% 85%, #1c4a72, transparent 62%),
        radial-gradient(ellipse 65% 55% at 90% 90%, rgba(10,30,49,.95), transparent 62%),
        linear-gradient(180deg,#0b2135 0%,#1c4a72 50%,#0a1e31 100%);
      background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
      background-size: 200px 200px, cover, cover, cover, cover, cover;
      background-blend-mode: overlay, normal, normal, normal, normal, normal;
      opacity:1;
    }
    .wwep-hero__gradient::after{display:none}
    .wwep-hero__scrim{
      background:linear-gradient(180deg,rgba(0,0,0,.12) 0%,rgba(0,0,0,.34) 100%);
    }
    /* height follows the content on phones, so there is no big empty
       gap above the text; the content sits in the middle */
    .wwep-hero{
      min-height:0;
      align-items:center;
    }
    .wwep-hero__content{
      padding-block:clamp(40px, 11vw, 56px);
      padding-inline:clamp(18px, 5.5vw, 26px);
    }
    .wwep-hero__text,
    .wwep-hero__text h1,
    .wwep-hero__sub,
    .wwep-testimonial__quote{
      text-align:center;
    }
    /* badge on phones: stacked and centred, the number on top and the
       label beneath it, so it reads in one glance and lines up with the
       centred headline */
    .wwep-hero__glass{
      display:flex;
      flex-direction:column;
      align-items:stretch;
    }
    .wwep-hero__badge{
      align-self:center;
      flex-direction:column;
      gap:0;
      margin-bottom:18px;
      padding:12px 24px;
      border-radius:18px;
      background:rgba(255,255,255,.08);
    }
    .wwep-hero__badge-num{
      font-size:2.5rem;
      padding:0;
      border-right:0;
      text-align:center;
    }
    .wwep-hero__badge-label{
      margin-top:6px;
      font-size:.85rem;
      line-height:1.4;
      text-align:center;
      color:rgba(255,255,255,.88);
    }
    .wwep-hero__badge-label strong{
      font-size:.98rem;
      text-align:center;
    }
    /* headline: smaller so it sits on three even lines, not four */
    .wwep-hero__text h1{
      max-width:18ch;
      margin-inline:auto;
      margin-bottom:16px;
      font-size:clamp(1.8rem, 8.2vw, 2.3rem);
      line-height:1.15;
      text-wrap:balance;
    }
    .wwep-hero__sub{
      max-width:34ch;
      margin-inline:auto;
      font-size:1rem;
      line-height:1.6;
      text-wrap:balance;
    }
    /* button: full width up to a comfortable size, easy to tap */
    .wwep-hero__cta{
      display:block;
      width:100%;
      max-width:340px;
      text-align:center;
      margin:22px auto 0;
      padding:16px 24px;
    }
    .wwep-hero__testimonials{
      max-width:100%;
      margin-inline:auto;
      margin-top:26px;
    }
    .wwep-testimonial{
      align-items:center;
      text-align:center;
      gap:10px;
      padding:18px 18px 16px;
      border-radius:16px;
    }
    .wwep-testimonial__quote{
      font-size:.95rem;
      line-height:1.5;
      min-height:calc(1.5em * 2);
    }
    .wwep-testimonial__meta{
      flex-direction:column;
      align-items:center;
      gap:6px;
    }
    .wwep-testimonial__who{
      margin-right:0;
      text-align:center;
    }
    .wwep-testimonial__logo{
      justify-content:center;
    }
  }

  /* ===== SMALL PHONES (<=380px) ===== */
  @media (max-width:380px){
    .wwep-hero__content{padding-inline:16px;}
    .wwep-hero__badge{padding:10px 20px;}
    .wwep-hero__badge-num{font-size:2.2rem;}
    .wwep-hero__text h1{font-size:1.7rem;}
    .wwep-hero__sub{font-size:.95rem;}
    .wwep-testimonial{padding:16px 14px 14px;}
  }

  @media (prefers-reduced-motion:reduce){
    .wwep-testimonial,
    .wwep-testimonial.is-active{transition:opacity .3s linear;transform:none}
    .wwep-hero__cta{transition:none}
    .wwep-hero__video{display:none}
  }

  /* ===== ROTATING LOCATION IN THE H1 (SEO-safe) =====
     The real H1 text is: Will Writing & Estate Planning in South Wales.
     The other regions are CSS-only text (not indexed, hidden from screen
     readers). To change them, edit the content values in wwep-loc-swap.
     Each region shows for 3s (12s cycle for 4 regions). */
  .wwep-loc-wrap{position:relative;display:block;margin-top:.12em;font-size:.78em;line-height:1.15;}
  .wwep-loc,.wwep-loc-alt::after{white-space:nowrap;color:var(--wwep-mint);background:linear-gradient(120deg,#ffffff 0%,var(--wwep-mint) 60%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;}
  .wwep-loc{display:inline-block;line-height:inherit;animation:wwep-loc-real 12s ease-in-out infinite;}
  .wwep-loc-alt{position:absolute;left:0;top:0;line-height:inherit;pointer-events:none;}
  .wwep-loc-alt::after{content:'';display:inline-block;line-height:inherit;opacity:0;animation:wwep-loc-swap 12s ease-in-out infinite;}
  @keyframes wwep-loc-real{0%,21%{opacity:1;transform:translateY(0)}24%,96%{opacity:0;transform:translateY(-.2em)}96.01%{opacity:0;transform:translateY(.2em)}100%{opacity:1;transform:translateY(0)}}
  @keyframes wwep-loc-swap{0%,24%{content:'West Wales';opacity:0;transform:translateY(.2em)}27%,46%{content:'West Wales';opacity:1;transform:translateY(0)}49%{content:'West Wales';opacity:0;transform:translateY(-.2em)}49.01%{content:'Wiltshire & Somerset';opacity:0;transform:translateY(.2em)}52%,71%{content:'Wiltshire & Somerset';opacity:1;transform:translateY(0)}74%{content:'Wiltshire & Somerset';opacity:0;transform:translateY(-.2em)}74.01%{content:'Hampshire & Dorset';opacity:0;transform:translateY(.2em)}77%,96%{content:'Hampshire & Dorset';opacity:1;transform:translateY(0)}99%,100%{content:'Hampshire & Dorset';opacity:0;transform:translateY(-.2em)}}
  @media (max-width:600px){.wwep-loc-wrap{font-size:.8em;text-align:center}.wwep-loc-alt{left:50%;transform:translateX(-50%)}}
  @media (max-width:380px){.wwep-loc-wrap{font-size:.72em}}
  @media (prefers-reduced-motion:reduce){.wwep-loc,.wwep-loc-alt::after{animation:none!important}.wwep-loc{opacity:1}.wwep-loc-alt{display:none}}
  