@media screen {
  .entry-scroll .signal-hero {
    position: relative;
    isolation: isolate;
    background: linear-gradient(172deg, #faf7ef 52%, #f3f2e9 83%, #e9efed);
  }
  .entry-scroll .signal-hero::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: auto auto 0 0;
    width: 50%;
    aspect-ratio: 460 / 302;
    background: url("./rives-v1.svg#estuaire") bottom / 100% 100% no-repeat;
  }
  .entry-scroll .signal-content,
  .entry-scroll .signal-art { position: relative; }
  .entry-scroll .signal-content { z-index: 1; }

  .page.phare-welcome .phare-welcome-hero,
  .page.account-profile .account-profile-heading {
    isolation: isolate;
    position: relative;
    background: linear-gradient(160deg, #faf7ef 43%, #eff1eb 82%, #e5eced);
    border-radius: .5rem .5rem 0 0;
    overflow: hidden;
  }
  .page.phare-welcome .phare-welcome-hero { padding-bottom: clamp(2.6rem, 5vw, 4.1rem); }
  .page.account-profile .account-profile-heading {
    padding: clamp(.8rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2rem) 2.7rem;
    overflow-wrap: anywhere;
  }
  .page.phare-welcome .phare-welcome-hero::before,
  .page.account-profile .account-profile-heading::before,
  .page.phare-welcome .phare-welcome-hero::after,
  .page.account-profile .account-profile-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: bottom right;
  }
  .page.phare-welcome .phare-welcome-hero::before,
  .page.account-profile .account-profile-heading::before {
    inset-inline: 0;
    height: clamp(4.2rem, 9vw, 8rem);
    background-image: url("./rives-v1.svg");
    background-size: 100% 100%;
  }
  .page.phare-welcome .phare-welcome-hero::after,
  .page.account-profile .account-profile-heading::after {
    right: 0;
    width: clamp(6.5rem, 14vw, 12rem);
    aspect-ratio: 195 / 138;
    background-image: url("./cap-v1.svg");
    background-size: contain;
  }
  .page.account-profile .account-profile-heading > * { max-width: 74%; }
}

@media screen and (min-width: 641px) {
  .page.account-profile .account-profile-heading::before { max-height: 5.4rem; }
}

@media screen and (max-width: 640px) {
  .entry-scroll .signal-hero::before {
    width: 100%;
    max-height: 17.7rem;
    z-index: 1;
    mask-image: linear-gradient(to right, black 15%, transparent 63%);
  }
  .entry-scroll .signal-content { z-index: 2; }
  .page.phare-welcome .phare-welcome-hero { padding: .8rem .45rem 3.15rem; }
  .page.phare-welcome .phare-welcome-hero::before,
  .page.account-profile .account-profile-heading::before { height: 3.65rem; }
  .page.phare-welcome .phare-welcome-hero::after,
  .page.account-profile .account-profile-heading::after { width: 4.5rem; }
}

@media (forced-colors: active) {
  .entry-scroll .signal-hero::before,
  .page.phare-welcome .phare-welcome-hero::before,
  .page.phare-welcome .phare-welcome-hero::after,
  .page.account-profile .account-profile-heading::before,
  .page.account-profile .account-profile-heading::after { display: none; }
}
